]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_char swig_types[0]
2467 #define SWIGTYPE_p_double swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_unsigned_char swig_types[4]
2471 #define SWIGTYPE_p_unsigned_int swig_types[5]
2472 #define SWIGTYPE_p_unsigned_long swig_types[6]
2473 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2474 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477 #define SWIGTYPE_p_wxBitmap swig_types[11]
2478 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479 #define SWIGTYPE_p_wxBrush swig_types[13]
2480 #define SWIGTYPE_p_wxBrushList swig_types[14]
2481 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2482 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2484 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2485 #define SWIGTYPE_p_wxClientDC swig_types[19]
2486 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2487 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2488 #define SWIGTYPE_p_wxColour swig_types[22]
2489 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2490 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492 #define SWIGTYPE_p_wxControl swig_types[26]
2493 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494 #define SWIGTYPE_p_wxCursor swig_types[28]
2495 #define SWIGTYPE_p_wxDC swig_types[29]
2496 #define SWIGTYPE_p_wxDash swig_types[30]
2497 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2498 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2499 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2500 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2501 #define SWIGTYPE_p_wxEffects swig_types[35]
2502 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2503 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2504 #define SWIGTYPE_p_wxEvent swig_types[38]
2505 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2506 #define SWIGTYPE_p_wxFSFile swig_types[40]
2507 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2508 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510 #define SWIGTYPE_p_wxFont swig_types[44]
2511 #define SWIGTYPE_p_wxFontList swig_types[45]
2512 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2513 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2514 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2515 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2516 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2517 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2518 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2519 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2520 #define SWIGTYPE_p_wxIcon swig_types[54]
2521 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2522 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2523 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2524 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2525 #define SWIGTYPE_p_wxImage swig_types[59]
2526 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2527 #define SWIGTYPE_p_wxImageList swig_types[61]
2528 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2529 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2530 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2531 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2532 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2533 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2534 #define SWIGTYPE_p_wxLocale swig_types[68]
2535 #define SWIGTYPE_p_wxMask swig_types[69]
2536 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2537 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2538 #define SWIGTYPE_p_wxMenu swig_types[72]
2539 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2540 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2542 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2543 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2544 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2545 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2546 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2549 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2550 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2552 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxObject swig_types[87]
2554 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2555 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2556 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2557 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2558 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxPalette swig_types[93]
2560 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2561 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2562 #define SWIGTYPE_p_wxPen swig_types[96]
2563 #define SWIGTYPE_p_wxPenList swig_types[97]
2564 #define SWIGTYPE_p_wxPoint swig_types[98]
2565 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2566 #define SWIGTYPE_p_wxPrintData swig_types[100]
2567 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2568 #define SWIGTYPE_p_wxPseudoDC swig_types[102]
2569 #define SWIGTYPE_p_wxPyApp swig_types[103]
2570 #define SWIGTYPE_p_wxPyCommandEvent swig_types[104]
2571 #define SWIGTYPE_p_wxPyEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[106]
2573 #define SWIGTYPE_p_wxPyImageHandler swig_types[107]
2574 #define SWIGTYPE_p_wxPySizer swig_types[108]
2575 #define SWIGTYPE_p_wxPyValidator swig_types[109]
2576 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[110]
2577 #define SWIGTYPE_p_wxRect swig_types[111]
2578 #define SWIGTYPE_p_wxRegion swig_types[112]
2579 #define SWIGTYPE_p_wxRegionIterator swig_types[113]
2580 #define SWIGTYPE_p_wxRendererNative swig_types[114]
2581 #define SWIGTYPE_p_wxRendererVersion swig_types[115]
2582 #define SWIGTYPE_p_wxScreenDC swig_types[116]
2583 #define SWIGTYPE_p_wxScrollEvent swig_types[117]
2584 #define SWIGTYPE_p_wxScrollWinEvent swig_types[118]
2585 #define SWIGTYPE_p_wxSetCursorEvent swig_types[119]
2586 #define SWIGTYPE_p_wxShowEvent swig_types[120]
2587 #define SWIGTYPE_p_wxSize swig_types[121]
2588 #define SWIGTYPE_p_wxSizeEvent swig_types[122]
2589 #define SWIGTYPE_p_wxSizer swig_types[123]
2590 #define SWIGTYPE_p_wxSizerItem swig_types[124]
2591 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[125]
2592 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[126]
2593 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[127]
2594 #define SWIGTYPE_p_wxStockGDI swig_types[128]
2595 #define SWIGTYPE_p_wxString swig_types[129]
2596 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[130]
2597 #define SWIGTYPE_p_wxTIFFHandler swig_types[131]
2598 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[132]
2599 #define SWIGTYPE_p_wxValidator swig_types[133]
2600 #define SWIGTYPE_p_wxWindow swig_types[134]
2601 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[135]
2602 #define SWIGTYPE_p_wxWindowDC swig_types[136]
2603 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[137]
2604 #define SWIGTYPE_p_wxXPMHandler swig_types[138]
2605 static swig_type_info *swig_types[140];
2606 static swig_module_info swig_module = {swig_types, 139, 0, 0, 0, 0};
2607 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2608 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2609
2610 /* -------- TYPES TABLE (END) -------- */
2611
2612 #if (PY_VERSION_HEX <= 0x02000000)
2613 # if !defined(SWIG_PYTHON_CLASSIC)
2614 # error "This python version requires to use swig with the '-classic' option"
2615 # endif
2616 #endif
2617 #if (PY_VERSION_HEX <= 0x02020000)
2618 # error "This python version requires to use swig with the '-nomodern' option"
2619 #endif
2620 #if (PY_VERSION_HEX <= 0x02020000)
2621 # error "This python version requires to use swig with the '-nomodernargs' option"
2622 #endif
2623 #ifndef METH_O
2624 # error "This python version requires to use swig with the '-nofastunpack' option"
2625 #endif
2626
2627 /*-----------------------------------------------
2628 @(target):= _gdi_.so
2629 ------------------------------------------------*/
2630 #define SWIG_init init_gdi_
2631
2632 #define SWIG_name "_gdi_"
2633
2634 #define SWIGVERSION 0x010329
2635
2636
2637 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2638 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2639
2640
2641 #include <stdexcept>
2642
2643
2644 namespace swig {
2645 class PyObject_ptr {
2646 protected:
2647 PyObject *_obj;
2648
2649 public:
2650 PyObject_ptr() :_obj(0)
2651 {
2652 }
2653
2654 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2655 {
2656 Py_XINCREF(_obj);
2657 }
2658
2659 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2660 {
2661 if (initial_ref) Py_XINCREF(_obj);
2662 }
2663
2664 PyObject_ptr & operator=(const PyObject_ptr& item)
2665 {
2666 Py_XINCREF(item._obj);
2667 Py_XDECREF(_obj);
2668 _obj = item._obj;
2669 return *this;
2670 }
2671
2672 ~PyObject_ptr()
2673 {
2674 Py_XDECREF(_obj);
2675 }
2676
2677 operator PyObject *() const
2678 {
2679 return _obj;
2680 }
2681
2682 PyObject *operator->() const
2683 {
2684 return _obj;
2685 }
2686 };
2687 }
2688
2689
2690 namespace swig {
2691 struct PyObject_var : PyObject_ptr {
2692 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2693
2694 PyObject_var & operator = (PyObject* obj)
2695 {
2696 Py_XDECREF(_obj);
2697 _obj = obj;
2698 return *this;
2699 }
2700 };
2701 }
2702
2703
2704 #include "wx/wxPython/wxPython.h"
2705 #include "wx/wxPython/pyclasses.h"
2706
2707
2708 static const wxString wxPyEmptyString(wxEmptyString);
2709
2710 #define SWIG_From_long PyInt_FromLong
2711
2712
2713 SWIGINTERNINLINE PyObject *
2714 SWIG_From_int (int value)
2715 {
2716 return SWIG_From_long (value);
2717 }
2718
2719
2720 #include <limits.h>
2721 #ifndef LLONG_MIN
2722 # define LLONG_MIN LONG_LONG_MIN
2723 #endif
2724 #ifndef LLONG_MAX
2725 # define LLONG_MAX LONG_LONG_MAX
2726 #endif
2727 #ifndef ULLONG_MAX
2728 # define ULLONG_MAX ULONG_LONG_MAX
2729 #endif
2730
2731
2732 SWIGINTERN int
2733 SWIG_AsVal_long (PyObject* obj, long* val)
2734 {
2735 if (PyNumber_Check(obj)) {
2736 if (val) *val = PyInt_AsLong(obj);
2737 return SWIG_OK;
2738 }
2739 return SWIG_TypeError;
2740 }
2741
2742
2743 SWIGINTERN int
2744 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2745 {
2746 long v = 0;
2747 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2748 return SWIG_TypeError;
2749 }
2750 else if (val)
2751 *val = (unsigned long)v;
2752 return SWIG_OK;
2753 }
2754
2755
2756 SWIGINTERN int
2757 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2758 {
2759 unsigned long v;
2760 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2761 if (SWIG_IsOK(res)) {
2762 if ((v > UCHAR_MAX)) {
2763 return SWIG_OverflowError;
2764 } else {
2765 if (val) *val = static_cast< unsigned char >(v);
2766 }
2767 }
2768 return res;
2769 }
2770
2771
2772 SWIGINTERNINLINE PyObject*
2773 SWIG_From_unsigned_SS_long (unsigned long value)
2774 {
2775 return (value > LONG_MAX) ?
2776 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2777 }
2778
2779
2780 SWIGINTERNINLINE PyObject *
2781 SWIG_From_unsigned_SS_char (unsigned char value)
2782 {
2783 return SWIG_From_unsigned_SS_long (value);
2784 }
2785
2786 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2787 wxColour temp, *obj = &temp;
2788 if ( other == Py_None ) return false;
2789 if ( ! wxColour_helper(other, &obj) ) {
2790 PyErr_Clear();
2791 return false;
2792 }
2793 return self->operator==(*obj);
2794 }
2795 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2796 wxColour temp, *obj = &temp;
2797 if ( other == Py_None ) return true;
2798 if ( ! wxColour_helper(other, &obj)) {
2799 PyErr_Clear();
2800 return true;
2801 }
2802 return self->operator!=(*obj);
2803 }
2804 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2805 PyObject* rv = PyTuple_New(3);
2806 int red = -1;
2807 int green = -1;
2808 int blue = -1;
2809 if (self->Ok()) {
2810 red = self->Red();
2811 green = self->Green();
2812 blue = self->Blue();
2813 }
2814 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2815 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2816 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2817 return rv;
2818 }
2819 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2820 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2821 }
2822
2823 SWIGINTERN int
2824 SWIG_AsVal_int (PyObject * obj, int *val)
2825 {
2826 long v;
2827 int res = SWIG_AsVal_long (obj, &v);
2828 if (SWIG_IsOK(res)) {
2829 if ((v < INT_MIN || v > INT_MAX)) {
2830 return SWIG_OverflowError;
2831 } else {
2832 if (val) *val = static_cast< int >(v);
2833 }
2834 }
2835 return res;
2836 }
2837
2838 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2839 wxDash* dashes;
2840 int count = self->GetDashes(&dashes);
2841 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2842 PyObject* retval = PyList_New(0);
2843 for (int x=0; x<count; x++) {
2844 PyObject* pyint = PyInt_FromLong(dashes[x]);
2845 PyList_Append(retval, pyint);
2846 Py_DECREF(pyint);
2847 }
2848 wxPyEndBlockThreads(blocked);
2849 return retval;
2850 }
2851 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2852 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2853 int size = PyList_Size(pyDashes);
2854 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2855
2856 // black magic warning! The array of wxDashes needs to exist as
2857 // long as the pen does because wxPen does not copy the array. So
2858 // stick a copy in a Python string object and attach it to _self,
2859 // and then call SetDashes with a pointer to that array. Then
2860 // when the Python pen object is destroyed the array will be
2861 // cleaned up too.
2862 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2863 PyObject_SetAttrString(_self, "_dashes", strDashes);
2864
2865 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2866 delete [] dashes;
2867 Py_DECREF(strDashes);
2868 wxPyEndBlockThreads(blocked);
2869 }
2870 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2871 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2872
2873 #include <wx/image.h>
2874
2875 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2876 char** cArray = NULL;
2877 int count;
2878
2879 if (!PyList_Check(listOfStrings)) {
2880 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2881 return NULL;
2882 }
2883 count = PyList_Size(listOfStrings);
2884 cArray = new char*[count];
2885
2886 for(int x=0; x<count; x++) {
2887 // TODO: Need some validation and error checking here
2888 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2889 }
2890 return cArray;
2891 }
2892
2893
2894 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2895 char** cArray = NULL;
2896 wxBitmap* bmp;
2897
2898 cArray = ConvertListOfStrings(listOfStrings);
2899 if (! cArray)
2900 return NULL;
2901 bmp = new wxBitmap(cArray);
2902 delete [] cArray;
2903 return bmp;
2904 }
2905 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2906 char* buf;
2907 Py_ssize_t length;
2908 PyString_AsStringAndSize(bits, &buf, &length);
2909 return new wxBitmap(buf, width, height, depth);
2910 }
2911 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2912 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2913 wxSize size(self->GetWidth(), self->GetHeight());
2914 return size;
2915 }
2916 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2917 wxMask *mask = new wxMask(*self, colour);
2918 self->SetMask(mask);
2919 }
2920 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2921 self->SetWidth(size.x);
2922 self->SetHeight(size.y);
2923 }
2924 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2925 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2926 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2927 if ( !colour.Ok() )
2928 return new wxMask(bitmap, *wxBLACK);
2929 else
2930 return new wxMask(bitmap, colour);
2931 }
2932
2933 #include <wx/iconbndl.h>
2934
2935 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2936 wxIcon* icon = new wxIcon();
2937 icon->CopyFromBitmap(bmp);
2938 return icon;
2939 }
2940 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2941 char** cArray = NULL;
2942 wxIcon* icon;
2943
2944 cArray = ConvertListOfStrings(listOfStrings);
2945 if (! cArray)
2946 return NULL;
2947 icon = new wxIcon(cArray);
2948 delete [] cArray;
2949 return icon;
2950 }
2951 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2952 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2953
2954 return new wxIconLocation(*filename, num);
2955
2956
2957
2958 }
2959 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2960
2961 self->SetIndex(num);
2962
2963
2964
2965 }
2966 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2967
2968 return self->GetIndex();
2969
2970
2971
2972 }
2973 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2974 #ifdef __WXGTK__
2975 wxImage img(cursorName, type);
2976 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2977 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2978 return new wxCursor(img);
2979 #else
2980 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2981 #endif
2982 }
2983 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2984
2985
2986 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2987 (*self) ++;
2988 }
2989 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2990 return self->operator bool();
2991 }
2992
2993 #include <wx/fontutil.h>
2994 #include <wx/fontmap.h>
2995 #include <wx/fontenum.h>
2996
2997
2998 SWIGINTERN int
2999 SWIG_AsVal_bool (PyObject *obj, bool *val)
3000 {
3001 if (obj == Py_True) {
3002 if (val) *val = true;
3003 return SWIG_OK;
3004 } else if (obj == Py_False) {
3005 if (val) *val = false;
3006 return SWIG_OK;
3007 } else {
3008 long v = 0;
3009 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3010 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3011 return res;
3012 }
3013 }
3014
3015 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3016 return self->ToString();
3017 }
3018
3019 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3020 { wxPyRaiseNotImplemented(); return NULL; }
3021
3022 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3023 { wxPyRaiseNotImplemented(); return false; }
3024
3025
3026 SWIGINTERNINLINE PyObject *
3027 SWIG_From_size_t (size_t value)
3028 {
3029 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3030 }
3031
3032
3033 SWIGINTERNINLINE int
3034 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3035 {
3036 unsigned long v;
3037 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3038 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3039 return res;
3040 }
3041
3042 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3043 wxFontEncoding alt_enc;
3044 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3045 return PyInt_FromLong(alt_enc);
3046 else {
3047 Py_INCREF(Py_None);
3048 return Py_None;
3049 }
3050 }
3051 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3052 wxNativeFontInfo nfi;
3053 nfi.FromString(info);
3054 return new wxFont(nfi);
3055 }
3056 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3057 return wxFont::New(pointSize, family, flags, face, encoding);
3058 }
3059 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3060 return wxFontBase::New(pixelSize, family,
3061 style, weight, underlined,
3062 face, encoding);
3063 }
3064 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3065 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3066 }
3067 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3068 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3069
3070 class wxPyFontEnumerator : public wxFontEnumerator {
3071 public:
3072 wxPyFontEnumerator() {}
3073 ~wxPyFontEnumerator() {}
3074
3075 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3076 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3077
3078 PYPRIVATE;
3079 };
3080
3081 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3082 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3083
3084
3085 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3086 PyObject* ret;
3087 wxArrayString arr = wxFontEnumerator::GetEncodings();
3088 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3089 ret = wxArrayString2PyList_helper(arr);
3090 wxPyEndBlockThreads(blocked);
3091 return ret;
3092 }
3093 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3094 PyObject* ret;
3095 wxArrayString arr = wxFontEnumerator::GetFacenames();
3096 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3097 ret = wxArrayString2PyList_helper(arr);
3098 wxPyEndBlockThreads(blocked);
3099 return ret;
3100 }
3101
3102 #include <locale.h>
3103
3104 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3105 wxLocale* loc;
3106 if (language == -1)
3107 loc = new wxLocale();
3108 else
3109 loc = new wxLocale(language, flags);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC, "C");
3114 #endif
3115 return loc;
3116 }
3117 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3118 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC, "C");
3123 #endif
3124 return rc;
3125 }
3126 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 bool rc = self->Init(language, flags);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC, "C");
3132 #endif
3133 return rc;
3134 }
3135
3136 #include "wx/wxPython/pydrawxxx.h"
3137
3138 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3139 wxColour col;
3140 self->GetPixel(x, y, &col);
3141 return col;
3142 }
3143 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3144 wxColour col;
3145 self->GetPixel(pt, &col);
3146 return col;
3147 }
3148
3149 SWIGINTERN int
3150 SWIG_AsVal_double (PyObject *obj, double* val)
3151 {
3152 if (PyNumber_Check(obj)) {
3153 if (val) *val = PyFloat_AsDouble(obj);
3154 return SWIG_OK;
3155 }
3156 return SWIG_TypeError;
3157 }
3158
3159 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3160 wxRect rv;
3161 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3162 return rv;
3163 }
3164 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3165 wxRect rect;
3166 self->GetClippingBox(rect);
3167 return rect;
3168 }
3169 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3170 wxArrayInt widths;
3171 self->GetPartialTextExtents(text, widths);
3172 return widths;
3173 }
3174
3175 #define SWIG_From_double PyFloat_FromDouble
3176
3177 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3178 self->SetLogicalOrigin(point.x, point.y);
3179 }
3180 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3181 self->SetDeviceOrigin(point.x, point.y);
3182 }
3183 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3184 self->CalcBoundingBox(point.x, point.y);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3196 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3197 }
3198 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3199 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3200 }
3201 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3202 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3203 }
3204
3205 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3206 *x1 = dc->MinX();
3207 *y1 = dc->MinY();
3208 *x2 = dc->MaxX();
3209 *y2 = dc->MaxY();
3210 }
3211
3212
3213 #include <wx/dcbuffer.h>
3214
3215
3216 #include <wx/dcps.h>
3217
3218
3219 #include <wx/metafile.h>
3220
3221
3222
3223 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3224 self->AddColour(name, wxColour(red, green, blue));
3225 }
3226
3227 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3228 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3229 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3230 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3231
3232
3233 #include <wx/effects.h>
3234
3235
3236 #include "wx/renderer.h"
3237
3238
3239 SWIGINTERNINLINE PyObject*
3240 SWIG_From_bool (bool value)
3241 {
3242 return PyBool_FromLong(value ? 1 : 0);
3243 }
3244
3245
3246 #include "wx/wxPython/pseudodc.h"
3247
3248 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3249 wxRect rect;
3250 self->GetIdBounds(id, rect);
3251 return rect;
3252 }
3253 #ifdef __cplusplus
3254 extern "C" {
3255 #endif
3256 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3257 PyObject *resultobj = 0;
3258 wxGDIObject *result = 0 ;
3259
3260 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3261 {
3262 if (!wxPyCheckForApp()) SWIG_fail;
3263 PyThreadState* __tstate = wxPyBeginAllowThreads();
3264 result = (wxGDIObject *)new wxGDIObject();
3265 wxPyEndAllowThreads(__tstate);
3266 if (PyErr_Occurred()) SWIG_fail;
3267 }
3268 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3269 return resultobj;
3270 fail:
3271 return NULL;
3272 }
3273
3274
3275 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3276 PyObject *resultobj = 0;
3277 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3278 void *argp1 = 0 ;
3279 int res1 = 0 ;
3280 PyObject *swig_obj[1] ;
3281
3282 if (!args) SWIG_fail;
3283 swig_obj[0] = args;
3284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3285 if (!SWIG_IsOK(res1)) {
3286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3287 }
3288 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3289 {
3290 PyThreadState* __tstate = wxPyBeginAllowThreads();
3291 delete arg1;
3292
3293 wxPyEndAllowThreads(__tstate);
3294 if (PyErr_Occurred()) SWIG_fail;
3295 }
3296 resultobj = SWIG_Py_Void();
3297 return resultobj;
3298 fail:
3299 return NULL;
3300 }
3301
3302
3303 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3304 PyObject *resultobj = 0;
3305 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3306 bool result;
3307 void *argp1 = 0 ;
3308 int res1 = 0 ;
3309 PyObject *swig_obj[1] ;
3310
3311 if (!args) SWIG_fail;
3312 swig_obj[0] = args;
3313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3314 if (!SWIG_IsOK(res1)) {
3315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3316 }
3317 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3318 {
3319 PyThreadState* __tstate = wxPyBeginAllowThreads();
3320 result = (bool)(arg1)->IsNull();
3321 wxPyEndAllowThreads(__tstate);
3322 if (PyErr_Occurred()) SWIG_fail;
3323 }
3324 {
3325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3326 }
3327 return resultobj;
3328 fail:
3329 return NULL;
3330 }
3331
3332
3333 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3334 PyObject *obj;
3335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3336 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3337 return SWIG_Py_Void();
3338 }
3339
3340 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3341 return SWIG_Python_InitShadowInstance(args);
3342 }
3343
3344 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3345 PyObject *resultobj = 0;
3346 byte arg1 = (byte) 0 ;
3347 byte arg2 = (byte) 0 ;
3348 byte arg3 = (byte) 0 ;
3349 wxColour *result = 0 ;
3350 unsigned char val1 ;
3351 int ecode1 = 0 ;
3352 unsigned char val2 ;
3353 int ecode2 = 0 ;
3354 unsigned char val3 ;
3355 int ecode3 = 0 ;
3356 PyObject * obj0 = 0 ;
3357 PyObject * obj1 = 0 ;
3358 PyObject * obj2 = 0 ;
3359 char * kwnames[] = {
3360 (char *) "red",(char *) "green",(char *) "blue", NULL
3361 };
3362
3363 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3364 if (obj0) {
3365 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3366 if (!SWIG_IsOK(ecode1)) {
3367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3368 }
3369 arg1 = static_cast< byte >(val1);
3370 }
3371 if (obj1) {
3372 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3373 if (!SWIG_IsOK(ecode2)) {
3374 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3375 }
3376 arg2 = static_cast< byte >(val2);
3377 }
3378 if (obj2) {
3379 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3380 if (!SWIG_IsOK(ecode3)) {
3381 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3382 }
3383 arg3 = static_cast< byte >(val3);
3384 }
3385 {
3386 PyThreadState* __tstate = wxPyBeginAllowThreads();
3387 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3388 wxPyEndAllowThreads(__tstate);
3389 if (PyErr_Occurred()) SWIG_fail;
3390 }
3391 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3392 return resultobj;
3393 fail:
3394 return NULL;
3395 }
3396
3397
3398 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3399 PyObject *resultobj = 0;
3400 wxString *arg1 = 0 ;
3401 wxColour *result = 0 ;
3402 bool temp1 = false ;
3403 PyObject * obj0 = 0 ;
3404 char * kwnames[] = {
3405 (char *) "colorName", NULL
3406 };
3407
3408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3409 {
3410 arg1 = wxString_in_helper(obj0);
3411 if (arg1 == NULL) SWIG_fail;
3412 temp1 = true;
3413 }
3414 {
3415 if (!wxPyCheckForApp()) SWIG_fail;
3416 PyThreadState* __tstate = wxPyBeginAllowThreads();
3417 result = (wxColour *)new wxColour((wxString const &)*arg1);
3418 wxPyEndAllowThreads(__tstate);
3419 if (PyErr_Occurred()) SWIG_fail;
3420 }
3421 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3422 {
3423 if (temp1)
3424 delete arg1;
3425 }
3426 return resultobj;
3427 fail:
3428 {
3429 if (temp1)
3430 delete arg1;
3431 }
3432 return NULL;
3433 }
3434
3435
3436 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3437 PyObject *resultobj = 0;
3438 unsigned long arg1 ;
3439 wxColour *result = 0 ;
3440 unsigned long val1 ;
3441 int ecode1 = 0 ;
3442 PyObject * obj0 = 0 ;
3443 char * kwnames[] = {
3444 (char *) "colRGB", NULL
3445 };
3446
3447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3448 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3449 if (!SWIG_IsOK(ecode1)) {
3450 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3451 }
3452 arg1 = static_cast< unsigned long >(val1);
3453 {
3454 PyThreadState* __tstate = wxPyBeginAllowThreads();
3455 result = (wxColour *)new wxColour(arg1);
3456 wxPyEndAllowThreads(__tstate);
3457 if (PyErr_Occurred()) SWIG_fail;
3458 }
3459 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3460 return resultobj;
3461 fail:
3462 return NULL;
3463 }
3464
3465
3466 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3467 PyObject *resultobj = 0;
3468 wxColour *arg1 = (wxColour *) 0 ;
3469 void *argp1 = 0 ;
3470 int res1 = 0 ;
3471 PyObject *swig_obj[1] ;
3472
3473 if (!args) SWIG_fail;
3474 swig_obj[0] = args;
3475 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3476 if (!SWIG_IsOK(res1)) {
3477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3478 }
3479 arg1 = reinterpret_cast< wxColour * >(argp1);
3480 {
3481 PyThreadState* __tstate = wxPyBeginAllowThreads();
3482 delete arg1;
3483
3484 wxPyEndAllowThreads(__tstate);
3485 if (PyErr_Occurred()) SWIG_fail;
3486 }
3487 resultobj = SWIG_Py_Void();
3488 return resultobj;
3489 fail:
3490 return NULL;
3491 }
3492
3493
3494 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3495 PyObject *resultobj = 0;
3496 wxColour *arg1 = (wxColour *) 0 ;
3497 byte result;
3498 void *argp1 = 0 ;
3499 int res1 = 0 ;
3500 PyObject *swig_obj[1] ;
3501
3502 if (!args) SWIG_fail;
3503 swig_obj[0] = args;
3504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3505 if (!SWIG_IsOK(res1)) {
3506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3507 }
3508 arg1 = reinterpret_cast< wxColour * >(argp1);
3509 {
3510 PyThreadState* __tstate = wxPyBeginAllowThreads();
3511 result = (byte)(arg1)->Red();
3512 wxPyEndAllowThreads(__tstate);
3513 if (PyErr_Occurred()) SWIG_fail;
3514 }
3515 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3516 return resultobj;
3517 fail:
3518 return NULL;
3519 }
3520
3521
3522 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3523 PyObject *resultobj = 0;
3524 wxColour *arg1 = (wxColour *) 0 ;
3525 byte result;
3526 void *argp1 = 0 ;
3527 int res1 = 0 ;
3528 PyObject *swig_obj[1] ;
3529
3530 if (!args) SWIG_fail;
3531 swig_obj[0] = args;
3532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3533 if (!SWIG_IsOK(res1)) {
3534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3535 }
3536 arg1 = reinterpret_cast< wxColour * >(argp1);
3537 {
3538 PyThreadState* __tstate = wxPyBeginAllowThreads();
3539 result = (byte)(arg1)->Green();
3540 wxPyEndAllowThreads(__tstate);
3541 if (PyErr_Occurred()) SWIG_fail;
3542 }
3543 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3544 return resultobj;
3545 fail:
3546 return NULL;
3547 }
3548
3549
3550 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3551 PyObject *resultobj = 0;
3552 wxColour *arg1 = (wxColour *) 0 ;
3553 byte result;
3554 void *argp1 = 0 ;
3555 int res1 = 0 ;
3556 PyObject *swig_obj[1] ;
3557
3558 if (!args) SWIG_fail;
3559 swig_obj[0] = args;
3560 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3561 if (!SWIG_IsOK(res1)) {
3562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3563 }
3564 arg1 = reinterpret_cast< wxColour * >(argp1);
3565 {
3566 PyThreadState* __tstate = wxPyBeginAllowThreads();
3567 result = (byte)(arg1)->Blue();
3568 wxPyEndAllowThreads(__tstate);
3569 if (PyErr_Occurred()) SWIG_fail;
3570 }
3571 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3572 return resultobj;
3573 fail:
3574 return NULL;
3575 }
3576
3577
3578 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3579 PyObject *resultobj = 0;
3580 wxColour *arg1 = (wxColour *) 0 ;
3581 bool result;
3582 void *argp1 = 0 ;
3583 int res1 = 0 ;
3584 PyObject *swig_obj[1] ;
3585
3586 if (!args) SWIG_fail;
3587 swig_obj[0] = args;
3588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3589 if (!SWIG_IsOK(res1)) {
3590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3591 }
3592 arg1 = reinterpret_cast< wxColour * >(argp1);
3593 {
3594 PyThreadState* __tstate = wxPyBeginAllowThreads();
3595 result = (bool)(arg1)->Ok();
3596 wxPyEndAllowThreads(__tstate);
3597 if (PyErr_Occurred()) SWIG_fail;
3598 }
3599 {
3600 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3601 }
3602 return resultobj;
3603 fail:
3604 return NULL;
3605 }
3606
3607
3608 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3609 PyObject *resultobj = 0;
3610 wxColour *arg1 = (wxColour *) 0 ;
3611 byte arg2 ;
3612 byte arg3 ;
3613 byte arg4 ;
3614 void *argp1 = 0 ;
3615 int res1 = 0 ;
3616 unsigned char val2 ;
3617 int ecode2 = 0 ;
3618 unsigned char val3 ;
3619 int ecode3 = 0 ;
3620 unsigned char val4 ;
3621 int ecode4 = 0 ;
3622 PyObject * obj0 = 0 ;
3623 PyObject * obj1 = 0 ;
3624 PyObject * obj2 = 0 ;
3625 PyObject * obj3 = 0 ;
3626 char * kwnames[] = {
3627 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3628 };
3629
3630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3632 if (!SWIG_IsOK(res1)) {
3633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3634 }
3635 arg1 = reinterpret_cast< wxColour * >(argp1);
3636 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3637 if (!SWIG_IsOK(ecode2)) {
3638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3639 }
3640 arg2 = static_cast< byte >(val2);
3641 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3642 if (!SWIG_IsOK(ecode3)) {
3643 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3644 }
3645 arg3 = static_cast< byte >(val3);
3646 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3647 if (!SWIG_IsOK(ecode4)) {
3648 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3649 }
3650 arg4 = static_cast< byte >(val4);
3651 {
3652 PyThreadState* __tstate = wxPyBeginAllowThreads();
3653 (arg1)->Set(arg2,arg3,arg4);
3654 wxPyEndAllowThreads(__tstate);
3655 if (PyErr_Occurred()) SWIG_fail;
3656 }
3657 resultobj = SWIG_Py_Void();
3658 return resultobj;
3659 fail:
3660 return NULL;
3661 }
3662
3663
3664 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3665 PyObject *resultobj = 0;
3666 wxColour *arg1 = (wxColour *) 0 ;
3667 unsigned long arg2 ;
3668 void *argp1 = 0 ;
3669 int res1 = 0 ;
3670 unsigned long val2 ;
3671 int ecode2 = 0 ;
3672 PyObject * obj0 = 0 ;
3673 PyObject * obj1 = 0 ;
3674 char * kwnames[] = {
3675 (char *) "self",(char *) "colRGB", NULL
3676 };
3677
3678 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3679 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3680 if (!SWIG_IsOK(res1)) {
3681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3682 }
3683 arg1 = reinterpret_cast< wxColour * >(argp1);
3684 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3685 if (!SWIG_IsOK(ecode2)) {
3686 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3687 }
3688 arg2 = static_cast< unsigned long >(val2);
3689 {
3690 PyThreadState* __tstate = wxPyBeginAllowThreads();
3691 (arg1)->Set(arg2);
3692 wxPyEndAllowThreads(__tstate);
3693 if (PyErr_Occurred()) SWIG_fail;
3694 }
3695 resultobj = SWIG_Py_Void();
3696 return resultobj;
3697 fail:
3698 return NULL;
3699 }
3700
3701
3702 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3703 PyObject *resultobj = 0;
3704 wxColour *arg1 = (wxColour *) 0 ;
3705 wxString *arg2 = 0 ;
3706 void *argp1 = 0 ;
3707 int res1 = 0 ;
3708 bool temp2 = false ;
3709 PyObject * obj0 = 0 ;
3710 PyObject * obj1 = 0 ;
3711 char * kwnames[] = {
3712 (char *) "self",(char *) "colourName", NULL
3713 };
3714
3715 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3716 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3717 if (!SWIG_IsOK(res1)) {
3718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3719 }
3720 arg1 = reinterpret_cast< wxColour * >(argp1);
3721 {
3722 arg2 = wxString_in_helper(obj1);
3723 if (arg2 == NULL) SWIG_fail;
3724 temp2 = true;
3725 }
3726 {
3727 PyThreadState* __tstate = wxPyBeginAllowThreads();
3728 (arg1)->InitFromName((wxString const &)*arg2);
3729 wxPyEndAllowThreads(__tstate);
3730 if (PyErr_Occurred()) SWIG_fail;
3731 }
3732 resultobj = SWIG_Py_Void();
3733 {
3734 if (temp2)
3735 delete arg2;
3736 }
3737 return resultobj;
3738 fail:
3739 {
3740 if (temp2)
3741 delete arg2;
3742 }
3743 return NULL;
3744 }
3745
3746
3747 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3748 PyObject *resultobj = 0;
3749 wxColour *arg1 = (wxColour *) 0 ;
3750 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3751 wxString result;
3752 void *argp1 = 0 ;
3753 int res1 = 0 ;
3754 long val2 ;
3755 int ecode2 = 0 ;
3756 PyObject * obj0 = 0 ;
3757 PyObject * obj1 = 0 ;
3758 char * kwnames[] = {
3759 (char *) "self",(char *) "flags", NULL
3760 };
3761
3762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3763 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3764 if (!SWIG_IsOK(res1)) {
3765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3766 }
3767 arg1 = reinterpret_cast< wxColour * >(argp1);
3768 if (obj1) {
3769 ecode2 = SWIG_AsVal_long(obj1, &val2);
3770 if (!SWIG_IsOK(ecode2)) {
3771 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3772 }
3773 arg2 = static_cast< long >(val2);
3774 }
3775 {
3776 PyThreadState* __tstate = wxPyBeginAllowThreads();
3777 result = ((wxColour const *)arg1)->GetAsString(arg2);
3778 wxPyEndAllowThreads(__tstate);
3779 if (PyErr_Occurred()) SWIG_fail;
3780 }
3781 {
3782 #if wxUSE_UNICODE
3783 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3784 #else
3785 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3786 #endif
3787 }
3788 return resultobj;
3789 fail:
3790 return NULL;
3791 }
3792
3793
3794 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3795 PyObject *resultobj = 0;
3796 wxColour *arg1 = (wxColour *) 0 ;
3797 long result;
3798 void *argp1 = 0 ;
3799 int res1 = 0 ;
3800 PyObject *swig_obj[1] ;
3801
3802 if (!args) SWIG_fail;
3803 swig_obj[0] = args;
3804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3805 if (!SWIG_IsOK(res1)) {
3806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3807 }
3808 arg1 = reinterpret_cast< wxColour * >(argp1);
3809 {
3810 PyThreadState* __tstate = wxPyBeginAllowThreads();
3811 result = (long)((wxColour const *)arg1)->GetPixel();
3812 wxPyEndAllowThreads(__tstate);
3813 if (PyErr_Occurred()) SWIG_fail;
3814 }
3815 resultobj = SWIG_From_long(static_cast< long >(result));
3816 return resultobj;
3817 fail:
3818 return NULL;
3819 }
3820
3821
3822 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3823 PyObject *resultobj = 0;
3824 wxColour *arg1 = (wxColour *) 0 ;
3825 PyObject *arg2 = (PyObject *) 0 ;
3826 bool result;
3827 void *argp1 = 0 ;
3828 int res1 = 0 ;
3829 PyObject * obj0 = 0 ;
3830 PyObject * obj1 = 0 ;
3831 char * kwnames[] = {
3832 (char *) "self",(char *) "other", NULL
3833 };
3834
3835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3836 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3837 if (!SWIG_IsOK(res1)) {
3838 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3839 }
3840 arg1 = reinterpret_cast< wxColour * >(argp1);
3841 arg2 = obj1;
3842 {
3843 result = (bool)wxColour___eq__(arg1,arg2);
3844 if (PyErr_Occurred()) SWIG_fail;
3845 }
3846 {
3847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3848 }
3849 return resultobj;
3850 fail:
3851 return NULL;
3852 }
3853
3854
3855 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3856 PyObject *resultobj = 0;
3857 wxColour *arg1 = (wxColour *) 0 ;
3858 PyObject *arg2 = (PyObject *) 0 ;
3859 bool result;
3860 void *argp1 = 0 ;
3861 int res1 = 0 ;
3862 PyObject * obj0 = 0 ;
3863 PyObject * obj1 = 0 ;
3864 char * kwnames[] = {
3865 (char *) "self",(char *) "other", NULL
3866 };
3867
3868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3870 if (!SWIG_IsOK(res1)) {
3871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3872 }
3873 arg1 = reinterpret_cast< wxColour * >(argp1);
3874 arg2 = obj1;
3875 {
3876 result = (bool)wxColour___ne__(arg1,arg2);
3877 if (PyErr_Occurred()) SWIG_fail;
3878 }
3879 {
3880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3881 }
3882 return resultobj;
3883 fail:
3884 return NULL;
3885 }
3886
3887
3888 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3889 PyObject *resultobj = 0;
3890 wxColour *arg1 = (wxColour *) 0 ;
3891 PyObject *result = 0 ;
3892 void *argp1 = 0 ;
3893 int res1 = 0 ;
3894 PyObject *swig_obj[1] ;
3895
3896 if (!args) SWIG_fail;
3897 swig_obj[0] = args;
3898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3899 if (!SWIG_IsOK(res1)) {
3900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3901 }
3902 arg1 = reinterpret_cast< wxColour * >(argp1);
3903 {
3904 PyThreadState* __tstate = wxPyBeginAllowThreads();
3905 result = (PyObject *)wxColour_Get(arg1);
3906 wxPyEndAllowThreads(__tstate);
3907 if (PyErr_Occurred()) SWIG_fail;
3908 }
3909 resultobj = result;
3910 return resultobj;
3911 fail:
3912 return NULL;
3913 }
3914
3915
3916 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3917 PyObject *resultobj = 0;
3918 wxColour *arg1 = (wxColour *) 0 ;
3919 unsigned long result;
3920 void *argp1 = 0 ;
3921 int res1 = 0 ;
3922 PyObject *swig_obj[1] ;
3923
3924 if (!args) SWIG_fail;
3925 swig_obj[0] = args;
3926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3927 if (!SWIG_IsOK(res1)) {
3928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3929 }
3930 arg1 = reinterpret_cast< wxColour * >(argp1);
3931 {
3932 PyThreadState* __tstate = wxPyBeginAllowThreads();
3933 result = (unsigned long)wxColour_GetRGB(arg1);
3934 wxPyEndAllowThreads(__tstate);
3935 if (PyErr_Occurred()) SWIG_fail;
3936 }
3937 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3938 return resultobj;
3939 fail:
3940 return NULL;
3941 }
3942
3943
3944 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3945 PyObject *obj;
3946 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3947 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3948 return SWIG_Py_Void();
3949 }
3950
3951 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3952 return SWIG_Python_InitShadowInstance(args);
3953 }
3954
3955 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3956 PyObject *resultobj = 0;
3957 int arg1 ;
3958 unsigned char *arg2 = (unsigned char *) 0 ;
3959 unsigned char *arg3 = (unsigned char *) 0 ;
3960 unsigned char *arg4 = (unsigned char *) 0 ;
3961 wxPalette *result = 0 ;
3962 int val1 ;
3963 int ecode1 = 0 ;
3964 void *argp2 = 0 ;
3965 int res2 = 0 ;
3966 void *argp3 = 0 ;
3967 int res3 = 0 ;
3968 void *argp4 = 0 ;
3969 int res4 = 0 ;
3970 PyObject * obj0 = 0 ;
3971 PyObject * obj1 = 0 ;
3972 PyObject * obj2 = 0 ;
3973 PyObject * obj3 = 0 ;
3974 char * kwnames[] = {
3975 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3976 };
3977
3978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3979 ecode1 = SWIG_AsVal_int(obj0, &val1);
3980 if (!SWIG_IsOK(ecode1)) {
3981 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3982 }
3983 arg1 = static_cast< int >(val1);
3984 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3985 if (!SWIG_IsOK(res2)) {
3986 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3987 }
3988 arg2 = reinterpret_cast< unsigned char * >(argp2);
3989 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3990 if (!SWIG_IsOK(res3)) {
3991 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3992 }
3993 arg3 = reinterpret_cast< unsigned char * >(argp3);
3994 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3995 if (!SWIG_IsOK(res4)) {
3996 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3997 }
3998 arg4 = reinterpret_cast< unsigned char * >(argp4);
3999 {
4000 if (!wxPyCheckForApp()) SWIG_fail;
4001 PyThreadState* __tstate = wxPyBeginAllowThreads();
4002 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4003 wxPyEndAllowThreads(__tstate);
4004 if (PyErr_Occurred()) SWIG_fail;
4005 }
4006 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4007 return resultobj;
4008 fail:
4009 return NULL;
4010 }
4011
4012
4013 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4014 PyObject *resultobj = 0;
4015 wxPalette *arg1 = (wxPalette *) 0 ;
4016 void *argp1 = 0 ;
4017 int res1 = 0 ;
4018 PyObject *swig_obj[1] ;
4019
4020 if (!args) SWIG_fail;
4021 swig_obj[0] = args;
4022 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4023 if (!SWIG_IsOK(res1)) {
4024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4025 }
4026 arg1 = reinterpret_cast< wxPalette * >(argp1);
4027 {
4028 PyThreadState* __tstate = wxPyBeginAllowThreads();
4029 delete arg1;
4030
4031 wxPyEndAllowThreads(__tstate);
4032 if (PyErr_Occurred()) SWIG_fail;
4033 }
4034 resultobj = SWIG_Py_Void();
4035 return resultobj;
4036 fail:
4037 return NULL;
4038 }
4039
4040
4041 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4042 PyObject *resultobj = 0;
4043 wxPalette *arg1 = (wxPalette *) 0 ;
4044 byte arg2 ;
4045 byte arg3 ;
4046 byte arg4 ;
4047 int result;
4048 void *argp1 = 0 ;
4049 int res1 = 0 ;
4050 unsigned char val2 ;
4051 int ecode2 = 0 ;
4052 unsigned char val3 ;
4053 int ecode3 = 0 ;
4054 unsigned char val4 ;
4055 int ecode4 = 0 ;
4056 PyObject * obj0 = 0 ;
4057 PyObject * obj1 = 0 ;
4058 PyObject * obj2 = 0 ;
4059 PyObject * obj3 = 0 ;
4060 char * kwnames[] = {
4061 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4062 };
4063
4064 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4065 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4066 if (!SWIG_IsOK(res1)) {
4067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4068 }
4069 arg1 = reinterpret_cast< wxPalette * >(argp1);
4070 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4071 if (!SWIG_IsOK(ecode2)) {
4072 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4073 }
4074 arg2 = static_cast< byte >(val2);
4075 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4076 if (!SWIG_IsOK(ecode3)) {
4077 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4078 }
4079 arg3 = static_cast< byte >(val3);
4080 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4081 if (!SWIG_IsOK(ecode4)) {
4082 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4083 }
4084 arg4 = static_cast< byte >(val4);
4085 {
4086 PyThreadState* __tstate = wxPyBeginAllowThreads();
4087 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4088 wxPyEndAllowThreads(__tstate);
4089 if (PyErr_Occurred()) SWIG_fail;
4090 }
4091 resultobj = SWIG_From_int(static_cast< int >(result));
4092 return resultobj;
4093 fail:
4094 return NULL;
4095 }
4096
4097
4098 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4099 PyObject *resultobj = 0;
4100 wxPalette *arg1 = (wxPalette *) 0 ;
4101 int arg2 ;
4102 byte *arg3 = (byte *) 0 ;
4103 byte *arg4 = (byte *) 0 ;
4104 byte *arg5 = (byte *) 0 ;
4105 bool result;
4106 void *argp1 = 0 ;
4107 int res1 = 0 ;
4108 int val2 ;
4109 int ecode2 = 0 ;
4110 byte temp3 ;
4111 int res3 = SWIG_TMPOBJ ;
4112 byte temp4 ;
4113 int res4 = SWIG_TMPOBJ ;
4114 byte temp5 ;
4115 int res5 = SWIG_TMPOBJ ;
4116 PyObject * obj0 = 0 ;
4117 PyObject * obj1 = 0 ;
4118 char * kwnames[] = {
4119 (char *) "self",(char *) "pixel", NULL
4120 };
4121
4122 arg3 = &temp3;
4123 arg4 = &temp4;
4124 arg5 = &temp5;
4125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4127 if (!SWIG_IsOK(res1)) {
4128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4129 }
4130 arg1 = reinterpret_cast< wxPalette * >(argp1);
4131 ecode2 = SWIG_AsVal_int(obj1, &val2);
4132 if (!SWIG_IsOK(ecode2)) {
4133 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4134 }
4135 arg2 = static_cast< int >(val2);
4136 {
4137 PyThreadState* __tstate = wxPyBeginAllowThreads();
4138 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4139 wxPyEndAllowThreads(__tstate);
4140 if (PyErr_Occurred()) SWIG_fail;
4141 }
4142 {
4143 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4144 }
4145 if (SWIG_IsTmpObj(res3)) {
4146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4147 } else {
4148 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4150 }
4151 if (SWIG_IsTmpObj(res4)) {
4152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4153 } else {
4154 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4155 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4156 }
4157 if (SWIG_IsTmpObj(res5)) {
4158 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4159 } else {
4160 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4161 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4162 }
4163 return resultobj;
4164 fail:
4165 return NULL;
4166 }
4167
4168
4169 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4170 PyObject *resultobj = 0;
4171 wxPalette *arg1 = (wxPalette *) 0 ;
4172 int result;
4173 void *argp1 = 0 ;
4174 int res1 = 0 ;
4175 PyObject *swig_obj[1] ;
4176
4177 if (!args) SWIG_fail;
4178 swig_obj[0] = args;
4179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4180 if (!SWIG_IsOK(res1)) {
4181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4182 }
4183 arg1 = reinterpret_cast< wxPalette * >(argp1);
4184 {
4185 PyThreadState* __tstate = wxPyBeginAllowThreads();
4186 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4187 wxPyEndAllowThreads(__tstate);
4188 if (PyErr_Occurred()) SWIG_fail;
4189 }
4190 resultobj = SWIG_From_int(static_cast< int >(result));
4191 return resultobj;
4192 fail:
4193 return NULL;
4194 }
4195
4196
4197 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198 PyObject *resultobj = 0;
4199 wxPalette *arg1 = (wxPalette *) 0 ;
4200 bool result;
4201 void *argp1 = 0 ;
4202 int res1 = 0 ;
4203 PyObject *swig_obj[1] ;
4204
4205 if (!args) SWIG_fail;
4206 swig_obj[0] = args;
4207 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4208 if (!SWIG_IsOK(res1)) {
4209 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4210 }
4211 arg1 = reinterpret_cast< wxPalette * >(argp1);
4212 {
4213 PyThreadState* __tstate = wxPyBeginAllowThreads();
4214 result = (bool)(arg1)->Ok();
4215 wxPyEndAllowThreads(__tstate);
4216 if (PyErr_Occurred()) SWIG_fail;
4217 }
4218 {
4219 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4220 }
4221 return resultobj;
4222 fail:
4223 return NULL;
4224 }
4225
4226
4227 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4228 PyObject *obj;
4229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4230 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4231 return SWIG_Py_Void();
4232 }
4233
4234 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4235 return SWIG_Python_InitShadowInstance(args);
4236 }
4237
4238 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4239 PyObject *resultobj = 0;
4240 wxColour *arg1 = 0 ;
4241 int arg2 = (int) 1 ;
4242 int arg3 = (int) wxSOLID ;
4243 wxPen *result = 0 ;
4244 wxColour temp1 ;
4245 int val2 ;
4246 int ecode2 = 0 ;
4247 int val3 ;
4248 int ecode3 = 0 ;
4249 PyObject * obj0 = 0 ;
4250 PyObject * obj1 = 0 ;
4251 PyObject * obj2 = 0 ;
4252 char * kwnames[] = {
4253 (char *) "colour",(char *) "width",(char *) "style", NULL
4254 };
4255
4256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4257 {
4258 arg1 = &temp1;
4259 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4260 }
4261 if (obj1) {
4262 ecode2 = SWIG_AsVal_int(obj1, &val2);
4263 if (!SWIG_IsOK(ecode2)) {
4264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4265 }
4266 arg2 = static_cast< int >(val2);
4267 }
4268 if (obj2) {
4269 ecode3 = SWIG_AsVal_int(obj2, &val3);
4270 if (!SWIG_IsOK(ecode3)) {
4271 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4272 }
4273 arg3 = static_cast< int >(val3);
4274 }
4275 {
4276 if (!wxPyCheckForApp()) SWIG_fail;
4277 PyThreadState* __tstate = wxPyBeginAllowThreads();
4278 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4279 wxPyEndAllowThreads(__tstate);
4280 if (PyErr_Occurred()) SWIG_fail;
4281 }
4282 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4283 return resultobj;
4284 fail:
4285 return NULL;
4286 }
4287
4288
4289 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4290 PyObject *resultobj = 0;
4291 wxPen *arg1 = (wxPen *) 0 ;
4292 void *argp1 = 0 ;
4293 int res1 = 0 ;
4294 PyObject *swig_obj[1] ;
4295
4296 if (!args) SWIG_fail;
4297 swig_obj[0] = args;
4298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4299 if (!SWIG_IsOK(res1)) {
4300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4301 }
4302 arg1 = reinterpret_cast< wxPen * >(argp1);
4303 {
4304 PyThreadState* __tstate = wxPyBeginAllowThreads();
4305 delete arg1;
4306
4307 wxPyEndAllowThreads(__tstate);
4308 if (PyErr_Occurred()) SWIG_fail;
4309 }
4310 resultobj = SWIG_Py_Void();
4311 return resultobj;
4312 fail:
4313 return NULL;
4314 }
4315
4316
4317 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4318 PyObject *resultobj = 0;
4319 wxPen *arg1 = (wxPen *) 0 ;
4320 int result;
4321 void *argp1 = 0 ;
4322 int res1 = 0 ;
4323 PyObject *swig_obj[1] ;
4324
4325 if (!args) SWIG_fail;
4326 swig_obj[0] = args;
4327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4328 if (!SWIG_IsOK(res1)) {
4329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4330 }
4331 arg1 = reinterpret_cast< wxPen * >(argp1);
4332 {
4333 PyThreadState* __tstate = wxPyBeginAllowThreads();
4334 result = (int)(arg1)->GetCap();
4335 wxPyEndAllowThreads(__tstate);
4336 if (PyErr_Occurred()) SWIG_fail;
4337 }
4338 resultobj = SWIG_From_int(static_cast< int >(result));
4339 return resultobj;
4340 fail:
4341 return NULL;
4342 }
4343
4344
4345 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4346 PyObject *resultobj = 0;
4347 wxPen *arg1 = (wxPen *) 0 ;
4348 wxColour result;
4349 void *argp1 = 0 ;
4350 int res1 = 0 ;
4351 PyObject *swig_obj[1] ;
4352
4353 if (!args) SWIG_fail;
4354 swig_obj[0] = args;
4355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4356 if (!SWIG_IsOK(res1)) {
4357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4358 }
4359 arg1 = reinterpret_cast< wxPen * >(argp1);
4360 {
4361 PyThreadState* __tstate = wxPyBeginAllowThreads();
4362 result = (arg1)->GetColour();
4363 wxPyEndAllowThreads(__tstate);
4364 if (PyErr_Occurred()) SWIG_fail;
4365 }
4366 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4367 return resultobj;
4368 fail:
4369 return NULL;
4370 }
4371
4372
4373 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4374 PyObject *resultobj = 0;
4375 wxPen *arg1 = (wxPen *) 0 ;
4376 int result;
4377 void *argp1 = 0 ;
4378 int res1 = 0 ;
4379 PyObject *swig_obj[1] ;
4380
4381 if (!args) SWIG_fail;
4382 swig_obj[0] = args;
4383 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4384 if (!SWIG_IsOK(res1)) {
4385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4386 }
4387 arg1 = reinterpret_cast< wxPen * >(argp1);
4388 {
4389 PyThreadState* __tstate = wxPyBeginAllowThreads();
4390 result = (int)(arg1)->GetJoin();
4391 wxPyEndAllowThreads(__tstate);
4392 if (PyErr_Occurred()) SWIG_fail;
4393 }
4394 resultobj = SWIG_From_int(static_cast< int >(result));
4395 return resultobj;
4396 fail:
4397 return NULL;
4398 }
4399
4400
4401 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4402 PyObject *resultobj = 0;
4403 wxPen *arg1 = (wxPen *) 0 ;
4404 int result;
4405 void *argp1 = 0 ;
4406 int res1 = 0 ;
4407 PyObject *swig_obj[1] ;
4408
4409 if (!args) SWIG_fail;
4410 swig_obj[0] = args;
4411 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4412 if (!SWIG_IsOK(res1)) {
4413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4414 }
4415 arg1 = reinterpret_cast< wxPen * >(argp1);
4416 {
4417 PyThreadState* __tstate = wxPyBeginAllowThreads();
4418 result = (int)(arg1)->GetStyle();
4419 wxPyEndAllowThreads(__tstate);
4420 if (PyErr_Occurred()) SWIG_fail;
4421 }
4422 resultobj = SWIG_From_int(static_cast< int >(result));
4423 return resultobj;
4424 fail:
4425 return NULL;
4426 }
4427
4428
4429 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4430 PyObject *resultobj = 0;
4431 wxPen *arg1 = (wxPen *) 0 ;
4432 int result;
4433 void *argp1 = 0 ;
4434 int res1 = 0 ;
4435 PyObject *swig_obj[1] ;
4436
4437 if (!args) SWIG_fail;
4438 swig_obj[0] = args;
4439 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4440 if (!SWIG_IsOK(res1)) {
4441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4442 }
4443 arg1 = reinterpret_cast< wxPen * >(argp1);
4444 {
4445 PyThreadState* __tstate = wxPyBeginAllowThreads();
4446 result = (int)(arg1)->GetWidth();
4447 wxPyEndAllowThreads(__tstate);
4448 if (PyErr_Occurred()) SWIG_fail;
4449 }
4450 resultobj = SWIG_From_int(static_cast< int >(result));
4451 return resultobj;
4452 fail:
4453 return NULL;
4454 }
4455
4456
4457 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4458 PyObject *resultobj = 0;
4459 wxPen *arg1 = (wxPen *) 0 ;
4460 bool result;
4461 void *argp1 = 0 ;
4462 int res1 = 0 ;
4463 PyObject *swig_obj[1] ;
4464
4465 if (!args) SWIG_fail;
4466 swig_obj[0] = args;
4467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4468 if (!SWIG_IsOK(res1)) {
4469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4470 }
4471 arg1 = reinterpret_cast< wxPen * >(argp1);
4472 {
4473 PyThreadState* __tstate = wxPyBeginAllowThreads();
4474 result = (bool)(arg1)->Ok();
4475 wxPyEndAllowThreads(__tstate);
4476 if (PyErr_Occurred()) SWIG_fail;
4477 }
4478 {
4479 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4480 }
4481 return resultobj;
4482 fail:
4483 return NULL;
4484 }
4485
4486
4487 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4488 PyObject *resultobj = 0;
4489 wxPen *arg1 = (wxPen *) 0 ;
4490 int arg2 ;
4491 void *argp1 = 0 ;
4492 int res1 = 0 ;
4493 int val2 ;
4494 int ecode2 = 0 ;
4495 PyObject * obj0 = 0 ;
4496 PyObject * obj1 = 0 ;
4497 char * kwnames[] = {
4498 (char *) "self",(char *) "cap_style", NULL
4499 };
4500
4501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4503 if (!SWIG_IsOK(res1)) {
4504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4505 }
4506 arg1 = reinterpret_cast< wxPen * >(argp1);
4507 ecode2 = SWIG_AsVal_int(obj1, &val2);
4508 if (!SWIG_IsOK(ecode2)) {
4509 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4510 }
4511 arg2 = static_cast< int >(val2);
4512 {
4513 PyThreadState* __tstate = wxPyBeginAllowThreads();
4514 (arg1)->SetCap(arg2);
4515 wxPyEndAllowThreads(__tstate);
4516 if (PyErr_Occurred()) SWIG_fail;
4517 }
4518 resultobj = SWIG_Py_Void();
4519 return resultobj;
4520 fail:
4521 return NULL;
4522 }
4523
4524
4525 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4526 PyObject *resultobj = 0;
4527 wxPen *arg1 = (wxPen *) 0 ;
4528 wxColour *arg2 = 0 ;
4529 void *argp1 = 0 ;
4530 int res1 = 0 ;
4531 wxColour temp2 ;
4532 PyObject * obj0 = 0 ;
4533 PyObject * obj1 = 0 ;
4534 char * kwnames[] = {
4535 (char *) "self",(char *) "colour", NULL
4536 };
4537
4538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4540 if (!SWIG_IsOK(res1)) {
4541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4542 }
4543 arg1 = reinterpret_cast< wxPen * >(argp1);
4544 {
4545 arg2 = &temp2;
4546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4547 }
4548 {
4549 PyThreadState* __tstate = wxPyBeginAllowThreads();
4550 (arg1)->SetColour(*arg2);
4551 wxPyEndAllowThreads(__tstate);
4552 if (PyErr_Occurred()) SWIG_fail;
4553 }
4554 resultobj = SWIG_Py_Void();
4555 return resultobj;
4556 fail:
4557 return NULL;
4558 }
4559
4560
4561 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4562 PyObject *resultobj = 0;
4563 wxPen *arg1 = (wxPen *) 0 ;
4564 int arg2 ;
4565 void *argp1 = 0 ;
4566 int res1 = 0 ;
4567 int val2 ;
4568 int ecode2 = 0 ;
4569 PyObject * obj0 = 0 ;
4570 PyObject * obj1 = 0 ;
4571 char * kwnames[] = {
4572 (char *) "self",(char *) "join_style", NULL
4573 };
4574
4575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4577 if (!SWIG_IsOK(res1)) {
4578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4579 }
4580 arg1 = reinterpret_cast< wxPen * >(argp1);
4581 ecode2 = SWIG_AsVal_int(obj1, &val2);
4582 if (!SWIG_IsOK(ecode2)) {
4583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4584 }
4585 arg2 = static_cast< int >(val2);
4586 {
4587 PyThreadState* __tstate = wxPyBeginAllowThreads();
4588 (arg1)->SetJoin(arg2);
4589 wxPyEndAllowThreads(__tstate);
4590 if (PyErr_Occurred()) SWIG_fail;
4591 }
4592 resultobj = SWIG_Py_Void();
4593 return resultobj;
4594 fail:
4595 return NULL;
4596 }
4597
4598
4599 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4600 PyObject *resultobj = 0;
4601 wxPen *arg1 = (wxPen *) 0 ;
4602 int arg2 ;
4603 void *argp1 = 0 ;
4604 int res1 = 0 ;
4605 int val2 ;
4606 int ecode2 = 0 ;
4607 PyObject * obj0 = 0 ;
4608 PyObject * obj1 = 0 ;
4609 char * kwnames[] = {
4610 (char *) "self",(char *) "style", NULL
4611 };
4612
4613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4615 if (!SWIG_IsOK(res1)) {
4616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4617 }
4618 arg1 = reinterpret_cast< wxPen * >(argp1);
4619 ecode2 = SWIG_AsVal_int(obj1, &val2);
4620 if (!SWIG_IsOK(ecode2)) {
4621 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4622 }
4623 arg2 = static_cast< int >(val2);
4624 {
4625 PyThreadState* __tstate = wxPyBeginAllowThreads();
4626 (arg1)->SetStyle(arg2);
4627 wxPyEndAllowThreads(__tstate);
4628 if (PyErr_Occurred()) SWIG_fail;
4629 }
4630 resultobj = SWIG_Py_Void();
4631 return resultobj;
4632 fail:
4633 return NULL;
4634 }
4635
4636
4637 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4638 PyObject *resultobj = 0;
4639 wxPen *arg1 = (wxPen *) 0 ;
4640 int arg2 ;
4641 void *argp1 = 0 ;
4642 int res1 = 0 ;
4643 int val2 ;
4644 int ecode2 = 0 ;
4645 PyObject * obj0 = 0 ;
4646 PyObject * obj1 = 0 ;
4647 char * kwnames[] = {
4648 (char *) "self",(char *) "width", NULL
4649 };
4650
4651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4653 if (!SWIG_IsOK(res1)) {
4654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4655 }
4656 arg1 = reinterpret_cast< wxPen * >(argp1);
4657 ecode2 = SWIG_AsVal_int(obj1, &val2);
4658 if (!SWIG_IsOK(ecode2)) {
4659 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4660 }
4661 arg2 = static_cast< int >(val2);
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 (arg1)->SetWidth(arg2);
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 resultobj = SWIG_Py_Void();
4669 return resultobj;
4670 fail:
4671 return NULL;
4672 }
4673
4674
4675 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4676 PyObject *resultobj = 0;
4677 wxPen *arg1 = (wxPen *) 0 ;
4678 int arg2 ;
4679 wxDash *arg3 = (wxDash *) 0 ;
4680 void *argp1 = 0 ;
4681 int res1 = 0 ;
4682 PyObject * obj0 = 0 ;
4683 PyObject * obj1 = 0 ;
4684 char * kwnames[] = {
4685 (char *) "self",(char *) "dashes", NULL
4686 };
4687
4688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4690 if (!SWIG_IsOK(res1)) {
4691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4692 }
4693 arg1 = reinterpret_cast< wxPen * >(argp1);
4694 {
4695 arg2 = PyList_Size(obj1);
4696 arg3 = (wxDash*)byte_LIST_helper(obj1);
4697 if (arg3 == NULL) SWIG_fail;
4698 }
4699 {
4700 PyThreadState* __tstate = wxPyBeginAllowThreads();
4701 (arg1)->SetDashes(arg2,arg3);
4702 wxPyEndAllowThreads(__tstate);
4703 if (PyErr_Occurred()) SWIG_fail;
4704 }
4705 resultobj = SWIG_Py_Void();
4706 {
4707 if (arg3) delete [] arg3;
4708 }
4709 return resultobj;
4710 fail:
4711 {
4712 if (arg3) delete [] arg3;
4713 }
4714 return NULL;
4715 }
4716
4717
4718 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4719 PyObject *resultobj = 0;
4720 wxPen *arg1 = (wxPen *) 0 ;
4721 PyObject *result = 0 ;
4722 void *argp1 = 0 ;
4723 int res1 = 0 ;
4724 PyObject *swig_obj[1] ;
4725
4726 if (!args) SWIG_fail;
4727 swig_obj[0] = args;
4728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4729 if (!SWIG_IsOK(res1)) {
4730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4731 }
4732 arg1 = reinterpret_cast< wxPen * >(argp1);
4733 {
4734 PyThreadState* __tstate = wxPyBeginAllowThreads();
4735 result = (PyObject *)wxPen_GetDashes(arg1);
4736 wxPyEndAllowThreads(__tstate);
4737 if (PyErr_Occurred()) SWIG_fail;
4738 }
4739 resultobj = result;
4740 return resultobj;
4741 fail:
4742 return NULL;
4743 }
4744
4745
4746 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4747 PyObject *resultobj = 0;
4748 wxPen *arg1 = (wxPen *) 0 ;
4749 PyObject *arg2 = (PyObject *) 0 ;
4750 PyObject *arg3 = (PyObject *) 0 ;
4751 void *argp1 = 0 ;
4752 int res1 = 0 ;
4753 PyObject * obj0 = 0 ;
4754 PyObject * obj1 = 0 ;
4755 PyObject * obj2 = 0 ;
4756 char * kwnames[] = {
4757 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4758 };
4759
4760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4762 if (!SWIG_IsOK(res1)) {
4763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4764 }
4765 arg1 = reinterpret_cast< wxPen * >(argp1);
4766 arg2 = obj1;
4767 arg3 = obj2;
4768 {
4769 PyThreadState* __tstate = wxPyBeginAllowThreads();
4770 wxPen__SetDashes(arg1,arg2,arg3);
4771 wxPyEndAllowThreads(__tstate);
4772 if (PyErr_Occurred()) SWIG_fail;
4773 }
4774 resultobj = SWIG_Py_Void();
4775 return resultobj;
4776 fail:
4777 return NULL;
4778 }
4779
4780
4781 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4782 PyObject *resultobj = 0;
4783 wxPen *arg1 = (wxPen *) 0 ;
4784 int result;
4785 void *argp1 = 0 ;
4786 int res1 = 0 ;
4787 PyObject *swig_obj[1] ;
4788
4789 if (!args) SWIG_fail;
4790 swig_obj[0] = args;
4791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4792 if (!SWIG_IsOK(res1)) {
4793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4794 }
4795 arg1 = reinterpret_cast< wxPen * >(argp1);
4796 {
4797 PyThreadState* __tstate = wxPyBeginAllowThreads();
4798 result = (int)((wxPen const *)arg1)->GetDashCount();
4799 wxPyEndAllowThreads(__tstate);
4800 if (PyErr_Occurred()) SWIG_fail;
4801 }
4802 resultobj = SWIG_From_int(static_cast< int >(result));
4803 return resultobj;
4804 fail:
4805 return NULL;
4806 }
4807
4808
4809 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4810 PyObject *resultobj = 0;
4811 wxPen *arg1 = (wxPen *) 0 ;
4812 wxBitmap *result = 0 ;
4813 void *argp1 = 0 ;
4814 int res1 = 0 ;
4815 PyObject *swig_obj[1] ;
4816
4817 if (!args) SWIG_fail;
4818 swig_obj[0] = args;
4819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4820 if (!SWIG_IsOK(res1)) {
4821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4822 }
4823 arg1 = reinterpret_cast< wxPen * >(argp1);
4824 {
4825 PyThreadState* __tstate = wxPyBeginAllowThreads();
4826 result = (wxBitmap *)(arg1)->GetStipple();
4827 wxPyEndAllowThreads(__tstate);
4828 if (PyErr_Occurred()) SWIG_fail;
4829 }
4830 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4831 return resultobj;
4832 fail:
4833 return NULL;
4834 }
4835
4836
4837 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4838 PyObject *resultobj = 0;
4839 wxPen *arg1 = (wxPen *) 0 ;
4840 wxBitmap *arg2 = 0 ;
4841 void *argp1 = 0 ;
4842 int res1 = 0 ;
4843 void *argp2 = 0 ;
4844 int res2 = 0 ;
4845 PyObject * obj0 = 0 ;
4846 PyObject * obj1 = 0 ;
4847 char * kwnames[] = {
4848 (char *) "self",(char *) "stipple", NULL
4849 };
4850
4851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4853 if (!SWIG_IsOK(res1)) {
4854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4855 }
4856 arg1 = reinterpret_cast< wxPen * >(argp1);
4857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4858 if (!SWIG_IsOK(res2)) {
4859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4860 }
4861 if (!argp2) {
4862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4863 }
4864 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4865 {
4866 PyThreadState* __tstate = wxPyBeginAllowThreads();
4867 (arg1)->SetStipple(*arg2);
4868 wxPyEndAllowThreads(__tstate);
4869 if (PyErr_Occurred()) SWIG_fail;
4870 }
4871 resultobj = SWIG_Py_Void();
4872 return resultobj;
4873 fail:
4874 return NULL;
4875 }
4876
4877
4878 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4879 PyObject *resultobj = 0;
4880 wxPen *arg1 = (wxPen *) 0 ;
4881 wxPen *arg2 = (wxPen *) 0 ;
4882 bool result;
4883 void *argp1 = 0 ;
4884 int res1 = 0 ;
4885 void *argp2 = 0 ;
4886 int res2 = 0 ;
4887 PyObject * obj0 = 0 ;
4888 PyObject * obj1 = 0 ;
4889 char * kwnames[] = {
4890 (char *) "self",(char *) "other", NULL
4891 };
4892
4893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4895 if (!SWIG_IsOK(res1)) {
4896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4897 }
4898 arg1 = reinterpret_cast< wxPen * >(argp1);
4899 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4900 if (!SWIG_IsOK(res2)) {
4901 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4902 }
4903 arg2 = reinterpret_cast< wxPen * >(argp2);
4904 {
4905 PyThreadState* __tstate = wxPyBeginAllowThreads();
4906 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4907 wxPyEndAllowThreads(__tstate);
4908 if (PyErr_Occurred()) SWIG_fail;
4909 }
4910 {
4911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4912 }
4913 return resultobj;
4914 fail:
4915 return NULL;
4916 }
4917
4918
4919 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4920 PyObject *resultobj = 0;
4921 wxPen *arg1 = (wxPen *) 0 ;
4922 wxPen *arg2 = (wxPen *) 0 ;
4923 bool result;
4924 void *argp1 = 0 ;
4925 int res1 = 0 ;
4926 void *argp2 = 0 ;
4927 int res2 = 0 ;
4928 PyObject * obj0 = 0 ;
4929 PyObject * obj1 = 0 ;
4930 char * kwnames[] = {
4931 (char *) "self",(char *) "other", NULL
4932 };
4933
4934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4936 if (!SWIG_IsOK(res1)) {
4937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4938 }
4939 arg1 = reinterpret_cast< wxPen * >(argp1);
4940 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4941 if (!SWIG_IsOK(res2)) {
4942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4943 }
4944 arg2 = reinterpret_cast< wxPen * >(argp2);
4945 {
4946 PyThreadState* __tstate = wxPyBeginAllowThreads();
4947 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4948 wxPyEndAllowThreads(__tstate);
4949 if (PyErr_Occurred()) SWIG_fail;
4950 }
4951 {
4952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4953 }
4954 return resultobj;
4955 fail:
4956 return NULL;
4957 }
4958
4959
4960 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4961 PyObject *obj;
4962 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4963 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4964 return SWIG_Py_Void();
4965 }
4966
4967 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4968 return SWIG_Python_InitShadowInstance(args);
4969 }
4970
4971 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4972 PyObject *resultobj = 0;
4973 wxColour *arg1 = 0 ;
4974 int arg2 = (int) wxSOLID ;
4975 wxBrush *result = 0 ;
4976 wxColour temp1 ;
4977 int val2 ;
4978 int ecode2 = 0 ;
4979 PyObject * obj0 = 0 ;
4980 PyObject * obj1 = 0 ;
4981 char * kwnames[] = {
4982 (char *) "colour",(char *) "style", NULL
4983 };
4984
4985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4986 {
4987 arg1 = &temp1;
4988 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4989 }
4990 if (obj1) {
4991 ecode2 = SWIG_AsVal_int(obj1, &val2);
4992 if (!SWIG_IsOK(ecode2)) {
4993 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4994 }
4995 arg2 = static_cast< int >(val2);
4996 }
4997 {
4998 if (!wxPyCheckForApp()) SWIG_fail;
4999 PyThreadState* __tstate = wxPyBeginAllowThreads();
5000 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5001 wxPyEndAllowThreads(__tstate);
5002 if (PyErr_Occurred()) SWIG_fail;
5003 }
5004 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5005 return resultobj;
5006 fail:
5007 return NULL;
5008 }
5009
5010
5011 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5012 PyObject *resultobj = 0;
5013 wxBitmap *arg1 = 0 ;
5014 wxBrush *result = 0 ;
5015 void *argp1 = 0 ;
5016 int res1 = 0 ;
5017 PyObject * obj0 = 0 ;
5018 char * kwnames[] = {
5019 (char *) "stippleBitmap", NULL
5020 };
5021
5022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5023 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5024 if (!SWIG_IsOK(res1)) {
5025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5026 }
5027 if (!argp1) {
5028 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5029 }
5030 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5031 {
5032 if (!wxPyCheckForApp()) SWIG_fail;
5033 PyThreadState* __tstate = wxPyBeginAllowThreads();
5034 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5035 wxPyEndAllowThreads(__tstate);
5036 if (PyErr_Occurred()) SWIG_fail;
5037 }
5038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5039 return resultobj;
5040 fail:
5041 return NULL;
5042 }
5043
5044
5045 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5046 PyObject *resultobj = 0;
5047 wxBrush *arg1 = (wxBrush *) 0 ;
5048 void *argp1 = 0 ;
5049 int res1 = 0 ;
5050 PyObject *swig_obj[1] ;
5051
5052 if (!args) SWIG_fail;
5053 swig_obj[0] = args;
5054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5055 if (!SWIG_IsOK(res1)) {
5056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5057 }
5058 arg1 = reinterpret_cast< wxBrush * >(argp1);
5059 {
5060 PyThreadState* __tstate = wxPyBeginAllowThreads();
5061 delete arg1;
5062
5063 wxPyEndAllowThreads(__tstate);
5064 if (PyErr_Occurred()) SWIG_fail;
5065 }
5066 resultobj = SWIG_Py_Void();
5067 return resultobj;
5068 fail:
5069 return NULL;
5070 }
5071
5072
5073 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5074 PyObject *resultobj = 0;
5075 wxBrush *arg1 = (wxBrush *) 0 ;
5076 wxColour *arg2 = 0 ;
5077 void *argp1 = 0 ;
5078 int res1 = 0 ;
5079 wxColour temp2 ;
5080 PyObject * obj0 = 0 ;
5081 PyObject * obj1 = 0 ;
5082 char * kwnames[] = {
5083 (char *) "self",(char *) "col", NULL
5084 };
5085
5086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5087 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5088 if (!SWIG_IsOK(res1)) {
5089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5090 }
5091 arg1 = reinterpret_cast< wxBrush * >(argp1);
5092 {
5093 arg2 = &temp2;
5094 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5095 }
5096 {
5097 PyThreadState* __tstate = wxPyBeginAllowThreads();
5098 (arg1)->SetColour((wxColour const &)*arg2);
5099 wxPyEndAllowThreads(__tstate);
5100 if (PyErr_Occurred()) SWIG_fail;
5101 }
5102 resultobj = SWIG_Py_Void();
5103 return resultobj;
5104 fail:
5105 return NULL;
5106 }
5107
5108
5109 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5110 PyObject *resultobj = 0;
5111 wxBrush *arg1 = (wxBrush *) 0 ;
5112 int arg2 ;
5113 void *argp1 = 0 ;
5114 int res1 = 0 ;
5115 int val2 ;
5116 int ecode2 = 0 ;
5117 PyObject * obj0 = 0 ;
5118 PyObject * obj1 = 0 ;
5119 char * kwnames[] = {
5120 (char *) "self",(char *) "style", NULL
5121 };
5122
5123 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5124 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5125 if (!SWIG_IsOK(res1)) {
5126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5127 }
5128 arg1 = reinterpret_cast< wxBrush * >(argp1);
5129 ecode2 = SWIG_AsVal_int(obj1, &val2);
5130 if (!SWIG_IsOK(ecode2)) {
5131 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5132 }
5133 arg2 = static_cast< int >(val2);
5134 {
5135 PyThreadState* __tstate = wxPyBeginAllowThreads();
5136 (arg1)->SetStyle(arg2);
5137 wxPyEndAllowThreads(__tstate);
5138 if (PyErr_Occurred()) SWIG_fail;
5139 }
5140 resultobj = SWIG_Py_Void();
5141 return resultobj;
5142 fail:
5143 return NULL;
5144 }
5145
5146
5147 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5148 PyObject *resultobj = 0;
5149 wxBrush *arg1 = (wxBrush *) 0 ;
5150 wxBitmap *arg2 = 0 ;
5151 void *argp1 = 0 ;
5152 int res1 = 0 ;
5153 void *argp2 = 0 ;
5154 int res2 = 0 ;
5155 PyObject * obj0 = 0 ;
5156 PyObject * obj1 = 0 ;
5157 char * kwnames[] = {
5158 (char *) "self",(char *) "stipple", NULL
5159 };
5160
5161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5163 if (!SWIG_IsOK(res1)) {
5164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5165 }
5166 arg1 = reinterpret_cast< wxBrush * >(argp1);
5167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5168 if (!SWIG_IsOK(res2)) {
5169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5170 }
5171 if (!argp2) {
5172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5173 }
5174 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5175 {
5176 PyThreadState* __tstate = wxPyBeginAllowThreads();
5177 (arg1)->SetStipple((wxBitmap const &)*arg2);
5178 wxPyEndAllowThreads(__tstate);
5179 if (PyErr_Occurred()) SWIG_fail;
5180 }
5181 resultobj = SWIG_Py_Void();
5182 return resultobj;
5183 fail:
5184 return NULL;
5185 }
5186
5187
5188 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5189 PyObject *resultobj = 0;
5190 wxBrush *arg1 = (wxBrush *) 0 ;
5191 wxColour result;
5192 void *argp1 = 0 ;
5193 int res1 = 0 ;
5194 PyObject *swig_obj[1] ;
5195
5196 if (!args) SWIG_fail;
5197 swig_obj[0] = args;
5198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5199 if (!SWIG_IsOK(res1)) {
5200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5201 }
5202 arg1 = reinterpret_cast< wxBrush * >(argp1);
5203 {
5204 PyThreadState* __tstate = wxPyBeginAllowThreads();
5205 result = ((wxBrush const *)arg1)->GetColour();
5206 wxPyEndAllowThreads(__tstate);
5207 if (PyErr_Occurred()) SWIG_fail;
5208 }
5209 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5210 return resultobj;
5211 fail:
5212 return NULL;
5213 }
5214
5215
5216 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5217 PyObject *resultobj = 0;
5218 wxBrush *arg1 = (wxBrush *) 0 ;
5219 int result;
5220 void *argp1 = 0 ;
5221 int res1 = 0 ;
5222 PyObject *swig_obj[1] ;
5223
5224 if (!args) SWIG_fail;
5225 swig_obj[0] = args;
5226 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5227 if (!SWIG_IsOK(res1)) {
5228 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5229 }
5230 arg1 = reinterpret_cast< wxBrush * >(argp1);
5231 {
5232 PyThreadState* __tstate = wxPyBeginAllowThreads();
5233 result = (int)((wxBrush const *)arg1)->GetStyle();
5234 wxPyEndAllowThreads(__tstate);
5235 if (PyErr_Occurred()) SWIG_fail;
5236 }
5237 resultobj = SWIG_From_int(static_cast< int >(result));
5238 return resultobj;
5239 fail:
5240 return NULL;
5241 }
5242
5243
5244 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5245 PyObject *resultobj = 0;
5246 wxBrush *arg1 = (wxBrush *) 0 ;
5247 wxBitmap *result = 0 ;
5248 void *argp1 = 0 ;
5249 int res1 = 0 ;
5250 PyObject *swig_obj[1] ;
5251
5252 if (!args) SWIG_fail;
5253 swig_obj[0] = args;
5254 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5255 if (!SWIG_IsOK(res1)) {
5256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5257 }
5258 arg1 = reinterpret_cast< wxBrush * >(argp1);
5259 {
5260 PyThreadState* __tstate = wxPyBeginAllowThreads();
5261 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5262 wxPyEndAllowThreads(__tstate);
5263 if (PyErr_Occurred()) SWIG_fail;
5264 }
5265 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5266 return resultobj;
5267 fail:
5268 return NULL;
5269 }
5270
5271
5272 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5273 PyObject *resultobj = 0;
5274 wxBrush *arg1 = (wxBrush *) 0 ;
5275 bool result;
5276 void *argp1 = 0 ;
5277 int res1 = 0 ;
5278 PyObject *swig_obj[1] ;
5279
5280 if (!args) SWIG_fail;
5281 swig_obj[0] = args;
5282 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5283 if (!SWIG_IsOK(res1)) {
5284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5285 }
5286 arg1 = reinterpret_cast< wxBrush * >(argp1);
5287 {
5288 PyThreadState* __tstate = wxPyBeginAllowThreads();
5289 result = (bool)((wxBrush const *)arg1)->IsHatch();
5290 wxPyEndAllowThreads(__tstate);
5291 if (PyErr_Occurred()) SWIG_fail;
5292 }
5293 {
5294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5295 }
5296 return resultobj;
5297 fail:
5298 return NULL;
5299 }
5300
5301
5302 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5303 PyObject *resultobj = 0;
5304 wxBrush *arg1 = (wxBrush *) 0 ;
5305 bool result;
5306 void *argp1 = 0 ;
5307 int res1 = 0 ;
5308 PyObject *swig_obj[1] ;
5309
5310 if (!args) SWIG_fail;
5311 swig_obj[0] = args;
5312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5313 if (!SWIG_IsOK(res1)) {
5314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5315 }
5316 arg1 = reinterpret_cast< wxBrush * >(argp1);
5317 {
5318 PyThreadState* __tstate = wxPyBeginAllowThreads();
5319 result = (bool)(arg1)->Ok();
5320 wxPyEndAllowThreads(__tstate);
5321 if (PyErr_Occurred()) SWIG_fail;
5322 }
5323 {
5324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5325 }
5326 return resultobj;
5327 fail:
5328 return NULL;
5329 }
5330
5331
5332 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5333 PyObject *obj;
5334 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5335 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5336 return SWIG_Py_Void();
5337 }
5338
5339 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5340 return SWIG_Python_InitShadowInstance(args);
5341 }
5342
5343 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5344 PyObject *resultobj = 0;
5345 wxString *arg1 = 0 ;
5346 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5347 wxBitmap *result = 0 ;
5348 bool temp1 = false ;
5349 int val2 ;
5350 int ecode2 = 0 ;
5351 PyObject * obj0 = 0 ;
5352 PyObject * obj1 = 0 ;
5353 char * kwnames[] = {
5354 (char *) "name",(char *) "type", NULL
5355 };
5356
5357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5358 {
5359 arg1 = wxString_in_helper(obj0);
5360 if (arg1 == NULL) SWIG_fail;
5361 temp1 = true;
5362 }
5363 if (obj1) {
5364 ecode2 = SWIG_AsVal_int(obj1, &val2);
5365 if (!SWIG_IsOK(ecode2)) {
5366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5367 }
5368 arg2 = static_cast< wxBitmapType >(val2);
5369 }
5370 {
5371 if (!wxPyCheckForApp()) SWIG_fail;
5372 PyThreadState* __tstate = wxPyBeginAllowThreads();
5373 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5374 wxPyEndAllowThreads(__tstate);
5375 if (PyErr_Occurred()) SWIG_fail;
5376 }
5377 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5378 {
5379 if (temp1)
5380 delete arg1;
5381 }
5382 return resultobj;
5383 fail:
5384 {
5385 if (temp1)
5386 delete arg1;
5387 }
5388 return NULL;
5389 }
5390
5391
5392 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5393 PyObject *resultobj = 0;
5394 wxBitmap *arg1 = (wxBitmap *) 0 ;
5395 void *argp1 = 0 ;
5396 int res1 = 0 ;
5397 PyObject *swig_obj[1] ;
5398
5399 if (!args) SWIG_fail;
5400 swig_obj[0] = args;
5401 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5402 if (!SWIG_IsOK(res1)) {
5403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5404 }
5405 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5406 {
5407 PyThreadState* __tstate = wxPyBeginAllowThreads();
5408 delete arg1;
5409
5410 wxPyEndAllowThreads(__tstate);
5411 if (PyErr_Occurred()) SWIG_fail;
5412 }
5413 resultobj = SWIG_Py_Void();
5414 return resultobj;
5415 fail:
5416 return NULL;
5417 }
5418
5419
5420 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5421 PyObject *resultobj = 0;
5422 int arg1 ;
5423 int arg2 ;
5424 int arg3 = (int) -1 ;
5425 wxBitmap *result = 0 ;
5426 int val1 ;
5427 int ecode1 = 0 ;
5428 int val2 ;
5429 int ecode2 = 0 ;
5430 int val3 ;
5431 int ecode3 = 0 ;
5432 PyObject * obj0 = 0 ;
5433 PyObject * obj1 = 0 ;
5434 PyObject * obj2 = 0 ;
5435 char * kwnames[] = {
5436 (char *) "width",(char *) "height",(char *) "depth", NULL
5437 };
5438
5439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5440 ecode1 = SWIG_AsVal_int(obj0, &val1);
5441 if (!SWIG_IsOK(ecode1)) {
5442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5443 }
5444 arg1 = static_cast< int >(val1);
5445 ecode2 = SWIG_AsVal_int(obj1, &val2);
5446 if (!SWIG_IsOK(ecode2)) {
5447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5448 }
5449 arg2 = static_cast< int >(val2);
5450 if (obj2) {
5451 ecode3 = SWIG_AsVal_int(obj2, &val3);
5452 if (!SWIG_IsOK(ecode3)) {
5453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5454 }
5455 arg3 = static_cast< int >(val3);
5456 }
5457 {
5458 if (!wxPyCheckForApp()) SWIG_fail;
5459 PyThreadState* __tstate = wxPyBeginAllowThreads();
5460 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5461 wxPyEndAllowThreads(__tstate);
5462 if (PyErr_Occurred()) SWIG_fail;
5463 }
5464 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5465 return resultobj;
5466 fail:
5467 return NULL;
5468 }
5469
5470
5471 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5472 PyObject *resultobj = 0;
5473 wxIcon *arg1 = 0 ;
5474 wxBitmap *result = 0 ;
5475 void *argp1 = 0 ;
5476 int res1 = 0 ;
5477 PyObject * obj0 = 0 ;
5478 char * kwnames[] = {
5479 (char *) "icon", NULL
5480 };
5481
5482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5483 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5484 if (!SWIG_IsOK(res1)) {
5485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5486 }
5487 if (!argp1) {
5488 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5489 }
5490 arg1 = reinterpret_cast< wxIcon * >(argp1);
5491 {
5492 if (!wxPyCheckForApp()) SWIG_fail;
5493 PyThreadState* __tstate = wxPyBeginAllowThreads();
5494 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5495 wxPyEndAllowThreads(__tstate);
5496 if (PyErr_Occurred()) SWIG_fail;
5497 }
5498 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5499 return resultobj;
5500 fail:
5501 return NULL;
5502 }
5503
5504
5505 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5506 PyObject *resultobj = 0;
5507 wxImage *arg1 = 0 ;
5508 int arg2 = (int) -1 ;
5509 wxBitmap *result = 0 ;
5510 void *argp1 = 0 ;
5511 int res1 = 0 ;
5512 int val2 ;
5513 int ecode2 = 0 ;
5514 PyObject * obj0 = 0 ;
5515 PyObject * obj1 = 0 ;
5516 char * kwnames[] = {
5517 (char *) "image",(char *) "depth", NULL
5518 };
5519
5520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5521 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5522 if (!SWIG_IsOK(res1)) {
5523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5524 }
5525 if (!argp1) {
5526 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5527 }
5528 arg1 = reinterpret_cast< wxImage * >(argp1);
5529 if (obj1) {
5530 ecode2 = SWIG_AsVal_int(obj1, &val2);
5531 if (!SWIG_IsOK(ecode2)) {
5532 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5533 }
5534 arg2 = static_cast< int >(val2);
5535 }
5536 {
5537 if (!wxPyCheckForApp()) SWIG_fail;
5538 PyThreadState* __tstate = wxPyBeginAllowThreads();
5539 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5540 wxPyEndAllowThreads(__tstate);
5541 if (PyErr_Occurred()) SWIG_fail;
5542 }
5543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5544 return resultobj;
5545 fail:
5546 return NULL;
5547 }
5548
5549
5550 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5551 PyObject *resultobj = 0;
5552 PyObject *arg1 = (PyObject *) 0 ;
5553 wxBitmap *result = 0 ;
5554 PyObject * obj0 = 0 ;
5555 char * kwnames[] = {
5556 (char *) "listOfStrings", NULL
5557 };
5558
5559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5560 arg1 = obj0;
5561 {
5562 if (!wxPyCheckForApp()) SWIG_fail;
5563 PyThreadState* __tstate = wxPyBeginAllowThreads();
5564 result = (wxBitmap *)new_wxBitmap(arg1);
5565 wxPyEndAllowThreads(__tstate);
5566 if (PyErr_Occurred()) SWIG_fail;
5567 }
5568 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5569 return resultobj;
5570 fail:
5571 return NULL;
5572 }
5573
5574
5575 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5576 PyObject *resultobj = 0;
5577 PyObject *arg1 = (PyObject *) 0 ;
5578 int arg2 ;
5579 int arg3 ;
5580 int arg4 = (int) 1 ;
5581 wxBitmap *result = 0 ;
5582 int val2 ;
5583 int ecode2 = 0 ;
5584 int val3 ;
5585 int ecode3 = 0 ;
5586 int val4 ;
5587 int ecode4 = 0 ;
5588 PyObject * obj0 = 0 ;
5589 PyObject * obj1 = 0 ;
5590 PyObject * obj2 = 0 ;
5591 PyObject * obj3 = 0 ;
5592 char * kwnames[] = {
5593 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5594 };
5595
5596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5597 arg1 = obj0;
5598 ecode2 = SWIG_AsVal_int(obj1, &val2);
5599 if (!SWIG_IsOK(ecode2)) {
5600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5601 }
5602 arg2 = static_cast< int >(val2);
5603 ecode3 = SWIG_AsVal_int(obj2, &val3);
5604 if (!SWIG_IsOK(ecode3)) {
5605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5606 }
5607 arg3 = static_cast< int >(val3);
5608 if (obj3) {
5609 ecode4 = SWIG_AsVal_int(obj3, &val4);
5610 if (!SWIG_IsOK(ecode4)) {
5611 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5612 }
5613 arg4 = static_cast< int >(val4);
5614 }
5615 {
5616 if (!wxPyCheckForApp()) SWIG_fail;
5617 PyThreadState* __tstate = wxPyBeginAllowThreads();
5618 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5619 wxPyEndAllowThreads(__tstate);
5620 if (PyErr_Occurred()) SWIG_fail;
5621 }
5622 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5623 return resultobj;
5624 fail:
5625 return NULL;
5626 }
5627
5628
5629 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5630 PyObject *resultobj = 0;
5631 wxBitmap *arg1 = (wxBitmap *) 0 ;
5632 long result;
5633 void *argp1 = 0 ;
5634 int res1 = 0 ;
5635 PyObject *swig_obj[1] ;
5636
5637 if (!args) SWIG_fail;
5638 swig_obj[0] = args;
5639 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5640 if (!SWIG_IsOK(res1)) {
5641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5642 }
5643 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5644 {
5645 PyThreadState* __tstate = wxPyBeginAllowThreads();
5646 result = (long)(arg1)->GetHandle();
5647 wxPyEndAllowThreads(__tstate);
5648 if (PyErr_Occurred()) SWIG_fail;
5649 }
5650 resultobj = SWIG_From_long(static_cast< long >(result));
5651 return resultobj;
5652 fail:
5653 return NULL;
5654 }
5655
5656
5657 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5658 PyObject *resultobj = 0;
5659 wxBitmap *arg1 = (wxBitmap *) 0 ;
5660 long arg2 ;
5661 void *argp1 = 0 ;
5662 int res1 = 0 ;
5663 long val2 ;
5664 int ecode2 = 0 ;
5665 PyObject * obj0 = 0 ;
5666 PyObject * obj1 = 0 ;
5667 char * kwnames[] = {
5668 (char *) "self",(char *) "handle", NULL
5669 };
5670
5671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5673 if (!SWIG_IsOK(res1)) {
5674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5675 }
5676 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5677 ecode2 = SWIG_AsVal_long(obj1, &val2);
5678 if (!SWIG_IsOK(ecode2)) {
5679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5680 }
5681 arg2 = static_cast< long >(val2);
5682 {
5683 PyThreadState* __tstate = wxPyBeginAllowThreads();
5684 wxBitmap_SetHandle(arg1,arg2);
5685 wxPyEndAllowThreads(__tstate);
5686 if (PyErr_Occurred()) SWIG_fail;
5687 }
5688 resultobj = SWIG_Py_Void();
5689 return resultobj;
5690 fail:
5691 return NULL;
5692 }
5693
5694
5695 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5696 PyObject *resultobj = 0;
5697 wxBitmap *arg1 = (wxBitmap *) 0 ;
5698 bool result;
5699 void *argp1 = 0 ;
5700 int res1 = 0 ;
5701 PyObject *swig_obj[1] ;
5702
5703 if (!args) SWIG_fail;
5704 swig_obj[0] = args;
5705 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5706 if (!SWIG_IsOK(res1)) {
5707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5708 }
5709 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5710 {
5711 PyThreadState* __tstate = wxPyBeginAllowThreads();
5712 result = (bool)(arg1)->Ok();
5713 wxPyEndAllowThreads(__tstate);
5714 if (PyErr_Occurred()) SWIG_fail;
5715 }
5716 {
5717 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5718 }
5719 return resultobj;
5720 fail:
5721 return NULL;
5722 }
5723
5724
5725 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5726 PyObject *resultobj = 0;
5727 wxBitmap *arg1 = (wxBitmap *) 0 ;
5728 int result;
5729 void *argp1 = 0 ;
5730 int res1 = 0 ;
5731 PyObject *swig_obj[1] ;
5732
5733 if (!args) SWIG_fail;
5734 swig_obj[0] = args;
5735 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5738 }
5739 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5740 {
5741 PyThreadState* __tstate = wxPyBeginAllowThreads();
5742 result = (int)(arg1)->GetWidth();
5743 wxPyEndAllowThreads(__tstate);
5744 if (PyErr_Occurred()) SWIG_fail;
5745 }
5746 resultobj = SWIG_From_int(static_cast< int >(result));
5747 return resultobj;
5748 fail:
5749 return NULL;
5750 }
5751
5752
5753 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5754 PyObject *resultobj = 0;
5755 wxBitmap *arg1 = (wxBitmap *) 0 ;
5756 int result;
5757 void *argp1 = 0 ;
5758 int res1 = 0 ;
5759 PyObject *swig_obj[1] ;
5760
5761 if (!args) SWIG_fail;
5762 swig_obj[0] = args;
5763 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5764 if (!SWIG_IsOK(res1)) {
5765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5766 }
5767 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5768 {
5769 PyThreadState* __tstate = wxPyBeginAllowThreads();
5770 result = (int)(arg1)->GetHeight();
5771 wxPyEndAllowThreads(__tstate);
5772 if (PyErr_Occurred()) SWIG_fail;
5773 }
5774 resultobj = SWIG_From_int(static_cast< int >(result));
5775 return resultobj;
5776 fail:
5777 return NULL;
5778 }
5779
5780
5781 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5782 PyObject *resultobj = 0;
5783 wxBitmap *arg1 = (wxBitmap *) 0 ;
5784 int result;
5785 void *argp1 = 0 ;
5786 int res1 = 0 ;
5787 PyObject *swig_obj[1] ;
5788
5789 if (!args) SWIG_fail;
5790 swig_obj[0] = args;
5791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5792 if (!SWIG_IsOK(res1)) {
5793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5794 }
5795 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5796 {
5797 PyThreadState* __tstate = wxPyBeginAllowThreads();
5798 result = (int)(arg1)->GetDepth();
5799 wxPyEndAllowThreads(__tstate);
5800 if (PyErr_Occurred()) SWIG_fail;
5801 }
5802 resultobj = SWIG_From_int(static_cast< int >(result));
5803 return resultobj;
5804 fail:
5805 return NULL;
5806 }
5807
5808
5809 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5810 PyObject *resultobj = 0;
5811 wxBitmap *arg1 = (wxBitmap *) 0 ;
5812 wxSize result;
5813 void *argp1 = 0 ;
5814 int res1 = 0 ;
5815 PyObject *swig_obj[1] ;
5816
5817 if (!args) SWIG_fail;
5818 swig_obj[0] = args;
5819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5820 if (!SWIG_IsOK(res1)) {
5821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5822 }
5823 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5824 {
5825 PyThreadState* __tstate = wxPyBeginAllowThreads();
5826 result = wxBitmap_GetSize(arg1);
5827 wxPyEndAllowThreads(__tstate);
5828 if (PyErr_Occurred()) SWIG_fail;
5829 }
5830 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5831 return resultobj;
5832 fail:
5833 return NULL;
5834 }
5835
5836
5837 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5838 PyObject *resultobj = 0;
5839 wxBitmap *arg1 = (wxBitmap *) 0 ;
5840 SwigValueWrapper<wxImage > result;
5841 void *argp1 = 0 ;
5842 int res1 = 0 ;
5843 PyObject *swig_obj[1] ;
5844
5845 if (!args) SWIG_fail;
5846 swig_obj[0] = args;
5847 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5848 if (!SWIG_IsOK(res1)) {
5849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5850 }
5851 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5852 {
5853 PyThreadState* __tstate = wxPyBeginAllowThreads();
5854 result = ((wxBitmap const *)arg1)->ConvertToImage();
5855 wxPyEndAllowThreads(__tstate);
5856 if (PyErr_Occurred()) SWIG_fail;
5857 }
5858 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5859 return resultobj;
5860 fail:
5861 return NULL;
5862 }
5863
5864
5865 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5866 PyObject *resultobj = 0;
5867 wxBitmap *arg1 = (wxBitmap *) 0 ;
5868 wxMask *result = 0 ;
5869 void *argp1 = 0 ;
5870 int res1 = 0 ;
5871 PyObject *swig_obj[1] ;
5872
5873 if (!args) SWIG_fail;
5874 swig_obj[0] = args;
5875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5876 if (!SWIG_IsOK(res1)) {
5877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5878 }
5879 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5880 {
5881 PyThreadState* __tstate = wxPyBeginAllowThreads();
5882 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5883 wxPyEndAllowThreads(__tstate);
5884 if (PyErr_Occurred()) SWIG_fail;
5885 }
5886 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5887 return resultobj;
5888 fail:
5889 return NULL;
5890 }
5891
5892
5893 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5894 PyObject *resultobj = 0;
5895 wxBitmap *arg1 = (wxBitmap *) 0 ;
5896 wxMask *arg2 = (wxMask *) 0 ;
5897 void *argp1 = 0 ;
5898 int res1 = 0 ;
5899 int res2 = 0 ;
5900 PyObject * obj0 = 0 ;
5901 PyObject * obj1 = 0 ;
5902 char * kwnames[] = {
5903 (char *) "self",(char *) "mask", NULL
5904 };
5905
5906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5908 if (!SWIG_IsOK(res1)) {
5909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5910 }
5911 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5912 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5913 if (!SWIG_IsOK(res2)) {
5914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5915 }
5916 {
5917 PyThreadState* __tstate = wxPyBeginAllowThreads();
5918 (arg1)->SetMask(arg2);
5919 wxPyEndAllowThreads(__tstate);
5920 if (PyErr_Occurred()) SWIG_fail;
5921 }
5922 resultobj = SWIG_Py_Void();
5923 return resultobj;
5924 fail:
5925 return NULL;
5926 }
5927
5928
5929 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5930 PyObject *resultobj = 0;
5931 wxBitmap *arg1 = (wxBitmap *) 0 ;
5932 wxColour *arg2 = 0 ;
5933 void *argp1 = 0 ;
5934 int res1 = 0 ;
5935 wxColour temp2 ;
5936 PyObject * obj0 = 0 ;
5937 PyObject * obj1 = 0 ;
5938 char * kwnames[] = {
5939 (char *) "self",(char *) "colour", NULL
5940 };
5941
5942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5944 if (!SWIG_IsOK(res1)) {
5945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5946 }
5947 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5948 {
5949 arg2 = &temp2;
5950 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5951 }
5952 {
5953 PyThreadState* __tstate = wxPyBeginAllowThreads();
5954 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5955 wxPyEndAllowThreads(__tstate);
5956 if (PyErr_Occurred()) SWIG_fail;
5957 }
5958 resultobj = SWIG_Py_Void();
5959 return resultobj;
5960 fail:
5961 return NULL;
5962 }
5963
5964
5965 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5966 PyObject *resultobj = 0;
5967 wxBitmap *arg1 = (wxBitmap *) 0 ;
5968 wxRect *arg2 = 0 ;
5969 SwigValueWrapper<wxBitmap > result;
5970 void *argp1 = 0 ;
5971 int res1 = 0 ;
5972 wxRect temp2 ;
5973 PyObject * obj0 = 0 ;
5974 PyObject * obj1 = 0 ;
5975 char * kwnames[] = {
5976 (char *) "self",(char *) "rect", NULL
5977 };
5978
5979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5980 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5981 if (!SWIG_IsOK(res1)) {
5982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5983 }
5984 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5985 {
5986 arg2 = &temp2;
5987 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5988 }
5989 {
5990 PyThreadState* __tstate = wxPyBeginAllowThreads();
5991 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5992 wxPyEndAllowThreads(__tstate);
5993 if (PyErr_Occurred()) SWIG_fail;
5994 }
5995 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5996 return resultobj;
5997 fail:
5998 return NULL;
5999 }
6000
6001
6002 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6003 PyObject *resultobj = 0;
6004 wxBitmap *arg1 = (wxBitmap *) 0 ;
6005 wxString *arg2 = 0 ;
6006 wxBitmapType arg3 ;
6007 wxPalette *arg4 = (wxPalette *) NULL ;
6008 bool result;
6009 void *argp1 = 0 ;
6010 int res1 = 0 ;
6011 bool temp2 = false ;
6012 int val3 ;
6013 int ecode3 = 0 ;
6014 void *argp4 = 0 ;
6015 int res4 = 0 ;
6016 PyObject * obj0 = 0 ;
6017 PyObject * obj1 = 0 ;
6018 PyObject * obj2 = 0 ;
6019 PyObject * obj3 = 0 ;
6020 char * kwnames[] = {
6021 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6022 };
6023
6024 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6025 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6026 if (!SWIG_IsOK(res1)) {
6027 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6028 }
6029 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6030 {
6031 arg2 = wxString_in_helper(obj1);
6032 if (arg2 == NULL) SWIG_fail;
6033 temp2 = true;
6034 }
6035 ecode3 = SWIG_AsVal_int(obj2, &val3);
6036 if (!SWIG_IsOK(ecode3)) {
6037 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6038 }
6039 arg3 = static_cast< wxBitmapType >(val3);
6040 if (obj3) {
6041 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6042 if (!SWIG_IsOK(res4)) {
6043 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6044 }
6045 arg4 = reinterpret_cast< wxPalette * >(argp4);
6046 }
6047 {
6048 PyThreadState* __tstate = wxPyBeginAllowThreads();
6049 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6050 wxPyEndAllowThreads(__tstate);
6051 if (PyErr_Occurred()) SWIG_fail;
6052 }
6053 {
6054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6055 }
6056 {
6057 if (temp2)
6058 delete arg2;
6059 }
6060 return resultobj;
6061 fail:
6062 {
6063 if (temp2)
6064 delete arg2;
6065 }
6066 return NULL;
6067 }
6068
6069
6070 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6071 PyObject *resultobj = 0;
6072 wxBitmap *arg1 = (wxBitmap *) 0 ;
6073 wxString *arg2 = 0 ;
6074 wxBitmapType arg3 ;
6075 bool result;
6076 void *argp1 = 0 ;
6077 int res1 = 0 ;
6078 bool temp2 = false ;
6079 int val3 ;
6080 int ecode3 = 0 ;
6081 PyObject * obj0 = 0 ;
6082 PyObject * obj1 = 0 ;
6083 PyObject * obj2 = 0 ;
6084 char * kwnames[] = {
6085 (char *) "self",(char *) "name",(char *) "type", NULL
6086 };
6087
6088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6090 if (!SWIG_IsOK(res1)) {
6091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6092 }
6093 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6094 {
6095 arg2 = wxString_in_helper(obj1);
6096 if (arg2 == NULL) SWIG_fail;
6097 temp2 = true;
6098 }
6099 ecode3 = SWIG_AsVal_int(obj2, &val3);
6100 if (!SWIG_IsOK(ecode3)) {
6101 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6102 }
6103 arg3 = static_cast< wxBitmapType >(val3);
6104 {
6105 PyThreadState* __tstate = wxPyBeginAllowThreads();
6106 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6107 wxPyEndAllowThreads(__tstate);
6108 if (PyErr_Occurred()) SWIG_fail;
6109 }
6110 {
6111 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6112 }
6113 {
6114 if (temp2)
6115 delete arg2;
6116 }
6117 return resultobj;
6118 fail:
6119 {
6120 if (temp2)
6121 delete arg2;
6122 }
6123 return NULL;
6124 }
6125
6126
6127 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6128 PyObject *resultobj = 0;
6129 wxBitmap *arg1 = (wxBitmap *) 0 ;
6130 wxPalette *result = 0 ;
6131 void *argp1 = 0 ;
6132 int res1 = 0 ;
6133 PyObject *swig_obj[1] ;
6134
6135 if (!args) SWIG_fail;
6136 swig_obj[0] = args;
6137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6138 if (!SWIG_IsOK(res1)) {
6139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6140 }
6141 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6142 {
6143 PyThreadState* __tstate = wxPyBeginAllowThreads();
6144 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6145 wxPyEndAllowThreads(__tstate);
6146 if (PyErr_Occurred()) SWIG_fail;
6147 }
6148 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6149 return resultobj;
6150 fail:
6151 return NULL;
6152 }
6153
6154
6155 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6156 PyObject *resultobj = 0;
6157 wxBitmap *arg1 = (wxBitmap *) 0 ;
6158 wxPalette *arg2 = 0 ;
6159 void *argp1 = 0 ;
6160 int res1 = 0 ;
6161 void *argp2 = 0 ;
6162 int res2 = 0 ;
6163 PyObject * obj0 = 0 ;
6164 PyObject * obj1 = 0 ;
6165 char * kwnames[] = {
6166 (char *) "self",(char *) "palette", NULL
6167 };
6168
6169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6170 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6171 if (!SWIG_IsOK(res1)) {
6172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6173 }
6174 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6175 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6176 if (!SWIG_IsOK(res2)) {
6177 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6178 }
6179 if (!argp2) {
6180 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6181 }
6182 arg2 = reinterpret_cast< wxPalette * >(argp2);
6183 {
6184 PyThreadState* __tstate = wxPyBeginAllowThreads();
6185 (arg1)->SetPalette((wxPalette const &)*arg2);
6186 wxPyEndAllowThreads(__tstate);
6187 if (PyErr_Occurred()) SWIG_fail;
6188 }
6189 resultobj = SWIG_Py_Void();
6190 return resultobj;
6191 fail:
6192 return NULL;
6193 }
6194
6195
6196 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6197 PyObject *resultobj = 0;
6198 wxBitmap *arg1 = (wxBitmap *) 0 ;
6199 wxIcon *arg2 = 0 ;
6200 bool result;
6201 void *argp1 = 0 ;
6202 int res1 = 0 ;
6203 void *argp2 = 0 ;
6204 int res2 = 0 ;
6205 PyObject * obj0 = 0 ;
6206 PyObject * obj1 = 0 ;
6207 char * kwnames[] = {
6208 (char *) "self",(char *) "icon", NULL
6209 };
6210
6211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6213 if (!SWIG_IsOK(res1)) {
6214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6215 }
6216 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6218 if (!SWIG_IsOK(res2)) {
6219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6220 }
6221 if (!argp2) {
6222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6223 }
6224 arg2 = reinterpret_cast< wxIcon * >(argp2);
6225 {
6226 PyThreadState* __tstate = wxPyBeginAllowThreads();
6227 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6228 wxPyEndAllowThreads(__tstate);
6229 if (PyErr_Occurred()) SWIG_fail;
6230 }
6231 {
6232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6233 }
6234 return resultobj;
6235 fail:
6236 return NULL;
6237 }
6238
6239
6240 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6241 PyObject *resultobj = 0;
6242 wxBitmap *arg1 = (wxBitmap *) 0 ;
6243 int arg2 ;
6244 void *argp1 = 0 ;
6245 int res1 = 0 ;
6246 int val2 ;
6247 int ecode2 = 0 ;
6248 PyObject * obj0 = 0 ;
6249 PyObject * obj1 = 0 ;
6250 char * kwnames[] = {
6251 (char *) "self",(char *) "height", NULL
6252 };
6253
6254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6256 if (!SWIG_IsOK(res1)) {
6257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6258 }
6259 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6260 ecode2 = SWIG_AsVal_int(obj1, &val2);
6261 if (!SWIG_IsOK(ecode2)) {
6262 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6263 }
6264 arg2 = static_cast< int >(val2);
6265 {
6266 PyThreadState* __tstate = wxPyBeginAllowThreads();
6267 (arg1)->SetHeight(arg2);
6268 wxPyEndAllowThreads(__tstate);
6269 if (PyErr_Occurred()) SWIG_fail;
6270 }
6271 resultobj = SWIG_Py_Void();
6272 return resultobj;
6273 fail:
6274 return NULL;
6275 }
6276
6277
6278 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6279 PyObject *resultobj = 0;
6280 wxBitmap *arg1 = (wxBitmap *) 0 ;
6281 int arg2 ;
6282 void *argp1 = 0 ;
6283 int res1 = 0 ;
6284 int val2 ;
6285 int ecode2 = 0 ;
6286 PyObject * obj0 = 0 ;
6287 PyObject * obj1 = 0 ;
6288 char * kwnames[] = {
6289 (char *) "self",(char *) "width", NULL
6290 };
6291
6292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6294 if (!SWIG_IsOK(res1)) {
6295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6296 }
6297 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6298 ecode2 = SWIG_AsVal_int(obj1, &val2);
6299 if (!SWIG_IsOK(ecode2)) {
6300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6301 }
6302 arg2 = static_cast< int >(val2);
6303 {
6304 PyThreadState* __tstate = wxPyBeginAllowThreads();
6305 (arg1)->SetWidth(arg2);
6306 wxPyEndAllowThreads(__tstate);
6307 if (PyErr_Occurred()) SWIG_fail;
6308 }
6309 resultobj = SWIG_Py_Void();
6310 return resultobj;
6311 fail:
6312 return NULL;
6313 }
6314
6315
6316 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6317 PyObject *resultobj = 0;
6318 wxBitmap *arg1 = (wxBitmap *) 0 ;
6319 int arg2 ;
6320 void *argp1 = 0 ;
6321 int res1 = 0 ;
6322 int val2 ;
6323 int ecode2 = 0 ;
6324 PyObject * obj0 = 0 ;
6325 PyObject * obj1 = 0 ;
6326 char * kwnames[] = {
6327 (char *) "self",(char *) "depth", NULL
6328 };
6329
6330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6332 if (!SWIG_IsOK(res1)) {
6333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6334 }
6335 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6336 ecode2 = SWIG_AsVal_int(obj1, &val2);
6337 if (!SWIG_IsOK(ecode2)) {
6338 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6339 }
6340 arg2 = static_cast< int >(val2);
6341 {
6342 PyThreadState* __tstate = wxPyBeginAllowThreads();
6343 (arg1)->SetDepth(arg2);
6344 wxPyEndAllowThreads(__tstate);
6345 if (PyErr_Occurred()) SWIG_fail;
6346 }
6347 resultobj = SWIG_Py_Void();
6348 return resultobj;
6349 fail:
6350 return NULL;
6351 }
6352
6353
6354 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6355 PyObject *resultobj = 0;
6356 wxBitmap *arg1 = (wxBitmap *) 0 ;
6357 wxSize *arg2 = 0 ;
6358 void *argp1 = 0 ;
6359 int res1 = 0 ;
6360 wxSize temp2 ;
6361 PyObject * obj0 = 0 ;
6362 PyObject * obj1 = 0 ;
6363 char * kwnames[] = {
6364 (char *) "self",(char *) "size", NULL
6365 };
6366
6367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6369 if (!SWIG_IsOK(res1)) {
6370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6371 }
6372 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6373 {
6374 arg2 = &temp2;
6375 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6376 }
6377 {
6378 PyThreadState* __tstate = wxPyBeginAllowThreads();
6379 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6380 wxPyEndAllowThreads(__tstate);
6381 if (PyErr_Occurred()) SWIG_fail;
6382 }
6383 resultobj = SWIG_Py_Void();
6384 return resultobj;
6385 fail:
6386 return NULL;
6387 }
6388
6389
6390 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6391 PyObject *resultobj = 0;
6392 wxBitmap *arg1 = (wxBitmap *) 0 ;
6393 wxCursor *arg2 = 0 ;
6394 bool result;
6395 void *argp1 = 0 ;
6396 int res1 = 0 ;
6397 void *argp2 = 0 ;
6398 int res2 = 0 ;
6399 PyObject * obj0 = 0 ;
6400 PyObject * obj1 = 0 ;
6401 char * kwnames[] = {
6402 (char *) "self",(char *) "cursor", NULL
6403 };
6404
6405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6407 if (!SWIG_IsOK(res1)) {
6408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6409 }
6410 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6411 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6412 if (!SWIG_IsOK(res2)) {
6413 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6414 }
6415 if (!argp2) {
6416 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6417 }
6418 arg2 = reinterpret_cast< wxCursor * >(argp2);
6419 {
6420 PyThreadState* __tstate = wxPyBeginAllowThreads();
6421 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6422 wxPyEndAllowThreads(__tstate);
6423 if (PyErr_Occurred()) SWIG_fail;
6424 }
6425 {
6426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6427 }
6428 return resultobj;
6429 fail:
6430 return NULL;
6431 }
6432
6433
6434 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6435 PyObject *resultobj = 0;
6436 wxBitmap *arg1 = (wxBitmap *) 0 ;
6437 wxBitmap *arg2 = (wxBitmap *) 0 ;
6438 bool result;
6439 void *argp1 = 0 ;
6440 int res1 = 0 ;
6441 void *argp2 = 0 ;
6442 int res2 = 0 ;
6443 PyObject * obj0 = 0 ;
6444 PyObject * obj1 = 0 ;
6445 char * kwnames[] = {
6446 (char *) "self",(char *) "other", NULL
6447 };
6448
6449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6451 if (!SWIG_IsOK(res1)) {
6452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6453 }
6454 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6455 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6456 if (!SWIG_IsOK(res2)) {
6457 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6458 }
6459 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6460 {
6461 PyThreadState* __tstate = wxPyBeginAllowThreads();
6462 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6463 wxPyEndAllowThreads(__tstate);
6464 if (PyErr_Occurred()) SWIG_fail;
6465 }
6466 {
6467 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6468 }
6469 return resultobj;
6470 fail:
6471 return NULL;
6472 }
6473
6474
6475 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6476 PyObject *resultobj = 0;
6477 wxBitmap *arg1 = (wxBitmap *) 0 ;
6478 wxBitmap *arg2 = (wxBitmap *) 0 ;
6479 bool result;
6480 void *argp1 = 0 ;
6481 int res1 = 0 ;
6482 void *argp2 = 0 ;
6483 int res2 = 0 ;
6484 PyObject * obj0 = 0 ;
6485 PyObject * obj1 = 0 ;
6486 char * kwnames[] = {
6487 (char *) "self",(char *) "other", NULL
6488 };
6489
6490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6492 if (!SWIG_IsOK(res1)) {
6493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6494 }
6495 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6496 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6497 if (!SWIG_IsOK(res2)) {
6498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6499 }
6500 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6501 {
6502 PyThreadState* __tstate = wxPyBeginAllowThreads();
6503 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6504 wxPyEndAllowThreads(__tstate);
6505 if (PyErr_Occurred()) SWIG_fail;
6506 }
6507 {
6508 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6509 }
6510 return resultobj;
6511 fail:
6512 return NULL;
6513 }
6514
6515
6516 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6517 PyObject *obj;
6518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6519 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6520 return SWIG_Py_Void();
6521 }
6522
6523 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6524 return SWIG_Python_InitShadowInstance(args);
6525 }
6526
6527 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6528 PyObject *resultobj = 0;
6529 wxBitmap *arg1 = 0 ;
6530 wxColour const &arg2_defvalue = wxNullColour ;
6531 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6532 wxMask *result = 0 ;
6533 void *argp1 = 0 ;
6534 int res1 = 0 ;
6535 wxColour temp2 ;
6536 PyObject * obj0 = 0 ;
6537 PyObject * obj1 = 0 ;
6538 char * kwnames[] = {
6539 (char *) "bitmap",(char *) "colour", NULL
6540 };
6541
6542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6543 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6544 if (!SWIG_IsOK(res1)) {
6545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6546 }
6547 if (!argp1) {
6548 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6549 }
6550 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6551 if (obj1) {
6552 {
6553 arg2 = &temp2;
6554 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6555 }
6556 }
6557 {
6558 if (!wxPyCheckForApp()) SWIG_fail;
6559 PyThreadState* __tstate = wxPyBeginAllowThreads();
6560 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6561 wxPyEndAllowThreads(__tstate);
6562 if (PyErr_Occurred()) SWIG_fail;
6563 }
6564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6565 return resultobj;
6566 fail:
6567 return NULL;
6568 }
6569
6570
6571 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6572 PyObject *resultobj = 0;
6573 wxMask *arg1 = (wxMask *) 0 ;
6574 void *argp1 = 0 ;
6575 int res1 = 0 ;
6576 PyObject *swig_obj[1] ;
6577
6578 if (!args) SWIG_fail;
6579 swig_obj[0] = args;
6580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6581 if (!SWIG_IsOK(res1)) {
6582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6583 }
6584 arg1 = reinterpret_cast< wxMask * >(argp1);
6585 {
6586 PyThreadState* __tstate = wxPyBeginAllowThreads();
6587 delete arg1;
6588
6589 wxPyEndAllowThreads(__tstate);
6590 if (PyErr_Occurred()) SWIG_fail;
6591 }
6592 resultobj = SWIG_Py_Void();
6593 return resultobj;
6594 fail:
6595 return NULL;
6596 }
6597
6598
6599 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6600 PyObject *obj;
6601 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6602 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6603 return SWIG_Py_Void();
6604 }
6605
6606 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6607 return SWIG_Python_InitShadowInstance(args);
6608 }
6609
6610 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6611 PyObject *resultobj = 0;
6612 wxString *arg1 = 0 ;
6613 wxBitmapType arg2 ;
6614 int arg3 = (int) -1 ;
6615 int arg4 = (int) -1 ;
6616 wxIcon *result = 0 ;
6617 bool temp1 = false ;
6618 int val2 ;
6619 int ecode2 = 0 ;
6620 int val3 ;
6621 int ecode3 = 0 ;
6622 int val4 ;
6623 int ecode4 = 0 ;
6624 PyObject * obj0 = 0 ;
6625 PyObject * obj1 = 0 ;
6626 PyObject * obj2 = 0 ;
6627 PyObject * obj3 = 0 ;
6628 char * kwnames[] = {
6629 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6630 };
6631
6632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6633 {
6634 arg1 = wxString_in_helper(obj0);
6635 if (arg1 == NULL) SWIG_fail;
6636 temp1 = true;
6637 }
6638 ecode2 = SWIG_AsVal_int(obj1, &val2);
6639 if (!SWIG_IsOK(ecode2)) {
6640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6641 }
6642 arg2 = static_cast< wxBitmapType >(val2);
6643 if (obj2) {
6644 ecode3 = SWIG_AsVal_int(obj2, &val3);
6645 if (!SWIG_IsOK(ecode3)) {
6646 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6647 }
6648 arg3 = static_cast< int >(val3);
6649 }
6650 if (obj3) {
6651 ecode4 = SWIG_AsVal_int(obj3, &val4);
6652 if (!SWIG_IsOK(ecode4)) {
6653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6654 }
6655 arg4 = static_cast< int >(val4);
6656 }
6657 {
6658 if (!wxPyCheckForApp()) SWIG_fail;
6659 PyThreadState* __tstate = wxPyBeginAllowThreads();
6660 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6661 wxPyEndAllowThreads(__tstate);
6662 if (PyErr_Occurred()) SWIG_fail;
6663 }
6664 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6665 {
6666 if (temp1)
6667 delete arg1;
6668 }
6669 return resultobj;
6670 fail:
6671 {
6672 if (temp1)
6673 delete arg1;
6674 }
6675 return NULL;
6676 }
6677
6678
6679 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6680 PyObject *resultobj = 0;
6681 wxIcon *arg1 = (wxIcon *) 0 ;
6682 void *argp1 = 0 ;
6683 int res1 = 0 ;
6684 PyObject *swig_obj[1] ;
6685
6686 if (!args) SWIG_fail;
6687 swig_obj[0] = args;
6688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6689 if (!SWIG_IsOK(res1)) {
6690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6691 }
6692 arg1 = reinterpret_cast< wxIcon * >(argp1);
6693 {
6694 PyThreadState* __tstate = wxPyBeginAllowThreads();
6695 delete arg1;
6696
6697 wxPyEndAllowThreads(__tstate);
6698 if (PyErr_Occurred()) SWIG_fail;
6699 }
6700 resultobj = SWIG_Py_Void();
6701 return resultobj;
6702 fail:
6703 return NULL;
6704 }
6705
6706
6707 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6708 PyObject *resultobj = 0;
6709 wxIcon *result = 0 ;
6710
6711 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6712 {
6713 if (!wxPyCheckForApp()) SWIG_fail;
6714 PyThreadState* __tstate = wxPyBeginAllowThreads();
6715 result = (wxIcon *)new wxIcon();
6716 wxPyEndAllowThreads(__tstate);
6717 if (PyErr_Occurred()) SWIG_fail;
6718 }
6719 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6720 return resultobj;
6721 fail:
6722 return NULL;
6723 }
6724
6725
6726 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6727 PyObject *resultobj = 0;
6728 wxIconLocation *arg1 = 0 ;
6729 wxIcon *result = 0 ;
6730 void *argp1 = 0 ;
6731 int res1 = 0 ;
6732 PyObject * obj0 = 0 ;
6733 char * kwnames[] = {
6734 (char *) "loc", NULL
6735 };
6736
6737 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6738 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6739 if (!SWIG_IsOK(res1)) {
6740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6741 }
6742 if (!argp1) {
6743 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6744 }
6745 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6746 {
6747 if (!wxPyCheckForApp()) SWIG_fail;
6748 PyThreadState* __tstate = wxPyBeginAllowThreads();
6749 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6750 wxPyEndAllowThreads(__tstate);
6751 if (PyErr_Occurred()) SWIG_fail;
6752 }
6753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6754 return resultobj;
6755 fail:
6756 return NULL;
6757 }
6758
6759
6760 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6761 PyObject *resultobj = 0;
6762 wxBitmap *arg1 = 0 ;
6763 wxIcon *result = 0 ;
6764 void *argp1 = 0 ;
6765 int res1 = 0 ;
6766 PyObject * obj0 = 0 ;
6767 char * kwnames[] = {
6768 (char *) "bmp", NULL
6769 };
6770
6771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6772 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6773 if (!SWIG_IsOK(res1)) {
6774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6775 }
6776 if (!argp1) {
6777 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6778 }
6779 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6780 {
6781 if (!wxPyCheckForApp()) SWIG_fail;
6782 PyThreadState* __tstate = wxPyBeginAllowThreads();
6783 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6784 wxPyEndAllowThreads(__tstate);
6785 if (PyErr_Occurred()) SWIG_fail;
6786 }
6787 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6788 return resultobj;
6789 fail:
6790 return NULL;
6791 }
6792
6793
6794 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6795 PyObject *resultobj = 0;
6796 PyObject *arg1 = (PyObject *) 0 ;
6797 wxIcon *result = 0 ;
6798 PyObject * obj0 = 0 ;
6799 char * kwnames[] = {
6800 (char *) "listOfStrings", NULL
6801 };
6802
6803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6804 arg1 = obj0;
6805 {
6806 if (!wxPyCheckForApp()) SWIG_fail;
6807 PyThreadState* __tstate = wxPyBeginAllowThreads();
6808 result = (wxIcon *)new_wxIcon(arg1);
6809 wxPyEndAllowThreads(__tstate);
6810 if (PyErr_Occurred()) SWIG_fail;
6811 }
6812 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6813 return resultobj;
6814 fail:
6815 return NULL;
6816 }
6817
6818
6819 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6820 PyObject *resultobj = 0;
6821 wxIcon *arg1 = (wxIcon *) 0 ;
6822 wxString *arg2 = 0 ;
6823 wxBitmapType arg3 ;
6824 bool result;
6825 void *argp1 = 0 ;
6826 int res1 = 0 ;
6827 bool temp2 = false ;
6828 int val3 ;
6829 int ecode3 = 0 ;
6830 PyObject * obj0 = 0 ;
6831 PyObject * obj1 = 0 ;
6832 PyObject * obj2 = 0 ;
6833 char * kwnames[] = {
6834 (char *) "self",(char *) "name",(char *) "type", NULL
6835 };
6836
6837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6839 if (!SWIG_IsOK(res1)) {
6840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6841 }
6842 arg1 = reinterpret_cast< wxIcon * >(argp1);
6843 {
6844 arg2 = wxString_in_helper(obj1);
6845 if (arg2 == NULL) SWIG_fail;
6846 temp2 = true;
6847 }
6848 ecode3 = SWIG_AsVal_int(obj2, &val3);
6849 if (!SWIG_IsOK(ecode3)) {
6850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6851 }
6852 arg3 = static_cast< wxBitmapType >(val3);
6853 {
6854 PyThreadState* __tstate = wxPyBeginAllowThreads();
6855 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6856 wxPyEndAllowThreads(__tstate);
6857 if (PyErr_Occurred()) SWIG_fail;
6858 }
6859 {
6860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6861 }
6862 {
6863 if (temp2)
6864 delete arg2;
6865 }
6866 return resultobj;
6867 fail:
6868 {
6869 if (temp2)
6870 delete arg2;
6871 }
6872 return NULL;
6873 }
6874
6875
6876 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6877 PyObject *resultobj = 0;
6878 wxIcon *arg1 = (wxIcon *) 0 ;
6879 long result;
6880 void *argp1 = 0 ;
6881 int res1 = 0 ;
6882 PyObject *swig_obj[1] ;
6883
6884 if (!args) SWIG_fail;
6885 swig_obj[0] = args;
6886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6887 if (!SWIG_IsOK(res1)) {
6888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6889 }
6890 arg1 = reinterpret_cast< wxIcon * >(argp1);
6891 {
6892 PyThreadState* __tstate = wxPyBeginAllowThreads();
6893 result = (long)(arg1)->GetHandle();
6894 wxPyEndAllowThreads(__tstate);
6895 if (PyErr_Occurred()) SWIG_fail;
6896 }
6897 resultobj = SWIG_From_long(static_cast< long >(result));
6898 return resultobj;
6899 fail:
6900 return NULL;
6901 }
6902
6903
6904 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6905 PyObject *resultobj = 0;
6906 wxIcon *arg1 = (wxIcon *) 0 ;
6907 long arg2 ;
6908 void *argp1 = 0 ;
6909 int res1 = 0 ;
6910 long val2 ;
6911 int ecode2 = 0 ;
6912 PyObject * obj0 = 0 ;
6913 PyObject * obj1 = 0 ;
6914 char * kwnames[] = {
6915 (char *) "self",(char *) "handle", NULL
6916 };
6917
6918 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6919 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6920 if (!SWIG_IsOK(res1)) {
6921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6922 }
6923 arg1 = reinterpret_cast< wxIcon * >(argp1);
6924 ecode2 = SWIG_AsVal_long(obj1, &val2);
6925 if (!SWIG_IsOK(ecode2)) {
6926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6927 }
6928 arg2 = static_cast< long >(val2);
6929 {
6930 PyThreadState* __tstate = wxPyBeginAllowThreads();
6931 wxIcon_SetHandle(arg1,arg2);
6932 wxPyEndAllowThreads(__tstate);
6933 if (PyErr_Occurred()) SWIG_fail;
6934 }
6935 resultobj = SWIG_Py_Void();
6936 return resultobj;
6937 fail:
6938 return NULL;
6939 }
6940
6941
6942 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6943 PyObject *resultobj = 0;
6944 wxIcon *arg1 = (wxIcon *) 0 ;
6945 bool result;
6946 void *argp1 = 0 ;
6947 int res1 = 0 ;
6948 PyObject *swig_obj[1] ;
6949
6950 if (!args) SWIG_fail;
6951 swig_obj[0] = args;
6952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6953 if (!SWIG_IsOK(res1)) {
6954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6955 }
6956 arg1 = reinterpret_cast< wxIcon * >(argp1);
6957 {
6958 PyThreadState* __tstate = wxPyBeginAllowThreads();
6959 result = (bool)(arg1)->Ok();
6960 wxPyEndAllowThreads(__tstate);
6961 if (PyErr_Occurred()) SWIG_fail;
6962 }
6963 {
6964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6965 }
6966 return resultobj;
6967 fail:
6968 return NULL;
6969 }
6970
6971
6972 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6973 PyObject *resultobj = 0;
6974 wxIcon *arg1 = (wxIcon *) 0 ;
6975 int result;
6976 void *argp1 = 0 ;
6977 int res1 = 0 ;
6978 PyObject *swig_obj[1] ;
6979
6980 if (!args) SWIG_fail;
6981 swig_obj[0] = args;
6982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6983 if (!SWIG_IsOK(res1)) {
6984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6985 }
6986 arg1 = reinterpret_cast< wxIcon * >(argp1);
6987 {
6988 PyThreadState* __tstate = wxPyBeginAllowThreads();
6989 result = (int)(arg1)->GetWidth();
6990 wxPyEndAllowThreads(__tstate);
6991 if (PyErr_Occurred()) SWIG_fail;
6992 }
6993 resultobj = SWIG_From_int(static_cast< int >(result));
6994 return resultobj;
6995 fail:
6996 return NULL;
6997 }
6998
6999
7000 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7001 PyObject *resultobj = 0;
7002 wxIcon *arg1 = (wxIcon *) 0 ;
7003 int result;
7004 void *argp1 = 0 ;
7005 int res1 = 0 ;
7006 PyObject *swig_obj[1] ;
7007
7008 if (!args) SWIG_fail;
7009 swig_obj[0] = args;
7010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7011 if (!SWIG_IsOK(res1)) {
7012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7013 }
7014 arg1 = reinterpret_cast< wxIcon * >(argp1);
7015 {
7016 PyThreadState* __tstate = wxPyBeginAllowThreads();
7017 result = (int)(arg1)->GetHeight();
7018 wxPyEndAllowThreads(__tstate);
7019 if (PyErr_Occurred()) SWIG_fail;
7020 }
7021 resultobj = SWIG_From_int(static_cast< int >(result));
7022 return resultobj;
7023 fail:
7024 return NULL;
7025 }
7026
7027
7028 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7029 PyObject *resultobj = 0;
7030 wxIcon *arg1 = (wxIcon *) 0 ;
7031 int result;
7032 void *argp1 = 0 ;
7033 int res1 = 0 ;
7034 PyObject *swig_obj[1] ;
7035
7036 if (!args) SWIG_fail;
7037 swig_obj[0] = args;
7038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7039 if (!SWIG_IsOK(res1)) {
7040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7041 }
7042 arg1 = reinterpret_cast< wxIcon * >(argp1);
7043 {
7044 PyThreadState* __tstate = wxPyBeginAllowThreads();
7045 result = (int)(arg1)->GetDepth();
7046 wxPyEndAllowThreads(__tstate);
7047 if (PyErr_Occurred()) SWIG_fail;
7048 }
7049 resultobj = SWIG_From_int(static_cast< int >(result));
7050 return resultobj;
7051 fail:
7052 return NULL;
7053 }
7054
7055
7056 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7057 PyObject *resultobj = 0;
7058 wxIcon *arg1 = (wxIcon *) 0 ;
7059 int arg2 ;
7060 void *argp1 = 0 ;
7061 int res1 = 0 ;
7062 int val2 ;
7063 int ecode2 = 0 ;
7064 PyObject * obj0 = 0 ;
7065 PyObject * obj1 = 0 ;
7066 char * kwnames[] = {
7067 (char *) "self",(char *) "w", NULL
7068 };
7069
7070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7072 if (!SWIG_IsOK(res1)) {
7073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7074 }
7075 arg1 = reinterpret_cast< wxIcon * >(argp1);
7076 ecode2 = SWIG_AsVal_int(obj1, &val2);
7077 if (!SWIG_IsOK(ecode2)) {
7078 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7079 }
7080 arg2 = static_cast< int >(val2);
7081 {
7082 PyThreadState* __tstate = wxPyBeginAllowThreads();
7083 (arg1)->SetWidth(arg2);
7084 wxPyEndAllowThreads(__tstate);
7085 if (PyErr_Occurred()) SWIG_fail;
7086 }
7087 resultobj = SWIG_Py_Void();
7088 return resultobj;
7089 fail:
7090 return NULL;
7091 }
7092
7093
7094 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7095 PyObject *resultobj = 0;
7096 wxIcon *arg1 = (wxIcon *) 0 ;
7097 int arg2 ;
7098 void *argp1 = 0 ;
7099 int res1 = 0 ;
7100 int val2 ;
7101 int ecode2 = 0 ;
7102 PyObject * obj0 = 0 ;
7103 PyObject * obj1 = 0 ;
7104 char * kwnames[] = {
7105 (char *) "self",(char *) "h", NULL
7106 };
7107
7108 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7109 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7110 if (!SWIG_IsOK(res1)) {
7111 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7112 }
7113 arg1 = reinterpret_cast< wxIcon * >(argp1);
7114 ecode2 = SWIG_AsVal_int(obj1, &val2);
7115 if (!SWIG_IsOK(ecode2)) {
7116 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7117 }
7118 arg2 = static_cast< int >(val2);
7119 {
7120 PyThreadState* __tstate = wxPyBeginAllowThreads();
7121 (arg1)->SetHeight(arg2);
7122 wxPyEndAllowThreads(__tstate);
7123 if (PyErr_Occurred()) SWIG_fail;
7124 }
7125 resultobj = SWIG_Py_Void();
7126 return resultobj;
7127 fail:
7128 return NULL;
7129 }
7130
7131
7132 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7133 PyObject *resultobj = 0;
7134 wxIcon *arg1 = (wxIcon *) 0 ;
7135 int arg2 ;
7136 void *argp1 = 0 ;
7137 int res1 = 0 ;
7138 int val2 ;
7139 int ecode2 = 0 ;
7140 PyObject * obj0 = 0 ;
7141 PyObject * obj1 = 0 ;
7142 char * kwnames[] = {
7143 (char *) "self",(char *) "d", NULL
7144 };
7145
7146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7148 if (!SWIG_IsOK(res1)) {
7149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7150 }
7151 arg1 = reinterpret_cast< wxIcon * >(argp1);
7152 ecode2 = SWIG_AsVal_int(obj1, &val2);
7153 if (!SWIG_IsOK(ecode2)) {
7154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7155 }
7156 arg2 = static_cast< int >(val2);
7157 {
7158 PyThreadState* __tstate = wxPyBeginAllowThreads();
7159 (arg1)->SetDepth(arg2);
7160 wxPyEndAllowThreads(__tstate);
7161 if (PyErr_Occurred()) SWIG_fail;
7162 }
7163 resultobj = SWIG_Py_Void();
7164 return resultobj;
7165 fail:
7166 return NULL;
7167 }
7168
7169
7170 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7171 PyObject *resultobj = 0;
7172 wxIcon *arg1 = (wxIcon *) 0 ;
7173 wxSize *arg2 = 0 ;
7174 void *argp1 = 0 ;
7175 int res1 = 0 ;
7176 wxSize temp2 ;
7177 PyObject * obj0 = 0 ;
7178 PyObject * obj1 = 0 ;
7179 char * kwnames[] = {
7180 (char *) "self",(char *) "size", NULL
7181 };
7182
7183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7185 if (!SWIG_IsOK(res1)) {
7186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7187 }
7188 arg1 = reinterpret_cast< wxIcon * >(argp1);
7189 {
7190 arg2 = &temp2;
7191 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7192 }
7193 {
7194 PyThreadState* __tstate = wxPyBeginAllowThreads();
7195 (arg1)->SetSize((wxSize const &)*arg2);
7196 wxPyEndAllowThreads(__tstate);
7197 if (PyErr_Occurred()) SWIG_fail;
7198 }
7199 resultobj = SWIG_Py_Void();
7200 return resultobj;
7201 fail:
7202 return NULL;
7203 }
7204
7205
7206 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7207 PyObject *resultobj = 0;
7208 wxIcon *arg1 = (wxIcon *) 0 ;
7209 wxBitmap *arg2 = 0 ;
7210 void *argp1 = 0 ;
7211 int res1 = 0 ;
7212 void *argp2 = 0 ;
7213 int res2 = 0 ;
7214 PyObject * obj0 = 0 ;
7215 PyObject * obj1 = 0 ;
7216 char * kwnames[] = {
7217 (char *) "self",(char *) "bmp", NULL
7218 };
7219
7220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7222 if (!SWIG_IsOK(res1)) {
7223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7224 }
7225 arg1 = reinterpret_cast< wxIcon * >(argp1);
7226 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7227 if (!SWIG_IsOK(res2)) {
7228 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7229 }
7230 if (!argp2) {
7231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7232 }
7233 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7234 {
7235 PyThreadState* __tstate = wxPyBeginAllowThreads();
7236 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7237 wxPyEndAllowThreads(__tstate);
7238 if (PyErr_Occurred()) SWIG_fail;
7239 }
7240 resultobj = SWIG_Py_Void();
7241 return resultobj;
7242 fail:
7243 return NULL;
7244 }
7245
7246
7247 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7248 PyObject *obj;
7249 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7250 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7251 return SWIG_Py_Void();
7252 }
7253
7254 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7255 return SWIG_Python_InitShadowInstance(args);
7256 }
7257
7258 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7259 PyObject *resultobj = 0;
7260 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7261 int arg2 = (int) 0 ;
7262 wxIconLocation *result = 0 ;
7263 bool temp1 = false ;
7264 int val2 ;
7265 int ecode2 = 0 ;
7266 PyObject * obj0 = 0 ;
7267 PyObject * obj1 = 0 ;
7268 char * kwnames[] = {
7269 (char *) "filename",(char *) "num", NULL
7270 };
7271
7272 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7273 if (obj0) {
7274 {
7275 arg1 = wxString_in_helper(obj0);
7276 if (arg1 == NULL) SWIG_fail;
7277 temp1 = true;
7278 }
7279 }
7280 if (obj1) {
7281 ecode2 = SWIG_AsVal_int(obj1, &val2);
7282 if (!SWIG_IsOK(ecode2)) {
7283 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7284 }
7285 arg2 = static_cast< int >(val2);
7286 }
7287 {
7288 PyThreadState* __tstate = wxPyBeginAllowThreads();
7289 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7290 wxPyEndAllowThreads(__tstate);
7291 if (PyErr_Occurred()) SWIG_fail;
7292 }
7293 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7294 {
7295 if (temp1)
7296 delete arg1;
7297 }
7298 return resultobj;
7299 fail:
7300 {
7301 if (temp1)
7302 delete arg1;
7303 }
7304 return NULL;
7305 }
7306
7307
7308 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7309 PyObject *resultobj = 0;
7310 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7311 void *argp1 = 0 ;
7312 int res1 = 0 ;
7313 PyObject *swig_obj[1] ;
7314
7315 if (!args) SWIG_fail;
7316 swig_obj[0] = args;
7317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7318 if (!SWIG_IsOK(res1)) {
7319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7320 }
7321 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7322 {
7323 PyThreadState* __tstate = wxPyBeginAllowThreads();
7324 delete arg1;
7325
7326 wxPyEndAllowThreads(__tstate);
7327 if (PyErr_Occurred()) SWIG_fail;
7328 }
7329 resultobj = SWIG_Py_Void();
7330 return resultobj;
7331 fail:
7332 return NULL;
7333 }
7334
7335
7336 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7337 PyObject *resultobj = 0;
7338 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7339 bool result;
7340 void *argp1 = 0 ;
7341 int res1 = 0 ;
7342 PyObject *swig_obj[1] ;
7343
7344 if (!args) SWIG_fail;
7345 swig_obj[0] = args;
7346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7347 if (!SWIG_IsOK(res1)) {
7348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7349 }
7350 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7351 {
7352 PyThreadState* __tstate = wxPyBeginAllowThreads();
7353 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7354 wxPyEndAllowThreads(__tstate);
7355 if (PyErr_Occurred()) SWIG_fail;
7356 }
7357 {
7358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7359 }
7360 return resultobj;
7361 fail:
7362 return NULL;
7363 }
7364
7365
7366 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7367 PyObject *resultobj = 0;
7368 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7369 wxString *arg2 = 0 ;
7370 void *argp1 = 0 ;
7371 int res1 = 0 ;
7372 bool temp2 = false ;
7373 PyObject * obj0 = 0 ;
7374 PyObject * obj1 = 0 ;
7375 char * kwnames[] = {
7376 (char *) "self",(char *) "filename", NULL
7377 };
7378
7379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7381 if (!SWIG_IsOK(res1)) {
7382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7383 }
7384 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7385 {
7386 arg2 = wxString_in_helper(obj1);
7387 if (arg2 == NULL) SWIG_fail;
7388 temp2 = true;
7389 }
7390 {
7391 PyThreadState* __tstate = wxPyBeginAllowThreads();
7392 (arg1)->SetFileName((wxString const &)*arg2);
7393 wxPyEndAllowThreads(__tstate);
7394 if (PyErr_Occurred()) SWIG_fail;
7395 }
7396 resultobj = SWIG_Py_Void();
7397 {
7398 if (temp2)
7399 delete arg2;
7400 }
7401 return resultobj;
7402 fail:
7403 {
7404 if (temp2)
7405 delete arg2;
7406 }
7407 return NULL;
7408 }
7409
7410
7411 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7412 PyObject *resultobj = 0;
7413 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7414 wxString *result = 0 ;
7415 void *argp1 = 0 ;
7416 int res1 = 0 ;
7417 PyObject *swig_obj[1] ;
7418
7419 if (!args) SWIG_fail;
7420 swig_obj[0] = args;
7421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7422 if (!SWIG_IsOK(res1)) {
7423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7424 }
7425 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7426 {
7427 PyThreadState* __tstate = wxPyBeginAllowThreads();
7428 {
7429 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7430 result = (wxString *) &_result_ref;
7431 }
7432 wxPyEndAllowThreads(__tstate);
7433 if (PyErr_Occurred()) SWIG_fail;
7434 }
7435 {
7436 #if wxUSE_UNICODE
7437 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7438 #else
7439 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7440 #endif
7441 }
7442 return resultobj;
7443 fail:
7444 return NULL;
7445 }
7446
7447
7448 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7449 PyObject *resultobj = 0;
7450 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7451 int arg2 ;
7452 void *argp1 = 0 ;
7453 int res1 = 0 ;
7454 int val2 ;
7455 int ecode2 = 0 ;
7456 PyObject * obj0 = 0 ;
7457 PyObject * obj1 = 0 ;
7458 char * kwnames[] = {
7459 (char *) "self",(char *) "num", NULL
7460 };
7461
7462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7464 if (!SWIG_IsOK(res1)) {
7465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7466 }
7467 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7468 ecode2 = SWIG_AsVal_int(obj1, &val2);
7469 if (!SWIG_IsOK(ecode2)) {
7470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7471 }
7472 arg2 = static_cast< int >(val2);
7473 {
7474 PyThreadState* __tstate = wxPyBeginAllowThreads();
7475 wxIconLocation_SetIndex(arg1,arg2);
7476 wxPyEndAllowThreads(__tstate);
7477 if (PyErr_Occurred()) SWIG_fail;
7478 }
7479 resultobj = SWIG_Py_Void();
7480 return resultobj;
7481 fail:
7482 return NULL;
7483 }
7484
7485
7486 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7487 PyObject *resultobj = 0;
7488 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7489 int result;
7490 void *argp1 = 0 ;
7491 int res1 = 0 ;
7492 PyObject *swig_obj[1] ;
7493
7494 if (!args) SWIG_fail;
7495 swig_obj[0] = args;
7496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7497 if (!SWIG_IsOK(res1)) {
7498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7499 }
7500 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7501 {
7502 PyThreadState* __tstate = wxPyBeginAllowThreads();
7503 result = (int)wxIconLocation_GetIndex(arg1);
7504 wxPyEndAllowThreads(__tstate);
7505 if (PyErr_Occurred()) SWIG_fail;
7506 }
7507 resultobj = SWIG_From_int(static_cast< int >(result));
7508 return resultobj;
7509 fail:
7510 return NULL;
7511 }
7512
7513
7514 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7515 PyObject *obj;
7516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7517 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7518 return SWIG_Py_Void();
7519 }
7520
7521 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7522 return SWIG_Python_InitShadowInstance(args);
7523 }
7524
7525 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7526 PyObject *resultobj = 0;
7527 wxIconBundle *result = 0 ;
7528
7529 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7530 {
7531 PyThreadState* __tstate = wxPyBeginAllowThreads();
7532 result = (wxIconBundle *)new wxIconBundle();
7533 wxPyEndAllowThreads(__tstate);
7534 if (PyErr_Occurred()) SWIG_fail;
7535 }
7536 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7537 return resultobj;
7538 fail:
7539 return NULL;
7540 }
7541
7542
7543 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7544 PyObject *resultobj = 0;
7545 wxString *arg1 = 0 ;
7546 long arg2 ;
7547 wxIconBundle *result = 0 ;
7548 bool temp1 = false ;
7549 long val2 ;
7550 int ecode2 = 0 ;
7551 PyObject * obj0 = 0 ;
7552 PyObject * obj1 = 0 ;
7553 char * kwnames[] = {
7554 (char *) "file",(char *) "type", NULL
7555 };
7556
7557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7558 {
7559 arg1 = wxString_in_helper(obj0);
7560 if (arg1 == NULL) SWIG_fail;
7561 temp1 = true;
7562 }
7563 ecode2 = SWIG_AsVal_long(obj1, &val2);
7564 if (!SWIG_IsOK(ecode2)) {
7565 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7566 }
7567 arg2 = static_cast< long >(val2);
7568 {
7569 PyThreadState* __tstate = wxPyBeginAllowThreads();
7570 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7571 wxPyEndAllowThreads(__tstate);
7572 if (PyErr_Occurred()) SWIG_fail;
7573 }
7574 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7575 {
7576 if (temp1)
7577 delete arg1;
7578 }
7579 return resultobj;
7580 fail:
7581 {
7582 if (temp1)
7583 delete arg1;
7584 }
7585 return NULL;
7586 }
7587
7588
7589 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7590 PyObject *resultobj = 0;
7591 wxIcon *arg1 = 0 ;
7592 wxIconBundle *result = 0 ;
7593 void *argp1 = 0 ;
7594 int res1 = 0 ;
7595 PyObject * obj0 = 0 ;
7596 char * kwnames[] = {
7597 (char *) "icon", NULL
7598 };
7599
7600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7601 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7602 if (!SWIG_IsOK(res1)) {
7603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7604 }
7605 if (!argp1) {
7606 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7607 }
7608 arg1 = reinterpret_cast< wxIcon * >(argp1);
7609 {
7610 PyThreadState* __tstate = wxPyBeginAllowThreads();
7611 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7612 wxPyEndAllowThreads(__tstate);
7613 if (PyErr_Occurred()) SWIG_fail;
7614 }
7615 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7616 return resultobj;
7617 fail:
7618 return NULL;
7619 }
7620
7621
7622 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7623 PyObject *resultobj = 0;
7624 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7625 void *argp1 = 0 ;
7626 int res1 = 0 ;
7627 PyObject *swig_obj[1] ;
7628
7629 if (!args) SWIG_fail;
7630 swig_obj[0] = args;
7631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7632 if (!SWIG_IsOK(res1)) {
7633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7634 }
7635 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7636 {
7637 PyThreadState* __tstate = wxPyBeginAllowThreads();
7638 delete arg1;
7639
7640 wxPyEndAllowThreads(__tstate);
7641 if (PyErr_Occurred()) SWIG_fail;
7642 }
7643 resultobj = SWIG_Py_Void();
7644 return resultobj;
7645 fail:
7646 return NULL;
7647 }
7648
7649
7650 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7651 PyObject *resultobj = 0;
7652 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7653 wxIcon *arg2 = 0 ;
7654 void *argp1 = 0 ;
7655 int res1 = 0 ;
7656 void *argp2 = 0 ;
7657 int res2 = 0 ;
7658 PyObject * obj0 = 0 ;
7659 PyObject * obj1 = 0 ;
7660 char * kwnames[] = {
7661 (char *) "self",(char *) "icon", NULL
7662 };
7663
7664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7666 if (!SWIG_IsOK(res1)) {
7667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7668 }
7669 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7671 if (!SWIG_IsOK(res2)) {
7672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7673 }
7674 if (!argp2) {
7675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7676 }
7677 arg2 = reinterpret_cast< wxIcon * >(argp2);
7678 {
7679 PyThreadState* __tstate = wxPyBeginAllowThreads();
7680 (arg1)->AddIcon((wxIcon const &)*arg2);
7681 wxPyEndAllowThreads(__tstate);
7682 if (PyErr_Occurred()) SWIG_fail;
7683 }
7684 resultobj = SWIG_Py_Void();
7685 return resultobj;
7686 fail:
7687 return NULL;
7688 }
7689
7690
7691 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7692 PyObject *resultobj = 0;
7693 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7694 wxString *arg2 = 0 ;
7695 long arg3 ;
7696 void *argp1 = 0 ;
7697 int res1 = 0 ;
7698 bool temp2 = false ;
7699 long val3 ;
7700 int ecode3 = 0 ;
7701 PyObject * obj0 = 0 ;
7702 PyObject * obj1 = 0 ;
7703 PyObject * obj2 = 0 ;
7704 char * kwnames[] = {
7705 (char *) "self",(char *) "file",(char *) "type", NULL
7706 };
7707
7708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7710 if (!SWIG_IsOK(res1)) {
7711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7712 }
7713 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7714 {
7715 arg2 = wxString_in_helper(obj1);
7716 if (arg2 == NULL) SWIG_fail;
7717 temp2 = true;
7718 }
7719 ecode3 = SWIG_AsVal_long(obj2, &val3);
7720 if (!SWIG_IsOK(ecode3)) {
7721 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7722 }
7723 arg3 = static_cast< long >(val3);
7724 {
7725 PyThreadState* __tstate = wxPyBeginAllowThreads();
7726 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7727 wxPyEndAllowThreads(__tstate);
7728 if (PyErr_Occurred()) SWIG_fail;
7729 }
7730 resultobj = SWIG_Py_Void();
7731 {
7732 if (temp2)
7733 delete arg2;
7734 }
7735 return resultobj;
7736 fail:
7737 {
7738 if (temp2)
7739 delete arg2;
7740 }
7741 return NULL;
7742 }
7743
7744
7745 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7746 PyObject *resultobj = 0;
7747 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7748 wxSize *arg2 = 0 ;
7749 wxIcon *result = 0 ;
7750 void *argp1 = 0 ;
7751 int res1 = 0 ;
7752 wxSize temp2 ;
7753 PyObject * obj0 = 0 ;
7754 PyObject * obj1 = 0 ;
7755 char * kwnames[] = {
7756 (char *) "self",(char *) "size", NULL
7757 };
7758
7759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7761 if (!SWIG_IsOK(res1)) {
7762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7763 }
7764 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7765 {
7766 arg2 = &temp2;
7767 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7768 }
7769 {
7770 PyThreadState* __tstate = wxPyBeginAllowThreads();
7771 {
7772 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7773 result = (wxIcon *) &_result_ref;
7774 }
7775 wxPyEndAllowThreads(__tstate);
7776 if (PyErr_Occurred()) SWIG_fail;
7777 }
7778 {
7779 wxIcon* resultptr = new wxIcon(*result);
7780 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7781 }
7782 return resultobj;
7783 fail:
7784 return NULL;
7785 }
7786
7787
7788 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7789 PyObject *obj;
7790 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7791 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7792 return SWIG_Py_Void();
7793 }
7794
7795 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7796 return SWIG_Python_InitShadowInstance(args);
7797 }
7798
7799 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7800 PyObject *resultobj = 0;
7801 wxString *arg1 = 0 ;
7802 long arg2 ;
7803 int arg3 = (int) 0 ;
7804 int arg4 = (int) 0 ;
7805 wxCursor *result = 0 ;
7806 bool temp1 = false ;
7807 long val2 ;
7808 int ecode2 = 0 ;
7809 int val3 ;
7810 int ecode3 = 0 ;
7811 int val4 ;
7812 int ecode4 = 0 ;
7813 PyObject * obj0 = 0 ;
7814 PyObject * obj1 = 0 ;
7815 PyObject * obj2 = 0 ;
7816 PyObject * obj3 = 0 ;
7817 char * kwnames[] = {
7818 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7819 };
7820
7821 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7822 {
7823 arg1 = wxString_in_helper(obj0);
7824 if (arg1 == NULL) SWIG_fail;
7825 temp1 = true;
7826 }
7827 ecode2 = SWIG_AsVal_long(obj1, &val2);
7828 if (!SWIG_IsOK(ecode2)) {
7829 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7830 }
7831 arg2 = static_cast< long >(val2);
7832 if (obj2) {
7833 ecode3 = SWIG_AsVal_int(obj2, &val3);
7834 if (!SWIG_IsOK(ecode3)) {
7835 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7836 }
7837 arg3 = static_cast< int >(val3);
7838 }
7839 if (obj3) {
7840 ecode4 = SWIG_AsVal_int(obj3, &val4);
7841 if (!SWIG_IsOK(ecode4)) {
7842 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7843 }
7844 arg4 = static_cast< int >(val4);
7845 }
7846 {
7847 if (!wxPyCheckForApp()) SWIG_fail;
7848 PyThreadState* __tstate = wxPyBeginAllowThreads();
7849 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7850 wxPyEndAllowThreads(__tstate);
7851 if (PyErr_Occurred()) SWIG_fail;
7852 }
7853 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7854 {
7855 if (temp1)
7856 delete arg1;
7857 }
7858 return resultobj;
7859 fail:
7860 {
7861 if (temp1)
7862 delete arg1;
7863 }
7864 return NULL;
7865 }
7866
7867
7868 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7869 PyObject *resultobj = 0;
7870 wxCursor *arg1 = (wxCursor *) 0 ;
7871 void *argp1 = 0 ;
7872 int res1 = 0 ;
7873 PyObject *swig_obj[1] ;
7874
7875 if (!args) SWIG_fail;
7876 swig_obj[0] = args;
7877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7878 if (!SWIG_IsOK(res1)) {
7879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7880 }
7881 arg1 = reinterpret_cast< wxCursor * >(argp1);
7882 {
7883 PyThreadState* __tstate = wxPyBeginAllowThreads();
7884 delete arg1;
7885
7886 wxPyEndAllowThreads(__tstate);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891 fail:
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 int arg1 ;
7899 wxCursor *result = 0 ;
7900 int val1 ;
7901 int ecode1 = 0 ;
7902 PyObject * obj0 = 0 ;
7903 char * kwnames[] = {
7904 (char *) "id", NULL
7905 };
7906
7907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7908 ecode1 = SWIG_AsVal_int(obj0, &val1);
7909 if (!SWIG_IsOK(ecode1)) {
7910 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7911 }
7912 arg1 = static_cast< int >(val1);
7913 {
7914 if (!wxPyCheckForApp()) SWIG_fail;
7915 PyThreadState* __tstate = wxPyBeginAllowThreads();
7916 result = (wxCursor *)new wxCursor(arg1);
7917 wxPyEndAllowThreads(__tstate);
7918 if (PyErr_Occurred()) SWIG_fail;
7919 }
7920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7921 return resultobj;
7922 fail:
7923 return NULL;
7924 }
7925
7926
7927 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7928 PyObject *resultobj = 0;
7929 wxImage *arg1 = 0 ;
7930 wxCursor *result = 0 ;
7931 void *argp1 = 0 ;
7932 int res1 = 0 ;
7933 PyObject * obj0 = 0 ;
7934 char * kwnames[] = {
7935 (char *) "image", NULL
7936 };
7937
7938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7939 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7940 if (!SWIG_IsOK(res1)) {
7941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7942 }
7943 if (!argp1) {
7944 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7945 }
7946 arg1 = reinterpret_cast< wxImage * >(argp1);
7947 {
7948 if (!wxPyCheckForApp()) SWIG_fail;
7949 PyThreadState* __tstate = wxPyBeginAllowThreads();
7950 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7951 wxPyEndAllowThreads(__tstate);
7952 if (PyErr_Occurred()) SWIG_fail;
7953 }
7954 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7955 return resultobj;
7956 fail:
7957 return NULL;
7958 }
7959
7960
7961 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7962 PyObject *resultobj = 0;
7963 wxCursor *arg1 = (wxCursor *) 0 ;
7964 long result;
7965 void *argp1 = 0 ;
7966 int res1 = 0 ;
7967 PyObject *swig_obj[1] ;
7968
7969 if (!args) SWIG_fail;
7970 swig_obj[0] = args;
7971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7972 if (!SWIG_IsOK(res1)) {
7973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7974 }
7975 arg1 = reinterpret_cast< wxCursor * >(argp1);
7976 {
7977 PyThreadState* __tstate = wxPyBeginAllowThreads();
7978 result = (long)(arg1)->GetHandle();
7979 wxPyEndAllowThreads(__tstate);
7980 if (PyErr_Occurred()) SWIG_fail;
7981 }
7982 resultobj = SWIG_From_long(static_cast< long >(result));
7983 return resultobj;
7984 fail:
7985 return NULL;
7986 }
7987
7988
7989 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7990 PyObject *resultobj = 0;
7991 wxCursor *arg1 = (wxCursor *) 0 ;
7992 long arg2 ;
7993 void *argp1 = 0 ;
7994 int res1 = 0 ;
7995 long val2 ;
7996 int ecode2 = 0 ;
7997 PyObject * obj0 = 0 ;
7998 PyObject * obj1 = 0 ;
7999 char * kwnames[] = {
8000 (char *) "self",(char *) "handle", NULL
8001 };
8002
8003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
8004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8005 if (!SWIG_IsOK(res1)) {
8006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
8007 }
8008 arg1 = reinterpret_cast< wxCursor * >(argp1);
8009 ecode2 = SWIG_AsVal_long(obj1, &val2);
8010 if (!SWIG_IsOK(ecode2)) {
8011 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
8012 }
8013 arg2 = static_cast< long >(val2);
8014 {
8015 PyThreadState* __tstate = wxPyBeginAllowThreads();
8016 wxCursor_SetHandle(arg1,arg2);
8017 wxPyEndAllowThreads(__tstate);
8018 if (PyErr_Occurred()) SWIG_fail;
8019 }
8020 resultobj = SWIG_Py_Void();
8021 return resultobj;
8022 fail:
8023 return NULL;
8024 }
8025
8026
8027 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8028 PyObject *resultobj = 0;
8029 wxCursor *arg1 = (wxCursor *) 0 ;
8030 bool result;
8031 void *argp1 = 0 ;
8032 int res1 = 0 ;
8033 PyObject *swig_obj[1] ;
8034
8035 if (!args) SWIG_fail;
8036 swig_obj[0] = args;
8037 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8038 if (!SWIG_IsOK(res1)) {
8039 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8040 }
8041 arg1 = reinterpret_cast< wxCursor * >(argp1);
8042 {
8043 PyThreadState* __tstate = wxPyBeginAllowThreads();
8044 result = (bool)(arg1)->Ok();
8045 wxPyEndAllowThreads(__tstate);
8046 if (PyErr_Occurred()) SWIG_fail;
8047 }
8048 {
8049 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8050 }
8051 return resultobj;
8052 fail:
8053 return NULL;
8054 }
8055
8056
8057 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8058 PyObject *resultobj = 0;
8059 wxCursor *arg1 = (wxCursor *) 0 ;
8060 int result;
8061 void *argp1 = 0 ;
8062 int res1 = 0 ;
8063 PyObject *swig_obj[1] ;
8064
8065 if (!args) SWIG_fail;
8066 swig_obj[0] = args;
8067 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8068 if (!SWIG_IsOK(res1)) {
8069 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8070 }
8071 arg1 = reinterpret_cast< wxCursor * >(argp1);
8072 {
8073 PyThreadState* __tstate = wxPyBeginAllowThreads();
8074 result = (int)(arg1)->GetWidth();
8075 wxPyEndAllowThreads(__tstate);
8076 if (PyErr_Occurred()) SWIG_fail;
8077 }
8078 resultobj = SWIG_From_int(static_cast< int >(result));
8079 return resultobj;
8080 fail:
8081 return NULL;
8082 }
8083
8084
8085 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8086 PyObject *resultobj = 0;
8087 wxCursor *arg1 = (wxCursor *) 0 ;
8088 int result;
8089 void *argp1 = 0 ;
8090 int res1 = 0 ;
8091 PyObject *swig_obj[1] ;
8092
8093 if (!args) SWIG_fail;
8094 swig_obj[0] = args;
8095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8096 if (!SWIG_IsOK(res1)) {
8097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8098 }
8099 arg1 = reinterpret_cast< wxCursor * >(argp1);
8100 {
8101 PyThreadState* __tstate = wxPyBeginAllowThreads();
8102 result = (int)(arg1)->GetHeight();
8103 wxPyEndAllowThreads(__tstate);
8104 if (PyErr_Occurred()) SWIG_fail;
8105 }
8106 resultobj = SWIG_From_int(static_cast< int >(result));
8107 return resultobj;
8108 fail:
8109 return NULL;
8110 }
8111
8112
8113 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8114 PyObject *resultobj = 0;
8115 wxCursor *arg1 = (wxCursor *) 0 ;
8116 int result;
8117 void *argp1 = 0 ;
8118 int res1 = 0 ;
8119 PyObject *swig_obj[1] ;
8120
8121 if (!args) SWIG_fail;
8122 swig_obj[0] = args;
8123 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8124 if (!SWIG_IsOK(res1)) {
8125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8126 }
8127 arg1 = reinterpret_cast< wxCursor * >(argp1);
8128 {
8129 PyThreadState* __tstate = wxPyBeginAllowThreads();
8130 result = (int)(arg1)->GetDepth();
8131 wxPyEndAllowThreads(__tstate);
8132 if (PyErr_Occurred()) SWIG_fail;
8133 }
8134 resultobj = SWIG_From_int(static_cast< int >(result));
8135 return resultobj;
8136 fail:
8137 return NULL;
8138 }
8139
8140
8141 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8142 PyObject *resultobj = 0;
8143 wxCursor *arg1 = (wxCursor *) 0 ;
8144 int arg2 ;
8145 void *argp1 = 0 ;
8146 int res1 = 0 ;
8147 int val2 ;
8148 int ecode2 = 0 ;
8149 PyObject * obj0 = 0 ;
8150 PyObject * obj1 = 0 ;
8151 char * kwnames[] = {
8152 (char *) "self",(char *) "w", NULL
8153 };
8154
8155 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8156 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8157 if (!SWIG_IsOK(res1)) {
8158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8159 }
8160 arg1 = reinterpret_cast< wxCursor * >(argp1);
8161 ecode2 = SWIG_AsVal_int(obj1, &val2);
8162 if (!SWIG_IsOK(ecode2)) {
8163 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8164 }
8165 arg2 = static_cast< int >(val2);
8166 {
8167 PyThreadState* __tstate = wxPyBeginAllowThreads();
8168 (arg1)->SetWidth(arg2);
8169 wxPyEndAllowThreads(__tstate);
8170 if (PyErr_Occurred()) SWIG_fail;
8171 }
8172 resultobj = SWIG_Py_Void();
8173 return resultobj;
8174 fail:
8175 return NULL;
8176 }
8177
8178
8179 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8180 PyObject *resultobj = 0;
8181 wxCursor *arg1 = (wxCursor *) 0 ;
8182 int arg2 ;
8183 void *argp1 = 0 ;
8184 int res1 = 0 ;
8185 int val2 ;
8186 int ecode2 = 0 ;
8187 PyObject * obj0 = 0 ;
8188 PyObject * obj1 = 0 ;
8189 char * kwnames[] = {
8190 (char *) "self",(char *) "h", NULL
8191 };
8192
8193 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8194 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8195 if (!SWIG_IsOK(res1)) {
8196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8197 }
8198 arg1 = reinterpret_cast< wxCursor * >(argp1);
8199 ecode2 = SWIG_AsVal_int(obj1, &val2);
8200 if (!SWIG_IsOK(ecode2)) {
8201 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8202 }
8203 arg2 = static_cast< int >(val2);
8204 {
8205 PyThreadState* __tstate = wxPyBeginAllowThreads();
8206 (arg1)->SetHeight(arg2);
8207 wxPyEndAllowThreads(__tstate);
8208 if (PyErr_Occurred()) SWIG_fail;
8209 }
8210 resultobj = SWIG_Py_Void();
8211 return resultobj;
8212 fail:
8213 return NULL;
8214 }
8215
8216
8217 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8218 PyObject *resultobj = 0;
8219 wxCursor *arg1 = (wxCursor *) 0 ;
8220 int arg2 ;
8221 void *argp1 = 0 ;
8222 int res1 = 0 ;
8223 int val2 ;
8224 int ecode2 = 0 ;
8225 PyObject * obj0 = 0 ;
8226 PyObject * obj1 = 0 ;
8227 char * kwnames[] = {
8228 (char *) "self",(char *) "d", NULL
8229 };
8230
8231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8233 if (!SWIG_IsOK(res1)) {
8234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8235 }
8236 arg1 = reinterpret_cast< wxCursor * >(argp1);
8237 ecode2 = SWIG_AsVal_int(obj1, &val2);
8238 if (!SWIG_IsOK(ecode2)) {
8239 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8240 }
8241 arg2 = static_cast< int >(val2);
8242 {
8243 PyThreadState* __tstate = wxPyBeginAllowThreads();
8244 (arg1)->SetDepth(arg2);
8245 wxPyEndAllowThreads(__tstate);
8246 if (PyErr_Occurred()) SWIG_fail;
8247 }
8248 resultobj = SWIG_Py_Void();
8249 return resultobj;
8250 fail:
8251 return NULL;
8252 }
8253
8254
8255 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8256 PyObject *resultobj = 0;
8257 wxCursor *arg1 = (wxCursor *) 0 ;
8258 wxSize *arg2 = 0 ;
8259 void *argp1 = 0 ;
8260 int res1 = 0 ;
8261 wxSize temp2 ;
8262 PyObject * obj0 = 0 ;
8263 PyObject * obj1 = 0 ;
8264 char * kwnames[] = {
8265 (char *) "self",(char *) "size", NULL
8266 };
8267
8268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8270 if (!SWIG_IsOK(res1)) {
8271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8272 }
8273 arg1 = reinterpret_cast< wxCursor * >(argp1);
8274 {
8275 arg2 = &temp2;
8276 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8277 }
8278 {
8279 PyThreadState* __tstate = wxPyBeginAllowThreads();
8280 (arg1)->SetSize((wxSize const &)*arg2);
8281 wxPyEndAllowThreads(__tstate);
8282 if (PyErr_Occurred()) SWIG_fail;
8283 }
8284 resultobj = SWIG_Py_Void();
8285 return resultobj;
8286 fail:
8287 return NULL;
8288 }
8289
8290
8291 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8292 PyObject *obj;
8293 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8294 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8295 return SWIG_Py_Void();
8296 }
8297
8298 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8299 return SWIG_Python_InitShadowInstance(args);
8300 }
8301
8302 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8303 PyObject *resultobj = 0;
8304 int arg1 = (int) 0 ;
8305 int arg2 = (int) 0 ;
8306 int arg3 = (int) 0 ;
8307 int arg4 = (int) 0 ;
8308 wxRegion *result = 0 ;
8309 int val1 ;
8310 int ecode1 = 0 ;
8311 int val2 ;
8312 int ecode2 = 0 ;
8313 int val3 ;
8314 int ecode3 = 0 ;
8315 int val4 ;
8316 int ecode4 = 0 ;
8317 PyObject * obj0 = 0 ;
8318 PyObject * obj1 = 0 ;
8319 PyObject * obj2 = 0 ;
8320 PyObject * obj3 = 0 ;
8321 char * kwnames[] = {
8322 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8323 };
8324
8325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8326 if (obj0) {
8327 ecode1 = SWIG_AsVal_int(obj0, &val1);
8328 if (!SWIG_IsOK(ecode1)) {
8329 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8330 }
8331 arg1 = static_cast< int >(val1);
8332 }
8333 if (obj1) {
8334 ecode2 = SWIG_AsVal_int(obj1, &val2);
8335 if (!SWIG_IsOK(ecode2)) {
8336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8337 }
8338 arg2 = static_cast< int >(val2);
8339 }
8340 if (obj2) {
8341 ecode3 = SWIG_AsVal_int(obj2, &val3);
8342 if (!SWIG_IsOK(ecode3)) {
8343 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8344 }
8345 arg3 = static_cast< int >(val3);
8346 }
8347 if (obj3) {
8348 ecode4 = SWIG_AsVal_int(obj3, &val4);
8349 if (!SWIG_IsOK(ecode4)) {
8350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8351 }
8352 arg4 = static_cast< int >(val4);
8353 }
8354 {
8355 if (!wxPyCheckForApp()) SWIG_fail;
8356 PyThreadState* __tstate = wxPyBeginAllowThreads();
8357 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8358 wxPyEndAllowThreads(__tstate);
8359 if (PyErr_Occurred()) SWIG_fail;
8360 }
8361 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8362 return resultobj;
8363 fail:
8364 return NULL;
8365 }
8366
8367
8368 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8369 PyObject *resultobj = 0;
8370 wxBitmap *arg1 = 0 ;
8371 wxRegion *result = 0 ;
8372 void *argp1 = 0 ;
8373 int res1 = 0 ;
8374 PyObject * obj0 = 0 ;
8375 char * kwnames[] = {
8376 (char *) "bmp", NULL
8377 };
8378
8379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8380 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8381 if (!SWIG_IsOK(res1)) {
8382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8383 }
8384 if (!argp1) {
8385 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8386 }
8387 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8388 {
8389 if (!wxPyCheckForApp()) SWIG_fail;
8390 PyThreadState* __tstate = wxPyBeginAllowThreads();
8391 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8392 wxPyEndAllowThreads(__tstate);
8393 if (PyErr_Occurred()) SWIG_fail;
8394 }
8395 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8396 return resultobj;
8397 fail:
8398 return NULL;
8399 }
8400
8401
8402 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8403 PyObject *resultobj = 0;
8404 wxBitmap *arg1 = 0 ;
8405 wxColour *arg2 = 0 ;
8406 int arg3 = (int) 0 ;
8407 wxRegion *result = 0 ;
8408 void *argp1 = 0 ;
8409 int res1 = 0 ;
8410 wxColour temp2 ;
8411 int val3 ;
8412 int ecode3 = 0 ;
8413 PyObject * obj0 = 0 ;
8414 PyObject * obj1 = 0 ;
8415 PyObject * obj2 = 0 ;
8416 char * kwnames[] = {
8417 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8418 };
8419
8420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8421 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8422 if (!SWIG_IsOK(res1)) {
8423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8424 }
8425 if (!argp1) {
8426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8427 }
8428 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8429 {
8430 arg2 = &temp2;
8431 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8432 }
8433 if (obj2) {
8434 ecode3 = SWIG_AsVal_int(obj2, &val3);
8435 if (!SWIG_IsOK(ecode3)) {
8436 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8437 }
8438 arg3 = static_cast< int >(val3);
8439 }
8440 {
8441 if (!wxPyCheckForApp()) SWIG_fail;
8442 PyThreadState* __tstate = wxPyBeginAllowThreads();
8443 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8444 wxPyEndAllowThreads(__tstate);
8445 if (PyErr_Occurred()) SWIG_fail;
8446 }
8447 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8448 return resultobj;
8449 fail:
8450 return NULL;
8451 }
8452
8453
8454 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8455 PyObject *resultobj = 0;
8456 int arg1 ;
8457 wxPoint *arg2 = (wxPoint *) 0 ;
8458 int arg3 = (int) wxWINDING_RULE ;
8459 wxRegion *result = 0 ;
8460 int val3 ;
8461 int ecode3 = 0 ;
8462 PyObject * obj0 = 0 ;
8463 PyObject * obj1 = 0 ;
8464 char * kwnames[] = {
8465 (char *) "points",(char *) "fillStyle", NULL
8466 };
8467
8468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8469 {
8470 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8471 if (arg2 == NULL) SWIG_fail;
8472 }
8473 if (obj1) {
8474 ecode3 = SWIG_AsVal_int(obj1, &val3);
8475 if (!SWIG_IsOK(ecode3)) {
8476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8477 }
8478 arg3 = static_cast< int >(val3);
8479 }
8480 {
8481 if (!wxPyCheckForApp()) SWIG_fail;
8482 PyThreadState* __tstate = wxPyBeginAllowThreads();
8483 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8484 wxPyEndAllowThreads(__tstate);
8485 if (PyErr_Occurred()) SWIG_fail;
8486 }
8487 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8488 {
8489 if (arg2) delete [] arg2;
8490 }
8491 return resultobj;
8492 fail:
8493 {
8494 if (arg2) delete [] arg2;
8495 }
8496 return NULL;
8497 }
8498
8499
8500 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8501 PyObject *resultobj = 0;
8502 wxRegion *arg1 = (wxRegion *) 0 ;
8503 void *argp1 = 0 ;
8504 int res1 = 0 ;
8505 PyObject *swig_obj[1] ;
8506
8507 if (!args) SWIG_fail;
8508 swig_obj[0] = args;
8509 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8510 if (!SWIG_IsOK(res1)) {
8511 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8512 }
8513 arg1 = reinterpret_cast< wxRegion * >(argp1);
8514 {
8515 PyThreadState* __tstate = wxPyBeginAllowThreads();
8516 delete arg1;
8517
8518 wxPyEndAllowThreads(__tstate);
8519 if (PyErr_Occurred()) SWIG_fail;
8520 }
8521 resultobj = SWIG_Py_Void();
8522 return resultobj;
8523 fail:
8524 return NULL;
8525 }
8526
8527
8528 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8529 PyObject *resultobj = 0;
8530 wxRegion *arg1 = (wxRegion *) 0 ;
8531 void *argp1 = 0 ;
8532 int res1 = 0 ;
8533 PyObject *swig_obj[1] ;
8534
8535 if (!args) SWIG_fail;
8536 swig_obj[0] = args;
8537 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8538 if (!SWIG_IsOK(res1)) {
8539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8540 }
8541 arg1 = reinterpret_cast< wxRegion * >(argp1);
8542 {
8543 PyThreadState* __tstate = wxPyBeginAllowThreads();
8544 (arg1)->Clear();
8545 wxPyEndAllowThreads(__tstate);
8546 if (PyErr_Occurred()) SWIG_fail;
8547 }
8548 resultobj = SWIG_Py_Void();
8549 return resultobj;
8550 fail:
8551 return NULL;
8552 }
8553
8554
8555 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8556 PyObject *resultobj = 0;
8557 wxRegion *arg1 = (wxRegion *) 0 ;
8558 int arg2 ;
8559 int arg3 ;
8560 bool result;
8561 void *argp1 = 0 ;
8562 int res1 = 0 ;
8563 int val2 ;
8564 int ecode2 = 0 ;
8565 int val3 ;
8566 int ecode3 = 0 ;
8567 PyObject * obj0 = 0 ;
8568 PyObject * obj1 = 0 ;
8569 PyObject * obj2 = 0 ;
8570 char * kwnames[] = {
8571 (char *) "self",(char *) "x",(char *) "y", NULL
8572 };
8573
8574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8575 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8576 if (!SWIG_IsOK(res1)) {
8577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8578 }
8579 arg1 = reinterpret_cast< wxRegion * >(argp1);
8580 ecode2 = SWIG_AsVal_int(obj1, &val2);
8581 if (!SWIG_IsOK(ecode2)) {
8582 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8583 }
8584 arg2 = static_cast< int >(val2);
8585 ecode3 = SWIG_AsVal_int(obj2, &val3);
8586 if (!SWIG_IsOK(ecode3)) {
8587 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8588 }
8589 arg3 = static_cast< int >(val3);
8590 {
8591 PyThreadState* __tstate = wxPyBeginAllowThreads();
8592 result = (bool)(arg1)->Offset(arg2,arg3);
8593 wxPyEndAllowThreads(__tstate);
8594 if (PyErr_Occurred()) SWIG_fail;
8595 }
8596 {
8597 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8598 }
8599 return resultobj;
8600 fail:
8601 return NULL;
8602 }
8603
8604
8605 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8606 PyObject *resultobj = 0;
8607 wxRegion *arg1 = (wxRegion *) 0 ;
8608 int arg2 ;
8609 int arg3 ;
8610 wxRegionContain result;
8611 void *argp1 = 0 ;
8612 int res1 = 0 ;
8613 int val2 ;
8614 int ecode2 = 0 ;
8615 int val3 ;
8616 int ecode3 = 0 ;
8617 PyObject * obj0 = 0 ;
8618 PyObject * obj1 = 0 ;
8619 PyObject * obj2 = 0 ;
8620 char * kwnames[] = {
8621 (char *) "self",(char *) "x",(char *) "y", NULL
8622 };
8623
8624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8626 if (!SWIG_IsOK(res1)) {
8627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8628 }
8629 arg1 = reinterpret_cast< wxRegion * >(argp1);
8630 ecode2 = SWIG_AsVal_int(obj1, &val2);
8631 if (!SWIG_IsOK(ecode2)) {
8632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8633 }
8634 arg2 = static_cast< int >(val2);
8635 ecode3 = SWIG_AsVal_int(obj2, &val3);
8636 if (!SWIG_IsOK(ecode3)) {
8637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8638 }
8639 arg3 = static_cast< int >(val3);
8640 {
8641 PyThreadState* __tstate = wxPyBeginAllowThreads();
8642 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8643 wxPyEndAllowThreads(__tstate);
8644 if (PyErr_Occurred()) SWIG_fail;
8645 }
8646 resultobj = SWIG_From_int(static_cast< int >(result));
8647 return resultobj;
8648 fail:
8649 return NULL;
8650 }
8651
8652
8653 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8654 PyObject *resultobj = 0;
8655 wxRegion *arg1 = (wxRegion *) 0 ;
8656 wxPoint *arg2 = 0 ;
8657 wxRegionContain result;
8658 void *argp1 = 0 ;
8659 int res1 = 0 ;
8660 wxPoint temp2 ;
8661 PyObject * obj0 = 0 ;
8662 PyObject * obj1 = 0 ;
8663 char * kwnames[] = {
8664 (char *) "self",(char *) "pt", NULL
8665 };
8666
8667 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8668 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8669 if (!SWIG_IsOK(res1)) {
8670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8671 }
8672 arg1 = reinterpret_cast< wxRegion * >(argp1);
8673 {
8674 arg2 = &temp2;
8675 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8676 }
8677 {
8678 PyThreadState* __tstate = wxPyBeginAllowThreads();
8679 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8680 wxPyEndAllowThreads(__tstate);
8681 if (PyErr_Occurred()) SWIG_fail;
8682 }
8683 resultobj = SWIG_From_int(static_cast< int >(result));
8684 return resultobj;
8685 fail:
8686 return NULL;
8687 }
8688
8689
8690 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8691 PyObject *resultobj = 0;
8692 wxRegion *arg1 = (wxRegion *) 0 ;
8693 wxRect *arg2 = 0 ;
8694 wxRegionContain result;
8695 void *argp1 = 0 ;
8696 int res1 = 0 ;
8697 wxRect temp2 ;
8698 PyObject * obj0 = 0 ;
8699 PyObject * obj1 = 0 ;
8700 char * kwnames[] = {
8701 (char *) "self",(char *) "rect", NULL
8702 };
8703
8704 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8705 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8706 if (!SWIG_IsOK(res1)) {
8707 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8708 }
8709 arg1 = reinterpret_cast< wxRegion * >(argp1);
8710 {
8711 arg2 = &temp2;
8712 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8713 }
8714 {
8715 PyThreadState* __tstate = wxPyBeginAllowThreads();
8716 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8717 wxPyEndAllowThreads(__tstate);
8718 if (PyErr_Occurred()) SWIG_fail;
8719 }
8720 resultobj = SWIG_From_int(static_cast< int >(result));
8721 return resultobj;
8722 fail:
8723 return NULL;
8724 }
8725
8726
8727 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8728 PyObject *resultobj = 0;
8729 wxRegion *arg1 = (wxRegion *) 0 ;
8730 int arg2 ;
8731 int arg3 ;
8732 int arg4 ;
8733 int arg5 ;
8734 wxRegionContain result;
8735 void *argp1 = 0 ;
8736 int res1 = 0 ;
8737 int val2 ;
8738 int ecode2 = 0 ;
8739 int val3 ;
8740 int ecode3 = 0 ;
8741 int val4 ;
8742 int ecode4 = 0 ;
8743 int val5 ;
8744 int ecode5 = 0 ;
8745 PyObject * obj0 = 0 ;
8746 PyObject * obj1 = 0 ;
8747 PyObject * obj2 = 0 ;
8748 PyObject * obj3 = 0 ;
8749 PyObject * obj4 = 0 ;
8750 char * kwnames[] = {
8751 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8752 };
8753
8754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8756 if (!SWIG_IsOK(res1)) {
8757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8758 }
8759 arg1 = reinterpret_cast< wxRegion * >(argp1);
8760 ecode2 = SWIG_AsVal_int(obj1, &val2);
8761 if (!SWIG_IsOK(ecode2)) {
8762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8763 }
8764 arg2 = static_cast< int >(val2);
8765 ecode3 = SWIG_AsVal_int(obj2, &val3);
8766 if (!SWIG_IsOK(ecode3)) {
8767 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8768 }
8769 arg3 = static_cast< int >(val3);
8770 ecode4 = SWIG_AsVal_int(obj3, &val4);
8771 if (!SWIG_IsOK(ecode4)) {
8772 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8773 }
8774 arg4 = static_cast< int >(val4);
8775 ecode5 = SWIG_AsVal_int(obj4, &val5);
8776 if (!SWIG_IsOK(ecode5)) {
8777 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8778 }
8779 arg5 = static_cast< int >(val5);
8780 {
8781 PyThreadState* __tstate = wxPyBeginAllowThreads();
8782 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8783 wxPyEndAllowThreads(__tstate);
8784 if (PyErr_Occurred()) SWIG_fail;
8785 }
8786 resultobj = SWIG_From_int(static_cast< int >(result));
8787 return resultobj;
8788 fail:
8789 return NULL;
8790 }
8791
8792
8793 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8794 PyObject *resultobj = 0;
8795 wxRegion *arg1 = (wxRegion *) 0 ;
8796 wxRect result;
8797 void *argp1 = 0 ;
8798 int res1 = 0 ;
8799 PyObject *swig_obj[1] ;
8800
8801 if (!args) SWIG_fail;
8802 swig_obj[0] = args;
8803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8804 if (!SWIG_IsOK(res1)) {
8805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8806 }
8807 arg1 = reinterpret_cast< wxRegion * >(argp1);
8808 {
8809 PyThreadState* __tstate = wxPyBeginAllowThreads();
8810 result = (arg1)->GetBox();
8811 wxPyEndAllowThreads(__tstate);
8812 if (PyErr_Occurred()) SWIG_fail;
8813 }
8814 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8815 return resultobj;
8816 fail:
8817 return NULL;
8818 }
8819
8820
8821 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8822 PyObject *resultobj = 0;
8823 wxRegion *arg1 = (wxRegion *) 0 ;
8824 int arg2 ;
8825 int arg3 ;
8826 int arg4 ;
8827 int arg5 ;
8828 bool result;
8829 void *argp1 = 0 ;
8830 int res1 = 0 ;
8831 int val2 ;
8832 int ecode2 = 0 ;
8833 int val3 ;
8834 int ecode3 = 0 ;
8835 int val4 ;
8836 int ecode4 = 0 ;
8837 int val5 ;
8838 int ecode5 = 0 ;
8839 PyObject * obj0 = 0 ;
8840 PyObject * obj1 = 0 ;
8841 PyObject * obj2 = 0 ;
8842 PyObject * obj3 = 0 ;
8843 PyObject * obj4 = 0 ;
8844 char * kwnames[] = {
8845 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8846 };
8847
8848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8850 if (!SWIG_IsOK(res1)) {
8851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8852 }
8853 arg1 = reinterpret_cast< wxRegion * >(argp1);
8854 ecode2 = SWIG_AsVal_int(obj1, &val2);
8855 if (!SWIG_IsOK(ecode2)) {
8856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8857 }
8858 arg2 = static_cast< int >(val2);
8859 ecode3 = SWIG_AsVal_int(obj2, &val3);
8860 if (!SWIG_IsOK(ecode3)) {
8861 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8862 }
8863 arg3 = static_cast< int >(val3);
8864 ecode4 = SWIG_AsVal_int(obj3, &val4);
8865 if (!SWIG_IsOK(ecode4)) {
8866 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8867 }
8868 arg4 = static_cast< int >(val4);
8869 ecode5 = SWIG_AsVal_int(obj4, &val5);
8870 if (!SWIG_IsOK(ecode5)) {
8871 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8872 }
8873 arg5 = static_cast< int >(val5);
8874 {
8875 PyThreadState* __tstate = wxPyBeginAllowThreads();
8876 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8877 wxPyEndAllowThreads(__tstate);
8878 if (PyErr_Occurred()) SWIG_fail;
8879 }
8880 {
8881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8882 }
8883 return resultobj;
8884 fail:
8885 return NULL;
8886 }
8887
8888
8889 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8890 PyObject *resultobj = 0;
8891 wxRegion *arg1 = (wxRegion *) 0 ;
8892 wxRect *arg2 = 0 ;
8893 bool result;
8894 void *argp1 = 0 ;
8895 int res1 = 0 ;
8896 wxRect temp2 ;
8897 PyObject * obj0 = 0 ;
8898 PyObject * obj1 = 0 ;
8899 char * kwnames[] = {
8900 (char *) "self",(char *) "rect", NULL
8901 };
8902
8903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8904 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8905 if (!SWIG_IsOK(res1)) {
8906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8907 }
8908 arg1 = reinterpret_cast< wxRegion * >(argp1);
8909 {
8910 arg2 = &temp2;
8911 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8912 }
8913 {
8914 PyThreadState* __tstate = wxPyBeginAllowThreads();
8915 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8916 wxPyEndAllowThreads(__tstate);
8917 if (PyErr_Occurred()) SWIG_fail;
8918 }
8919 {
8920 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8921 }
8922 return resultobj;
8923 fail:
8924 return NULL;
8925 }
8926
8927
8928 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8929 PyObject *resultobj = 0;
8930 wxRegion *arg1 = (wxRegion *) 0 ;
8931 wxRegion *arg2 = 0 ;
8932 bool result;
8933 void *argp1 = 0 ;
8934 int res1 = 0 ;
8935 void *argp2 = 0 ;
8936 int res2 = 0 ;
8937 PyObject * obj0 = 0 ;
8938 PyObject * obj1 = 0 ;
8939 char * kwnames[] = {
8940 (char *) "self",(char *) "region", NULL
8941 };
8942
8943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8945 if (!SWIG_IsOK(res1)) {
8946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8947 }
8948 arg1 = reinterpret_cast< wxRegion * >(argp1);
8949 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8950 if (!SWIG_IsOK(res2)) {
8951 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8952 }
8953 if (!argp2) {
8954 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8955 }
8956 arg2 = reinterpret_cast< wxRegion * >(argp2);
8957 {
8958 PyThreadState* __tstate = wxPyBeginAllowThreads();
8959 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8960 wxPyEndAllowThreads(__tstate);
8961 if (PyErr_Occurred()) SWIG_fail;
8962 }
8963 {
8964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8965 }
8966 return resultobj;
8967 fail:
8968 return NULL;
8969 }
8970
8971
8972 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8973 PyObject *resultobj = 0;
8974 wxRegion *arg1 = (wxRegion *) 0 ;
8975 bool result;
8976 void *argp1 = 0 ;
8977 int res1 = 0 ;
8978 PyObject *swig_obj[1] ;
8979
8980 if (!args) SWIG_fail;
8981 swig_obj[0] = args;
8982 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8983 if (!SWIG_IsOK(res1)) {
8984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8985 }
8986 arg1 = reinterpret_cast< wxRegion * >(argp1);
8987 {
8988 PyThreadState* __tstate = wxPyBeginAllowThreads();
8989 result = (bool)(arg1)->IsEmpty();
8990 wxPyEndAllowThreads(__tstate);
8991 if (PyErr_Occurred()) SWIG_fail;
8992 }
8993 {
8994 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8995 }
8996 return resultobj;
8997 fail:
8998 return NULL;
8999 }
9000
9001
9002 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9003 PyObject *resultobj = 0;
9004 wxRegion *arg1 = (wxRegion *) 0 ;
9005 int arg2 ;
9006 int arg3 ;
9007 int arg4 ;
9008 int arg5 ;
9009 bool result;
9010 void *argp1 = 0 ;
9011 int res1 = 0 ;
9012 int val2 ;
9013 int ecode2 = 0 ;
9014 int val3 ;
9015 int ecode3 = 0 ;
9016 int val4 ;
9017 int ecode4 = 0 ;
9018 int val5 ;
9019 int ecode5 = 0 ;
9020 PyObject * obj0 = 0 ;
9021 PyObject * obj1 = 0 ;
9022 PyObject * obj2 = 0 ;
9023 PyObject * obj3 = 0 ;
9024 PyObject * obj4 = 0 ;
9025 char * kwnames[] = {
9026 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9027 };
9028
9029 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9030 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9031 if (!SWIG_IsOK(res1)) {
9032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9033 }
9034 arg1 = reinterpret_cast< wxRegion * >(argp1);
9035 ecode2 = SWIG_AsVal_int(obj1, &val2);
9036 if (!SWIG_IsOK(ecode2)) {
9037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9038 }
9039 arg2 = static_cast< int >(val2);
9040 ecode3 = SWIG_AsVal_int(obj2, &val3);
9041 if (!SWIG_IsOK(ecode3)) {
9042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9043 }
9044 arg3 = static_cast< int >(val3);
9045 ecode4 = SWIG_AsVal_int(obj3, &val4);
9046 if (!SWIG_IsOK(ecode4)) {
9047 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9048 }
9049 arg4 = static_cast< int >(val4);
9050 ecode5 = SWIG_AsVal_int(obj4, &val5);
9051 if (!SWIG_IsOK(ecode5)) {
9052 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9053 }
9054 arg5 = static_cast< int >(val5);
9055 {
9056 PyThreadState* __tstate = wxPyBeginAllowThreads();
9057 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9058 wxPyEndAllowThreads(__tstate);
9059 if (PyErr_Occurred()) SWIG_fail;
9060 }
9061 {
9062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9063 }
9064 return resultobj;
9065 fail:
9066 return NULL;
9067 }
9068
9069
9070 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9071 PyObject *resultobj = 0;
9072 wxRegion *arg1 = (wxRegion *) 0 ;
9073 wxRect *arg2 = 0 ;
9074 bool result;
9075 void *argp1 = 0 ;
9076 int res1 = 0 ;
9077 wxRect temp2 ;
9078 PyObject * obj0 = 0 ;
9079 PyObject * obj1 = 0 ;
9080 char * kwnames[] = {
9081 (char *) "self",(char *) "rect", NULL
9082 };
9083
9084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9086 if (!SWIG_IsOK(res1)) {
9087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9088 }
9089 arg1 = reinterpret_cast< wxRegion * >(argp1);
9090 {
9091 arg2 = &temp2;
9092 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9093 }
9094 {
9095 PyThreadState* __tstate = wxPyBeginAllowThreads();
9096 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9097 wxPyEndAllowThreads(__tstate);
9098 if (PyErr_Occurred()) SWIG_fail;
9099 }
9100 {
9101 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9102 }
9103 return resultobj;
9104 fail:
9105 return NULL;
9106 }
9107
9108
9109 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9110 PyObject *resultobj = 0;
9111 wxRegion *arg1 = (wxRegion *) 0 ;
9112 wxRegion *arg2 = 0 ;
9113 bool result;
9114 void *argp1 = 0 ;
9115 int res1 = 0 ;
9116 void *argp2 = 0 ;
9117 int res2 = 0 ;
9118 PyObject * obj0 = 0 ;
9119 PyObject * obj1 = 0 ;
9120 char * kwnames[] = {
9121 (char *) "self",(char *) "region", NULL
9122 };
9123
9124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9126 if (!SWIG_IsOK(res1)) {
9127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9128 }
9129 arg1 = reinterpret_cast< wxRegion * >(argp1);
9130 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9131 if (!SWIG_IsOK(res2)) {
9132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9133 }
9134 if (!argp2) {
9135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9136 }
9137 arg2 = reinterpret_cast< wxRegion * >(argp2);
9138 {
9139 PyThreadState* __tstate = wxPyBeginAllowThreads();
9140 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9141 wxPyEndAllowThreads(__tstate);
9142 if (PyErr_Occurred()) SWIG_fail;
9143 }
9144 {
9145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9146 }
9147 return resultobj;
9148 fail:
9149 return NULL;
9150 }
9151
9152
9153 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9154 PyObject *resultobj = 0;
9155 wxRegion *arg1 = (wxRegion *) 0 ;
9156 int arg2 ;
9157 int arg3 ;
9158 int arg4 ;
9159 int arg5 ;
9160 bool result;
9161 void *argp1 = 0 ;
9162 int res1 = 0 ;
9163 int val2 ;
9164 int ecode2 = 0 ;
9165 int val3 ;
9166 int ecode3 = 0 ;
9167 int val4 ;
9168 int ecode4 = 0 ;
9169 int val5 ;
9170 int ecode5 = 0 ;
9171 PyObject * obj0 = 0 ;
9172 PyObject * obj1 = 0 ;
9173 PyObject * obj2 = 0 ;
9174 PyObject * obj3 = 0 ;
9175 PyObject * obj4 = 0 ;
9176 char * kwnames[] = {
9177 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9178 };
9179
9180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9182 if (!SWIG_IsOK(res1)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9184 }
9185 arg1 = reinterpret_cast< wxRegion * >(argp1);
9186 ecode2 = SWIG_AsVal_int(obj1, &val2);
9187 if (!SWIG_IsOK(ecode2)) {
9188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9189 }
9190 arg2 = static_cast< int >(val2);
9191 ecode3 = SWIG_AsVal_int(obj2, &val3);
9192 if (!SWIG_IsOK(ecode3)) {
9193 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9194 }
9195 arg3 = static_cast< int >(val3);
9196 ecode4 = SWIG_AsVal_int(obj3, &val4);
9197 if (!SWIG_IsOK(ecode4)) {
9198 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9199 }
9200 arg4 = static_cast< int >(val4);
9201 ecode5 = SWIG_AsVal_int(obj4, &val5);
9202 if (!SWIG_IsOK(ecode5)) {
9203 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9204 }
9205 arg5 = static_cast< int >(val5);
9206 {
9207 PyThreadState* __tstate = wxPyBeginAllowThreads();
9208 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9209 wxPyEndAllowThreads(__tstate);
9210 if (PyErr_Occurred()) SWIG_fail;
9211 }
9212 {
9213 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9214 }
9215 return resultobj;
9216 fail:
9217 return NULL;
9218 }
9219
9220
9221 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9222 PyObject *resultobj = 0;
9223 wxRegion *arg1 = (wxRegion *) 0 ;
9224 wxRect *arg2 = 0 ;
9225 bool result;
9226 void *argp1 = 0 ;
9227 int res1 = 0 ;
9228 wxRect temp2 ;
9229 PyObject * obj0 = 0 ;
9230 PyObject * obj1 = 0 ;
9231 char * kwnames[] = {
9232 (char *) "self",(char *) "rect", NULL
9233 };
9234
9235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9237 if (!SWIG_IsOK(res1)) {
9238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9239 }
9240 arg1 = reinterpret_cast< wxRegion * >(argp1);
9241 {
9242 arg2 = &temp2;
9243 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9244 }
9245 {
9246 PyThreadState* __tstate = wxPyBeginAllowThreads();
9247 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9248 wxPyEndAllowThreads(__tstate);
9249 if (PyErr_Occurred()) SWIG_fail;
9250 }
9251 {
9252 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9253 }
9254 return resultobj;
9255 fail:
9256 return NULL;
9257 }
9258
9259
9260 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9261 PyObject *resultobj = 0;
9262 wxRegion *arg1 = (wxRegion *) 0 ;
9263 wxRegion *arg2 = 0 ;
9264 bool result;
9265 void *argp1 = 0 ;
9266 int res1 = 0 ;
9267 void *argp2 = 0 ;
9268 int res2 = 0 ;
9269 PyObject * obj0 = 0 ;
9270 PyObject * obj1 = 0 ;
9271 char * kwnames[] = {
9272 (char *) "self",(char *) "region", NULL
9273 };
9274
9275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9277 if (!SWIG_IsOK(res1)) {
9278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9279 }
9280 arg1 = reinterpret_cast< wxRegion * >(argp1);
9281 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9282 if (!SWIG_IsOK(res2)) {
9283 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9284 }
9285 if (!argp2) {
9286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9287 }
9288 arg2 = reinterpret_cast< wxRegion * >(argp2);
9289 {
9290 PyThreadState* __tstate = wxPyBeginAllowThreads();
9291 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9292 wxPyEndAllowThreads(__tstate);
9293 if (PyErr_Occurred()) SWIG_fail;
9294 }
9295 {
9296 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9297 }
9298 return resultobj;
9299 fail:
9300 return NULL;
9301 }
9302
9303
9304 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9305 PyObject *resultobj = 0;
9306 wxRegion *arg1 = (wxRegion *) 0 ;
9307 int arg2 ;
9308 int arg3 ;
9309 int arg4 ;
9310 int arg5 ;
9311 bool result;
9312 void *argp1 = 0 ;
9313 int res1 = 0 ;
9314 int val2 ;
9315 int ecode2 = 0 ;
9316 int val3 ;
9317 int ecode3 = 0 ;
9318 int val4 ;
9319 int ecode4 = 0 ;
9320 int val5 ;
9321 int ecode5 = 0 ;
9322 PyObject * obj0 = 0 ;
9323 PyObject * obj1 = 0 ;
9324 PyObject * obj2 = 0 ;
9325 PyObject * obj3 = 0 ;
9326 PyObject * obj4 = 0 ;
9327 char * kwnames[] = {
9328 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9329 };
9330
9331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9333 if (!SWIG_IsOK(res1)) {
9334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9335 }
9336 arg1 = reinterpret_cast< wxRegion * >(argp1);
9337 ecode2 = SWIG_AsVal_int(obj1, &val2);
9338 if (!SWIG_IsOK(ecode2)) {
9339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9340 }
9341 arg2 = static_cast< int >(val2);
9342 ecode3 = SWIG_AsVal_int(obj2, &val3);
9343 if (!SWIG_IsOK(ecode3)) {
9344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9345 }
9346 arg3 = static_cast< int >(val3);
9347 ecode4 = SWIG_AsVal_int(obj3, &val4);
9348 if (!SWIG_IsOK(ecode4)) {
9349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9350 }
9351 arg4 = static_cast< int >(val4);
9352 ecode5 = SWIG_AsVal_int(obj4, &val5);
9353 if (!SWIG_IsOK(ecode5)) {
9354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9355 }
9356 arg5 = static_cast< int >(val5);
9357 {
9358 PyThreadState* __tstate = wxPyBeginAllowThreads();
9359 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9360 wxPyEndAllowThreads(__tstate);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 }
9363 {
9364 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9365 }
9366 return resultobj;
9367 fail:
9368 return NULL;
9369 }
9370
9371
9372 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9373 PyObject *resultobj = 0;
9374 wxRegion *arg1 = (wxRegion *) 0 ;
9375 wxRect *arg2 = 0 ;
9376 bool result;
9377 void *argp1 = 0 ;
9378 int res1 = 0 ;
9379 wxRect temp2 ;
9380 PyObject * obj0 = 0 ;
9381 PyObject * obj1 = 0 ;
9382 char * kwnames[] = {
9383 (char *) "self",(char *) "rect", NULL
9384 };
9385
9386 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9387 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9388 if (!SWIG_IsOK(res1)) {
9389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9390 }
9391 arg1 = reinterpret_cast< wxRegion * >(argp1);
9392 {
9393 arg2 = &temp2;
9394 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9395 }
9396 {
9397 PyThreadState* __tstate = wxPyBeginAllowThreads();
9398 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9399 wxPyEndAllowThreads(__tstate);
9400 if (PyErr_Occurred()) SWIG_fail;
9401 }
9402 {
9403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9404 }
9405 return resultobj;
9406 fail:
9407 return NULL;
9408 }
9409
9410
9411 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9412 PyObject *resultobj = 0;
9413 wxRegion *arg1 = (wxRegion *) 0 ;
9414 wxRegion *arg2 = 0 ;
9415 bool result;
9416 void *argp1 = 0 ;
9417 int res1 = 0 ;
9418 void *argp2 = 0 ;
9419 int res2 = 0 ;
9420 PyObject * obj0 = 0 ;
9421 PyObject * obj1 = 0 ;
9422 char * kwnames[] = {
9423 (char *) "self",(char *) "region", NULL
9424 };
9425
9426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9428 if (!SWIG_IsOK(res1)) {
9429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9430 }
9431 arg1 = reinterpret_cast< wxRegion * >(argp1);
9432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9433 if (!SWIG_IsOK(res2)) {
9434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9435 }
9436 if (!argp2) {
9437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9438 }
9439 arg2 = reinterpret_cast< wxRegion * >(argp2);
9440 {
9441 PyThreadState* __tstate = wxPyBeginAllowThreads();
9442 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9443 wxPyEndAllowThreads(__tstate);
9444 if (PyErr_Occurred()) SWIG_fail;
9445 }
9446 {
9447 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9448 }
9449 return resultobj;
9450 fail:
9451 return NULL;
9452 }
9453
9454
9455 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9456 PyObject *resultobj = 0;
9457 wxRegion *arg1 = (wxRegion *) 0 ;
9458 SwigValueWrapper<wxBitmap > result;
9459 void *argp1 = 0 ;
9460 int res1 = 0 ;
9461 PyObject *swig_obj[1] ;
9462
9463 if (!args) SWIG_fail;
9464 swig_obj[0] = args;
9465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9466 if (!SWIG_IsOK(res1)) {
9467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9468 }
9469 arg1 = reinterpret_cast< wxRegion * >(argp1);
9470 {
9471 PyThreadState* __tstate = wxPyBeginAllowThreads();
9472 result = (arg1)->ConvertToBitmap();
9473 wxPyEndAllowThreads(__tstate);
9474 if (PyErr_Occurred()) SWIG_fail;
9475 }
9476 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9477 return resultobj;
9478 fail:
9479 return NULL;
9480 }
9481
9482
9483 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9484 PyObject *resultobj = 0;
9485 wxRegion *arg1 = (wxRegion *) 0 ;
9486 wxBitmap *arg2 = 0 ;
9487 bool result;
9488 void *argp1 = 0 ;
9489 int res1 = 0 ;
9490 void *argp2 = 0 ;
9491 int res2 = 0 ;
9492 PyObject * obj0 = 0 ;
9493 PyObject * obj1 = 0 ;
9494 char * kwnames[] = {
9495 (char *) "self",(char *) "bmp", NULL
9496 };
9497
9498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9499 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9500 if (!SWIG_IsOK(res1)) {
9501 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9502 }
9503 arg1 = reinterpret_cast< wxRegion * >(argp1);
9504 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9505 if (!SWIG_IsOK(res2)) {
9506 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9507 }
9508 if (!argp2) {
9509 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9510 }
9511 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9512 {
9513 PyThreadState* __tstate = wxPyBeginAllowThreads();
9514 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9515 wxPyEndAllowThreads(__tstate);
9516 if (PyErr_Occurred()) SWIG_fail;
9517 }
9518 {
9519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9520 }
9521 return resultobj;
9522 fail:
9523 return NULL;
9524 }
9525
9526
9527 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9528 PyObject *resultobj = 0;
9529 wxRegion *arg1 = (wxRegion *) 0 ;
9530 wxBitmap *arg2 = 0 ;
9531 wxColour *arg3 = 0 ;
9532 int arg4 = (int) 0 ;
9533 bool result;
9534 void *argp1 = 0 ;
9535 int res1 = 0 ;
9536 void *argp2 = 0 ;
9537 int res2 = 0 ;
9538 wxColour temp3 ;
9539 int val4 ;
9540 int ecode4 = 0 ;
9541 PyObject * obj0 = 0 ;
9542 PyObject * obj1 = 0 ;
9543 PyObject * obj2 = 0 ;
9544 PyObject * obj3 = 0 ;
9545 char * kwnames[] = {
9546 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9547 };
9548
9549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9551 if (!SWIG_IsOK(res1)) {
9552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9553 }
9554 arg1 = reinterpret_cast< wxRegion * >(argp1);
9555 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9556 if (!SWIG_IsOK(res2)) {
9557 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9558 }
9559 if (!argp2) {
9560 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9561 }
9562 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9563 {
9564 arg3 = &temp3;
9565 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9566 }
9567 if (obj3) {
9568 ecode4 = SWIG_AsVal_int(obj3, &val4);
9569 if (!SWIG_IsOK(ecode4)) {
9570 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9571 }
9572 arg4 = static_cast< int >(val4);
9573 }
9574 {
9575 PyThreadState* __tstate = wxPyBeginAllowThreads();
9576 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9577 wxPyEndAllowThreads(__tstate);
9578 if (PyErr_Occurred()) SWIG_fail;
9579 }
9580 {
9581 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9582 }
9583 return resultobj;
9584 fail:
9585 return NULL;
9586 }
9587
9588
9589 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9590 PyObject *obj;
9591 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9592 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9593 return SWIG_Py_Void();
9594 }
9595
9596 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9597 return SWIG_Python_InitShadowInstance(args);
9598 }
9599
9600 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9601 PyObject *resultobj = 0;
9602 wxRegion *arg1 = 0 ;
9603 wxRegionIterator *result = 0 ;
9604 void *argp1 = 0 ;
9605 int res1 = 0 ;
9606 PyObject * obj0 = 0 ;
9607 char * kwnames[] = {
9608 (char *) "region", NULL
9609 };
9610
9611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9612 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9613 if (!SWIG_IsOK(res1)) {
9614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9615 }
9616 if (!argp1) {
9617 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9618 }
9619 arg1 = reinterpret_cast< wxRegion * >(argp1);
9620 {
9621 if (!wxPyCheckForApp()) SWIG_fail;
9622 PyThreadState* __tstate = wxPyBeginAllowThreads();
9623 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9624 wxPyEndAllowThreads(__tstate);
9625 if (PyErr_Occurred()) SWIG_fail;
9626 }
9627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9628 return resultobj;
9629 fail:
9630 return NULL;
9631 }
9632
9633
9634 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9635 PyObject *resultobj = 0;
9636 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9637 void *argp1 = 0 ;
9638 int res1 = 0 ;
9639 PyObject *swig_obj[1] ;
9640
9641 if (!args) SWIG_fail;
9642 swig_obj[0] = args;
9643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9644 if (!SWIG_IsOK(res1)) {
9645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9646 }
9647 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9648 {
9649 PyThreadState* __tstate = wxPyBeginAllowThreads();
9650 delete arg1;
9651
9652 wxPyEndAllowThreads(__tstate);
9653 if (PyErr_Occurred()) SWIG_fail;
9654 }
9655 resultobj = SWIG_Py_Void();
9656 return resultobj;
9657 fail:
9658 return NULL;
9659 }
9660
9661
9662 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9663 PyObject *resultobj = 0;
9664 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9665 int result;
9666 void *argp1 = 0 ;
9667 int res1 = 0 ;
9668 PyObject *swig_obj[1] ;
9669
9670 if (!args) SWIG_fail;
9671 swig_obj[0] = args;
9672 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9673 if (!SWIG_IsOK(res1)) {
9674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9675 }
9676 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9677 {
9678 PyThreadState* __tstate = wxPyBeginAllowThreads();
9679 result = (int)(arg1)->GetX();
9680 wxPyEndAllowThreads(__tstate);
9681 if (PyErr_Occurred()) SWIG_fail;
9682 }
9683 resultobj = SWIG_From_int(static_cast< int >(result));
9684 return resultobj;
9685 fail:
9686 return NULL;
9687 }
9688
9689
9690 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9691 PyObject *resultobj = 0;
9692 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9693 int result;
9694 void *argp1 = 0 ;
9695 int res1 = 0 ;
9696 PyObject *swig_obj[1] ;
9697
9698 if (!args) SWIG_fail;
9699 swig_obj[0] = args;
9700 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9701 if (!SWIG_IsOK(res1)) {
9702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9703 }
9704 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 result = (int)(arg1)->GetY();
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 resultobj = SWIG_From_int(static_cast< int >(result));
9712 return resultobj;
9713 fail:
9714 return NULL;
9715 }
9716
9717
9718 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9719 PyObject *resultobj = 0;
9720 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9721 int result;
9722 void *argp1 = 0 ;
9723 int res1 = 0 ;
9724 PyObject *swig_obj[1] ;
9725
9726 if (!args) SWIG_fail;
9727 swig_obj[0] = args;
9728 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9729 if (!SWIG_IsOK(res1)) {
9730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9731 }
9732 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9733 {
9734 PyThreadState* __tstate = wxPyBeginAllowThreads();
9735 result = (int)(arg1)->GetW();
9736 wxPyEndAllowThreads(__tstate);
9737 if (PyErr_Occurred()) SWIG_fail;
9738 }
9739 resultobj = SWIG_From_int(static_cast< int >(result));
9740 return resultobj;
9741 fail:
9742 return NULL;
9743 }
9744
9745
9746 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9747 PyObject *resultobj = 0;
9748 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9749 int result;
9750 void *argp1 = 0 ;
9751 int res1 = 0 ;
9752 PyObject *swig_obj[1] ;
9753
9754 if (!args) SWIG_fail;
9755 swig_obj[0] = args;
9756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9757 if (!SWIG_IsOK(res1)) {
9758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9759 }
9760 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9761 {
9762 PyThreadState* __tstate = wxPyBeginAllowThreads();
9763 result = (int)(arg1)->GetWidth();
9764 wxPyEndAllowThreads(__tstate);
9765 if (PyErr_Occurred()) SWIG_fail;
9766 }
9767 resultobj = SWIG_From_int(static_cast< int >(result));
9768 return resultobj;
9769 fail:
9770 return NULL;
9771 }
9772
9773
9774 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9775 PyObject *resultobj = 0;
9776 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9777 int result;
9778 void *argp1 = 0 ;
9779 int res1 = 0 ;
9780 PyObject *swig_obj[1] ;
9781
9782 if (!args) SWIG_fail;
9783 swig_obj[0] = args;
9784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9785 if (!SWIG_IsOK(res1)) {
9786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9787 }
9788 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9789 {
9790 PyThreadState* __tstate = wxPyBeginAllowThreads();
9791 result = (int)(arg1)->GetH();
9792 wxPyEndAllowThreads(__tstate);
9793 if (PyErr_Occurred()) SWIG_fail;
9794 }
9795 resultobj = SWIG_From_int(static_cast< int >(result));
9796 return resultobj;
9797 fail:
9798 return NULL;
9799 }
9800
9801
9802 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9803 PyObject *resultobj = 0;
9804 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9805 int result;
9806 void *argp1 = 0 ;
9807 int res1 = 0 ;
9808 PyObject *swig_obj[1] ;
9809
9810 if (!args) SWIG_fail;
9811 swig_obj[0] = args;
9812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9813 if (!SWIG_IsOK(res1)) {
9814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9815 }
9816 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9817 {
9818 PyThreadState* __tstate = wxPyBeginAllowThreads();
9819 result = (int)(arg1)->GetHeight();
9820 wxPyEndAllowThreads(__tstate);
9821 if (PyErr_Occurred()) SWIG_fail;
9822 }
9823 resultobj = SWIG_From_int(static_cast< int >(result));
9824 return resultobj;
9825 fail:
9826 return NULL;
9827 }
9828
9829
9830 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9831 PyObject *resultobj = 0;
9832 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9833 wxRect result;
9834 void *argp1 = 0 ;
9835 int res1 = 0 ;
9836 PyObject *swig_obj[1] ;
9837
9838 if (!args) SWIG_fail;
9839 swig_obj[0] = args;
9840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9841 if (!SWIG_IsOK(res1)) {
9842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9843 }
9844 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9845 {
9846 PyThreadState* __tstate = wxPyBeginAllowThreads();
9847 result = (arg1)->GetRect();
9848 wxPyEndAllowThreads(__tstate);
9849 if (PyErr_Occurred()) SWIG_fail;
9850 }
9851 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9852 return resultobj;
9853 fail:
9854 return NULL;
9855 }
9856
9857
9858 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9859 PyObject *resultobj = 0;
9860 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9861 bool result;
9862 void *argp1 = 0 ;
9863 int res1 = 0 ;
9864 PyObject *swig_obj[1] ;
9865
9866 if (!args) SWIG_fail;
9867 swig_obj[0] = args;
9868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9869 if (!SWIG_IsOK(res1)) {
9870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9871 }
9872 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9873 {
9874 PyThreadState* __tstate = wxPyBeginAllowThreads();
9875 result = (bool)(arg1)->HaveRects();
9876 wxPyEndAllowThreads(__tstate);
9877 if (PyErr_Occurred()) SWIG_fail;
9878 }
9879 {
9880 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9881 }
9882 return resultobj;
9883 fail:
9884 return NULL;
9885 }
9886
9887
9888 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9889 PyObject *resultobj = 0;
9890 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9891 void *argp1 = 0 ;
9892 int res1 = 0 ;
9893 PyObject *swig_obj[1] ;
9894
9895 if (!args) SWIG_fail;
9896 swig_obj[0] = args;
9897 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9898 if (!SWIG_IsOK(res1)) {
9899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9900 }
9901 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9902 {
9903 PyThreadState* __tstate = wxPyBeginAllowThreads();
9904 (arg1)->Reset();
9905 wxPyEndAllowThreads(__tstate);
9906 if (PyErr_Occurred()) SWIG_fail;
9907 }
9908 resultobj = SWIG_Py_Void();
9909 return resultobj;
9910 fail:
9911 return NULL;
9912 }
9913
9914
9915 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9916 PyObject *resultobj = 0;
9917 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9918 void *argp1 = 0 ;
9919 int res1 = 0 ;
9920 PyObject *swig_obj[1] ;
9921
9922 if (!args) SWIG_fail;
9923 swig_obj[0] = args;
9924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9925 if (!SWIG_IsOK(res1)) {
9926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9927 }
9928 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9929 {
9930 PyThreadState* __tstate = wxPyBeginAllowThreads();
9931 wxRegionIterator_Next(arg1);
9932 wxPyEndAllowThreads(__tstate);
9933 if (PyErr_Occurred()) SWIG_fail;
9934 }
9935 resultobj = SWIG_Py_Void();
9936 return resultobj;
9937 fail:
9938 return NULL;
9939 }
9940
9941
9942 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9943 PyObject *resultobj = 0;
9944 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9945 bool result;
9946 void *argp1 = 0 ;
9947 int res1 = 0 ;
9948 PyObject *swig_obj[1] ;
9949
9950 if (!args) SWIG_fail;
9951 swig_obj[0] = args;
9952 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9953 if (!SWIG_IsOK(res1)) {
9954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9955 }
9956 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9957 {
9958 PyThreadState* __tstate = wxPyBeginAllowThreads();
9959 result = (bool)wxRegionIterator___nonzero__(arg1);
9960 wxPyEndAllowThreads(__tstate);
9961 if (PyErr_Occurred()) SWIG_fail;
9962 }
9963 {
9964 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9965 }
9966 return resultobj;
9967 fail:
9968 return NULL;
9969 }
9970
9971
9972 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9973 PyObject *obj;
9974 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9975 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9976 return SWIG_Py_Void();
9977 }
9978
9979 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9980 return SWIG_Python_InitShadowInstance(args);
9981 }
9982
9983 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9984 PyObject *resultobj = 0;
9985 wxNativeFontInfo *result = 0 ;
9986
9987 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9988 {
9989 PyThreadState* __tstate = wxPyBeginAllowThreads();
9990 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9991 wxPyEndAllowThreads(__tstate);
9992 if (PyErr_Occurred()) SWIG_fail;
9993 }
9994 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9995 return resultobj;
9996 fail:
9997 return NULL;
9998 }
9999
10000
10001 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10002 PyObject *resultobj = 0;
10003 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10004 void *argp1 = 0 ;
10005 int res1 = 0 ;
10006 PyObject *swig_obj[1] ;
10007
10008 if (!args) SWIG_fail;
10009 swig_obj[0] = args;
10010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
10011 if (!SWIG_IsOK(res1)) {
10012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10013 }
10014 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10015 {
10016 PyThreadState* __tstate = wxPyBeginAllowThreads();
10017 delete arg1;
10018
10019 wxPyEndAllowThreads(__tstate);
10020 if (PyErr_Occurred()) SWIG_fail;
10021 }
10022 resultobj = SWIG_Py_Void();
10023 return resultobj;
10024 fail:
10025 return NULL;
10026 }
10027
10028
10029 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10030 PyObject *resultobj = 0;
10031 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10032 void *argp1 = 0 ;
10033 int res1 = 0 ;
10034 PyObject *swig_obj[1] ;
10035
10036 if (!args) SWIG_fail;
10037 swig_obj[0] = args;
10038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10041 }
10042 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10043 {
10044 PyThreadState* __tstate = wxPyBeginAllowThreads();
10045 (arg1)->Init();
10046 wxPyEndAllowThreads(__tstate);
10047 if (PyErr_Occurred()) SWIG_fail;
10048 }
10049 resultobj = SWIG_Py_Void();
10050 return resultobj;
10051 fail:
10052 return NULL;
10053 }
10054
10055
10056 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10057 PyObject *resultobj = 0;
10058 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10059 wxFont *arg2 = 0 ;
10060 void *argp1 = 0 ;
10061 int res1 = 0 ;
10062 void *argp2 = 0 ;
10063 int res2 = 0 ;
10064 PyObject * obj0 = 0 ;
10065 PyObject * obj1 = 0 ;
10066 char * kwnames[] = {
10067 (char *) "self",(char *) "font", NULL
10068 };
10069
10070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10071 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10072 if (!SWIG_IsOK(res1)) {
10073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10074 }
10075 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10076 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10077 if (!SWIG_IsOK(res2)) {
10078 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10079 }
10080 if (!argp2) {
10081 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10082 }
10083 arg2 = reinterpret_cast< wxFont * >(argp2);
10084 {
10085 PyThreadState* __tstate = wxPyBeginAllowThreads();
10086 (arg1)->InitFromFont((wxFont const &)*arg2);
10087 wxPyEndAllowThreads(__tstate);
10088 if (PyErr_Occurred()) SWIG_fail;
10089 }
10090 resultobj = SWIG_Py_Void();
10091 return resultobj;
10092 fail:
10093 return NULL;
10094 }
10095
10096
10097 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10098 PyObject *resultobj = 0;
10099 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10100 int result;
10101 void *argp1 = 0 ;
10102 int res1 = 0 ;
10103 PyObject *swig_obj[1] ;
10104
10105 if (!args) SWIG_fail;
10106 swig_obj[0] = args;
10107 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10108 if (!SWIG_IsOK(res1)) {
10109 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10110 }
10111 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10112 {
10113 PyThreadState* __tstate = wxPyBeginAllowThreads();
10114 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10115 wxPyEndAllowThreads(__tstate);
10116 if (PyErr_Occurred()) SWIG_fail;
10117 }
10118 resultobj = SWIG_From_int(static_cast< int >(result));
10119 return resultobj;
10120 fail:
10121 return NULL;
10122 }
10123
10124
10125 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10126 PyObject *resultobj = 0;
10127 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10128 wxSize result;
10129 void *argp1 = 0 ;
10130 int res1 = 0 ;
10131 PyObject *swig_obj[1] ;
10132
10133 if (!args) SWIG_fail;
10134 swig_obj[0] = args;
10135 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10136 if (!SWIG_IsOK(res1)) {
10137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10138 }
10139 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10140 {
10141 PyThreadState* __tstate = wxPyBeginAllowThreads();
10142 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10143 wxPyEndAllowThreads(__tstate);
10144 if (PyErr_Occurred()) SWIG_fail;
10145 }
10146 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10147 return resultobj;
10148 fail:
10149 return NULL;
10150 }
10151
10152
10153 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10154 PyObject *resultobj = 0;
10155 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10156 wxFontStyle result;
10157 void *argp1 = 0 ;
10158 int res1 = 0 ;
10159 PyObject *swig_obj[1] ;
10160
10161 if (!args) SWIG_fail;
10162 swig_obj[0] = args;
10163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10164 if (!SWIG_IsOK(res1)) {
10165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10166 }
10167 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10168 {
10169 PyThreadState* __tstate = wxPyBeginAllowThreads();
10170 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10171 wxPyEndAllowThreads(__tstate);
10172 if (PyErr_Occurred()) SWIG_fail;
10173 }
10174 resultobj = SWIG_From_int(static_cast< int >(result));
10175 return resultobj;
10176 fail:
10177 return NULL;
10178 }
10179
10180
10181 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10182 PyObject *resultobj = 0;
10183 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10184 wxFontWeight result;
10185 void *argp1 = 0 ;
10186 int res1 = 0 ;
10187 PyObject *swig_obj[1] ;
10188
10189 if (!args) SWIG_fail;
10190 swig_obj[0] = args;
10191 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10192 if (!SWIG_IsOK(res1)) {
10193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10194 }
10195 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10196 {
10197 PyThreadState* __tstate = wxPyBeginAllowThreads();
10198 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10199 wxPyEndAllowThreads(__tstate);
10200 if (PyErr_Occurred()) SWIG_fail;
10201 }
10202 resultobj = SWIG_From_int(static_cast< int >(result));
10203 return resultobj;
10204 fail:
10205 return NULL;
10206 }
10207
10208
10209 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10210 PyObject *resultobj = 0;
10211 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10212 bool result;
10213 void *argp1 = 0 ;
10214 int res1 = 0 ;
10215 PyObject *swig_obj[1] ;
10216
10217 if (!args) SWIG_fail;
10218 swig_obj[0] = args;
10219 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10220 if (!SWIG_IsOK(res1)) {
10221 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10222 }
10223 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10224 {
10225 PyThreadState* __tstate = wxPyBeginAllowThreads();
10226 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10227 wxPyEndAllowThreads(__tstate);
10228 if (PyErr_Occurred()) SWIG_fail;
10229 }
10230 {
10231 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10232 }
10233 return resultobj;
10234 fail:
10235 return NULL;
10236 }
10237
10238
10239 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10240 PyObject *resultobj = 0;
10241 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10242 wxString result;
10243 void *argp1 = 0 ;
10244 int res1 = 0 ;
10245 PyObject *swig_obj[1] ;
10246
10247 if (!args) SWIG_fail;
10248 swig_obj[0] = args;
10249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10250 if (!SWIG_IsOK(res1)) {
10251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10252 }
10253 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10254 {
10255 PyThreadState* __tstate = wxPyBeginAllowThreads();
10256 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10257 wxPyEndAllowThreads(__tstate);
10258 if (PyErr_Occurred()) SWIG_fail;
10259 }
10260 {
10261 #if wxUSE_UNICODE
10262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10263 #else
10264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10265 #endif
10266 }
10267 return resultobj;
10268 fail:
10269 return NULL;
10270 }
10271
10272
10273 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10274 PyObject *resultobj = 0;
10275 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10276 wxFontFamily result;
10277 void *argp1 = 0 ;
10278 int res1 = 0 ;
10279 PyObject *swig_obj[1] ;
10280
10281 if (!args) SWIG_fail;
10282 swig_obj[0] = args;
10283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10284 if (!SWIG_IsOK(res1)) {
10285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10286 }
10287 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10288 {
10289 PyThreadState* __tstate = wxPyBeginAllowThreads();
10290 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10291 wxPyEndAllowThreads(__tstate);
10292 if (PyErr_Occurred()) SWIG_fail;
10293 }
10294 resultobj = SWIG_From_int(static_cast< int >(result));
10295 return resultobj;
10296 fail:
10297 return NULL;
10298 }
10299
10300
10301 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10302 PyObject *resultobj = 0;
10303 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10304 wxFontEncoding result;
10305 void *argp1 = 0 ;
10306 int res1 = 0 ;
10307 PyObject *swig_obj[1] ;
10308
10309 if (!args) SWIG_fail;
10310 swig_obj[0] = args;
10311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10312 if (!SWIG_IsOK(res1)) {
10313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10314 }
10315 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10316 {
10317 PyThreadState* __tstate = wxPyBeginAllowThreads();
10318 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10319 wxPyEndAllowThreads(__tstate);
10320 if (PyErr_Occurred()) SWIG_fail;
10321 }
10322 resultobj = SWIG_From_int(static_cast< int >(result));
10323 return resultobj;
10324 fail:
10325 return NULL;
10326 }
10327
10328
10329 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10330 PyObject *resultobj = 0;
10331 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10332 int arg2 ;
10333 void *argp1 = 0 ;
10334 int res1 = 0 ;
10335 int val2 ;
10336 int ecode2 = 0 ;
10337 PyObject * obj0 = 0 ;
10338 PyObject * obj1 = 0 ;
10339 char * kwnames[] = {
10340 (char *) "self",(char *) "pointsize", NULL
10341 };
10342
10343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10345 if (!SWIG_IsOK(res1)) {
10346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10347 }
10348 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10349 ecode2 = SWIG_AsVal_int(obj1, &val2);
10350 if (!SWIG_IsOK(ecode2)) {
10351 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10352 }
10353 arg2 = static_cast< int >(val2);
10354 {
10355 PyThreadState* __tstate = wxPyBeginAllowThreads();
10356 (arg1)->SetPointSize(arg2);
10357 wxPyEndAllowThreads(__tstate);
10358 if (PyErr_Occurred()) SWIG_fail;
10359 }
10360 resultobj = SWIG_Py_Void();
10361 return resultobj;
10362 fail:
10363 return NULL;
10364 }
10365
10366
10367 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10368 PyObject *resultobj = 0;
10369 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10370 wxSize *arg2 = 0 ;
10371 void *argp1 = 0 ;
10372 int res1 = 0 ;
10373 wxSize temp2 ;
10374 PyObject * obj0 = 0 ;
10375 PyObject * obj1 = 0 ;
10376 char * kwnames[] = {
10377 (char *) "self",(char *) "pixelSize", NULL
10378 };
10379
10380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10382 if (!SWIG_IsOK(res1)) {
10383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10384 }
10385 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10386 {
10387 arg2 = &temp2;
10388 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10389 }
10390 {
10391 PyThreadState* __tstate = wxPyBeginAllowThreads();
10392 (arg1)->SetPixelSize((wxSize const &)*arg2);
10393 wxPyEndAllowThreads(__tstate);
10394 if (PyErr_Occurred()) SWIG_fail;
10395 }
10396 resultobj = SWIG_Py_Void();
10397 return resultobj;
10398 fail:
10399 return NULL;
10400 }
10401
10402
10403 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10404 PyObject *resultobj = 0;
10405 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10406 wxFontStyle arg2 ;
10407 void *argp1 = 0 ;
10408 int res1 = 0 ;
10409 int val2 ;
10410 int ecode2 = 0 ;
10411 PyObject * obj0 = 0 ;
10412 PyObject * obj1 = 0 ;
10413 char * kwnames[] = {
10414 (char *) "self",(char *) "style", NULL
10415 };
10416
10417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10419 if (!SWIG_IsOK(res1)) {
10420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10421 }
10422 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10423 ecode2 = SWIG_AsVal_int(obj1, &val2);
10424 if (!SWIG_IsOK(ecode2)) {
10425 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10426 }
10427 arg2 = static_cast< wxFontStyle >(val2);
10428 {
10429 PyThreadState* __tstate = wxPyBeginAllowThreads();
10430 (arg1)->SetStyle(arg2);
10431 wxPyEndAllowThreads(__tstate);
10432 if (PyErr_Occurred()) SWIG_fail;
10433 }
10434 resultobj = SWIG_Py_Void();
10435 return resultobj;
10436 fail:
10437 return NULL;
10438 }
10439
10440
10441 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10442 PyObject *resultobj = 0;
10443 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10444 wxFontWeight arg2 ;
10445 void *argp1 = 0 ;
10446 int res1 = 0 ;
10447 int val2 ;
10448 int ecode2 = 0 ;
10449 PyObject * obj0 = 0 ;
10450 PyObject * obj1 = 0 ;
10451 char * kwnames[] = {
10452 (char *) "self",(char *) "weight", NULL
10453 };
10454
10455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10457 if (!SWIG_IsOK(res1)) {
10458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10459 }
10460 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10461 ecode2 = SWIG_AsVal_int(obj1, &val2);
10462 if (!SWIG_IsOK(ecode2)) {
10463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10464 }
10465 arg2 = static_cast< wxFontWeight >(val2);
10466 {
10467 PyThreadState* __tstate = wxPyBeginAllowThreads();
10468 (arg1)->SetWeight(arg2);
10469 wxPyEndAllowThreads(__tstate);
10470 if (PyErr_Occurred()) SWIG_fail;
10471 }
10472 resultobj = SWIG_Py_Void();
10473 return resultobj;
10474 fail:
10475 return NULL;
10476 }
10477
10478
10479 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10480 PyObject *resultobj = 0;
10481 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10482 bool arg2 ;
10483 void *argp1 = 0 ;
10484 int res1 = 0 ;
10485 bool val2 ;
10486 int ecode2 = 0 ;
10487 PyObject * obj0 = 0 ;
10488 PyObject * obj1 = 0 ;
10489 char * kwnames[] = {
10490 (char *) "self",(char *) "underlined", NULL
10491 };
10492
10493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10495 if (!SWIG_IsOK(res1)) {
10496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10497 }
10498 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10499 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10500 if (!SWIG_IsOK(ecode2)) {
10501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10502 }
10503 arg2 = static_cast< bool >(val2);
10504 {
10505 PyThreadState* __tstate = wxPyBeginAllowThreads();
10506 (arg1)->SetUnderlined(arg2);
10507 wxPyEndAllowThreads(__tstate);
10508 if (PyErr_Occurred()) SWIG_fail;
10509 }
10510 resultobj = SWIG_Py_Void();
10511 return resultobj;
10512 fail:
10513 return NULL;
10514 }
10515
10516
10517 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10518 PyObject *resultobj = 0;
10519 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10520 wxString arg2 ;
10521 bool result;
10522 void *argp1 = 0 ;
10523 int res1 = 0 ;
10524 PyObject * obj0 = 0 ;
10525 PyObject * obj1 = 0 ;
10526 char * kwnames[] = {
10527 (char *) "self",(char *) "facename", NULL
10528 };
10529
10530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10532 if (!SWIG_IsOK(res1)) {
10533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10534 }
10535 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10536 {
10537 wxString* sptr = wxString_in_helper(obj1);
10538 if (sptr == NULL) SWIG_fail;
10539 arg2 = *sptr;
10540 delete sptr;
10541 }
10542 {
10543 PyThreadState* __tstate = wxPyBeginAllowThreads();
10544 result = (bool)(arg1)->SetFaceName(arg2);
10545 wxPyEndAllowThreads(__tstate);
10546 if (PyErr_Occurred()) SWIG_fail;
10547 }
10548 {
10549 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10550 }
10551 return resultobj;
10552 fail:
10553 return NULL;
10554 }
10555
10556
10557 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10558 PyObject *resultobj = 0;
10559 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10560 wxFontFamily arg2 ;
10561 void *argp1 = 0 ;
10562 int res1 = 0 ;
10563 int val2 ;
10564 int ecode2 = 0 ;
10565 PyObject * obj0 = 0 ;
10566 PyObject * obj1 = 0 ;
10567 char * kwnames[] = {
10568 (char *) "self",(char *) "family", NULL
10569 };
10570
10571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10573 if (!SWIG_IsOK(res1)) {
10574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10575 }
10576 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10577 ecode2 = SWIG_AsVal_int(obj1, &val2);
10578 if (!SWIG_IsOK(ecode2)) {
10579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10580 }
10581 arg2 = static_cast< wxFontFamily >(val2);
10582 {
10583 PyThreadState* __tstate = wxPyBeginAllowThreads();
10584 (arg1)->SetFamily(arg2);
10585 wxPyEndAllowThreads(__tstate);
10586 if (PyErr_Occurred()) SWIG_fail;
10587 }
10588 resultobj = SWIG_Py_Void();
10589 return resultobj;
10590 fail:
10591 return NULL;
10592 }
10593
10594
10595 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10596 PyObject *resultobj = 0;
10597 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10598 wxFontEncoding arg2 ;
10599 void *argp1 = 0 ;
10600 int res1 = 0 ;
10601 int val2 ;
10602 int ecode2 = 0 ;
10603 PyObject * obj0 = 0 ;
10604 PyObject * obj1 = 0 ;
10605 char * kwnames[] = {
10606 (char *) "self",(char *) "encoding", NULL
10607 };
10608
10609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10611 if (!SWIG_IsOK(res1)) {
10612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10613 }
10614 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10615 ecode2 = SWIG_AsVal_int(obj1, &val2);
10616 if (!SWIG_IsOK(ecode2)) {
10617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10618 }
10619 arg2 = static_cast< wxFontEncoding >(val2);
10620 {
10621 PyThreadState* __tstate = wxPyBeginAllowThreads();
10622 (arg1)->SetEncoding(arg2);
10623 wxPyEndAllowThreads(__tstate);
10624 if (PyErr_Occurred()) SWIG_fail;
10625 }
10626 resultobj = SWIG_Py_Void();
10627 return resultobj;
10628 fail:
10629 return NULL;
10630 }
10631
10632
10633 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10634 PyObject *resultobj = 0;
10635 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10636 wxString *arg2 = 0 ;
10637 bool result;
10638 void *argp1 = 0 ;
10639 int res1 = 0 ;
10640 bool temp2 = false ;
10641 PyObject * obj0 = 0 ;
10642 PyObject * obj1 = 0 ;
10643 char * kwnames[] = {
10644 (char *) "self",(char *) "s", NULL
10645 };
10646
10647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10649 if (!SWIG_IsOK(res1)) {
10650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10651 }
10652 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10653 {
10654 arg2 = wxString_in_helper(obj1);
10655 if (arg2 == NULL) SWIG_fail;
10656 temp2 = true;
10657 }
10658 {
10659 PyThreadState* __tstate = wxPyBeginAllowThreads();
10660 result = (bool)(arg1)->FromString((wxString 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 {
10668 if (temp2)
10669 delete arg2;
10670 }
10671 return resultobj;
10672 fail:
10673 {
10674 if (temp2)
10675 delete arg2;
10676 }
10677 return NULL;
10678 }
10679
10680
10681 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10682 PyObject *resultobj = 0;
10683 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10684 wxString result;
10685 void *argp1 = 0 ;
10686 int res1 = 0 ;
10687 PyObject *swig_obj[1] ;
10688
10689 if (!args) SWIG_fail;
10690 swig_obj[0] = args;
10691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10692 if (!SWIG_IsOK(res1)) {
10693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10694 }
10695 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10696 {
10697 PyThreadState* __tstate = wxPyBeginAllowThreads();
10698 result = ((wxNativeFontInfo const *)arg1)->ToString();
10699 wxPyEndAllowThreads(__tstate);
10700 if (PyErr_Occurred()) SWIG_fail;
10701 }
10702 {
10703 #if wxUSE_UNICODE
10704 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10705 #else
10706 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10707 #endif
10708 }
10709 return resultobj;
10710 fail:
10711 return NULL;
10712 }
10713
10714
10715 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10716 PyObject *resultobj = 0;
10717 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10718 wxString result;
10719 void *argp1 = 0 ;
10720 int res1 = 0 ;
10721 PyObject *swig_obj[1] ;
10722
10723 if (!args) SWIG_fail;
10724 swig_obj[0] = args;
10725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10726 if (!SWIG_IsOK(res1)) {
10727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10728 }
10729 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10730 {
10731 PyThreadState* __tstate = wxPyBeginAllowThreads();
10732 result = wxNativeFontInfo___str__(arg1);
10733 wxPyEndAllowThreads(__tstate);
10734 if (PyErr_Occurred()) SWIG_fail;
10735 }
10736 {
10737 #if wxUSE_UNICODE
10738 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10739 #else
10740 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10741 #endif
10742 }
10743 return resultobj;
10744 fail:
10745 return NULL;
10746 }
10747
10748
10749 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10750 PyObject *resultobj = 0;
10751 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10752 wxString *arg2 = 0 ;
10753 bool result;
10754 void *argp1 = 0 ;
10755 int res1 = 0 ;
10756 bool temp2 = false ;
10757 PyObject * obj0 = 0 ;
10758 PyObject * obj1 = 0 ;
10759 char * kwnames[] = {
10760 (char *) "self",(char *) "s", NULL
10761 };
10762
10763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10765 if (!SWIG_IsOK(res1)) {
10766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10767 }
10768 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10769 {
10770 arg2 = wxString_in_helper(obj1);
10771 if (arg2 == NULL) SWIG_fail;
10772 temp2 = true;
10773 }
10774 {
10775 PyThreadState* __tstate = wxPyBeginAllowThreads();
10776 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10777 wxPyEndAllowThreads(__tstate);
10778 if (PyErr_Occurred()) SWIG_fail;
10779 }
10780 {
10781 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10782 }
10783 {
10784 if (temp2)
10785 delete arg2;
10786 }
10787 return resultobj;
10788 fail:
10789 {
10790 if (temp2)
10791 delete arg2;
10792 }
10793 return NULL;
10794 }
10795
10796
10797 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10798 PyObject *resultobj = 0;
10799 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10800 wxString result;
10801 void *argp1 = 0 ;
10802 int res1 = 0 ;
10803 PyObject *swig_obj[1] ;
10804
10805 if (!args) SWIG_fail;
10806 swig_obj[0] = args;
10807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10808 if (!SWIG_IsOK(res1)) {
10809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10810 }
10811 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10812 {
10813 PyThreadState* __tstate = wxPyBeginAllowThreads();
10814 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10815 wxPyEndAllowThreads(__tstate);
10816 if (PyErr_Occurred()) SWIG_fail;
10817 }
10818 {
10819 #if wxUSE_UNICODE
10820 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10821 #else
10822 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10823 #endif
10824 }
10825 return resultobj;
10826 fail:
10827 return NULL;
10828 }
10829
10830
10831 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10832 PyObject *obj;
10833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10834 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10835 return SWIG_Py_Void();
10836 }
10837
10838 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10839 return SWIG_Python_InitShadowInstance(args);
10840 }
10841
10842 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10843 PyObject *resultobj = 0;
10844 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10845 wxString *arg2 = (wxString *) 0 ;
10846 void *argp1 = 0 ;
10847 int res1 = 0 ;
10848 bool temp2 = false ;
10849 PyObject *swig_obj[2] ;
10850
10851 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10852 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10853 if (!SWIG_IsOK(res1)) {
10854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10855 }
10856 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10857 {
10858 arg2 = wxString_in_helper(swig_obj[1]);
10859 if (arg2 == NULL) SWIG_fail;
10860 temp2 = true;
10861 }
10862 if (arg1) (arg1)->facename = *arg2;
10863
10864 resultobj = SWIG_Py_Void();
10865 {
10866 if (temp2)
10867 delete arg2;
10868 }
10869 return resultobj;
10870 fail:
10871 {
10872 if (temp2)
10873 delete arg2;
10874 }
10875 return NULL;
10876 }
10877
10878
10879 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10880 PyObject *resultobj = 0;
10881 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10882 wxString *result = 0 ;
10883 void *argp1 = 0 ;
10884 int res1 = 0 ;
10885 PyObject *swig_obj[1] ;
10886
10887 if (!args) SWIG_fail;
10888 swig_obj[0] = args;
10889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10890 if (!SWIG_IsOK(res1)) {
10891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10892 }
10893 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10894 result = (wxString *)& ((arg1)->facename);
10895 {
10896 #if wxUSE_UNICODE
10897 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10898 #else
10899 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10900 #endif
10901 }
10902 return resultobj;
10903 fail:
10904 return NULL;
10905 }
10906
10907
10908 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10909 PyObject *resultobj = 0;
10910 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10911 wxFontEncoding arg2 ;
10912 void *argp1 = 0 ;
10913 int res1 = 0 ;
10914 int val2 ;
10915 int ecode2 = 0 ;
10916 PyObject *swig_obj[2] ;
10917
10918 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10920 if (!SWIG_IsOK(res1)) {
10921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10922 }
10923 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10924 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10925 if (!SWIG_IsOK(ecode2)) {
10926 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10927 }
10928 arg2 = static_cast< wxFontEncoding >(val2);
10929 if (arg1) (arg1)->encoding = arg2;
10930
10931 resultobj = SWIG_Py_Void();
10932 return resultobj;
10933 fail:
10934 return NULL;
10935 }
10936
10937
10938 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10939 PyObject *resultobj = 0;
10940 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10941 wxFontEncoding result;
10942 void *argp1 = 0 ;
10943 int res1 = 0 ;
10944 PyObject *swig_obj[1] ;
10945
10946 if (!args) SWIG_fail;
10947 swig_obj[0] = args;
10948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10949 if (!SWIG_IsOK(res1)) {
10950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10951 }
10952 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10953 result = (wxFontEncoding) ((arg1)->encoding);
10954 resultobj = SWIG_From_int(static_cast< int >(result));
10955 return resultobj;
10956 fail:
10957 return NULL;
10958 }
10959
10960
10961 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10962 PyObject *resultobj = 0;
10963 wxNativeEncodingInfo *result = 0 ;
10964
10965 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10966 {
10967 PyThreadState* __tstate = wxPyBeginAllowThreads();
10968 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10969 wxPyEndAllowThreads(__tstate);
10970 if (PyErr_Occurred()) SWIG_fail;
10971 }
10972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10973 return resultobj;
10974 fail:
10975 return NULL;
10976 }
10977
10978
10979 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10980 PyObject *resultobj = 0;
10981 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10982 void *argp1 = 0 ;
10983 int res1 = 0 ;
10984 PyObject *swig_obj[1] ;
10985
10986 if (!args) SWIG_fail;
10987 swig_obj[0] = args;
10988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10989 if (!SWIG_IsOK(res1)) {
10990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10991 }
10992 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10993 {
10994 PyThreadState* __tstate = wxPyBeginAllowThreads();
10995 delete arg1;
10996
10997 wxPyEndAllowThreads(__tstate);
10998 if (PyErr_Occurred()) SWIG_fail;
10999 }
11000 resultobj = SWIG_Py_Void();
11001 return resultobj;
11002 fail:
11003 return NULL;
11004 }
11005
11006
11007 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11008 PyObject *resultobj = 0;
11009 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11010 wxString *arg2 = 0 ;
11011 bool result;
11012 void *argp1 = 0 ;
11013 int res1 = 0 ;
11014 bool temp2 = false ;
11015 PyObject * obj0 = 0 ;
11016 PyObject * obj1 = 0 ;
11017 char * kwnames[] = {
11018 (char *) "self",(char *) "s", NULL
11019 };
11020
11021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11023 if (!SWIG_IsOK(res1)) {
11024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11025 }
11026 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11027 {
11028 arg2 = wxString_in_helper(obj1);
11029 if (arg2 == NULL) SWIG_fail;
11030 temp2 = true;
11031 }
11032 {
11033 PyThreadState* __tstate = wxPyBeginAllowThreads();
11034 result = (bool)(arg1)->FromString((wxString 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 {
11042 if (temp2)
11043 delete arg2;
11044 }
11045 return resultobj;
11046 fail:
11047 {
11048 if (temp2)
11049 delete arg2;
11050 }
11051 return NULL;
11052 }
11053
11054
11055 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11056 PyObject *resultobj = 0;
11057 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11058 wxString result;
11059 void *argp1 = 0 ;
11060 int res1 = 0 ;
11061 PyObject *swig_obj[1] ;
11062
11063 if (!args) SWIG_fail;
11064 swig_obj[0] = args;
11065 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11066 if (!SWIG_IsOK(res1)) {
11067 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11068 }
11069 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11070 {
11071 PyThreadState* __tstate = wxPyBeginAllowThreads();
11072 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11073 wxPyEndAllowThreads(__tstate);
11074 if (PyErr_Occurred()) SWIG_fail;
11075 }
11076 {
11077 #if wxUSE_UNICODE
11078 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11079 #else
11080 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11081 #endif
11082 }
11083 return resultobj;
11084 fail:
11085 return NULL;
11086 }
11087
11088
11089 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11090 PyObject *obj;
11091 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11092 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11093 return SWIG_Py_Void();
11094 }
11095
11096 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11097 return SWIG_Python_InitShadowInstance(args);
11098 }
11099
11100 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11101 PyObject *resultobj = 0;
11102 wxFontEncoding arg1 ;
11103 wxNativeEncodingInfo *result = 0 ;
11104 int val1 ;
11105 int ecode1 = 0 ;
11106 PyObject * obj0 = 0 ;
11107 char * kwnames[] = {
11108 (char *) "encoding", NULL
11109 };
11110
11111 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11112 ecode1 = SWIG_AsVal_int(obj0, &val1);
11113 if (!SWIG_IsOK(ecode1)) {
11114 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11115 }
11116 arg1 = static_cast< wxFontEncoding >(val1);
11117 {
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11124 return resultobj;
11125 fail:
11126 return NULL;
11127 }
11128
11129
11130 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11131 PyObject *resultobj = 0;
11132 wxNativeEncodingInfo *arg1 = 0 ;
11133 bool result;
11134 void *argp1 = 0 ;
11135 int res1 = 0 ;
11136 PyObject * obj0 = 0 ;
11137 char * kwnames[] = {
11138 (char *) "info", NULL
11139 };
11140
11141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11142 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11143 if (!SWIG_IsOK(res1)) {
11144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11145 }
11146 if (!argp1) {
11147 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11148 }
11149 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11150 {
11151 PyThreadState* __tstate = wxPyBeginAllowThreads();
11152 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11153 wxPyEndAllowThreads(__tstate);
11154 if (PyErr_Occurred()) SWIG_fail;
11155 }
11156 {
11157 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11158 }
11159 return resultobj;
11160 fail:
11161 return NULL;
11162 }
11163
11164
11165 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11166 PyObject *resultobj = 0;
11167 wxFontMapper *result = 0 ;
11168
11169 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11170 {
11171 PyThreadState* __tstate = wxPyBeginAllowThreads();
11172 result = (wxFontMapper *)new wxFontMapper();
11173 wxPyEndAllowThreads(__tstate);
11174 if (PyErr_Occurred()) SWIG_fail;
11175 }
11176 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11177 return resultobj;
11178 fail:
11179 return NULL;
11180 }
11181
11182
11183 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11184 PyObject *resultobj = 0;
11185 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
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_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11193 if (!SWIG_IsOK(res1)) {
11194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11195 }
11196 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11197 {
11198 PyThreadState* __tstate = wxPyBeginAllowThreads();
11199 delete arg1;
11200
11201 wxPyEndAllowThreads(__tstate);
11202 if (PyErr_Occurred()) SWIG_fail;
11203 }
11204 resultobj = SWIG_Py_Void();
11205 return resultobj;
11206 fail:
11207 return NULL;
11208 }
11209
11210
11211 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11212 PyObject *resultobj = 0;
11213 wxFontMapper *result = 0 ;
11214
11215 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11216 {
11217 PyThreadState* __tstate = wxPyBeginAllowThreads();
11218 result = (wxFontMapper *)wxFontMapper::Get();
11219 wxPyEndAllowThreads(__tstate);
11220 if (PyErr_Occurred()) SWIG_fail;
11221 }
11222 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11223 return resultobj;
11224 fail:
11225 return NULL;
11226 }
11227
11228
11229 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11230 PyObject *resultobj = 0;
11231 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11232 wxFontMapper *result = 0 ;
11233 void *argp1 = 0 ;
11234 int res1 = 0 ;
11235 PyObject * obj0 = 0 ;
11236 char * kwnames[] = {
11237 (char *) "mapper", NULL
11238 };
11239
11240 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11241 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11242 if (!SWIG_IsOK(res1)) {
11243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11244 }
11245 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11246 {
11247 PyThreadState* __tstate = wxPyBeginAllowThreads();
11248 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11249 wxPyEndAllowThreads(__tstate);
11250 if (PyErr_Occurred()) SWIG_fail;
11251 }
11252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11253 return resultobj;
11254 fail:
11255 return NULL;
11256 }
11257
11258
11259 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11260 PyObject *resultobj = 0;
11261 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11262 wxString *arg2 = 0 ;
11263 bool arg3 = (bool) true ;
11264 wxFontEncoding result;
11265 void *argp1 = 0 ;
11266 int res1 = 0 ;
11267 bool temp2 = false ;
11268 bool val3 ;
11269 int ecode3 = 0 ;
11270 PyObject * obj0 = 0 ;
11271 PyObject * obj1 = 0 ;
11272 PyObject * obj2 = 0 ;
11273 char * kwnames[] = {
11274 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11275 };
11276
11277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11279 if (!SWIG_IsOK(res1)) {
11280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11281 }
11282 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11283 {
11284 arg2 = wxString_in_helper(obj1);
11285 if (arg2 == NULL) SWIG_fail;
11286 temp2 = true;
11287 }
11288 if (obj2) {
11289 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11290 if (!SWIG_IsOK(ecode3)) {
11291 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11292 }
11293 arg3 = static_cast< bool >(val3);
11294 }
11295 {
11296 PyThreadState* __tstate = wxPyBeginAllowThreads();
11297 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11298 wxPyEndAllowThreads(__tstate);
11299 if (PyErr_Occurred()) SWIG_fail;
11300 }
11301 resultobj = SWIG_From_int(static_cast< int >(result));
11302 {
11303 if (temp2)
11304 delete arg2;
11305 }
11306 return resultobj;
11307 fail:
11308 {
11309 if (temp2)
11310 delete arg2;
11311 }
11312 return NULL;
11313 }
11314
11315
11316 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11317 PyObject *resultobj = 0;
11318 size_t result;
11319
11320 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11321 {
11322 PyThreadState* __tstate = wxPyBeginAllowThreads();
11323 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11324 wxPyEndAllowThreads(__tstate);
11325 if (PyErr_Occurred()) SWIG_fail;
11326 }
11327 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11328 return resultobj;
11329 fail:
11330 return NULL;
11331 }
11332
11333
11334 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11335 PyObject *resultobj = 0;
11336 size_t arg1 ;
11337 wxFontEncoding result;
11338 size_t val1 ;
11339 int ecode1 = 0 ;
11340 PyObject * obj0 = 0 ;
11341 char * kwnames[] = {
11342 (char *) "n", NULL
11343 };
11344
11345 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11346 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11347 if (!SWIG_IsOK(ecode1)) {
11348 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11349 }
11350 arg1 = static_cast< size_t >(val1);
11351 {
11352 PyThreadState* __tstate = wxPyBeginAllowThreads();
11353 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11354 wxPyEndAllowThreads(__tstate);
11355 if (PyErr_Occurred()) SWIG_fail;
11356 }
11357 resultobj = SWIG_From_int(static_cast< int >(result));
11358 return resultobj;
11359 fail:
11360 return NULL;
11361 }
11362
11363
11364 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11365 PyObject *resultobj = 0;
11366 wxFontEncoding arg1 ;
11367 wxString result;
11368 int val1 ;
11369 int ecode1 = 0 ;
11370 PyObject * obj0 = 0 ;
11371 char * kwnames[] = {
11372 (char *) "encoding", NULL
11373 };
11374
11375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11376 ecode1 = SWIG_AsVal_int(obj0, &val1);
11377 if (!SWIG_IsOK(ecode1)) {
11378 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11379 }
11380 arg1 = static_cast< wxFontEncoding >(val1);
11381 {
11382 PyThreadState* __tstate = wxPyBeginAllowThreads();
11383 result = wxFontMapper::GetEncodingName(arg1);
11384 wxPyEndAllowThreads(__tstate);
11385 if (PyErr_Occurred()) SWIG_fail;
11386 }
11387 {
11388 #if wxUSE_UNICODE
11389 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11390 #else
11391 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11392 #endif
11393 }
11394 return resultobj;
11395 fail:
11396 return NULL;
11397 }
11398
11399
11400 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11401 PyObject *resultobj = 0;
11402 wxFontEncoding arg1 ;
11403 wxString result;
11404 int val1 ;
11405 int ecode1 = 0 ;
11406 PyObject * obj0 = 0 ;
11407 char * kwnames[] = {
11408 (char *) "encoding", NULL
11409 };
11410
11411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11412 ecode1 = SWIG_AsVal_int(obj0, &val1);
11413 if (!SWIG_IsOK(ecode1)) {
11414 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11415 }
11416 arg1 = static_cast< wxFontEncoding >(val1);
11417 {
11418 PyThreadState* __tstate = wxPyBeginAllowThreads();
11419 result = wxFontMapper::GetEncodingDescription(arg1);
11420 wxPyEndAllowThreads(__tstate);
11421 if (PyErr_Occurred()) SWIG_fail;
11422 }
11423 {
11424 #if wxUSE_UNICODE
11425 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11426 #else
11427 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11428 #endif
11429 }
11430 return resultobj;
11431 fail:
11432 return NULL;
11433 }
11434
11435
11436 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11437 PyObject *resultobj = 0;
11438 wxString *arg1 = 0 ;
11439 wxFontEncoding result;
11440 bool temp1 = false ;
11441 PyObject * obj0 = 0 ;
11442 char * kwnames[] = {
11443 (char *) "name", NULL
11444 };
11445
11446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11447 {
11448 arg1 = wxString_in_helper(obj0);
11449 if (arg1 == NULL) SWIG_fail;
11450 temp1 = true;
11451 }
11452 {
11453 PyThreadState* __tstate = wxPyBeginAllowThreads();
11454 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11455 wxPyEndAllowThreads(__tstate);
11456 if (PyErr_Occurred()) SWIG_fail;
11457 }
11458 resultobj = SWIG_From_int(static_cast< int >(result));
11459 {
11460 if (temp1)
11461 delete arg1;
11462 }
11463 return resultobj;
11464 fail:
11465 {
11466 if (temp1)
11467 delete arg1;
11468 }
11469 return NULL;
11470 }
11471
11472
11473 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11474 PyObject *resultobj = 0;
11475 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11476 wxString *arg2 = 0 ;
11477 void *argp1 = 0 ;
11478 int res1 = 0 ;
11479 bool temp2 = false ;
11480 PyObject * obj0 = 0 ;
11481 PyObject * obj1 = 0 ;
11482 char * kwnames[] = {
11483 (char *) "self",(char *) "prefix", NULL
11484 };
11485
11486 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11487 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11488 if (!SWIG_IsOK(res1)) {
11489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11490 }
11491 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11492 {
11493 arg2 = wxString_in_helper(obj1);
11494 if (arg2 == NULL) SWIG_fail;
11495 temp2 = true;
11496 }
11497 {
11498 PyThreadState* __tstate = wxPyBeginAllowThreads();
11499 (arg1)->SetConfigPath((wxString const &)*arg2);
11500 wxPyEndAllowThreads(__tstate);
11501 if (PyErr_Occurred()) SWIG_fail;
11502 }
11503 resultobj = SWIG_Py_Void();
11504 {
11505 if (temp2)
11506 delete arg2;
11507 }
11508 return resultobj;
11509 fail:
11510 {
11511 if (temp2)
11512 delete arg2;
11513 }
11514 return NULL;
11515 }
11516
11517
11518 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11519 PyObject *resultobj = 0;
11520 wxString result;
11521
11522 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11523 {
11524 PyThreadState* __tstate = wxPyBeginAllowThreads();
11525 result = wxFontMapper::GetDefaultConfigPath();
11526 wxPyEndAllowThreads(__tstate);
11527 if (PyErr_Occurred()) SWIG_fail;
11528 }
11529 {
11530 #if wxUSE_UNICODE
11531 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11532 #else
11533 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11534 #endif
11535 }
11536 return resultobj;
11537 fail:
11538 return NULL;
11539 }
11540
11541
11542 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11543 PyObject *resultobj = 0;
11544 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11545 wxFontEncoding arg2 ;
11546 wxString const &arg3_defvalue = wxPyEmptyString ;
11547 wxString *arg3 = (wxString *) &arg3_defvalue ;
11548 bool arg4 = (bool) true ;
11549 PyObject *result = 0 ;
11550 void *argp1 = 0 ;
11551 int res1 = 0 ;
11552 int val2 ;
11553 int ecode2 = 0 ;
11554 bool temp3 = false ;
11555 bool val4 ;
11556 int ecode4 = 0 ;
11557 PyObject * obj0 = 0 ;
11558 PyObject * obj1 = 0 ;
11559 PyObject * obj2 = 0 ;
11560 PyObject * obj3 = 0 ;
11561 char * kwnames[] = {
11562 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11563 };
11564
11565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11567 if (!SWIG_IsOK(res1)) {
11568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11569 }
11570 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11571 ecode2 = SWIG_AsVal_int(obj1, &val2);
11572 if (!SWIG_IsOK(ecode2)) {
11573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11574 }
11575 arg2 = static_cast< wxFontEncoding >(val2);
11576 if (obj2) {
11577 {
11578 arg3 = wxString_in_helper(obj2);
11579 if (arg3 == NULL) SWIG_fail;
11580 temp3 = true;
11581 }
11582 }
11583 if (obj3) {
11584 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11585 if (!SWIG_IsOK(ecode4)) {
11586 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11587 }
11588 arg4 = static_cast< bool >(val4);
11589 }
11590 {
11591 PyThreadState* __tstate = wxPyBeginAllowThreads();
11592 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11593 wxPyEndAllowThreads(__tstate);
11594 if (PyErr_Occurred()) SWIG_fail;
11595 }
11596 resultobj = result;
11597 {
11598 if (temp3)
11599 delete arg3;
11600 }
11601 return resultobj;
11602 fail:
11603 {
11604 if (temp3)
11605 delete arg3;
11606 }
11607 return NULL;
11608 }
11609
11610
11611 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11612 PyObject *resultobj = 0;
11613 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11614 wxFontEncoding arg2 ;
11615 wxString const &arg3_defvalue = wxPyEmptyString ;
11616 wxString *arg3 = (wxString *) &arg3_defvalue ;
11617 bool result;
11618 void *argp1 = 0 ;
11619 int res1 = 0 ;
11620 int val2 ;
11621 int ecode2 = 0 ;
11622 bool temp3 = false ;
11623 PyObject * obj0 = 0 ;
11624 PyObject * obj1 = 0 ;
11625 PyObject * obj2 = 0 ;
11626 char * kwnames[] = {
11627 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11628 };
11629
11630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11632 if (!SWIG_IsOK(res1)) {
11633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11634 }
11635 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11636 ecode2 = SWIG_AsVal_int(obj1, &val2);
11637 if (!SWIG_IsOK(ecode2)) {
11638 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11639 }
11640 arg2 = static_cast< wxFontEncoding >(val2);
11641 if (obj2) {
11642 {
11643 arg3 = wxString_in_helper(obj2);
11644 if (arg3 == NULL) SWIG_fail;
11645 temp3 = true;
11646 }
11647 }
11648 {
11649 PyThreadState* __tstate = wxPyBeginAllowThreads();
11650 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11651 wxPyEndAllowThreads(__tstate);
11652 if (PyErr_Occurred()) SWIG_fail;
11653 }
11654 {
11655 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11656 }
11657 {
11658 if (temp3)
11659 delete arg3;
11660 }
11661 return resultobj;
11662 fail:
11663 {
11664 if (temp3)
11665 delete arg3;
11666 }
11667 return NULL;
11668 }
11669
11670
11671 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11672 PyObject *resultobj = 0;
11673 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11674 wxWindow *arg2 = (wxWindow *) 0 ;
11675 void *argp1 = 0 ;
11676 int res1 = 0 ;
11677 void *argp2 = 0 ;
11678 int res2 = 0 ;
11679 PyObject * obj0 = 0 ;
11680 PyObject * obj1 = 0 ;
11681 char * kwnames[] = {
11682 (char *) "self",(char *) "parent", NULL
11683 };
11684
11685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11687 if (!SWIG_IsOK(res1)) {
11688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11689 }
11690 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11691 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11692 if (!SWIG_IsOK(res2)) {
11693 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11694 }
11695 arg2 = reinterpret_cast< wxWindow * >(argp2);
11696 {
11697 PyThreadState* __tstate = wxPyBeginAllowThreads();
11698 (arg1)->SetDialogParent(arg2);
11699 wxPyEndAllowThreads(__tstate);
11700 if (PyErr_Occurred()) SWIG_fail;
11701 }
11702 resultobj = SWIG_Py_Void();
11703 return resultobj;
11704 fail:
11705 return NULL;
11706 }
11707
11708
11709 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11710 PyObject *resultobj = 0;
11711 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11712 wxString *arg2 = 0 ;
11713 void *argp1 = 0 ;
11714 int res1 = 0 ;
11715 bool temp2 = false ;
11716 PyObject * obj0 = 0 ;
11717 PyObject * obj1 = 0 ;
11718 char * kwnames[] = {
11719 (char *) "self",(char *) "title", NULL
11720 };
11721
11722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11724 if (!SWIG_IsOK(res1)) {
11725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11726 }
11727 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11728 {
11729 arg2 = wxString_in_helper(obj1);
11730 if (arg2 == NULL) SWIG_fail;
11731 temp2 = true;
11732 }
11733 {
11734 PyThreadState* __tstate = wxPyBeginAllowThreads();
11735 (arg1)->SetDialogTitle((wxString const &)*arg2);
11736 wxPyEndAllowThreads(__tstate);
11737 if (PyErr_Occurred()) SWIG_fail;
11738 }
11739 resultobj = SWIG_Py_Void();
11740 {
11741 if (temp2)
11742 delete arg2;
11743 }
11744 return resultobj;
11745 fail:
11746 {
11747 if (temp2)
11748 delete arg2;
11749 }
11750 return NULL;
11751 }
11752
11753
11754 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11755 PyObject *obj;
11756 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11757 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11758 return SWIG_Py_Void();
11759 }
11760
11761 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11762 return SWIG_Python_InitShadowInstance(args);
11763 }
11764
11765 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11766 PyObject *resultobj = 0;
11767 int arg1 ;
11768 int arg2 ;
11769 int arg3 ;
11770 int arg4 ;
11771 bool arg5 = (bool) false ;
11772 wxString const &arg6_defvalue = wxPyEmptyString ;
11773 wxString *arg6 = (wxString *) &arg6_defvalue ;
11774 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11775 wxFont *result = 0 ;
11776 int val1 ;
11777 int ecode1 = 0 ;
11778 int val2 ;
11779 int ecode2 = 0 ;
11780 int val3 ;
11781 int ecode3 = 0 ;
11782 int val4 ;
11783 int ecode4 = 0 ;
11784 bool val5 ;
11785 int ecode5 = 0 ;
11786 bool temp6 = false ;
11787 int val7 ;
11788 int ecode7 = 0 ;
11789 PyObject * obj0 = 0 ;
11790 PyObject * obj1 = 0 ;
11791 PyObject * obj2 = 0 ;
11792 PyObject * obj3 = 0 ;
11793 PyObject * obj4 = 0 ;
11794 PyObject * obj5 = 0 ;
11795 PyObject * obj6 = 0 ;
11796 char * kwnames[] = {
11797 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11798 };
11799
11800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11801 ecode1 = SWIG_AsVal_int(obj0, &val1);
11802 if (!SWIG_IsOK(ecode1)) {
11803 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11804 }
11805 arg1 = static_cast< int >(val1);
11806 ecode2 = SWIG_AsVal_int(obj1, &val2);
11807 if (!SWIG_IsOK(ecode2)) {
11808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11809 }
11810 arg2 = static_cast< int >(val2);
11811 ecode3 = SWIG_AsVal_int(obj2, &val3);
11812 if (!SWIG_IsOK(ecode3)) {
11813 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11814 }
11815 arg3 = static_cast< int >(val3);
11816 ecode4 = SWIG_AsVal_int(obj3, &val4);
11817 if (!SWIG_IsOK(ecode4)) {
11818 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11819 }
11820 arg4 = static_cast< int >(val4);
11821 if (obj4) {
11822 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11823 if (!SWIG_IsOK(ecode5)) {
11824 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11825 }
11826 arg5 = static_cast< bool >(val5);
11827 }
11828 if (obj5) {
11829 {
11830 arg6 = wxString_in_helper(obj5);
11831 if (arg6 == NULL) SWIG_fail;
11832 temp6 = true;
11833 }
11834 }
11835 if (obj6) {
11836 ecode7 = SWIG_AsVal_int(obj6, &val7);
11837 if (!SWIG_IsOK(ecode7)) {
11838 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11839 }
11840 arg7 = static_cast< wxFontEncoding >(val7);
11841 }
11842 {
11843 if (!wxPyCheckForApp()) SWIG_fail;
11844 PyThreadState* __tstate = wxPyBeginAllowThreads();
11845 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11846 wxPyEndAllowThreads(__tstate);
11847 if (PyErr_Occurred()) SWIG_fail;
11848 }
11849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11850 {
11851 if (temp6)
11852 delete arg6;
11853 }
11854 return resultobj;
11855 fail:
11856 {
11857 if (temp6)
11858 delete arg6;
11859 }
11860 return NULL;
11861 }
11862
11863
11864 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11865 PyObject *resultobj = 0;
11866 wxFont *arg1 = (wxFont *) 0 ;
11867 void *argp1 = 0 ;
11868 int res1 = 0 ;
11869 PyObject *swig_obj[1] ;
11870
11871 if (!args) SWIG_fail;
11872 swig_obj[0] = args;
11873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11874 if (!SWIG_IsOK(res1)) {
11875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11876 }
11877 arg1 = reinterpret_cast< wxFont * >(argp1);
11878 {
11879 PyThreadState* __tstate = wxPyBeginAllowThreads();
11880 delete arg1;
11881
11882 wxPyEndAllowThreads(__tstate);
11883 if (PyErr_Occurred()) SWIG_fail;
11884 }
11885 resultobj = SWIG_Py_Void();
11886 return resultobj;
11887 fail:
11888 return NULL;
11889 }
11890
11891
11892 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11893 PyObject *resultobj = 0;
11894 wxNativeFontInfo *arg1 = 0 ;
11895 wxFont *result = 0 ;
11896 void *argp1 = 0 ;
11897 int res1 = 0 ;
11898 PyObject * obj0 = 0 ;
11899 char * kwnames[] = {
11900 (char *) "info", NULL
11901 };
11902
11903 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11904 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11905 if (!SWIG_IsOK(res1)) {
11906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11907 }
11908 if (!argp1) {
11909 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11910 }
11911 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11912 {
11913 if (!wxPyCheckForApp()) SWIG_fail;
11914 PyThreadState* __tstate = wxPyBeginAllowThreads();
11915 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11916 wxPyEndAllowThreads(__tstate);
11917 if (PyErr_Occurred()) SWIG_fail;
11918 }
11919 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11920 return resultobj;
11921 fail:
11922 return NULL;
11923 }
11924
11925
11926 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11927 PyObject *resultobj = 0;
11928 wxString *arg1 = 0 ;
11929 wxFont *result = 0 ;
11930 bool temp1 = false ;
11931 PyObject * obj0 = 0 ;
11932 char * kwnames[] = {
11933 (char *) "info", NULL
11934 };
11935
11936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11937 {
11938 arg1 = wxString_in_helper(obj0);
11939 if (arg1 == NULL) SWIG_fail;
11940 temp1 = true;
11941 }
11942 {
11943 if (!wxPyCheckForApp()) SWIG_fail;
11944 PyThreadState* __tstate = wxPyBeginAllowThreads();
11945 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11946 wxPyEndAllowThreads(__tstate);
11947 if (PyErr_Occurred()) SWIG_fail;
11948 }
11949 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11950 {
11951 if (temp1)
11952 delete arg1;
11953 }
11954 return resultobj;
11955 fail:
11956 {
11957 if (temp1)
11958 delete arg1;
11959 }
11960 return NULL;
11961 }
11962
11963
11964 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11965 PyObject *resultobj = 0;
11966 int arg1 ;
11967 wxFontFamily arg2 ;
11968 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11969 wxString const &arg4_defvalue = wxPyEmptyString ;
11970 wxString *arg4 = (wxString *) &arg4_defvalue ;
11971 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11972 wxFont *result = 0 ;
11973 int val1 ;
11974 int ecode1 = 0 ;
11975 int val2 ;
11976 int ecode2 = 0 ;
11977 int val3 ;
11978 int ecode3 = 0 ;
11979 bool temp4 = false ;
11980 int val5 ;
11981 int ecode5 = 0 ;
11982 PyObject * obj0 = 0 ;
11983 PyObject * obj1 = 0 ;
11984 PyObject * obj2 = 0 ;
11985 PyObject * obj3 = 0 ;
11986 PyObject * obj4 = 0 ;
11987 char * kwnames[] = {
11988 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11989 };
11990
11991 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11992 ecode1 = SWIG_AsVal_int(obj0, &val1);
11993 if (!SWIG_IsOK(ecode1)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11995 }
11996 arg1 = static_cast< int >(val1);
11997 ecode2 = SWIG_AsVal_int(obj1, &val2);
11998 if (!SWIG_IsOK(ecode2)) {
11999 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
12000 }
12001 arg2 = static_cast< wxFontFamily >(val2);
12002 if (obj2) {
12003 ecode3 = SWIG_AsVal_int(obj2, &val3);
12004 if (!SWIG_IsOK(ecode3)) {
12005 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
12006 }
12007 arg3 = static_cast< int >(val3);
12008 }
12009 if (obj3) {
12010 {
12011 arg4 = wxString_in_helper(obj3);
12012 if (arg4 == NULL) SWIG_fail;
12013 temp4 = true;
12014 }
12015 }
12016 if (obj4) {
12017 ecode5 = SWIG_AsVal_int(obj4, &val5);
12018 if (!SWIG_IsOK(ecode5)) {
12019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12020 }
12021 arg5 = static_cast< wxFontEncoding >(val5);
12022 }
12023 {
12024 if (!wxPyCheckForApp()) SWIG_fail;
12025 PyThreadState* __tstate = wxPyBeginAllowThreads();
12026 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12027 wxPyEndAllowThreads(__tstate);
12028 if (PyErr_Occurred()) SWIG_fail;
12029 }
12030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12031 {
12032 if (temp4)
12033 delete arg4;
12034 }
12035 return resultobj;
12036 fail:
12037 {
12038 if (temp4)
12039 delete arg4;
12040 }
12041 return NULL;
12042 }
12043
12044
12045 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12046 PyObject *resultobj = 0;
12047 wxSize *arg1 = 0 ;
12048 int arg2 ;
12049 int arg3 ;
12050 int arg4 ;
12051 bool arg5 = (bool) false ;
12052 wxString const &arg6_defvalue = wxEmptyString ;
12053 wxString *arg6 = (wxString *) &arg6_defvalue ;
12054 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12055 wxFont *result = 0 ;
12056 wxSize temp1 ;
12057 int val2 ;
12058 int ecode2 = 0 ;
12059 int val3 ;
12060 int ecode3 = 0 ;
12061 int val4 ;
12062 int ecode4 = 0 ;
12063 bool val5 ;
12064 int ecode5 = 0 ;
12065 bool temp6 = false ;
12066 int val7 ;
12067 int ecode7 = 0 ;
12068 PyObject * obj0 = 0 ;
12069 PyObject * obj1 = 0 ;
12070 PyObject * obj2 = 0 ;
12071 PyObject * obj3 = 0 ;
12072 PyObject * obj4 = 0 ;
12073 PyObject * obj5 = 0 ;
12074 PyObject * obj6 = 0 ;
12075 char * kwnames[] = {
12076 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12077 };
12078
12079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12080 {
12081 arg1 = &temp1;
12082 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12083 }
12084 ecode2 = SWIG_AsVal_int(obj1, &val2);
12085 if (!SWIG_IsOK(ecode2)) {
12086 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12087 }
12088 arg2 = static_cast< int >(val2);
12089 ecode3 = SWIG_AsVal_int(obj2, &val3);
12090 if (!SWIG_IsOK(ecode3)) {
12091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12092 }
12093 arg3 = static_cast< int >(val3);
12094 ecode4 = SWIG_AsVal_int(obj3, &val4);
12095 if (!SWIG_IsOK(ecode4)) {
12096 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12097 }
12098 arg4 = static_cast< int >(val4);
12099 if (obj4) {
12100 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12101 if (!SWIG_IsOK(ecode5)) {
12102 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12103 }
12104 arg5 = static_cast< bool >(val5);
12105 }
12106 if (obj5) {
12107 {
12108 arg6 = wxString_in_helper(obj5);
12109 if (arg6 == NULL) SWIG_fail;
12110 temp6 = true;
12111 }
12112 }
12113 if (obj6) {
12114 ecode7 = SWIG_AsVal_int(obj6, &val7);
12115 if (!SWIG_IsOK(ecode7)) {
12116 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12117 }
12118 arg7 = static_cast< wxFontEncoding >(val7);
12119 }
12120 {
12121 if (!wxPyCheckForApp()) SWIG_fail;
12122 PyThreadState* __tstate = wxPyBeginAllowThreads();
12123 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12124 wxPyEndAllowThreads(__tstate);
12125 if (PyErr_Occurred()) SWIG_fail;
12126 }
12127 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12128 {
12129 if (temp6)
12130 delete arg6;
12131 }
12132 return resultobj;
12133 fail:
12134 {
12135 if (temp6)
12136 delete arg6;
12137 }
12138 return NULL;
12139 }
12140
12141
12142 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12143 PyObject *resultobj = 0;
12144 wxSize *arg1 = 0 ;
12145 wxFontFamily arg2 ;
12146 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12147 wxString const &arg4_defvalue = wxEmptyString ;
12148 wxString *arg4 = (wxString *) &arg4_defvalue ;
12149 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12150 wxFont *result = 0 ;
12151 wxSize temp1 ;
12152 int val2 ;
12153 int ecode2 = 0 ;
12154 int val3 ;
12155 int ecode3 = 0 ;
12156 bool temp4 = false ;
12157 int val5 ;
12158 int ecode5 = 0 ;
12159 PyObject * obj0 = 0 ;
12160 PyObject * obj1 = 0 ;
12161 PyObject * obj2 = 0 ;
12162 PyObject * obj3 = 0 ;
12163 PyObject * obj4 = 0 ;
12164 char * kwnames[] = {
12165 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12166 };
12167
12168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12169 {
12170 arg1 = &temp1;
12171 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12172 }
12173 ecode2 = SWIG_AsVal_int(obj1, &val2);
12174 if (!SWIG_IsOK(ecode2)) {
12175 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12176 }
12177 arg2 = static_cast< wxFontFamily >(val2);
12178 if (obj2) {
12179 ecode3 = SWIG_AsVal_int(obj2, &val3);
12180 if (!SWIG_IsOK(ecode3)) {
12181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12182 }
12183 arg3 = static_cast< int >(val3);
12184 }
12185 if (obj3) {
12186 {
12187 arg4 = wxString_in_helper(obj3);
12188 if (arg4 == NULL) SWIG_fail;
12189 temp4 = true;
12190 }
12191 }
12192 if (obj4) {
12193 ecode5 = SWIG_AsVal_int(obj4, &val5);
12194 if (!SWIG_IsOK(ecode5)) {
12195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12196 }
12197 arg5 = static_cast< wxFontEncoding >(val5);
12198 }
12199 {
12200 if (!wxPyCheckForApp()) SWIG_fail;
12201 PyThreadState* __tstate = wxPyBeginAllowThreads();
12202 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12203 wxPyEndAllowThreads(__tstate);
12204 if (PyErr_Occurred()) SWIG_fail;
12205 }
12206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12207 {
12208 if (temp4)
12209 delete arg4;
12210 }
12211 return resultobj;
12212 fail:
12213 {
12214 if (temp4)
12215 delete arg4;
12216 }
12217 return NULL;
12218 }
12219
12220
12221 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12222 PyObject *resultobj = 0;
12223 wxFont *arg1 = (wxFont *) 0 ;
12224 bool result;
12225 void *argp1 = 0 ;
12226 int res1 = 0 ;
12227 PyObject *swig_obj[1] ;
12228
12229 if (!args) SWIG_fail;
12230 swig_obj[0] = args;
12231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12232 if (!SWIG_IsOK(res1)) {
12233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12234 }
12235 arg1 = reinterpret_cast< wxFont * >(argp1);
12236 {
12237 PyThreadState* __tstate = wxPyBeginAllowThreads();
12238 result = (bool)((wxFont const *)arg1)->Ok();
12239 wxPyEndAllowThreads(__tstate);
12240 if (PyErr_Occurred()) SWIG_fail;
12241 }
12242 {
12243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12244 }
12245 return resultobj;
12246 fail:
12247 return NULL;
12248 }
12249
12250
12251 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12252 PyObject *resultobj = 0;
12253 wxFont *arg1 = (wxFont *) 0 ;
12254 wxFont *arg2 = (wxFont *) 0 ;
12255 bool result;
12256 void *argp1 = 0 ;
12257 int res1 = 0 ;
12258 void *argp2 = 0 ;
12259 int res2 = 0 ;
12260 PyObject * obj0 = 0 ;
12261 PyObject * obj1 = 0 ;
12262 char * kwnames[] = {
12263 (char *) "self",(char *) "other", NULL
12264 };
12265
12266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12268 if (!SWIG_IsOK(res1)) {
12269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12270 }
12271 arg1 = reinterpret_cast< wxFont * >(argp1);
12272 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12273 if (!SWIG_IsOK(res2)) {
12274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12275 }
12276 arg2 = reinterpret_cast< wxFont * >(argp2);
12277 {
12278 PyThreadState* __tstate = wxPyBeginAllowThreads();
12279 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12280 wxPyEndAllowThreads(__tstate);
12281 if (PyErr_Occurred()) SWIG_fail;
12282 }
12283 {
12284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12285 }
12286 return resultobj;
12287 fail:
12288 return NULL;
12289 }
12290
12291
12292 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12293 PyObject *resultobj = 0;
12294 wxFont *arg1 = (wxFont *) 0 ;
12295 wxFont *arg2 = (wxFont *) 0 ;
12296 bool result;
12297 void *argp1 = 0 ;
12298 int res1 = 0 ;
12299 void *argp2 = 0 ;
12300 int res2 = 0 ;
12301 PyObject * obj0 = 0 ;
12302 PyObject * obj1 = 0 ;
12303 char * kwnames[] = {
12304 (char *) "self",(char *) "other", NULL
12305 };
12306
12307 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12308 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12309 if (!SWIG_IsOK(res1)) {
12310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12311 }
12312 arg1 = reinterpret_cast< wxFont * >(argp1);
12313 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12314 if (!SWIG_IsOK(res2)) {
12315 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12316 }
12317 arg2 = reinterpret_cast< wxFont * >(argp2);
12318 {
12319 PyThreadState* __tstate = wxPyBeginAllowThreads();
12320 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12321 wxPyEndAllowThreads(__tstate);
12322 if (PyErr_Occurred()) SWIG_fail;
12323 }
12324 {
12325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12326 }
12327 return resultobj;
12328 fail:
12329 return NULL;
12330 }
12331
12332
12333 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12334 PyObject *resultobj = 0;
12335 wxFont *arg1 = (wxFont *) 0 ;
12336 int result;
12337 void *argp1 = 0 ;
12338 int res1 = 0 ;
12339 PyObject *swig_obj[1] ;
12340
12341 if (!args) SWIG_fail;
12342 swig_obj[0] = args;
12343 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12344 if (!SWIG_IsOK(res1)) {
12345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12346 }
12347 arg1 = reinterpret_cast< wxFont * >(argp1);
12348 {
12349 PyThreadState* __tstate = wxPyBeginAllowThreads();
12350 result = (int)((wxFont const *)arg1)->GetPointSize();
12351 wxPyEndAllowThreads(__tstate);
12352 if (PyErr_Occurred()) SWIG_fail;
12353 }
12354 resultobj = SWIG_From_int(static_cast< int >(result));
12355 return resultobj;
12356 fail:
12357 return NULL;
12358 }
12359
12360
12361 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12362 PyObject *resultobj = 0;
12363 wxFont *arg1 = (wxFont *) 0 ;
12364 wxSize result;
12365 void *argp1 = 0 ;
12366 int res1 = 0 ;
12367 PyObject *swig_obj[1] ;
12368
12369 if (!args) SWIG_fail;
12370 swig_obj[0] = args;
12371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12372 if (!SWIG_IsOK(res1)) {
12373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12374 }
12375 arg1 = reinterpret_cast< wxFont * >(argp1);
12376 {
12377 PyThreadState* __tstate = wxPyBeginAllowThreads();
12378 result = ((wxFont const *)arg1)->GetPixelSize();
12379 wxPyEndAllowThreads(__tstate);
12380 if (PyErr_Occurred()) SWIG_fail;
12381 }
12382 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12383 return resultobj;
12384 fail:
12385 return NULL;
12386 }
12387
12388
12389 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12390 PyObject *resultobj = 0;
12391 wxFont *arg1 = (wxFont *) 0 ;
12392 bool result;
12393 void *argp1 = 0 ;
12394 int res1 = 0 ;
12395 PyObject *swig_obj[1] ;
12396
12397 if (!args) SWIG_fail;
12398 swig_obj[0] = args;
12399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12400 if (!SWIG_IsOK(res1)) {
12401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12402 }
12403 arg1 = reinterpret_cast< wxFont * >(argp1);
12404 {
12405 PyThreadState* __tstate = wxPyBeginAllowThreads();
12406 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12407 wxPyEndAllowThreads(__tstate);
12408 if (PyErr_Occurred()) SWIG_fail;
12409 }
12410 {
12411 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12412 }
12413 return resultobj;
12414 fail:
12415 return NULL;
12416 }
12417
12418
12419 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12420 PyObject *resultobj = 0;
12421 wxFont *arg1 = (wxFont *) 0 ;
12422 int result;
12423 void *argp1 = 0 ;
12424 int res1 = 0 ;
12425 PyObject *swig_obj[1] ;
12426
12427 if (!args) SWIG_fail;
12428 swig_obj[0] = args;
12429 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12430 if (!SWIG_IsOK(res1)) {
12431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12432 }
12433 arg1 = reinterpret_cast< wxFont * >(argp1);
12434 {
12435 PyThreadState* __tstate = wxPyBeginAllowThreads();
12436 result = (int)((wxFont const *)arg1)->GetFamily();
12437 wxPyEndAllowThreads(__tstate);
12438 if (PyErr_Occurred()) SWIG_fail;
12439 }
12440 resultobj = SWIG_From_int(static_cast< int >(result));
12441 return resultobj;
12442 fail:
12443 return NULL;
12444 }
12445
12446
12447 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12448 PyObject *resultobj = 0;
12449 wxFont *arg1 = (wxFont *) 0 ;
12450 int result;
12451 void *argp1 = 0 ;
12452 int res1 = 0 ;
12453 PyObject *swig_obj[1] ;
12454
12455 if (!args) SWIG_fail;
12456 swig_obj[0] = args;
12457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12458 if (!SWIG_IsOK(res1)) {
12459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12460 }
12461 arg1 = reinterpret_cast< wxFont * >(argp1);
12462 {
12463 PyThreadState* __tstate = wxPyBeginAllowThreads();
12464 result = (int)((wxFont const *)arg1)->GetStyle();
12465 wxPyEndAllowThreads(__tstate);
12466 if (PyErr_Occurred()) SWIG_fail;
12467 }
12468 resultobj = SWIG_From_int(static_cast< int >(result));
12469 return resultobj;
12470 fail:
12471 return NULL;
12472 }
12473
12474
12475 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12476 PyObject *resultobj = 0;
12477 wxFont *arg1 = (wxFont *) 0 ;
12478 int result;
12479 void *argp1 = 0 ;
12480 int res1 = 0 ;
12481 PyObject *swig_obj[1] ;
12482
12483 if (!args) SWIG_fail;
12484 swig_obj[0] = args;
12485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12486 if (!SWIG_IsOK(res1)) {
12487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12488 }
12489 arg1 = reinterpret_cast< wxFont * >(argp1);
12490 {
12491 PyThreadState* __tstate = wxPyBeginAllowThreads();
12492 result = (int)((wxFont const *)arg1)->GetWeight();
12493 wxPyEndAllowThreads(__tstate);
12494 if (PyErr_Occurred()) SWIG_fail;
12495 }
12496 resultobj = SWIG_From_int(static_cast< int >(result));
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxFont *arg1 = (wxFont *) 0 ;
12506 bool result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12516 }
12517 arg1 = reinterpret_cast< wxFont * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 {
12525 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12526 }
12527 return resultobj;
12528 fail:
12529 return NULL;
12530 }
12531
12532
12533 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12534 PyObject *resultobj = 0;
12535 wxFont *arg1 = (wxFont *) 0 ;
12536 wxString result;
12537 void *argp1 = 0 ;
12538 int res1 = 0 ;
12539 PyObject *swig_obj[1] ;
12540
12541 if (!args) SWIG_fail;
12542 swig_obj[0] = args;
12543 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12544 if (!SWIG_IsOK(res1)) {
12545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12546 }
12547 arg1 = reinterpret_cast< wxFont * >(argp1);
12548 {
12549 PyThreadState* __tstate = wxPyBeginAllowThreads();
12550 result = ((wxFont const *)arg1)->GetFaceName();
12551 wxPyEndAllowThreads(__tstate);
12552 if (PyErr_Occurred()) SWIG_fail;
12553 }
12554 {
12555 #if wxUSE_UNICODE
12556 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12557 #else
12558 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12559 #endif
12560 }
12561 return resultobj;
12562 fail:
12563 return NULL;
12564 }
12565
12566
12567 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12568 PyObject *resultobj = 0;
12569 wxFont *arg1 = (wxFont *) 0 ;
12570 wxFontEncoding result;
12571 void *argp1 = 0 ;
12572 int res1 = 0 ;
12573 PyObject *swig_obj[1] ;
12574
12575 if (!args) SWIG_fail;
12576 swig_obj[0] = args;
12577 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12578 if (!SWIG_IsOK(res1)) {
12579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12580 }
12581 arg1 = reinterpret_cast< wxFont * >(argp1);
12582 {
12583 PyThreadState* __tstate = wxPyBeginAllowThreads();
12584 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12585 wxPyEndAllowThreads(__tstate);
12586 if (PyErr_Occurred()) SWIG_fail;
12587 }
12588 resultobj = SWIG_From_int(static_cast< int >(result));
12589 return resultobj;
12590 fail:
12591 return NULL;
12592 }
12593
12594
12595 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12596 PyObject *resultobj = 0;
12597 wxFont *arg1 = (wxFont *) 0 ;
12598 wxNativeFontInfo *result = 0 ;
12599 void *argp1 = 0 ;
12600 int res1 = 0 ;
12601 PyObject *swig_obj[1] ;
12602
12603 if (!args) SWIG_fail;
12604 swig_obj[0] = args;
12605 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12606 if (!SWIG_IsOK(res1)) {
12607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12608 }
12609 arg1 = reinterpret_cast< wxFont * >(argp1);
12610 {
12611 PyThreadState* __tstate = wxPyBeginAllowThreads();
12612 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12613 wxPyEndAllowThreads(__tstate);
12614 if (PyErr_Occurred()) SWIG_fail;
12615 }
12616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12617 return resultobj;
12618 fail:
12619 return NULL;
12620 }
12621
12622
12623 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12624 PyObject *resultobj = 0;
12625 wxFont *arg1 = (wxFont *) 0 ;
12626 bool result;
12627 void *argp1 = 0 ;
12628 int res1 = 0 ;
12629 PyObject *swig_obj[1] ;
12630
12631 if (!args) SWIG_fail;
12632 swig_obj[0] = args;
12633 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12634 if (!SWIG_IsOK(res1)) {
12635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12636 }
12637 arg1 = reinterpret_cast< wxFont * >(argp1);
12638 {
12639 PyThreadState* __tstate = wxPyBeginAllowThreads();
12640 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12641 wxPyEndAllowThreads(__tstate);
12642 if (PyErr_Occurred()) SWIG_fail;
12643 }
12644 {
12645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12646 }
12647 return resultobj;
12648 fail:
12649 return NULL;
12650 }
12651
12652
12653 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12654 PyObject *resultobj = 0;
12655 wxFont *arg1 = (wxFont *) 0 ;
12656 wxString result;
12657 void *argp1 = 0 ;
12658 int res1 = 0 ;
12659 PyObject *swig_obj[1] ;
12660
12661 if (!args) SWIG_fail;
12662 swig_obj[0] = args;
12663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12664 if (!SWIG_IsOK(res1)) {
12665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12666 }
12667 arg1 = reinterpret_cast< wxFont * >(argp1);
12668 {
12669 PyThreadState* __tstate = wxPyBeginAllowThreads();
12670 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12671 wxPyEndAllowThreads(__tstate);
12672 if (PyErr_Occurred()) SWIG_fail;
12673 }
12674 {
12675 #if wxUSE_UNICODE
12676 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12677 #else
12678 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12679 #endif
12680 }
12681 return resultobj;
12682 fail:
12683 return NULL;
12684 }
12685
12686
12687 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12688 PyObject *resultobj = 0;
12689 wxFont *arg1 = (wxFont *) 0 ;
12690 wxString result;
12691 void *argp1 = 0 ;
12692 int res1 = 0 ;
12693 PyObject *swig_obj[1] ;
12694
12695 if (!args) SWIG_fail;
12696 swig_obj[0] = args;
12697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12698 if (!SWIG_IsOK(res1)) {
12699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12700 }
12701 arg1 = reinterpret_cast< wxFont * >(argp1);
12702 {
12703 PyThreadState* __tstate = wxPyBeginAllowThreads();
12704 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12705 wxPyEndAllowThreads(__tstate);
12706 if (PyErr_Occurred()) SWIG_fail;
12707 }
12708 {
12709 #if wxUSE_UNICODE
12710 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12711 #else
12712 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12713 #endif
12714 }
12715 return resultobj;
12716 fail:
12717 return NULL;
12718 }
12719
12720
12721 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12722 PyObject *resultobj = 0;
12723 wxFont *arg1 = (wxFont *) 0 ;
12724 int arg2 ;
12725 void *argp1 = 0 ;
12726 int res1 = 0 ;
12727 int val2 ;
12728 int ecode2 = 0 ;
12729 PyObject * obj0 = 0 ;
12730 PyObject * obj1 = 0 ;
12731 char * kwnames[] = {
12732 (char *) "self",(char *) "pointSize", NULL
12733 };
12734
12735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12737 if (!SWIG_IsOK(res1)) {
12738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12739 }
12740 arg1 = reinterpret_cast< wxFont * >(argp1);
12741 ecode2 = SWIG_AsVal_int(obj1, &val2);
12742 if (!SWIG_IsOK(ecode2)) {
12743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12744 }
12745 arg2 = static_cast< int >(val2);
12746 {
12747 PyThreadState* __tstate = wxPyBeginAllowThreads();
12748 (arg1)->SetPointSize(arg2);
12749 wxPyEndAllowThreads(__tstate);
12750 if (PyErr_Occurred()) SWIG_fail;
12751 }
12752 resultobj = SWIG_Py_Void();
12753 return resultobj;
12754 fail:
12755 return NULL;
12756 }
12757
12758
12759 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12760 PyObject *resultobj = 0;
12761 wxFont *arg1 = (wxFont *) 0 ;
12762 wxSize *arg2 = 0 ;
12763 void *argp1 = 0 ;
12764 int res1 = 0 ;
12765 wxSize temp2 ;
12766 PyObject * obj0 = 0 ;
12767 PyObject * obj1 = 0 ;
12768 char * kwnames[] = {
12769 (char *) "self",(char *) "pixelSize", NULL
12770 };
12771
12772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12773 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12774 if (!SWIG_IsOK(res1)) {
12775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12776 }
12777 arg1 = reinterpret_cast< wxFont * >(argp1);
12778 {
12779 arg2 = &temp2;
12780 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12781 }
12782 {
12783 PyThreadState* __tstate = wxPyBeginAllowThreads();
12784 (arg1)->SetPixelSize((wxSize const &)*arg2);
12785 wxPyEndAllowThreads(__tstate);
12786 if (PyErr_Occurred()) SWIG_fail;
12787 }
12788 resultobj = SWIG_Py_Void();
12789 return resultobj;
12790 fail:
12791 return NULL;
12792 }
12793
12794
12795 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12796 PyObject *resultobj = 0;
12797 wxFont *arg1 = (wxFont *) 0 ;
12798 int arg2 ;
12799 void *argp1 = 0 ;
12800 int res1 = 0 ;
12801 int val2 ;
12802 int ecode2 = 0 ;
12803 PyObject * obj0 = 0 ;
12804 PyObject * obj1 = 0 ;
12805 char * kwnames[] = {
12806 (char *) "self",(char *) "family", NULL
12807 };
12808
12809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12810 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12811 if (!SWIG_IsOK(res1)) {
12812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12813 }
12814 arg1 = reinterpret_cast< wxFont * >(argp1);
12815 ecode2 = SWIG_AsVal_int(obj1, &val2);
12816 if (!SWIG_IsOK(ecode2)) {
12817 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12818 }
12819 arg2 = static_cast< int >(val2);
12820 {
12821 PyThreadState* __tstate = wxPyBeginAllowThreads();
12822 (arg1)->SetFamily(arg2);
12823 wxPyEndAllowThreads(__tstate);
12824 if (PyErr_Occurred()) SWIG_fail;
12825 }
12826 resultobj = SWIG_Py_Void();
12827 return resultobj;
12828 fail:
12829 return NULL;
12830 }
12831
12832
12833 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12834 PyObject *resultobj = 0;
12835 wxFont *arg1 = (wxFont *) 0 ;
12836 int arg2 ;
12837 void *argp1 = 0 ;
12838 int res1 = 0 ;
12839 int val2 ;
12840 int ecode2 = 0 ;
12841 PyObject * obj0 = 0 ;
12842 PyObject * obj1 = 0 ;
12843 char * kwnames[] = {
12844 (char *) "self",(char *) "style", NULL
12845 };
12846
12847 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12848 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12849 if (!SWIG_IsOK(res1)) {
12850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12851 }
12852 arg1 = reinterpret_cast< wxFont * >(argp1);
12853 ecode2 = SWIG_AsVal_int(obj1, &val2);
12854 if (!SWIG_IsOK(ecode2)) {
12855 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12856 }
12857 arg2 = static_cast< int >(val2);
12858 {
12859 PyThreadState* __tstate = wxPyBeginAllowThreads();
12860 (arg1)->SetStyle(arg2);
12861 wxPyEndAllowThreads(__tstate);
12862 if (PyErr_Occurred()) SWIG_fail;
12863 }
12864 resultobj = SWIG_Py_Void();
12865 return resultobj;
12866 fail:
12867 return NULL;
12868 }
12869
12870
12871 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12872 PyObject *resultobj = 0;
12873 wxFont *arg1 = (wxFont *) 0 ;
12874 int arg2 ;
12875 void *argp1 = 0 ;
12876 int res1 = 0 ;
12877 int val2 ;
12878 int ecode2 = 0 ;
12879 PyObject * obj0 = 0 ;
12880 PyObject * obj1 = 0 ;
12881 char * kwnames[] = {
12882 (char *) "self",(char *) "weight", NULL
12883 };
12884
12885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12887 if (!SWIG_IsOK(res1)) {
12888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12889 }
12890 arg1 = reinterpret_cast< wxFont * >(argp1);
12891 ecode2 = SWIG_AsVal_int(obj1, &val2);
12892 if (!SWIG_IsOK(ecode2)) {
12893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12894 }
12895 arg2 = static_cast< int >(val2);
12896 {
12897 PyThreadState* __tstate = wxPyBeginAllowThreads();
12898 (arg1)->SetWeight(arg2);
12899 wxPyEndAllowThreads(__tstate);
12900 if (PyErr_Occurred()) SWIG_fail;
12901 }
12902 resultobj = SWIG_Py_Void();
12903 return resultobj;
12904 fail:
12905 return NULL;
12906 }
12907
12908
12909 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12910 PyObject *resultobj = 0;
12911 wxFont *arg1 = (wxFont *) 0 ;
12912 wxString *arg2 = 0 ;
12913 bool result;
12914 void *argp1 = 0 ;
12915 int res1 = 0 ;
12916 bool temp2 = false ;
12917 PyObject * obj0 = 0 ;
12918 PyObject * obj1 = 0 ;
12919 char * kwnames[] = {
12920 (char *) "self",(char *) "faceName", NULL
12921 };
12922
12923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12925 if (!SWIG_IsOK(res1)) {
12926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12927 }
12928 arg1 = reinterpret_cast< wxFont * >(argp1);
12929 {
12930 arg2 = wxString_in_helper(obj1);
12931 if (arg2 == NULL) SWIG_fail;
12932 temp2 = true;
12933 }
12934 {
12935 PyThreadState* __tstate = wxPyBeginAllowThreads();
12936 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12937 wxPyEndAllowThreads(__tstate);
12938 if (PyErr_Occurred()) SWIG_fail;
12939 }
12940 {
12941 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12942 }
12943 {
12944 if (temp2)
12945 delete arg2;
12946 }
12947 return resultobj;
12948 fail:
12949 {
12950 if (temp2)
12951 delete arg2;
12952 }
12953 return NULL;
12954 }
12955
12956
12957 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12958 PyObject *resultobj = 0;
12959 wxFont *arg1 = (wxFont *) 0 ;
12960 bool arg2 ;
12961 void *argp1 = 0 ;
12962 int res1 = 0 ;
12963 bool val2 ;
12964 int ecode2 = 0 ;
12965 PyObject * obj0 = 0 ;
12966 PyObject * obj1 = 0 ;
12967 char * kwnames[] = {
12968 (char *) "self",(char *) "underlined", NULL
12969 };
12970
12971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12973 if (!SWIG_IsOK(res1)) {
12974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12975 }
12976 arg1 = reinterpret_cast< wxFont * >(argp1);
12977 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12978 if (!SWIG_IsOK(ecode2)) {
12979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12980 }
12981 arg2 = static_cast< bool >(val2);
12982 {
12983 PyThreadState* __tstate = wxPyBeginAllowThreads();
12984 (arg1)->SetUnderlined(arg2);
12985 wxPyEndAllowThreads(__tstate);
12986 if (PyErr_Occurred()) SWIG_fail;
12987 }
12988 resultobj = SWIG_Py_Void();
12989 return resultobj;
12990 fail:
12991 return NULL;
12992 }
12993
12994
12995 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12996 PyObject *resultobj = 0;
12997 wxFont *arg1 = (wxFont *) 0 ;
12998 wxFontEncoding arg2 ;
12999 void *argp1 = 0 ;
13000 int res1 = 0 ;
13001 int val2 ;
13002 int ecode2 = 0 ;
13003 PyObject * obj0 = 0 ;
13004 PyObject * obj1 = 0 ;
13005 char * kwnames[] = {
13006 (char *) "self",(char *) "encoding", NULL
13007 };
13008
13009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13011 if (!SWIG_IsOK(res1)) {
13012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
13013 }
13014 arg1 = reinterpret_cast< wxFont * >(argp1);
13015 ecode2 = SWIG_AsVal_int(obj1, &val2);
13016 if (!SWIG_IsOK(ecode2)) {
13017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13018 }
13019 arg2 = static_cast< wxFontEncoding >(val2);
13020 {
13021 PyThreadState* __tstate = wxPyBeginAllowThreads();
13022 (arg1)->SetEncoding(arg2);
13023 wxPyEndAllowThreads(__tstate);
13024 if (PyErr_Occurred()) SWIG_fail;
13025 }
13026 resultobj = SWIG_Py_Void();
13027 return resultobj;
13028 fail:
13029 return NULL;
13030 }
13031
13032
13033 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13034 PyObject *resultobj = 0;
13035 wxFont *arg1 = (wxFont *) 0 ;
13036 wxNativeFontInfo *arg2 = 0 ;
13037 void *argp1 = 0 ;
13038 int res1 = 0 ;
13039 void *argp2 = 0 ;
13040 int res2 = 0 ;
13041 PyObject * obj0 = 0 ;
13042 PyObject * obj1 = 0 ;
13043 char * kwnames[] = {
13044 (char *) "self",(char *) "info", NULL
13045 };
13046
13047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13049 if (!SWIG_IsOK(res1)) {
13050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13051 }
13052 arg1 = reinterpret_cast< wxFont * >(argp1);
13053 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13054 if (!SWIG_IsOK(res2)) {
13055 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13056 }
13057 if (!argp2) {
13058 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13059 }
13060 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13061 {
13062 PyThreadState* __tstate = wxPyBeginAllowThreads();
13063 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13064 wxPyEndAllowThreads(__tstate);
13065 if (PyErr_Occurred()) SWIG_fail;
13066 }
13067 resultobj = SWIG_Py_Void();
13068 return resultobj;
13069 fail:
13070 return NULL;
13071 }
13072
13073
13074 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13075 PyObject *resultobj = 0;
13076 wxFont *arg1 = (wxFont *) 0 ;
13077 wxString *arg2 = 0 ;
13078 bool result;
13079 void *argp1 = 0 ;
13080 int res1 = 0 ;
13081 bool temp2 = false ;
13082 PyObject * obj0 = 0 ;
13083 PyObject * obj1 = 0 ;
13084 char * kwnames[] = {
13085 (char *) "self",(char *) "info", NULL
13086 };
13087
13088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13090 if (!SWIG_IsOK(res1)) {
13091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13092 }
13093 arg1 = reinterpret_cast< wxFont * >(argp1);
13094 {
13095 arg2 = wxString_in_helper(obj1);
13096 if (arg2 == NULL) SWIG_fail;
13097 temp2 = true;
13098 }
13099 {
13100 PyThreadState* __tstate = wxPyBeginAllowThreads();
13101 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
13102 wxPyEndAllowThreads(__tstate);
13103 if (PyErr_Occurred()) SWIG_fail;
13104 }
13105 {
13106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13107 }
13108 {
13109 if (temp2)
13110 delete arg2;
13111 }
13112 return resultobj;
13113 fail:
13114 {
13115 if (temp2)
13116 delete arg2;
13117 }
13118 return NULL;
13119 }
13120
13121
13122 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj = 0;
13124 wxFont *arg1 = (wxFont *) 0 ;
13125 wxString *arg2 = 0 ;
13126 bool result;
13127 void *argp1 = 0 ;
13128 int res1 = 0 ;
13129 bool temp2 = false ;
13130 PyObject * obj0 = 0 ;
13131 PyObject * obj1 = 0 ;
13132 char * kwnames[] = {
13133 (char *) "self",(char *) "info", NULL
13134 };
13135
13136 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13137 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13138 if (!SWIG_IsOK(res1)) {
13139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13140 }
13141 arg1 = reinterpret_cast< wxFont * >(argp1);
13142 {
13143 arg2 = wxString_in_helper(obj1);
13144 if (arg2 == NULL) SWIG_fail;
13145 temp2 = true;
13146 }
13147 {
13148 PyThreadState* __tstate = wxPyBeginAllowThreads();
13149 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13150 wxPyEndAllowThreads(__tstate);
13151 if (PyErr_Occurred()) SWIG_fail;
13152 }
13153 {
13154 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13155 }
13156 {
13157 if (temp2)
13158 delete arg2;
13159 }
13160 return resultobj;
13161 fail:
13162 {
13163 if (temp2)
13164 delete arg2;
13165 }
13166 return NULL;
13167 }
13168
13169
13170 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13171 PyObject *resultobj = 0;
13172 wxFont *arg1 = (wxFont *) 0 ;
13173 wxString result;
13174 void *argp1 = 0 ;
13175 int res1 = 0 ;
13176 PyObject *swig_obj[1] ;
13177
13178 if (!args) SWIG_fail;
13179 swig_obj[0] = args;
13180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13181 if (!SWIG_IsOK(res1)) {
13182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13183 }
13184 arg1 = reinterpret_cast< wxFont * >(argp1);
13185 {
13186 PyThreadState* __tstate = wxPyBeginAllowThreads();
13187 result = ((wxFont const *)arg1)->GetFamilyString();
13188 wxPyEndAllowThreads(__tstate);
13189 if (PyErr_Occurred()) SWIG_fail;
13190 }
13191 {
13192 #if wxUSE_UNICODE
13193 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13194 #else
13195 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13196 #endif
13197 }
13198 return resultobj;
13199 fail:
13200 return NULL;
13201 }
13202
13203
13204 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13205 PyObject *resultobj = 0;
13206 wxFont *arg1 = (wxFont *) 0 ;
13207 wxString result;
13208 void *argp1 = 0 ;
13209 int res1 = 0 ;
13210 PyObject *swig_obj[1] ;
13211
13212 if (!args) SWIG_fail;
13213 swig_obj[0] = args;
13214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13215 if (!SWIG_IsOK(res1)) {
13216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13217 }
13218 arg1 = reinterpret_cast< wxFont * >(argp1);
13219 {
13220 PyThreadState* __tstate = wxPyBeginAllowThreads();
13221 result = ((wxFont const *)arg1)->GetStyleString();
13222 wxPyEndAllowThreads(__tstate);
13223 if (PyErr_Occurred()) SWIG_fail;
13224 }
13225 {
13226 #if wxUSE_UNICODE
13227 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13228 #else
13229 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13230 #endif
13231 }
13232 return resultobj;
13233 fail:
13234 return NULL;
13235 }
13236
13237
13238 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13239 PyObject *resultobj = 0;
13240 wxFont *arg1 = (wxFont *) 0 ;
13241 wxString result;
13242 void *argp1 = 0 ;
13243 int res1 = 0 ;
13244 PyObject *swig_obj[1] ;
13245
13246 if (!args) SWIG_fail;
13247 swig_obj[0] = args;
13248 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13249 if (!SWIG_IsOK(res1)) {
13250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13251 }
13252 arg1 = reinterpret_cast< wxFont * >(argp1);
13253 {
13254 PyThreadState* __tstate = wxPyBeginAllowThreads();
13255 result = ((wxFont const *)arg1)->GetWeightString();
13256 wxPyEndAllowThreads(__tstate);
13257 if (PyErr_Occurred()) SWIG_fail;
13258 }
13259 {
13260 #if wxUSE_UNICODE
13261 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13262 #else
13263 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13264 #endif
13265 }
13266 return resultobj;
13267 fail:
13268 return NULL;
13269 }
13270
13271
13272 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13273 PyObject *resultobj = 0;
13274 wxFont *arg1 = (wxFont *) 0 ;
13275 bool arg2 = (bool) true ;
13276 void *argp1 = 0 ;
13277 int res1 = 0 ;
13278 bool val2 ;
13279 int ecode2 = 0 ;
13280 PyObject * obj0 = 0 ;
13281 PyObject * obj1 = 0 ;
13282 char * kwnames[] = {
13283 (char *) "self",(char *) "no", NULL
13284 };
13285
13286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13288 if (!SWIG_IsOK(res1)) {
13289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13290 }
13291 arg1 = reinterpret_cast< wxFont * >(argp1);
13292 if (obj1) {
13293 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13294 if (!SWIG_IsOK(ecode2)) {
13295 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13296 }
13297 arg2 = static_cast< bool >(val2);
13298 }
13299 {
13300 PyThreadState* __tstate = wxPyBeginAllowThreads();
13301 (arg1)->SetNoAntiAliasing(arg2);
13302 wxPyEndAllowThreads(__tstate);
13303 if (PyErr_Occurred()) SWIG_fail;
13304 }
13305 resultobj = SWIG_Py_Void();
13306 return resultobj;
13307 fail:
13308 return NULL;
13309 }
13310
13311
13312 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13313 PyObject *resultobj = 0;
13314 wxFont *arg1 = (wxFont *) 0 ;
13315 bool result;
13316 void *argp1 = 0 ;
13317 int res1 = 0 ;
13318 PyObject *swig_obj[1] ;
13319
13320 if (!args) SWIG_fail;
13321 swig_obj[0] = args;
13322 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13323 if (!SWIG_IsOK(res1)) {
13324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13325 }
13326 arg1 = reinterpret_cast< wxFont * >(argp1);
13327 {
13328 PyThreadState* __tstate = wxPyBeginAllowThreads();
13329 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13330 wxPyEndAllowThreads(__tstate);
13331 if (PyErr_Occurred()) SWIG_fail;
13332 }
13333 {
13334 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13335 }
13336 return resultobj;
13337 fail:
13338 return NULL;
13339 }
13340
13341
13342 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13343 PyObject *resultobj = 0;
13344 wxFontEncoding result;
13345
13346 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13347 {
13348 if (!wxPyCheckForApp()) SWIG_fail;
13349 PyThreadState* __tstate = wxPyBeginAllowThreads();
13350 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13351 wxPyEndAllowThreads(__tstate);
13352 if (PyErr_Occurred()) SWIG_fail;
13353 }
13354 resultobj = SWIG_From_int(static_cast< int >(result));
13355 return resultobj;
13356 fail:
13357 return NULL;
13358 }
13359
13360
13361 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13362 PyObject *resultobj = 0;
13363 wxFontEncoding arg1 ;
13364 int val1 ;
13365 int ecode1 = 0 ;
13366 PyObject * obj0 = 0 ;
13367 char * kwnames[] = {
13368 (char *) "encoding", NULL
13369 };
13370
13371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13372 ecode1 = SWIG_AsVal_int(obj0, &val1);
13373 if (!SWIG_IsOK(ecode1)) {
13374 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13375 }
13376 arg1 = static_cast< wxFontEncoding >(val1);
13377 {
13378 if (!wxPyCheckForApp()) SWIG_fail;
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 wxFont::SetDefaultEncoding(arg1);
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_Py_Void();
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13392 PyObject *obj;
13393 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13394 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13395 return SWIG_Py_Void();
13396 }
13397
13398 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13399 return SWIG_Python_InitShadowInstance(args);
13400 }
13401
13402 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13403 PyObject *resultobj = 0;
13404 wxPyFontEnumerator *result = 0 ;
13405
13406 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13407 {
13408 if (!wxPyCheckForApp()) SWIG_fail;
13409 PyThreadState* __tstate = wxPyBeginAllowThreads();
13410 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13411 wxPyEndAllowThreads(__tstate);
13412 if (PyErr_Occurred()) SWIG_fail;
13413 }
13414 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13415 return resultobj;
13416 fail:
13417 return NULL;
13418 }
13419
13420
13421 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13422 PyObject *resultobj = 0;
13423 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13424 void *argp1 = 0 ;
13425 int res1 = 0 ;
13426 PyObject *swig_obj[1] ;
13427
13428 if (!args) SWIG_fail;
13429 swig_obj[0] = args;
13430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13431 if (!SWIG_IsOK(res1)) {
13432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13433 }
13434 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13435 {
13436 PyThreadState* __tstate = wxPyBeginAllowThreads();
13437 delete arg1;
13438
13439 wxPyEndAllowThreads(__tstate);
13440 if (PyErr_Occurred()) SWIG_fail;
13441 }
13442 resultobj = SWIG_Py_Void();
13443 return resultobj;
13444 fail:
13445 return NULL;
13446 }
13447
13448
13449 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13450 PyObject *resultobj = 0;
13451 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13452 PyObject *arg2 = (PyObject *) 0 ;
13453 PyObject *arg3 = (PyObject *) 0 ;
13454 bool arg4 ;
13455 void *argp1 = 0 ;
13456 int res1 = 0 ;
13457 bool val4 ;
13458 int ecode4 = 0 ;
13459 PyObject * obj0 = 0 ;
13460 PyObject * obj1 = 0 ;
13461 PyObject * obj2 = 0 ;
13462 PyObject * obj3 = 0 ;
13463 char * kwnames[] = {
13464 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13465 };
13466
13467 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13468 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13469 if (!SWIG_IsOK(res1)) {
13470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13471 }
13472 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13473 arg2 = obj1;
13474 arg3 = obj2;
13475 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13476 if (!SWIG_IsOK(ecode4)) {
13477 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13478 }
13479 arg4 = static_cast< bool >(val4);
13480 {
13481 PyThreadState* __tstate = wxPyBeginAllowThreads();
13482 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13483 wxPyEndAllowThreads(__tstate);
13484 if (PyErr_Occurred()) SWIG_fail;
13485 }
13486 resultobj = SWIG_Py_Void();
13487 return resultobj;
13488 fail:
13489 return NULL;
13490 }
13491
13492
13493 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13494 PyObject *resultobj = 0;
13495 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13496 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13497 bool arg3 = (bool) false ;
13498 bool result;
13499 void *argp1 = 0 ;
13500 int res1 = 0 ;
13501 int val2 ;
13502 int ecode2 = 0 ;
13503 bool val3 ;
13504 int ecode3 = 0 ;
13505 PyObject * obj0 = 0 ;
13506 PyObject * obj1 = 0 ;
13507 PyObject * obj2 = 0 ;
13508 char * kwnames[] = {
13509 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13510 };
13511
13512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13514 if (!SWIG_IsOK(res1)) {
13515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13516 }
13517 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13518 if (obj1) {
13519 ecode2 = SWIG_AsVal_int(obj1, &val2);
13520 if (!SWIG_IsOK(ecode2)) {
13521 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13522 }
13523 arg2 = static_cast< wxFontEncoding >(val2);
13524 }
13525 if (obj2) {
13526 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13527 if (!SWIG_IsOK(ecode3)) {
13528 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13529 }
13530 arg3 = static_cast< bool >(val3);
13531 }
13532 {
13533 PyThreadState* __tstate = wxPyBeginAllowThreads();
13534 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13535 wxPyEndAllowThreads(__tstate);
13536 if (PyErr_Occurred()) SWIG_fail;
13537 }
13538 {
13539 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13540 }
13541 return resultobj;
13542 fail:
13543 return NULL;
13544 }
13545
13546
13547 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13548 PyObject *resultobj = 0;
13549 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13550 wxString const &arg2_defvalue = wxPyEmptyString ;
13551 wxString *arg2 = (wxString *) &arg2_defvalue ;
13552 bool result;
13553 void *argp1 = 0 ;
13554 int res1 = 0 ;
13555 bool temp2 = false ;
13556 PyObject * obj0 = 0 ;
13557 PyObject * obj1 = 0 ;
13558 char * kwnames[] = {
13559 (char *) "self",(char *) "facename", NULL
13560 };
13561
13562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13564 if (!SWIG_IsOK(res1)) {
13565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13566 }
13567 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13568 if (obj1) {
13569 {
13570 arg2 = wxString_in_helper(obj1);
13571 if (arg2 == NULL) SWIG_fail;
13572 temp2 = true;
13573 }
13574 }
13575 {
13576 PyThreadState* __tstate = wxPyBeginAllowThreads();
13577 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13578 wxPyEndAllowThreads(__tstate);
13579 if (PyErr_Occurred()) SWIG_fail;
13580 }
13581 {
13582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13583 }
13584 {
13585 if (temp2)
13586 delete arg2;
13587 }
13588 return resultobj;
13589 fail:
13590 {
13591 if (temp2)
13592 delete arg2;
13593 }
13594 return NULL;
13595 }
13596
13597
13598 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13599 PyObject *resultobj = 0;
13600 PyObject *result = 0 ;
13601
13602 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
13603 {
13604 PyThreadState* __tstate = wxPyBeginAllowThreads();
13605 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
13606 wxPyEndAllowThreads(__tstate);
13607 if (PyErr_Occurred()) SWIG_fail;
13608 }
13609 resultobj = result;
13610 return resultobj;
13611 fail:
13612 return NULL;
13613 }
13614
13615
13616 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13617 PyObject *resultobj = 0;
13618 PyObject *result = 0 ;
13619
13620 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = result;
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13635 PyObject *resultobj = 0;
13636 wxString *arg1 = 0 ;
13637 bool result;
13638 bool temp1 = false ;
13639 PyObject * obj0 = 0 ;
13640 char * kwnames[] = {
13641 (char *) "str", NULL
13642 };
13643
13644 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
13645 {
13646 arg1 = wxString_in_helper(obj0);
13647 if (arg1 == NULL) SWIG_fail;
13648 temp1 = true;
13649 }
13650 {
13651 PyThreadState* __tstate = wxPyBeginAllowThreads();
13652 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
13653 wxPyEndAllowThreads(__tstate);
13654 if (PyErr_Occurred()) SWIG_fail;
13655 }
13656 {
13657 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13658 }
13659 {
13660 if (temp1)
13661 delete arg1;
13662 }
13663 return resultobj;
13664 fail:
13665 {
13666 if (temp1)
13667 delete arg1;
13668 }
13669 return NULL;
13670 }
13671
13672
13673 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13674 PyObject *obj;
13675 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13676 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13677 return SWIG_Py_Void();
13678 }
13679
13680 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13681 return SWIG_Python_InitShadowInstance(args);
13682 }
13683
13684 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13685 PyObject *resultobj = 0;
13686 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13687 int arg2 ;
13688 void *argp1 = 0 ;
13689 int res1 = 0 ;
13690 int val2 ;
13691 int ecode2 = 0 ;
13692 PyObject *swig_obj[2] ;
13693
13694 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13696 if (!SWIG_IsOK(res1)) {
13697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13698 }
13699 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13700 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13701 if (!SWIG_IsOK(ecode2)) {
13702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13703 }
13704 arg2 = static_cast< int >(val2);
13705 if (arg1) (arg1)->Language = arg2;
13706
13707 resultobj = SWIG_Py_Void();
13708 return resultobj;
13709 fail:
13710 return NULL;
13711 }
13712
13713
13714 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13715 PyObject *resultobj = 0;
13716 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13717 int result;
13718 void *argp1 = 0 ;
13719 int res1 = 0 ;
13720 PyObject *swig_obj[1] ;
13721
13722 if (!args) SWIG_fail;
13723 swig_obj[0] = args;
13724 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13725 if (!SWIG_IsOK(res1)) {
13726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13727 }
13728 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13729 result = (int) ((arg1)->Language);
13730 resultobj = SWIG_From_int(static_cast< int >(result));
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13738 PyObject *resultobj = 0;
13739 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13740 wxString *arg2 = (wxString *) 0 ;
13741 void *argp1 = 0 ;
13742 int res1 = 0 ;
13743 bool temp2 = false ;
13744 PyObject *swig_obj[2] ;
13745
13746 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13748 if (!SWIG_IsOK(res1)) {
13749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13750 }
13751 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13752 {
13753 arg2 = wxString_in_helper(swig_obj[1]);
13754 if (arg2 == NULL) SWIG_fail;
13755 temp2 = true;
13756 }
13757 if (arg1) (arg1)->CanonicalName = *arg2;
13758
13759 resultobj = SWIG_Py_Void();
13760 {
13761 if (temp2)
13762 delete arg2;
13763 }
13764 return resultobj;
13765 fail:
13766 {
13767 if (temp2)
13768 delete arg2;
13769 }
13770 return NULL;
13771 }
13772
13773
13774 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13775 PyObject *resultobj = 0;
13776 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13777 wxString *result = 0 ;
13778 void *argp1 = 0 ;
13779 int res1 = 0 ;
13780 PyObject *swig_obj[1] ;
13781
13782 if (!args) SWIG_fail;
13783 swig_obj[0] = args;
13784 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13785 if (!SWIG_IsOK(res1)) {
13786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13787 }
13788 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13789 result = (wxString *)& ((arg1)->CanonicalName);
13790 {
13791 #if wxUSE_UNICODE
13792 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13793 #else
13794 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13795 #endif
13796 }
13797 return resultobj;
13798 fail:
13799 return NULL;
13800 }
13801
13802
13803 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13804 PyObject *resultobj = 0;
13805 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13806 wxString *arg2 = (wxString *) 0 ;
13807 void *argp1 = 0 ;
13808 int res1 = 0 ;
13809 bool temp2 = false ;
13810 PyObject *swig_obj[2] ;
13811
13812 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13814 if (!SWIG_IsOK(res1)) {
13815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13816 }
13817 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13818 {
13819 arg2 = wxString_in_helper(swig_obj[1]);
13820 if (arg2 == NULL) SWIG_fail;
13821 temp2 = true;
13822 }
13823 if (arg1) (arg1)->Description = *arg2;
13824
13825 resultobj = SWIG_Py_Void();
13826 {
13827 if (temp2)
13828 delete arg2;
13829 }
13830 return resultobj;
13831 fail:
13832 {
13833 if (temp2)
13834 delete arg2;
13835 }
13836 return NULL;
13837 }
13838
13839
13840 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13841 PyObject *resultobj = 0;
13842 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13843 wxString *result = 0 ;
13844 void *argp1 = 0 ;
13845 int res1 = 0 ;
13846 PyObject *swig_obj[1] ;
13847
13848 if (!args) SWIG_fail;
13849 swig_obj[0] = args;
13850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13851 if (!SWIG_IsOK(res1)) {
13852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13853 }
13854 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13855 result = (wxString *)& ((arg1)->Description);
13856 {
13857 #if wxUSE_UNICODE
13858 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13859 #else
13860 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13861 #endif
13862 }
13863 return resultobj;
13864 fail:
13865 return NULL;
13866 }
13867
13868
13869 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13870 PyObject *obj;
13871 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13872 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13873 return SWIG_Py_Void();
13874 }
13875
13876 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13877 PyObject *resultobj = 0;
13878 int arg1 = (int) -1 ;
13879 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13880 wxLocale *result = 0 ;
13881 int val1 ;
13882 int ecode1 = 0 ;
13883 int val2 ;
13884 int ecode2 = 0 ;
13885 PyObject * obj0 = 0 ;
13886 PyObject * obj1 = 0 ;
13887 char * kwnames[] = {
13888 (char *) "language",(char *) "flags", NULL
13889 };
13890
13891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13892 if (obj0) {
13893 ecode1 = SWIG_AsVal_int(obj0, &val1);
13894 if (!SWIG_IsOK(ecode1)) {
13895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13896 }
13897 arg1 = static_cast< int >(val1);
13898 }
13899 if (obj1) {
13900 ecode2 = SWIG_AsVal_int(obj1, &val2);
13901 if (!SWIG_IsOK(ecode2)) {
13902 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13903 }
13904 arg2 = static_cast< int >(val2);
13905 }
13906 {
13907 PyThreadState* __tstate = wxPyBeginAllowThreads();
13908 result = (wxLocale *)new_wxLocale(arg1,arg2);
13909 wxPyEndAllowThreads(__tstate);
13910 if (PyErr_Occurred()) SWIG_fail;
13911 }
13912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13913 return resultobj;
13914 fail:
13915 return NULL;
13916 }
13917
13918
13919 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13920 PyObject *resultobj = 0;
13921 wxLocale *arg1 = (wxLocale *) 0 ;
13922 void *argp1 = 0 ;
13923 int res1 = 0 ;
13924 PyObject *swig_obj[1] ;
13925
13926 if (!args) SWIG_fail;
13927 swig_obj[0] = args;
13928 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13929 if (!SWIG_IsOK(res1)) {
13930 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13931 }
13932 arg1 = reinterpret_cast< wxLocale * >(argp1);
13933 {
13934 PyThreadState* __tstate = wxPyBeginAllowThreads();
13935 delete arg1;
13936
13937 wxPyEndAllowThreads(__tstate);
13938 if (PyErr_Occurred()) SWIG_fail;
13939 }
13940 resultobj = SWIG_Py_Void();
13941 return resultobj;
13942 fail:
13943 return NULL;
13944 }
13945
13946
13947 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13948 PyObject *resultobj = 0;
13949 wxLocale *arg1 = (wxLocale *) 0 ;
13950 wxString *arg2 = 0 ;
13951 wxString const &arg3_defvalue = wxPyEmptyString ;
13952 wxString *arg3 = (wxString *) &arg3_defvalue ;
13953 wxString const &arg4_defvalue = wxPyEmptyString ;
13954 wxString *arg4 = (wxString *) &arg4_defvalue ;
13955 bool arg5 = (bool) true ;
13956 bool arg6 = (bool) false ;
13957 bool result;
13958 void *argp1 = 0 ;
13959 int res1 = 0 ;
13960 bool temp2 = false ;
13961 bool temp3 = false ;
13962 bool temp4 = false ;
13963 bool val5 ;
13964 int ecode5 = 0 ;
13965 bool val6 ;
13966 int ecode6 = 0 ;
13967 PyObject * obj0 = 0 ;
13968 PyObject * obj1 = 0 ;
13969 PyObject * obj2 = 0 ;
13970 PyObject * obj3 = 0 ;
13971 PyObject * obj4 = 0 ;
13972 PyObject * obj5 = 0 ;
13973 char * kwnames[] = {
13974 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13975 };
13976
13977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13979 if (!SWIG_IsOK(res1)) {
13980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13981 }
13982 arg1 = reinterpret_cast< wxLocale * >(argp1);
13983 {
13984 arg2 = wxString_in_helper(obj1);
13985 if (arg2 == NULL) SWIG_fail;
13986 temp2 = true;
13987 }
13988 if (obj2) {
13989 {
13990 arg3 = wxString_in_helper(obj2);
13991 if (arg3 == NULL) SWIG_fail;
13992 temp3 = true;
13993 }
13994 }
13995 if (obj3) {
13996 {
13997 arg4 = wxString_in_helper(obj3);
13998 if (arg4 == NULL) SWIG_fail;
13999 temp4 = true;
14000 }
14001 }
14002 if (obj4) {
14003 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14004 if (!SWIG_IsOK(ecode5)) {
14005 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
14006 }
14007 arg5 = static_cast< bool >(val5);
14008 }
14009 if (obj5) {
14010 ecode6 = SWIG_AsVal_bool(obj5, &val6);
14011 if (!SWIG_IsOK(ecode6)) {
14012 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
14013 }
14014 arg6 = static_cast< bool >(val6);
14015 }
14016 {
14017 PyThreadState* __tstate = wxPyBeginAllowThreads();
14018 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
14019 wxPyEndAllowThreads(__tstate);
14020 if (PyErr_Occurred()) SWIG_fail;
14021 }
14022 {
14023 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14024 }
14025 {
14026 if (temp2)
14027 delete arg2;
14028 }
14029 {
14030 if (temp3)
14031 delete arg3;
14032 }
14033 {
14034 if (temp4)
14035 delete arg4;
14036 }
14037 return resultobj;
14038 fail:
14039 {
14040 if (temp2)
14041 delete arg2;
14042 }
14043 {
14044 if (temp3)
14045 delete arg3;
14046 }
14047 {
14048 if (temp4)
14049 delete arg4;
14050 }
14051 return NULL;
14052 }
14053
14054
14055 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14056 PyObject *resultobj = 0;
14057 wxLocale *arg1 = (wxLocale *) 0 ;
14058 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14059 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14060 bool result;
14061 void *argp1 = 0 ;
14062 int res1 = 0 ;
14063 int val2 ;
14064 int ecode2 = 0 ;
14065 int val3 ;
14066 int ecode3 = 0 ;
14067 PyObject * obj0 = 0 ;
14068 PyObject * obj1 = 0 ;
14069 PyObject * obj2 = 0 ;
14070 char * kwnames[] = {
14071 (char *) "self",(char *) "language",(char *) "flags", NULL
14072 };
14073
14074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14075 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14076 if (!SWIG_IsOK(res1)) {
14077 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14078 }
14079 arg1 = reinterpret_cast< wxLocale * >(argp1);
14080 if (obj1) {
14081 ecode2 = SWIG_AsVal_int(obj1, &val2);
14082 if (!SWIG_IsOK(ecode2)) {
14083 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14084 }
14085 arg2 = static_cast< int >(val2);
14086 }
14087 if (obj2) {
14088 ecode3 = SWIG_AsVal_int(obj2, &val3);
14089 if (!SWIG_IsOK(ecode3)) {
14090 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14091 }
14092 arg3 = static_cast< int >(val3);
14093 }
14094 {
14095 PyThreadState* __tstate = wxPyBeginAllowThreads();
14096 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
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_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14110 PyObject *resultobj = 0;
14111 int result;
14112
14113 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14114 {
14115 PyThreadState* __tstate = wxPyBeginAllowThreads();
14116 result = (int)wxLocale::GetSystemLanguage();
14117 wxPyEndAllowThreads(__tstate);
14118 if (PyErr_Occurred()) SWIG_fail;
14119 }
14120 resultobj = SWIG_From_int(static_cast< int >(result));
14121 return resultobj;
14122 fail:
14123 return NULL;
14124 }
14125
14126
14127 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14128 PyObject *resultobj = 0;
14129 wxFontEncoding result;
14130
14131 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14132 {
14133 PyThreadState* __tstate = wxPyBeginAllowThreads();
14134 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_From_int(static_cast< int >(result));
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14146 PyObject *resultobj = 0;
14147 wxString result;
14148
14149 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14150 {
14151 PyThreadState* __tstate = wxPyBeginAllowThreads();
14152 result = wxLocale::GetSystemEncodingName();
14153 wxPyEndAllowThreads(__tstate);
14154 if (PyErr_Occurred()) SWIG_fail;
14155 }
14156 {
14157 #if wxUSE_UNICODE
14158 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14159 #else
14160 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14161 #endif
14162 }
14163 return resultobj;
14164 fail:
14165 return NULL;
14166 }
14167
14168
14169 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14170 PyObject *resultobj = 0;
14171 wxLocale *arg1 = (wxLocale *) 0 ;
14172 bool result;
14173 void *argp1 = 0 ;
14174 int res1 = 0 ;
14175 PyObject *swig_obj[1] ;
14176
14177 if (!args) SWIG_fail;
14178 swig_obj[0] = args;
14179 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14180 if (!SWIG_IsOK(res1)) {
14181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14182 }
14183 arg1 = reinterpret_cast< wxLocale * >(argp1);
14184 {
14185 PyThreadState* __tstate = wxPyBeginAllowThreads();
14186 result = (bool)((wxLocale const *)arg1)->IsOk();
14187 wxPyEndAllowThreads(__tstate);
14188 if (PyErr_Occurred()) SWIG_fail;
14189 }
14190 {
14191 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14192 }
14193 return resultobj;
14194 fail:
14195 return NULL;
14196 }
14197
14198
14199 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14200 PyObject *resultobj = 0;
14201 wxLocale *arg1 = (wxLocale *) 0 ;
14202 wxString result;
14203 void *argp1 = 0 ;
14204 int res1 = 0 ;
14205 PyObject *swig_obj[1] ;
14206
14207 if (!args) SWIG_fail;
14208 swig_obj[0] = args;
14209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14210 if (!SWIG_IsOK(res1)) {
14211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14212 }
14213 arg1 = reinterpret_cast< wxLocale * >(argp1);
14214 {
14215 PyThreadState* __tstate = wxPyBeginAllowThreads();
14216 result = ((wxLocale const *)arg1)->GetLocale();
14217 wxPyEndAllowThreads(__tstate);
14218 if (PyErr_Occurred()) SWIG_fail;
14219 }
14220 {
14221 #if wxUSE_UNICODE
14222 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14223 #else
14224 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14225 #endif
14226 }
14227 return resultobj;
14228 fail:
14229 return NULL;
14230 }
14231
14232
14233 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14234 PyObject *resultobj = 0;
14235 wxLocale *arg1 = (wxLocale *) 0 ;
14236 int result;
14237 void *argp1 = 0 ;
14238 int res1 = 0 ;
14239 PyObject *swig_obj[1] ;
14240
14241 if (!args) SWIG_fail;
14242 swig_obj[0] = args;
14243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14244 if (!SWIG_IsOK(res1)) {
14245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14246 }
14247 arg1 = reinterpret_cast< wxLocale * >(argp1);
14248 {
14249 PyThreadState* __tstate = wxPyBeginAllowThreads();
14250 result = (int)((wxLocale const *)arg1)->GetLanguage();
14251 wxPyEndAllowThreads(__tstate);
14252 if (PyErr_Occurred()) SWIG_fail;
14253 }
14254 resultobj = SWIG_From_int(static_cast< int >(result));
14255 return resultobj;
14256 fail:
14257 return NULL;
14258 }
14259
14260
14261 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14262 PyObject *resultobj = 0;
14263 wxLocale *arg1 = (wxLocale *) 0 ;
14264 wxString result;
14265 void *argp1 = 0 ;
14266 int res1 = 0 ;
14267 PyObject *swig_obj[1] ;
14268
14269 if (!args) SWIG_fail;
14270 swig_obj[0] = args;
14271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14272 if (!SWIG_IsOK(res1)) {
14273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14274 }
14275 arg1 = reinterpret_cast< wxLocale * >(argp1);
14276 {
14277 PyThreadState* __tstate = wxPyBeginAllowThreads();
14278 result = ((wxLocale const *)arg1)->GetSysName();
14279 wxPyEndAllowThreads(__tstate);
14280 if (PyErr_Occurred()) SWIG_fail;
14281 }
14282 {
14283 #if wxUSE_UNICODE
14284 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14285 #else
14286 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14287 #endif
14288 }
14289 return resultobj;
14290 fail:
14291 return NULL;
14292 }
14293
14294
14295 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14296 PyObject *resultobj = 0;
14297 wxLocale *arg1 = (wxLocale *) 0 ;
14298 wxString result;
14299 void *argp1 = 0 ;
14300 int res1 = 0 ;
14301 PyObject *swig_obj[1] ;
14302
14303 if (!args) SWIG_fail;
14304 swig_obj[0] = args;
14305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14306 if (!SWIG_IsOK(res1)) {
14307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14308 }
14309 arg1 = reinterpret_cast< wxLocale * >(argp1);
14310 {
14311 PyThreadState* __tstate = wxPyBeginAllowThreads();
14312 result = ((wxLocale const *)arg1)->GetCanonicalName();
14313 wxPyEndAllowThreads(__tstate);
14314 if (PyErr_Occurred()) SWIG_fail;
14315 }
14316 {
14317 #if wxUSE_UNICODE
14318 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14319 #else
14320 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14321 #endif
14322 }
14323 return resultobj;
14324 fail:
14325 return NULL;
14326 }
14327
14328
14329 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14330 PyObject *resultobj = 0;
14331 wxString *arg1 = 0 ;
14332 bool temp1 = false ;
14333 PyObject * obj0 = 0 ;
14334 char * kwnames[] = {
14335 (char *) "prefix", NULL
14336 };
14337
14338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14339 {
14340 arg1 = wxString_in_helper(obj0);
14341 if (arg1 == NULL) SWIG_fail;
14342 temp1 = true;
14343 }
14344 {
14345 PyThreadState* __tstate = wxPyBeginAllowThreads();
14346 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14347 wxPyEndAllowThreads(__tstate);
14348 if (PyErr_Occurred()) SWIG_fail;
14349 }
14350 resultobj = SWIG_Py_Void();
14351 {
14352 if (temp1)
14353 delete arg1;
14354 }
14355 return resultobj;
14356 fail:
14357 {
14358 if (temp1)
14359 delete arg1;
14360 }
14361 return NULL;
14362 }
14363
14364
14365 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14366 PyObject *resultobj = 0;
14367 wxLocale *arg1 = (wxLocale *) 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 *) "szDomain", NULL
14377 };
14378
14379 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14380 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14381 if (!SWIG_IsOK(res1)) {
14382 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14383 }
14384 arg1 = reinterpret_cast< wxLocale * >(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)->AddCatalog((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_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14414 PyObject *resultobj = 0;
14415 wxLocale *arg1 = (wxLocale *) 0 ;
14416 wxString *arg2 = 0 ;
14417 bool result;
14418 void *argp1 = 0 ;
14419 int res1 = 0 ;
14420 bool temp2 = false ;
14421 PyObject * obj0 = 0 ;
14422 PyObject * obj1 = 0 ;
14423 char * kwnames[] = {
14424 (char *) "self",(char *) "szDomain", NULL
14425 };
14426
14427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14429 if (!SWIG_IsOK(res1)) {
14430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14431 }
14432 arg1 = reinterpret_cast< wxLocale * >(argp1);
14433 {
14434 arg2 = wxString_in_helper(obj1);
14435 if (arg2 == NULL) SWIG_fail;
14436 temp2 = true;
14437 }
14438 {
14439 PyThreadState* __tstate = wxPyBeginAllowThreads();
14440 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14441 wxPyEndAllowThreads(__tstate);
14442 if (PyErr_Occurred()) SWIG_fail;
14443 }
14444 {
14445 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14446 }
14447 {
14448 if (temp2)
14449 delete arg2;
14450 }
14451 return resultobj;
14452 fail:
14453 {
14454 if (temp2)
14455 delete arg2;
14456 }
14457 return NULL;
14458 }
14459
14460
14461 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14462 PyObject *resultobj = 0;
14463 int arg1 ;
14464 wxLanguageInfo *result = 0 ;
14465 int val1 ;
14466 int ecode1 = 0 ;
14467 PyObject * obj0 = 0 ;
14468 char * kwnames[] = {
14469 (char *) "lang", NULL
14470 };
14471
14472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14473 ecode1 = SWIG_AsVal_int(obj0, &val1);
14474 if (!SWIG_IsOK(ecode1)) {
14475 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14476 }
14477 arg1 = static_cast< int >(val1);
14478 {
14479 PyThreadState* __tstate = wxPyBeginAllowThreads();
14480 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14481 wxPyEndAllowThreads(__tstate);
14482 if (PyErr_Occurred()) SWIG_fail;
14483 }
14484 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14485 return resultobj;
14486 fail:
14487 return NULL;
14488 }
14489
14490
14491 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14492 PyObject *resultobj = 0;
14493 int arg1 ;
14494 wxString result;
14495 int val1 ;
14496 int ecode1 = 0 ;
14497 PyObject * obj0 = 0 ;
14498 char * kwnames[] = {
14499 (char *) "lang", NULL
14500 };
14501
14502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14503 ecode1 = SWIG_AsVal_int(obj0, &val1);
14504 if (!SWIG_IsOK(ecode1)) {
14505 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14506 }
14507 arg1 = static_cast< int >(val1);
14508 {
14509 PyThreadState* __tstate = wxPyBeginAllowThreads();
14510 result = wxLocale::GetLanguageName(arg1);
14511 wxPyEndAllowThreads(__tstate);
14512 if (PyErr_Occurred()) SWIG_fail;
14513 }
14514 {
14515 #if wxUSE_UNICODE
14516 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14517 #else
14518 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14519 #endif
14520 }
14521 return resultobj;
14522 fail:
14523 return NULL;
14524 }
14525
14526
14527 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14528 PyObject *resultobj = 0;
14529 wxString *arg1 = 0 ;
14530 wxLanguageInfo *result = 0 ;
14531 bool temp1 = false ;
14532 PyObject * obj0 = 0 ;
14533 char * kwnames[] = {
14534 (char *) "locale", NULL
14535 };
14536
14537 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14538 {
14539 arg1 = wxString_in_helper(obj0);
14540 if (arg1 == NULL) SWIG_fail;
14541 temp1 = true;
14542 }
14543 {
14544 PyThreadState* __tstate = wxPyBeginAllowThreads();
14545 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14546 wxPyEndAllowThreads(__tstate);
14547 if (PyErr_Occurred()) SWIG_fail;
14548 }
14549 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14550 {
14551 if (temp1)
14552 delete arg1;
14553 }
14554 return resultobj;
14555 fail:
14556 {
14557 if (temp1)
14558 delete arg1;
14559 }
14560 return NULL;
14561 }
14562
14563
14564 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14565 PyObject *resultobj = 0;
14566 wxLanguageInfo *arg1 = 0 ;
14567 void *argp1 = 0 ;
14568 int res1 = 0 ;
14569 PyObject * obj0 = 0 ;
14570 char * kwnames[] = {
14571 (char *) "info", NULL
14572 };
14573
14574 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14575 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14576 if (!SWIG_IsOK(res1)) {
14577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14578 }
14579 if (!argp1) {
14580 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14581 }
14582 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14583 {
14584 PyThreadState* __tstate = wxPyBeginAllowThreads();
14585 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14586 wxPyEndAllowThreads(__tstate);
14587 if (PyErr_Occurred()) SWIG_fail;
14588 }
14589 resultobj = SWIG_Py_Void();
14590 return resultobj;
14591 fail:
14592 return NULL;
14593 }
14594
14595
14596 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14597 PyObject *resultobj = 0;
14598 wxLocale *arg1 = (wxLocale *) 0 ;
14599 wxString *arg2 = 0 ;
14600 wxString const &arg3_defvalue = wxPyEmptyString ;
14601 wxString *arg3 = (wxString *) &arg3_defvalue ;
14602 wxString result;
14603 void *argp1 = 0 ;
14604 int res1 = 0 ;
14605 bool temp2 = false ;
14606 bool temp3 = false ;
14607 PyObject * obj0 = 0 ;
14608 PyObject * obj1 = 0 ;
14609 PyObject * obj2 = 0 ;
14610 char * kwnames[] = {
14611 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14612 };
14613
14614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14616 if (!SWIG_IsOK(res1)) {
14617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14618 }
14619 arg1 = reinterpret_cast< wxLocale * >(argp1);
14620 {
14621 arg2 = wxString_in_helper(obj1);
14622 if (arg2 == NULL) SWIG_fail;
14623 temp2 = true;
14624 }
14625 if (obj2) {
14626 {
14627 arg3 = wxString_in_helper(obj2);
14628 if (arg3 == NULL) SWIG_fail;
14629 temp3 = true;
14630 }
14631 }
14632 {
14633 PyThreadState* __tstate = wxPyBeginAllowThreads();
14634 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14635 wxPyEndAllowThreads(__tstate);
14636 if (PyErr_Occurred()) SWIG_fail;
14637 }
14638 {
14639 #if wxUSE_UNICODE
14640 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14641 #else
14642 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14643 #endif
14644 }
14645 {
14646 if (temp2)
14647 delete arg2;
14648 }
14649 {
14650 if (temp3)
14651 delete arg3;
14652 }
14653 return resultobj;
14654 fail:
14655 {
14656 if (temp2)
14657 delete arg2;
14658 }
14659 {
14660 if (temp3)
14661 delete arg3;
14662 }
14663 return NULL;
14664 }
14665
14666
14667 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14668 PyObject *resultobj = 0;
14669 wxLocale *arg1 = (wxLocale *) 0 ;
14670 wxString *result = 0 ;
14671 void *argp1 = 0 ;
14672 int res1 = 0 ;
14673 PyObject *swig_obj[1] ;
14674
14675 if (!args) SWIG_fail;
14676 swig_obj[0] = args;
14677 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14678 if (!SWIG_IsOK(res1)) {
14679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14680 }
14681 arg1 = reinterpret_cast< wxLocale * >(argp1);
14682 {
14683 PyThreadState* __tstate = wxPyBeginAllowThreads();
14684 {
14685 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14686 result = (wxString *) &_result_ref;
14687 }
14688 wxPyEndAllowThreads(__tstate);
14689 if (PyErr_Occurred()) SWIG_fail;
14690 }
14691 {
14692 #if wxUSE_UNICODE
14693 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14694 #else
14695 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14696 #endif
14697 }
14698 return resultobj;
14699 fail:
14700 return NULL;
14701 }
14702
14703
14704 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14705 PyObject *obj;
14706 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14707 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14708 return SWIG_Py_Void();
14709 }
14710
14711 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14712 return SWIG_Python_InitShadowInstance(args);
14713 }
14714
14715 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14716 PyObject *resultobj = 0;
14717 wxLocale *result = 0 ;
14718
14719 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14720 {
14721 PyThreadState* __tstate = wxPyBeginAllowThreads();
14722 result = (wxLocale *)wxGetLocale();
14723 wxPyEndAllowThreads(__tstate);
14724 if (PyErr_Occurred()) SWIG_fail;
14725 }
14726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14727 return resultobj;
14728 fail:
14729 return NULL;
14730 }
14731
14732
14733 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14734 PyObject *resultobj = 0;
14735 wxString *arg1 = 0 ;
14736 wxString result;
14737 bool temp1 = false ;
14738
14739 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14740 {
14741 arg1 = wxString_in_helper(swig_obj[0]);
14742 if (arg1 == NULL) SWIG_fail;
14743 temp1 = true;
14744 }
14745 {
14746 PyThreadState* __tstate = wxPyBeginAllowThreads();
14747 result = wxGetTranslation((wxString const &)*arg1);
14748 wxPyEndAllowThreads(__tstate);
14749 if (PyErr_Occurred()) SWIG_fail;
14750 }
14751 {
14752 #if wxUSE_UNICODE
14753 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14754 #else
14755 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14756 #endif
14757 }
14758 {
14759 if (temp1)
14760 delete arg1;
14761 }
14762 return resultobj;
14763 fail:
14764 {
14765 if (temp1)
14766 delete arg1;
14767 }
14768 return NULL;
14769 }
14770
14771
14772 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14773 PyObject *resultobj = 0;
14774 wxString *arg1 = 0 ;
14775 wxString *arg2 = 0 ;
14776 size_t arg3 ;
14777 wxString result;
14778 bool temp1 = false ;
14779 bool temp2 = false ;
14780 size_t val3 ;
14781 int ecode3 = 0 ;
14782
14783 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14784 {
14785 arg1 = wxString_in_helper(swig_obj[0]);
14786 if (arg1 == NULL) SWIG_fail;
14787 temp1 = true;
14788 }
14789 {
14790 arg2 = wxString_in_helper(swig_obj[1]);
14791 if (arg2 == NULL) SWIG_fail;
14792 temp2 = true;
14793 }
14794 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14795 if (!SWIG_IsOK(ecode3)) {
14796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14797 }
14798 arg3 = static_cast< size_t >(val3);
14799 {
14800 PyThreadState* __tstate = wxPyBeginAllowThreads();
14801 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14802 wxPyEndAllowThreads(__tstate);
14803 if (PyErr_Occurred()) SWIG_fail;
14804 }
14805 {
14806 #if wxUSE_UNICODE
14807 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14808 #else
14809 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14810 #endif
14811 }
14812 {
14813 if (temp1)
14814 delete arg1;
14815 }
14816 {
14817 if (temp2)
14818 delete arg2;
14819 }
14820 return resultobj;
14821 fail:
14822 {
14823 if (temp1)
14824 delete arg1;
14825 }
14826 {
14827 if (temp2)
14828 delete arg2;
14829 }
14830 return NULL;
14831 }
14832
14833
14834 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14835 int argc;
14836 PyObject *argv[4];
14837
14838 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14839 --argc;
14840 if (argc == 1) {
14841 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14842 }
14843 if (argc == 3) {
14844 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14845 }
14846
14847 fail:
14848 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14849 return NULL;
14850 }
14851
14852
14853 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14854 PyObject *resultobj = 0;
14855 wxEncodingConverter *result = 0 ;
14856
14857 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14858 {
14859 PyThreadState* __tstate = wxPyBeginAllowThreads();
14860 result = (wxEncodingConverter *)new wxEncodingConverter();
14861 wxPyEndAllowThreads(__tstate);
14862 if (PyErr_Occurred()) SWIG_fail;
14863 }
14864 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14865 return resultobj;
14866 fail:
14867 return NULL;
14868 }
14869
14870
14871 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14872 PyObject *resultobj = 0;
14873 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14874 void *argp1 = 0 ;
14875 int res1 = 0 ;
14876 PyObject *swig_obj[1] ;
14877
14878 if (!args) SWIG_fail;
14879 swig_obj[0] = args;
14880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14881 if (!SWIG_IsOK(res1)) {
14882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14883 }
14884 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14885 {
14886 PyThreadState* __tstate = wxPyBeginAllowThreads();
14887 delete arg1;
14888
14889 wxPyEndAllowThreads(__tstate);
14890 if (PyErr_Occurred()) SWIG_fail;
14891 }
14892 resultobj = SWIG_Py_Void();
14893 return resultobj;
14894 fail:
14895 return NULL;
14896 }
14897
14898
14899 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14900 PyObject *resultobj = 0;
14901 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14902 wxFontEncoding arg2 ;
14903 wxFontEncoding arg3 ;
14904 int arg4 = (int) wxCONVERT_STRICT ;
14905 bool result;
14906 void *argp1 = 0 ;
14907 int res1 = 0 ;
14908 int val2 ;
14909 int ecode2 = 0 ;
14910 int val3 ;
14911 int ecode3 = 0 ;
14912 int val4 ;
14913 int ecode4 = 0 ;
14914 PyObject * obj0 = 0 ;
14915 PyObject * obj1 = 0 ;
14916 PyObject * obj2 = 0 ;
14917 PyObject * obj3 = 0 ;
14918 char * kwnames[] = {
14919 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14920 };
14921
14922 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14923 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14924 if (!SWIG_IsOK(res1)) {
14925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14926 }
14927 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14928 ecode2 = SWIG_AsVal_int(obj1, &val2);
14929 if (!SWIG_IsOK(ecode2)) {
14930 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14931 }
14932 arg2 = static_cast< wxFontEncoding >(val2);
14933 ecode3 = SWIG_AsVal_int(obj2, &val3);
14934 if (!SWIG_IsOK(ecode3)) {
14935 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14936 }
14937 arg3 = static_cast< wxFontEncoding >(val3);
14938 if (obj3) {
14939 ecode4 = SWIG_AsVal_int(obj3, &val4);
14940 if (!SWIG_IsOK(ecode4)) {
14941 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14942 }
14943 arg4 = static_cast< int >(val4);
14944 }
14945 {
14946 PyThreadState* __tstate = wxPyBeginAllowThreads();
14947 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14948 wxPyEndAllowThreads(__tstate);
14949 if (PyErr_Occurred()) SWIG_fail;
14950 }
14951 {
14952 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14953 }
14954 return resultobj;
14955 fail:
14956 return NULL;
14957 }
14958
14959
14960 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14961 PyObject *resultobj = 0;
14962 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14963 wxString *arg2 = 0 ;
14964 wxString result;
14965 void *argp1 = 0 ;
14966 int res1 = 0 ;
14967 bool temp2 = false ;
14968 PyObject * obj0 = 0 ;
14969 PyObject * obj1 = 0 ;
14970 char * kwnames[] = {
14971 (char *) "self",(char *) "input", NULL
14972 };
14973
14974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14976 if (!SWIG_IsOK(res1)) {
14977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14978 }
14979 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14980 {
14981 arg2 = wxString_in_helper(obj1);
14982 if (arg2 == NULL) SWIG_fail;
14983 temp2 = true;
14984 }
14985 {
14986 PyThreadState* __tstate = wxPyBeginAllowThreads();
14987 result = (arg1)->Convert((wxString const &)*arg2);
14988 wxPyEndAllowThreads(__tstate);
14989 if (PyErr_Occurred()) SWIG_fail;
14990 }
14991 {
14992 #if wxUSE_UNICODE
14993 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14994 #else
14995 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14996 #endif
14997 }
14998 {
14999 if (temp2)
15000 delete arg2;
15001 }
15002 return resultobj;
15003 fail:
15004 {
15005 if (temp2)
15006 delete arg2;
15007 }
15008 return NULL;
15009 }
15010
15011
15012 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15013 PyObject *resultobj = 0;
15014 wxFontEncoding arg1 ;
15015 int arg2 = (int) wxPLATFORM_CURRENT ;
15016 wxFontEncodingArray result;
15017 int val1 ;
15018 int ecode1 = 0 ;
15019 int val2 ;
15020 int ecode2 = 0 ;
15021 PyObject * obj0 = 0 ;
15022 PyObject * obj1 = 0 ;
15023 char * kwnames[] = {
15024 (char *) "enc",(char *) "platform", NULL
15025 };
15026
15027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
15028 ecode1 = SWIG_AsVal_int(obj0, &val1);
15029 if (!SWIG_IsOK(ecode1)) {
15030 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15031 }
15032 arg1 = static_cast< wxFontEncoding >(val1);
15033 if (obj1) {
15034 ecode2 = SWIG_AsVal_int(obj1, &val2);
15035 if (!SWIG_IsOK(ecode2)) {
15036 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
15037 }
15038 arg2 = static_cast< int >(val2);
15039 }
15040 {
15041 PyThreadState* __tstate = wxPyBeginAllowThreads();
15042 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15043 wxPyEndAllowThreads(__tstate);
15044 if (PyErr_Occurred()) SWIG_fail;
15045 }
15046 {
15047 resultobj = PyList_New(0);
15048 for (size_t i=0; i < (&result)->GetCount(); i++) {
15049 PyObject* number = PyInt_FromLong((&result)->Item(i));
15050 PyList_Append(resultobj, number);
15051 Py_DECREF(number);
15052 }
15053 }
15054 return resultobj;
15055 fail:
15056 return NULL;
15057 }
15058
15059
15060 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15061 PyObject *resultobj = 0;
15062 wxFontEncoding arg1 ;
15063 wxFontEncodingArray result;
15064 int val1 ;
15065 int ecode1 = 0 ;
15066 PyObject * obj0 = 0 ;
15067 char * kwnames[] = {
15068 (char *) "enc", NULL
15069 };
15070
15071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15072 ecode1 = SWIG_AsVal_int(obj0, &val1);
15073 if (!SWIG_IsOK(ecode1)) {
15074 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15075 }
15076 arg1 = static_cast< wxFontEncoding >(val1);
15077 {
15078 PyThreadState* __tstate = wxPyBeginAllowThreads();
15079 result = wxEncodingConverter::GetAllEquivalents(arg1);
15080 wxPyEndAllowThreads(__tstate);
15081 if (PyErr_Occurred()) SWIG_fail;
15082 }
15083 {
15084 resultobj = PyList_New(0);
15085 for (size_t i=0; i < (&result)->GetCount(); i++) {
15086 PyObject* number = PyInt_FromLong((&result)->Item(i));
15087 PyList_Append(resultobj, number);
15088 Py_DECREF(number);
15089 }
15090 }
15091 return resultobj;
15092 fail:
15093 return NULL;
15094 }
15095
15096
15097 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15098 PyObject *resultobj = 0;
15099 wxFontEncoding arg1 ;
15100 wxFontEncoding arg2 ;
15101 bool result;
15102 int val1 ;
15103 int ecode1 = 0 ;
15104 int val2 ;
15105 int ecode2 = 0 ;
15106 PyObject * obj0 = 0 ;
15107 PyObject * obj1 = 0 ;
15108 char * kwnames[] = {
15109 (char *) "encIn",(char *) "encOut", NULL
15110 };
15111
15112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15113 ecode1 = SWIG_AsVal_int(obj0, &val1);
15114 if (!SWIG_IsOK(ecode1)) {
15115 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15116 }
15117 arg1 = static_cast< wxFontEncoding >(val1);
15118 ecode2 = SWIG_AsVal_int(obj1, &val2);
15119 if (!SWIG_IsOK(ecode2)) {
15120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15121 }
15122 arg2 = static_cast< wxFontEncoding >(val2);
15123 {
15124 PyThreadState* __tstate = wxPyBeginAllowThreads();
15125 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15126 wxPyEndAllowThreads(__tstate);
15127 if (PyErr_Occurred()) SWIG_fail;
15128 }
15129 {
15130 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15131 }
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15139 PyObject *obj;
15140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15141 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15142 return SWIG_Py_Void();
15143 }
15144
15145 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15146 return SWIG_Python_InitShadowInstance(args);
15147 }
15148
15149 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15150 PyObject *resultobj = 0;
15151 wxDC *arg1 = (wxDC *) 0 ;
15152 void *argp1 = 0 ;
15153 int res1 = 0 ;
15154 PyObject *swig_obj[1] ;
15155
15156 if (!args) SWIG_fail;
15157 swig_obj[0] = args;
15158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15159 if (!SWIG_IsOK(res1)) {
15160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15161 }
15162 arg1 = reinterpret_cast< wxDC * >(argp1);
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 delete arg1;
15166
15167 wxPyEndAllowThreads(__tstate);
15168 if (PyErr_Occurred()) SWIG_fail;
15169 }
15170 resultobj = SWIG_Py_Void();
15171 return resultobj;
15172 fail:
15173 return NULL;
15174 }
15175
15176
15177 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15178 PyObject *resultobj = 0;
15179 wxDC *arg1 = (wxDC *) 0 ;
15180 int arg2 ;
15181 int arg3 ;
15182 wxColour *arg4 = 0 ;
15183 int arg5 = (int) wxFLOOD_SURFACE ;
15184 bool result;
15185 void *argp1 = 0 ;
15186 int res1 = 0 ;
15187 int val2 ;
15188 int ecode2 = 0 ;
15189 int val3 ;
15190 int ecode3 = 0 ;
15191 wxColour temp4 ;
15192 int val5 ;
15193 int ecode5 = 0 ;
15194 PyObject * obj0 = 0 ;
15195 PyObject * obj1 = 0 ;
15196 PyObject * obj2 = 0 ;
15197 PyObject * obj3 = 0 ;
15198 PyObject * obj4 = 0 ;
15199 char * kwnames[] = {
15200 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15201 };
15202
15203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15205 if (!SWIG_IsOK(res1)) {
15206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15207 }
15208 arg1 = reinterpret_cast< wxDC * >(argp1);
15209 ecode2 = SWIG_AsVal_int(obj1, &val2);
15210 if (!SWIG_IsOK(ecode2)) {
15211 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15212 }
15213 arg2 = static_cast< int >(val2);
15214 ecode3 = SWIG_AsVal_int(obj2, &val3);
15215 if (!SWIG_IsOK(ecode3)) {
15216 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15217 }
15218 arg3 = static_cast< int >(val3);
15219 {
15220 arg4 = &temp4;
15221 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15222 }
15223 if (obj4) {
15224 ecode5 = SWIG_AsVal_int(obj4, &val5);
15225 if (!SWIG_IsOK(ecode5)) {
15226 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15227 }
15228 arg5 = static_cast< int >(val5);
15229 }
15230 {
15231 PyThreadState* __tstate = wxPyBeginAllowThreads();
15232 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15233 wxPyEndAllowThreads(__tstate);
15234 if (PyErr_Occurred()) SWIG_fail;
15235 }
15236 {
15237 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15238 }
15239 return resultobj;
15240 fail:
15241 return NULL;
15242 }
15243
15244
15245 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15246 PyObject *resultobj = 0;
15247 wxDC *arg1 = (wxDC *) 0 ;
15248 wxPoint *arg2 = 0 ;
15249 wxColour *arg3 = 0 ;
15250 int arg4 = (int) wxFLOOD_SURFACE ;
15251 bool result;
15252 void *argp1 = 0 ;
15253 int res1 = 0 ;
15254 wxPoint temp2 ;
15255 wxColour temp3 ;
15256 int val4 ;
15257 int ecode4 = 0 ;
15258 PyObject * obj0 = 0 ;
15259 PyObject * obj1 = 0 ;
15260 PyObject * obj2 = 0 ;
15261 PyObject * obj3 = 0 ;
15262 char * kwnames[] = {
15263 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15264 };
15265
15266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15268 if (!SWIG_IsOK(res1)) {
15269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15270 }
15271 arg1 = reinterpret_cast< wxDC * >(argp1);
15272 {
15273 arg2 = &temp2;
15274 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15275 }
15276 {
15277 arg3 = &temp3;
15278 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15279 }
15280 if (obj3) {
15281 ecode4 = SWIG_AsVal_int(obj3, &val4);
15282 if (!SWIG_IsOK(ecode4)) {
15283 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15284 }
15285 arg4 = static_cast< int >(val4);
15286 }
15287 {
15288 PyThreadState* __tstate = wxPyBeginAllowThreads();
15289 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15290 wxPyEndAllowThreads(__tstate);
15291 if (PyErr_Occurred()) SWIG_fail;
15292 }
15293 {
15294 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15295 }
15296 return resultobj;
15297 fail:
15298 return NULL;
15299 }
15300
15301
15302 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15303 PyObject *resultobj = 0;
15304 wxDC *arg1 = (wxDC *) 0 ;
15305 wxRect *arg2 = 0 ;
15306 wxColour *arg3 = 0 ;
15307 wxColour *arg4 = 0 ;
15308 wxPoint *arg5 = 0 ;
15309 void *argp1 = 0 ;
15310 int res1 = 0 ;
15311 wxRect temp2 ;
15312 wxColour temp3 ;
15313 wxColour temp4 ;
15314 wxPoint temp5 ;
15315 PyObject * obj0 = 0 ;
15316 PyObject * obj1 = 0 ;
15317 PyObject * obj2 = 0 ;
15318 PyObject * obj3 = 0 ;
15319 PyObject * obj4 = 0 ;
15320 char * kwnames[] = {
15321 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15322 };
15323
15324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15326 if (!SWIG_IsOK(res1)) {
15327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15328 }
15329 arg1 = reinterpret_cast< wxDC * >(argp1);
15330 {
15331 arg2 = &temp2;
15332 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15333 }
15334 {
15335 arg3 = &temp3;
15336 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15337 }
15338 {
15339 arg4 = &temp4;
15340 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15341 }
15342 {
15343 arg5 = &temp5;
15344 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15345 }
15346 {
15347 PyThreadState* __tstate = wxPyBeginAllowThreads();
15348 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15349 wxPyEndAllowThreads(__tstate);
15350 if (PyErr_Occurred()) SWIG_fail;
15351 }
15352 resultobj = SWIG_Py_Void();
15353 return resultobj;
15354 fail:
15355 return NULL;
15356 }
15357
15358
15359 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15360 PyObject *resultobj = 0;
15361 wxDC *arg1 = (wxDC *) 0 ;
15362 wxRect *arg2 = 0 ;
15363 wxColour *arg3 = 0 ;
15364 wxColour *arg4 = 0 ;
15365 wxDirection arg5 = (wxDirection) wxEAST ;
15366 void *argp1 = 0 ;
15367 int res1 = 0 ;
15368 wxRect temp2 ;
15369 wxColour temp3 ;
15370 wxColour temp4 ;
15371 int val5 ;
15372 int ecode5 = 0 ;
15373 PyObject * obj0 = 0 ;
15374 PyObject * obj1 = 0 ;
15375 PyObject * obj2 = 0 ;
15376 PyObject * obj3 = 0 ;
15377 PyObject * obj4 = 0 ;
15378 char * kwnames[] = {
15379 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15380 };
15381
15382 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15383 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15384 if (!SWIG_IsOK(res1)) {
15385 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15386 }
15387 arg1 = reinterpret_cast< wxDC * >(argp1);
15388 {
15389 arg2 = &temp2;
15390 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15391 }
15392 {
15393 arg3 = &temp3;
15394 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15395 }
15396 {
15397 arg4 = &temp4;
15398 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15399 }
15400 if (obj4) {
15401 ecode5 = SWIG_AsVal_int(obj4, &val5);
15402 if (!SWIG_IsOK(ecode5)) {
15403 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15404 }
15405 arg5 = static_cast< wxDirection >(val5);
15406 }
15407 {
15408 PyThreadState* __tstate = wxPyBeginAllowThreads();
15409 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15410 wxPyEndAllowThreads(__tstate);
15411 if (PyErr_Occurred()) SWIG_fail;
15412 }
15413 resultobj = SWIG_Py_Void();
15414 return resultobj;
15415 fail:
15416 return NULL;
15417 }
15418
15419
15420 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15421 PyObject *resultobj = 0;
15422 wxDC *arg1 = (wxDC *) 0 ;
15423 int arg2 ;
15424 int arg3 ;
15425 wxColour result;
15426 void *argp1 = 0 ;
15427 int res1 = 0 ;
15428 int val2 ;
15429 int ecode2 = 0 ;
15430 int val3 ;
15431 int ecode3 = 0 ;
15432 PyObject * obj0 = 0 ;
15433 PyObject * obj1 = 0 ;
15434 PyObject * obj2 = 0 ;
15435 char * kwnames[] = {
15436 (char *) "self",(char *) "x",(char *) "y", NULL
15437 };
15438
15439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15440 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15441 if (!SWIG_IsOK(res1)) {
15442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15443 }
15444 arg1 = reinterpret_cast< wxDC * >(argp1);
15445 ecode2 = SWIG_AsVal_int(obj1, &val2);
15446 if (!SWIG_IsOK(ecode2)) {
15447 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15448 }
15449 arg2 = static_cast< int >(val2);
15450 ecode3 = SWIG_AsVal_int(obj2, &val3);
15451 if (!SWIG_IsOK(ecode3)) {
15452 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15453 }
15454 arg3 = static_cast< int >(val3);
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 result = wxDC_GetPixel(arg1,arg2,arg3);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15462 return resultobj;
15463 fail:
15464 return NULL;
15465 }
15466
15467
15468 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxDC *arg1 = (wxDC *) 0 ;
15471 wxPoint *arg2 = 0 ;
15472 wxColour result;
15473 void *argp1 = 0 ;
15474 int res1 = 0 ;
15475 wxPoint temp2 ;
15476 PyObject * obj0 = 0 ;
15477 PyObject * obj1 = 0 ;
15478 char * kwnames[] = {
15479 (char *) "self",(char *) "pt", NULL
15480 };
15481
15482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15484 if (!SWIG_IsOK(res1)) {
15485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15486 }
15487 arg1 = reinterpret_cast< wxDC * >(argp1);
15488 {
15489 arg2 = &temp2;
15490 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15491 }
15492 {
15493 PyThreadState* __tstate = wxPyBeginAllowThreads();
15494 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15495 wxPyEndAllowThreads(__tstate);
15496 if (PyErr_Occurred()) SWIG_fail;
15497 }
15498 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15499 return resultobj;
15500 fail:
15501 return NULL;
15502 }
15503
15504
15505 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15506 PyObject *resultobj = 0;
15507 wxDC *arg1 = (wxDC *) 0 ;
15508 int arg2 ;
15509 int arg3 ;
15510 int arg4 ;
15511 int arg5 ;
15512 void *argp1 = 0 ;
15513 int res1 = 0 ;
15514 int val2 ;
15515 int ecode2 = 0 ;
15516 int val3 ;
15517 int ecode3 = 0 ;
15518 int val4 ;
15519 int ecode4 = 0 ;
15520 int val5 ;
15521 int ecode5 = 0 ;
15522 PyObject * obj0 = 0 ;
15523 PyObject * obj1 = 0 ;
15524 PyObject * obj2 = 0 ;
15525 PyObject * obj3 = 0 ;
15526 PyObject * obj4 = 0 ;
15527 char * kwnames[] = {
15528 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15529 };
15530
15531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15533 if (!SWIG_IsOK(res1)) {
15534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15535 }
15536 arg1 = reinterpret_cast< wxDC * >(argp1);
15537 ecode2 = SWIG_AsVal_int(obj1, &val2);
15538 if (!SWIG_IsOK(ecode2)) {
15539 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15540 }
15541 arg2 = static_cast< int >(val2);
15542 ecode3 = SWIG_AsVal_int(obj2, &val3);
15543 if (!SWIG_IsOK(ecode3)) {
15544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15545 }
15546 arg3 = static_cast< int >(val3);
15547 ecode4 = SWIG_AsVal_int(obj3, &val4);
15548 if (!SWIG_IsOK(ecode4)) {
15549 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15550 }
15551 arg4 = static_cast< int >(val4);
15552 ecode5 = SWIG_AsVal_int(obj4, &val5);
15553 if (!SWIG_IsOK(ecode5)) {
15554 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15555 }
15556 arg5 = static_cast< int >(val5);
15557 {
15558 PyThreadState* __tstate = wxPyBeginAllowThreads();
15559 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15560 wxPyEndAllowThreads(__tstate);
15561 if (PyErr_Occurred()) SWIG_fail;
15562 }
15563 resultobj = SWIG_Py_Void();
15564 return resultobj;
15565 fail:
15566 return NULL;
15567 }
15568
15569
15570 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15571 PyObject *resultobj = 0;
15572 wxDC *arg1 = (wxDC *) 0 ;
15573 wxPoint *arg2 = 0 ;
15574 wxPoint *arg3 = 0 ;
15575 void *argp1 = 0 ;
15576 int res1 = 0 ;
15577 wxPoint temp2 ;
15578 wxPoint temp3 ;
15579 PyObject * obj0 = 0 ;
15580 PyObject * obj1 = 0 ;
15581 PyObject * obj2 = 0 ;
15582 char * kwnames[] = {
15583 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15584 };
15585
15586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15588 if (!SWIG_IsOK(res1)) {
15589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15590 }
15591 arg1 = reinterpret_cast< wxDC * >(argp1);
15592 {
15593 arg2 = &temp2;
15594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15595 }
15596 {
15597 arg3 = &temp3;
15598 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15599 }
15600 {
15601 PyThreadState* __tstate = wxPyBeginAllowThreads();
15602 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15603 wxPyEndAllowThreads(__tstate);
15604 if (PyErr_Occurred()) SWIG_fail;
15605 }
15606 resultobj = SWIG_Py_Void();
15607 return resultobj;
15608 fail:
15609 return NULL;
15610 }
15611
15612
15613 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15614 PyObject *resultobj = 0;
15615 wxDC *arg1 = (wxDC *) 0 ;
15616 int arg2 ;
15617 int arg3 ;
15618 void *argp1 = 0 ;
15619 int res1 = 0 ;
15620 int val2 ;
15621 int ecode2 = 0 ;
15622 int val3 ;
15623 int ecode3 = 0 ;
15624 PyObject * obj0 = 0 ;
15625 PyObject * obj1 = 0 ;
15626 PyObject * obj2 = 0 ;
15627 char * kwnames[] = {
15628 (char *) "self",(char *) "x",(char *) "y", NULL
15629 };
15630
15631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15633 if (!SWIG_IsOK(res1)) {
15634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15635 }
15636 arg1 = reinterpret_cast< wxDC * >(argp1);
15637 ecode2 = SWIG_AsVal_int(obj1, &val2);
15638 if (!SWIG_IsOK(ecode2)) {
15639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15640 }
15641 arg2 = static_cast< int >(val2);
15642 ecode3 = SWIG_AsVal_int(obj2, &val3);
15643 if (!SWIG_IsOK(ecode3)) {
15644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15645 }
15646 arg3 = static_cast< int >(val3);
15647 {
15648 PyThreadState* __tstate = wxPyBeginAllowThreads();
15649 (arg1)->CrossHair(arg2,arg3);
15650 wxPyEndAllowThreads(__tstate);
15651 if (PyErr_Occurred()) SWIG_fail;
15652 }
15653 resultobj = SWIG_Py_Void();
15654 return resultobj;
15655 fail:
15656 return NULL;
15657 }
15658
15659
15660 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15661 PyObject *resultobj = 0;
15662 wxDC *arg1 = (wxDC *) 0 ;
15663 wxPoint *arg2 = 0 ;
15664 void *argp1 = 0 ;
15665 int res1 = 0 ;
15666 wxPoint temp2 ;
15667 PyObject * obj0 = 0 ;
15668 PyObject * obj1 = 0 ;
15669 char * kwnames[] = {
15670 (char *) "self",(char *) "pt", NULL
15671 };
15672
15673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15675 if (!SWIG_IsOK(res1)) {
15676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15677 }
15678 arg1 = reinterpret_cast< wxDC * >(argp1);
15679 {
15680 arg2 = &temp2;
15681 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15682 }
15683 {
15684 PyThreadState* __tstate = wxPyBeginAllowThreads();
15685 (arg1)->CrossHair((wxPoint const &)*arg2);
15686 wxPyEndAllowThreads(__tstate);
15687 if (PyErr_Occurred()) SWIG_fail;
15688 }
15689 resultobj = SWIG_Py_Void();
15690 return resultobj;
15691 fail:
15692 return NULL;
15693 }
15694
15695
15696 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15697 PyObject *resultobj = 0;
15698 wxDC *arg1 = (wxDC *) 0 ;
15699 int arg2 ;
15700 int arg3 ;
15701 int arg4 ;
15702 int arg5 ;
15703 int arg6 ;
15704 int arg7 ;
15705 void *argp1 = 0 ;
15706 int res1 = 0 ;
15707 int val2 ;
15708 int ecode2 = 0 ;
15709 int val3 ;
15710 int ecode3 = 0 ;
15711 int val4 ;
15712 int ecode4 = 0 ;
15713 int val5 ;
15714 int ecode5 = 0 ;
15715 int val6 ;
15716 int ecode6 = 0 ;
15717 int val7 ;
15718 int ecode7 = 0 ;
15719 PyObject * obj0 = 0 ;
15720 PyObject * obj1 = 0 ;
15721 PyObject * obj2 = 0 ;
15722 PyObject * obj3 = 0 ;
15723 PyObject * obj4 = 0 ;
15724 PyObject * obj5 = 0 ;
15725 PyObject * obj6 = 0 ;
15726 char * kwnames[] = {
15727 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15728 };
15729
15730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15732 if (!SWIG_IsOK(res1)) {
15733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15734 }
15735 arg1 = reinterpret_cast< wxDC * >(argp1);
15736 ecode2 = SWIG_AsVal_int(obj1, &val2);
15737 if (!SWIG_IsOK(ecode2)) {
15738 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15739 }
15740 arg2 = static_cast< int >(val2);
15741 ecode3 = SWIG_AsVal_int(obj2, &val3);
15742 if (!SWIG_IsOK(ecode3)) {
15743 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15744 }
15745 arg3 = static_cast< int >(val3);
15746 ecode4 = SWIG_AsVal_int(obj3, &val4);
15747 if (!SWIG_IsOK(ecode4)) {
15748 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15749 }
15750 arg4 = static_cast< int >(val4);
15751 ecode5 = SWIG_AsVal_int(obj4, &val5);
15752 if (!SWIG_IsOK(ecode5)) {
15753 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15754 }
15755 arg5 = static_cast< int >(val5);
15756 ecode6 = SWIG_AsVal_int(obj5, &val6);
15757 if (!SWIG_IsOK(ecode6)) {
15758 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15759 }
15760 arg6 = static_cast< int >(val6);
15761 ecode7 = SWIG_AsVal_int(obj6, &val7);
15762 if (!SWIG_IsOK(ecode7)) {
15763 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15764 }
15765 arg7 = static_cast< int >(val7);
15766 {
15767 PyThreadState* __tstate = wxPyBeginAllowThreads();
15768 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15769 wxPyEndAllowThreads(__tstate);
15770 if (PyErr_Occurred()) SWIG_fail;
15771 }
15772 resultobj = SWIG_Py_Void();
15773 return resultobj;
15774 fail:
15775 return NULL;
15776 }
15777
15778
15779 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15780 PyObject *resultobj = 0;
15781 wxDC *arg1 = (wxDC *) 0 ;
15782 wxPoint *arg2 = 0 ;
15783 wxPoint *arg3 = 0 ;
15784 wxPoint *arg4 = 0 ;
15785 void *argp1 = 0 ;
15786 int res1 = 0 ;
15787 wxPoint temp2 ;
15788 wxPoint temp3 ;
15789 wxPoint temp4 ;
15790 PyObject * obj0 = 0 ;
15791 PyObject * obj1 = 0 ;
15792 PyObject * obj2 = 0 ;
15793 PyObject * obj3 = 0 ;
15794 char * kwnames[] = {
15795 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15796 };
15797
15798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15800 if (!SWIG_IsOK(res1)) {
15801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15802 }
15803 arg1 = reinterpret_cast< wxDC * >(argp1);
15804 {
15805 arg2 = &temp2;
15806 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15807 }
15808 {
15809 arg3 = &temp3;
15810 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15811 }
15812 {
15813 arg4 = &temp4;
15814 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15815 }
15816 {
15817 PyThreadState* __tstate = wxPyBeginAllowThreads();
15818 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15819 wxPyEndAllowThreads(__tstate);
15820 if (PyErr_Occurred()) SWIG_fail;
15821 }
15822 resultobj = SWIG_Py_Void();
15823 return resultobj;
15824 fail:
15825 return NULL;
15826 }
15827
15828
15829 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15830 PyObject *resultobj = 0;
15831 wxDC *arg1 = (wxDC *) 0 ;
15832 int arg2 ;
15833 int arg3 ;
15834 int arg4 ;
15835 int arg5 ;
15836 void *argp1 = 0 ;
15837 int res1 = 0 ;
15838 int val2 ;
15839 int ecode2 = 0 ;
15840 int val3 ;
15841 int ecode3 = 0 ;
15842 int val4 ;
15843 int ecode4 = 0 ;
15844 int val5 ;
15845 int ecode5 = 0 ;
15846 PyObject * obj0 = 0 ;
15847 PyObject * obj1 = 0 ;
15848 PyObject * obj2 = 0 ;
15849 PyObject * obj3 = 0 ;
15850 PyObject * obj4 = 0 ;
15851 char * kwnames[] = {
15852 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15853 };
15854
15855 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15856 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15857 if (!SWIG_IsOK(res1)) {
15858 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15859 }
15860 arg1 = reinterpret_cast< wxDC * >(argp1);
15861 ecode2 = SWIG_AsVal_int(obj1, &val2);
15862 if (!SWIG_IsOK(ecode2)) {
15863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15864 }
15865 arg2 = static_cast< int >(val2);
15866 ecode3 = SWIG_AsVal_int(obj2, &val3);
15867 if (!SWIG_IsOK(ecode3)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15869 }
15870 arg3 = static_cast< int >(val3);
15871 ecode4 = SWIG_AsVal_int(obj3, &val4);
15872 if (!SWIG_IsOK(ecode4)) {
15873 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15874 }
15875 arg4 = static_cast< int >(val4);
15876 ecode5 = SWIG_AsVal_int(obj4, &val5);
15877 if (!SWIG_IsOK(ecode5)) {
15878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15879 }
15880 arg5 = static_cast< int >(val5);
15881 {
15882 PyThreadState* __tstate = wxPyBeginAllowThreads();
15883 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15884 wxPyEndAllowThreads(__tstate);
15885 if (PyErr_Occurred()) SWIG_fail;
15886 }
15887 resultobj = SWIG_Py_Void();
15888 return resultobj;
15889 fail:
15890 return NULL;
15891 }
15892
15893
15894 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15895 PyObject *resultobj = 0;
15896 wxDC *arg1 = (wxDC *) 0 ;
15897 wxRect *arg2 = 0 ;
15898 void *argp1 = 0 ;
15899 int res1 = 0 ;
15900 wxRect temp2 ;
15901 PyObject * obj0 = 0 ;
15902 PyObject * obj1 = 0 ;
15903 char * kwnames[] = {
15904 (char *) "self",(char *) "rect", NULL
15905 };
15906
15907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15909 if (!SWIG_IsOK(res1)) {
15910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15911 }
15912 arg1 = reinterpret_cast< wxDC * >(argp1);
15913 {
15914 arg2 = &temp2;
15915 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15916 }
15917 {
15918 PyThreadState* __tstate = wxPyBeginAllowThreads();
15919 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15920 wxPyEndAllowThreads(__tstate);
15921 if (PyErr_Occurred()) SWIG_fail;
15922 }
15923 resultobj = SWIG_Py_Void();
15924 return resultobj;
15925 fail:
15926 return NULL;
15927 }
15928
15929
15930 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15931 PyObject *resultobj = 0;
15932 wxDC *arg1 = (wxDC *) 0 ;
15933 int arg2 ;
15934 int arg3 ;
15935 int arg4 ;
15936 int arg5 ;
15937 double arg6 ;
15938 double arg7 ;
15939 void *argp1 = 0 ;
15940 int res1 = 0 ;
15941 int val2 ;
15942 int ecode2 = 0 ;
15943 int val3 ;
15944 int ecode3 = 0 ;
15945 int val4 ;
15946 int ecode4 = 0 ;
15947 int val5 ;
15948 int ecode5 = 0 ;
15949 double val6 ;
15950 int ecode6 = 0 ;
15951 double val7 ;
15952 int ecode7 = 0 ;
15953 PyObject * obj0 = 0 ;
15954 PyObject * obj1 = 0 ;
15955 PyObject * obj2 = 0 ;
15956 PyObject * obj3 = 0 ;
15957 PyObject * obj4 = 0 ;
15958 PyObject * obj5 = 0 ;
15959 PyObject * obj6 = 0 ;
15960 char * kwnames[] = {
15961 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15962 };
15963
15964 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15965 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15966 if (!SWIG_IsOK(res1)) {
15967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15968 }
15969 arg1 = reinterpret_cast< wxDC * >(argp1);
15970 ecode2 = SWIG_AsVal_int(obj1, &val2);
15971 if (!SWIG_IsOK(ecode2)) {
15972 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15973 }
15974 arg2 = static_cast< int >(val2);
15975 ecode3 = SWIG_AsVal_int(obj2, &val3);
15976 if (!SWIG_IsOK(ecode3)) {
15977 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15978 }
15979 arg3 = static_cast< int >(val3);
15980 ecode4 = SWIG_AsVal_int(obj3, &val4);
15981 if (!SWIG_IsOK(ecode4)) {
15982 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15983 }
15984 arg4 = static_cast< int >(val4);
15985 ecode5 = SWIG_AsVal_int(obj4, &val5);
15986 if (!SWIG_IsOK(ecode5)) {
15987 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15988 }
15989 arg5 = static_cast< int >(val5);
15990 ecode6 = SWIG_AsVal_double(obj5, &val6);
15991 if (!SWIG_IsOK(ecode6)) {
15992 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15993 }
15994 arg6 = static_cast< double >(val6);
15995 ecode7 = SWIG_AsVal_double(obj6, &val7);
15996 if (!SWIG_IsOK(ecode7)) {
15997 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15998 }
15999 arg7 = static_cast< double >(val7);
16000 {
16001 PyThreadState* __tstate = wxPyBeginAllowThreads();
16002 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
16003 wxPyEndAllowThreads(__tstate);
16004 if (PyErr_Occurred()) SWIG_fail;
16005 }
16006 resultobj = SWIG_Py_Void();
16007 return resultobj;
16008 fail:
16009 return NULL;
16010 }
16011
16012
16013 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16014 PyObject *resultobj = 0;
16015 wxDC *arg1 = (wxDC *) 0 ;
16016 wxPoint *arg2 = 0 ;
16017 wxSize *arg3 = 0 ;
16018 double arg4 ;
16019 double arg5 ;
16020 void *argp1 = 0 ;
16021 int res1 = 0 ;
16022 wxPoint temp2 ;
16023 wxSize temp3 ;
16024 double val4 ;
16025 int ecode4 = 0 ;
16026 double val5 ;
16027 int ecode5 = 0 ;
16028 PyObject * obj0 = 0 ;
16029 PyObject * obj1 = 0 ;
16030 PyObject * obj2 = 0 ;
16031 PyObject * obj3 = 0 ;
16032 PyObject * obj4 = 0 ;
16033 char * kwnames[] = {
16034 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
16035 };
16036
16037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16039 if (!SWIG_IsOK(res1)) {
16040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16041 }
16042 arg1 = reinterpret_cast< wxDC * >(argp1);
16043 {
16044 arg2 = &temp2;
16045 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16046 }
16047 {
16048 arg3 = &temp3;
16049 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16050 }
16051 ecode4 = SWIG_AsVal_double(obj3, &val4);
16052 if (!SWIG_IsOK(ecode4)) {
16053 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16054 }
16055 arg4 = static_cast< double >(val4);
16056 ecode5 = SWIG_AsVal_double(obj4, &val5);
16057 if (!SWIG_IsOK(ecode5)) {
16058 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16059 }
16060 arg5 = static_cast< double >(val5);
16061 {
16062 PyThreadState* __tstate = wxPyBeginAllowThreads();
16063 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16064 wxPyEndAllowThreads(__tstate);
16065 if (PyErr_Occurred()) SWIG_fail;
16066 }
16067 resultobj = SWIG_Py_Void();
16068 return resultobj;
16069 fail:
16070 return NULL;
16071 }
16072
16073
16074 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16075 PyObject *resultobj = 0;
16076 wxDC *arg1 = (wxDC *) 0 ;
16077 int arg2 ;
16078 int arg3 ;
16079 void *argp1 = 0 ;
16080 int res1 = 0 ;
16081 int val2 ;
16082 int ecode2 = 0 ;
16083 int val3 ;
16084 int ecode3 = 0 ;
16085 PyObject * obj0 = 0 ;
16086 PyObject * obj1 = 0 ;
16087 PyObject * obj2 = 0 ;
16088 char * kwnames[] = {
16089 (char *) "self",(char *) "x",(char *) "y", NULL
16090 };
16091
16092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16094 if (!SWIG_IsOK(res1)) {
16095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16096 }
16097 arg1 = reinterpret_cast< wxDC * >(argp1);
16098 ecode2 = SWIG_AsVal_int(obj1, &val2);
16099 if (!SWIG_IsOK(ecode2)) {
16100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16101 }
16102 arg2 = static_cast< int >(val2);
16103 ecode3 = SWIG_AsVal_int(obj2, &val3);
16104 if (!SWIG_IsOK(ecode3)) {
16105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16106 }
16107 arg3 = static_cast< int >(val3);
16108 {
16109 PyThreadState* __tstate = wxPyBeginAllowThreads();
16110 (arg1)->DrawPoint(arg2,arg3);
16111 wxPyEndAllowThreads(__tstate);
16112 if (PyErr_Occurred()) SWIG_fail;
16113 }
16114 resultobj = SWIG_Py_Void();
16115 return resultobj;
16116 fail:
16117 return NULL;
16118 }
16119
16120
16121 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16122 PyObject *resultobj = 0;
16123 wxDC *arg1 = (wxDC *) 0 ;
16124 wxPoint *arg2 = 0 ;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 wxPoint temp2 ;
16128 PyObject * obj0 = 0 ;
16129 PyObject * obj1 = 0 ;
16130 char * kwnames[] = {
16131 (char *) "self",(char *) "pt", NULL
16132 };
16133
16134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16136 if (!SWIG_IsOK(res1)) {
16137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16138 }
16139 arg1 = reinterpret_cast< wxDC * >(argp1);
16140 {
16141 arg2 = &temp2;
16142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16143 }
16144 {
16145 PyThreadState* __tstate = wxPyBeginAllowThreads();
16146 (arg1)->DrawPoint((wxPoint const &)*arg2);
16147 wxPyEndAllowThreads(__tstate);
16148 if (PyErr_Occurred()) SWIG_fail;
16149 }
16150 resultobj = SWIG_Py_Void();
16151 return resultobj;
16152 fail:
16153 return NULL;
16154 }
16155
16156
16157 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16158 PyObject *resultobj = 0;
16159 wxDC *arg1 = (wxDC *) 0 ;
16160 int arg2 ;
16161 int arg3 ;
16162 int arg4 ;
16163 int arg5 ;
16164 void *argp1 = 0 ;
16165 int res1 = 0 ;
16166 int val2 ;
16167 int ecode2 = 0 ;
16168 int val3 ;
16169 int ecode3 = 0 ;
16170 int val4 ;
16171 int ecode4 = 0 ;
16172 int val5 ;
16173 int ecode5 = 0 ;
16174 PyObject * obj0 = 0 ;
16175 PyObject * obj1 = 0 ;
16176 PyObject * obj2 = 0 ;
16177 PyObject * obj3 = 0 ;
16178 PyObject * obj4 = 0 ;
16179 char * kwnames[] = {
16180 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16181 };
16182
16183 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16184 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16185 if (!SWIG_IsOK(res1)) {
16186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16187 }
16188 arg1 = reinterpret_cast< wxDC * >(argp1);
16189 ecode2 = SWIG_AsVal_int(obj1, &val2);
16190 if (!SWIG_IsOK(ecode2)) {
16191 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16192 }
16193 arg2 = static_cast< int >(val2);
16194 ecode3 = SWIG_AsVal_int(obj2, &val3);
16195 if (!SWIG_IsOK(ecode3)) {
16196 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16197 }
16198 arg3 = static_cast< int >(val3);
16199 ecode4 = SWIG_AsVal_int(obj3, &val4);
16200 if (!SWIG_IsOK(ecode4)) {
16201 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16202 }
16203 arg4 = static_cast< int >(val4);
16204 ecode5 = SWIG_AsVal_int(obj4, &val5);
16205 if (!SWIG_IsOK(ecode5)) {
16206 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16207 }
16208 arg5 = static_cast< int >(val5);
16209 {
16210 PyThreadState* __tstate = wxPyBeginAllowThreads();
16211 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16212 wxPyEndAllowThreads(__tstate);
16213 if (PyErr_Occurred()) SWIG_fail;
16214 }
16215 resultobj = SWIG_Py_Void();
16216 return resultobj;
16217 fail:
16218 return NULL;
16219 }
16220
16221
16222 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16223 PyObject *resultobj = 0;
16224 wxDC *arg1 = (wxDC *) 0 ;
16225 wxRect *arg2 = 0 ;
16226 void *argp1 = 0 ;
16227 int res1 = 0 ;
16228 wxRect temp2 ;
16229 PyObject * obj0 = 0 ;
16230 PyObject * obj1 = 0 ;
16231 char * kwnames[] = {
16232 (char *) "self",(char *) "rect", NULL
16233 };
16234
16235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16237 if (!SWIG_IsOK(res1)) {
16238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16239 }
16240 arg1 = reinterpret_cast< wxDC * >(argp1);
16241 {
16242 arg2 = &temp2;
16243 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16244 }
16245 {
16246 PyThreadState* __tstate = wxPyBeginAllowThreads();
16247 (arg1)->DrawRectangle((wxRect const &)*arg2);
16248 wxPyEndAllowThreads(__tstate);
16249 if (PyErr_Occurred()) SWIG_fail;
16250 }
16251 resultobj = SWIG_Py_Void();
16252 return resultobj;
16253 fail:
16254 return NULL;
16255 }
16256
16257
16258 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16259 PyObject *resultobj = 0;
16260 wxDC *arg1 = (wxDC *) 0 ;
16261 wxPoint *arg2 = 0 ;
16262 wxSize *arg3 = 0 ;
16263 void *argp1 = 0 ;
16264 int res1 = 0 ;
16265 wxPoint temp2 ;
16266 wxSize temp3 ;
16267 PyObject * obj0 = 0 ;
16268 PyObject * obj1 = 0 ;
16269 PyObject * obj2 = 0 ;
16270 char * kwnames[] = {
16271 (char *) "self",(char *) "pt",(char *) "sz", NULL
16272 };
16273
16274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16276 if (!SWIG_IsOK(res1)) {
16277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16278 }
16279 arg1 = reinterpret_cast< wxDC * >(argp1);
16280 {
16281 arg2 = &temp2;
16282 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16283 }
16284 {
16285 arg3 = &temp3;
16286 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16287 }
16288 {
16289 PyThreadState* __tstate = wxPyBeginAllowThreads();
16290 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16291 wxPyEndAllowThreads(__tstate);
16292 if (PyErr_Occurred()) SWIG_fail;
16293 }
16294 resultobj = SWIG_Py_Void();
16295 return resultobj;
16296 fail:
16297 return NULL;
16298 }
16299
16300
16301 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16302 PyObject *resultobj = 0;
16303 wxDC *arg1 = (wxDC *) 0 ;
16304 int arg2 ;
16305 int arg3 ;
16306 int arg4 ;
16307 int arg5 ;
16308 double arg6 ;
16309 void *argp1 = 0 ;
16310 int res1 = 0 ;
16311 int val2 ;
16312 int ecode2 = 0 ;
16313 int val3 ;
16314 int ecode3 = 0 ;
16315 int val4 ;
16316 int ecode4 = 0 ;
16317 int val5 ;
16318 int ecode5 = 0 ;
16319 double val6 ;
16320 int ecode6 = 0 ;
16321 PyObject * obj0 = 0 ;
16322 PyObject * obj1 = 0 ;
16323 PyObject * obj2 = 0 ;
16324 PyObject * obj3 = 0 ;
16325 PyObject * obj4 = 0 ;
16326 PyObject * obj5 = 0 ;
16327 char * kwnames[] = {
16328 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16329 };
16330
16331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16333 if (!SWIG_IsOK(res1)) {
16334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16335 }
16336 arg1 = reinterpret_cast< wxDC * >(argp1);
16337 ecode2 = SWIG_AsVal_int(obj1, &val2);
16338 if (!SWIG_IsOK(ecode2)) {
16339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16340 }
16341 arg2 = static_cast< int >(val2);
16342 ecode3 = SWIG_AsVal_int(obj2, &val3);
16343 if (!SWIG_IsOK(ecode3)) {
16344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16345 }
16346 arg3 = static_cast< int >(val3);
16347 ecode4 = SWIG_AsVal_int(obj3, &val4);
16348 if (!SWIG_IsOK(ecode4)) {
16349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16350 }
16351 arg4 = static_cast< int >(val4);
16352 ecode5 = SWIG_AsVal_int(obj4, &val5);
16353 if (!SWIG_IsOK(ecode5)) {
16354 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16355 }
16356 arg5 = static_cast< int >(val5);
16357 ecode6 = SWIG_AsVal_double(obj5, &val6);
16358 if (!SWIG_IsOK(ecode6)) {
16359 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16360 }
16361 arg6 = static_cast< double >(val6);
16362 {
16363 PyThreadState* __tstate = wxPyBeginAllowThreads();
16364 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16365 wxPyEndAllowThreads(__tstate);
16366 if (PyErr_Occurred()) SWIG_fail;
16367 }
16368 resultobj = SWIG_Py_Void();
16369 return resultobj;
16370 fail:
16371 return NULL;
16372 }
16373
16374
16375 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16376 PyObject *resultobj = 0;
16377 wxDC *arg1 = (wxDC *) 0 ;
16378 wxRect *arg2 = 0 ;
16379 double arg3 ;
16380 void *argp1 = 0 ;
16381 int res1 = 0 ;
16382 wxRect temp2 ;
16383 double val3 ;
16384 int ecode3 = 0 ;
16385 PyObject * obj0 = 0 ;
16386 PyObject * obj1 = 0 ;
16387 PyObject * obj2 = 0 ;
16388 char * kwnames[] = {
16389 (char *) "self",(char *) "r",(char *) "radius", NULL
16390 };
16391
16392 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16393 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16394 if (!SWIG_IsOK(res1)) {
16395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16396 }
16397 arg1 = reinterpret_cast< wxDC * >(argp1);
16398 {
16399 arg2 = &temp2;
16400 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16401 }
16402 ecode3 = SWIG_AsVal_double(obj2, &val3);
16403 if (!SWIG_IsOK(ecode3)) {
16404 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16405 }
16406 arg3 = static_cast< double >(val3);
16407 {
16408 PyThreadState* __tstate = wxPyBeginAllowThreads();
16409 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16410 wxPyEndAllowThreads(__tstate);
16411 if (PyErr_Occurred()) SWIG_fail;
16412 }
16413 resultobj = SWIG_Py_Void();
16414 return resultobj;
16415 fail:
16416 return NULL;
16417 }
16418
16419
16420 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16421 PyObject *resultobj = 0;
16422 wxDC *arg1 = (wxDC *) 0 ;
16423 wxPoint *arg2 = 0 ;
16424 wxSize *arg3 = 0 ;
16425 double arg4 ;
16426 void *argp1 = 0 ;
16427 int res1 = 0 ;
16428 wxPoint temp2 ;
16429 wxSize temp3 ;
16430 double val4 ;
16431 int ecode4 = 0 ;
16432 PyObject * obj0 = 0 ;
16433 PyObject * obj1 = 0 ;
16434 PyObject * obj2 = 0 ;
16435 PyObject * obj3 = 0 ;
16436 char * kwnames[] = {
16437 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16438 };
16439
16440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16442 if (!SWIG_IsOK(res1)) {
16443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16444 }
16445 arg1 = reinterpret_cast< wxDC * >(argp1);
16446 {
16447 arg2 = &temp2;
16448 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16449 }
16450 {
16451 arg3 = &temp3;
16452 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16453 }
16454 ecode4 = SWIG_AsVal_double(obj3, &val4);
16455 if (!SWIG_IsOK(ecode4)) {
16456 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16457 }
16458 arg4 = static_cast< double >(val4);
16459 {
16460 PyThreadState* __tstate = wxPyBeginAllowThreads();
16461 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16462 wxPyEndAllowThreads(__tstate);
16463 if (PyErr_Occurred()) SWIG_fail;
16464 }
16465 resultobj = SWIG_Py_Void();
16466 return resultobj;
16467 fail:
16468 return NULL;
16469 }
16470
16471
16472 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16473 PyObject *resultobj = 0;
16474 wxDC *arg1 = (wxDC *) 0 ;
16475 int arg2 ;
16476 int arg3 ;
16477 int arg4 ;
16478 void *argp1 = 0 ;
16479 int res1 = 0 ;
16480 int val2 ;
16481 int ecode2 = 0 ;
16482 int val3 ;
16483 int ecode3 = 0 ;
16484 int val4 ;
16485 int ecode4 = 0 ;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 PyObject * obj2 = 0 ;
16489 PyObject * obj3 = 0 ;
16490 char * kwnames[] = {
16491 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16492 };
16493
16494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16496 if (!SWIG_IsOK(res1)) {
16497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16498 }
16499 arg1 = reinterpret_cast< wxDC * >(argp1);
16500 ecode2 = SWIG_AsVal_int(obj1, &val2);
16501 if (!SWIG_IsOK(ecode2)) {
16502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16503 }
16504 arg2 = static_cast< int >(val2);
16505 ecode3 = SWIG_AsVal_int(obj2, &val3);
16506 if (!SWIG_IsOK(ecode3)) {
16507 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16508 }
16509 arg3 = static_cast< int >(val3);
16510 ecode4 = SWIG_AsVal_int(obj3, &val4);
16511 if (!SWIG_IsOK(ecode4)) {
16512 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16513 }
16514 arg4 = static_cast< int >(val4);
16515 {
16516 PyThreadState* __tstate = wxPyBeginAllowThreads();
16517 (arg1)->DrawCircle(arg2,arg3,arg4);
16518 wxPyEndAllowThreads(__tstate);
16519 if (PyErr_Occurred()) SWIG_fail;
16520 }
16521 resultobj = SWIG_Py_Void();
16522 return resultobj;
16523 fail:
16524 return NULL;
16525 }
16526
16527
16528 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16529 PyObject *resultobj = 0;
16530 wxDC *arg1 = (wxDC *) 0 ;
16531 wxPoint *arg2 = 0 ;
16532 int arg3 ;
16533 void *argp1 = 0 ;
16534 int res1 = 0 ;
16535 wxPoint temp2 ;
16536 int val3 ;
16537 int ecode3 = 0 ;
16538 PyObject * obj0 = 0 ;
16539 PyObject * obj1 = 0 ;
16540 PyObject * obj2 = 0 ;
16541 char * kwnames[] = {
16542 (char *) "self",(char *) "pt",(char *) "radius", NULL
16543 };
16544
16545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16547 if (!SWIG_IsOK(res1)) {
16548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16549 }
16550 arg1 = reinterpret_cast< wxDC * >(argp1);
16551 {
16552 arg2 = &temp2;
16553 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16554 }
16555 ecode3 = SWIG_AsVal_int(obj2, &val3);
16556 if (!SWIG_IsOK(ecode3)) {
16557 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16558 }
16559 arg3 = static_cast< int >(val3);
16560 {
16561 PyThreadState* __tstate = wxPyBeginAllowThreads();
16562 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16563 wxPyEndAllowThreads(__tstate);
16564 if (PyErr_Occurred()) SWIG_fail;
16565 }
16566 resultobj = SWIG_Py_Void();
16567 return resultobj;
16568 fail:
16569 return NULL;
16570 }
16571
16572
16573 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16574 PyObject *resultobj = 0;
16575 wxDC *arg1 = (wxDC *) 0 ;
16576 int arg2 ;
16577 int arg3 ;
16578 int arg4 ;
16579 int arg5 ;
16580 void *argp1 = 0 ;
16581 int res1 = 0 ;
16582 int val2 ;
16583 int ecode2 = 0 ;
16584 int val3 ;
16585 int ecode3 = 0 ;
16586 int val4 ;
16587 int ecode4 = 0 ;
16588 int val5 ;
16589 int ecode5 = 0 ;
16590 PyObject * obj0 = 0 ;
16591 PyObject * obj1 = 0 ;
16592 PyObject * obj2 = 0 ;
16593 PyObject * obj3 = 0 ;
16594 PyObject * obj4 = 0 ;
16595 char * kwnames[] = {
16596 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16597 };
16598
16599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16601 if (!SWIG_IsOK(res1)) {
16602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16603 }
16604 arg1 = reinterpret_cast< wxDC * >(argp1);
16605 ecode2 = SWIG_AsVal_int(obj1, &val2);
16606 if (!SWIG_IsOK(ecode2)) {
16607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16608 }
16609 arg2 = static_cast< int >(val2);
16610 ecode3 = SWIG_AsVal_int(obj2, &val3);
16611 if (!SWIG_IsOK(ecode3)) {
16612 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16613 }
16614 arg3 = static_cast< int >(val3);
16615 ecode4 = SWIG_AsVal_int(obj3, &val4);
16616 if (!SWIG_IsOK(ecode4)) {
16617 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16618 }
16619 arg4 = static_cast< int >(val4);
16620 ecode5 = SWIG_AsVal_int(obj4, &val5);
16621 if (!SWIG_IsOK(ecode5)) {
16622 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16623 }
16624 arg5 = static_cast< int >(val5);
16625 {
16626 PyThreadState* __tstate = wxPyBeginAllowThreads();
16627 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16628 wxPyEndAllowThreads(__tstate);
16629 if (PyErr_Occurred()) SWIG_fail;
16630 }
16631 resultobj = SWIG_Py_Void();
16632 return resultobj;
16633 fail:
16634 return NULL;
16635 }
16636
16637
16638 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16639 PyObject *resultobj = 0;
16640 wxDC *arg1 = (wxDC *) 0 ;
16641 wxRect *arg2 = 0 ;
16642 void *argp1 = 0 ;
16643 int res1 = 0 ;
16644 wxRect temp2 ;
16645 PyObject * obj0 = 0 ;
16646 PyObject * obj1 = 0 ;
16647 char * kwnames[] = {
16648 (char *) "self",(char *) "rect", NULL
16649 };
16650
16651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16653 if (!SWIG_IsOK(res1)) {
16654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16655 }
16656 arg1 = reinterpret_cast< wxDC * >(argp1);
16657 {
16658 arg2 = &temp2;
16659 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16660 }
16661 {
16662 PyThreadState* __tstate = wxPyBeginAllowThreads();
16663 (arg1)->DrawEllipse((wxRect const &)*arg2);
16664 wxPyEndAllowThreads(__tstate);
16665 if (PyErr_Occurred()) SWIG_fail;
16666 }
16667 resultobj = SWIG_Py_Void();
16668 return resultobj;
16669 fail:
16670 return NULL;
16671 }
16672
16673
16674 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16675 PyObject *resultobj = 0;
16676 wxDC *arg1 = (wxDC *) 0 ;
16677 wxPoint *arg2 = 0 ;
16678 wxSize *arg3 = 0 ;
16679 void *argp1 = 0 ;
16680 int res1 = 0 ;
16681 wxPoint temp2 ;
16682 wxSize temp3 ;
16683 PyObject * obj0 = 0 ;
16684 PyObject * obj1 = 0 ;
16685 PyObject * obj2 = 0 ;
16686 char * kwnames[] = {
16687 (char *) "self",(char *) "pt",(char *) "sz", NULL
16688 };
16689
16690 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16691 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16692 if (!SWIG_IsOK(res1)) {
16693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16694 }
16695 arg1 = reinterpret_cast< wxDC * >(argp1);
16696 {
16697 arg2 = &temp2;
16698 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16699 }
16700 {
16701 arg3 = &temp3;
16702 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16703 }
16704 {
16705 PyThreadState* __tstate = wxPyBeginAllowThreads();
16706 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16707 wxPyEndAllowThreads(__tstate);
16708 if (PyErr_Occurred()) SWIG_fail;
16709 }
16710 resultobj = SWIG_Py_Void();
16711 return resultobj;
16712 fail:
16713 return NULL;
16714 }
16715
16716
16717 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16718 PyObject *resultobj = 0;
16719 wxDC *arg1 = (wxDC *) 0 ;
16720 wxIcon *arg2 = 0 ;
16721 int arg3 ;
16722 int arg4 ;
16723 void *argp1 = 0 ;
16724 int res1 = 0 ;
16725 void *argp2 = 0 ;
16726 int res2 = 0 ;
16727 int val3 ;
16728 int ecode3 = 0 ;
16729 int val4 ;
16730 int ecode4 = 0 ;
16731 PyObject * obj0 = 0 ;
16732 PyObject * obj1 = 0 ;
16733 PyObject * obj2 = 0 ;
16734 PyObject * obj3 = 0 ;
16735 char * kwnames[] = {
16736 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16737 };
16738
16739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16741 if (!SWIG_IsOK(res1)) {
16742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16743 }
16744 arg1 = reinterpret_cast< wxDC * >(argp1);
16745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16746 if (!SWIG_IsOK(res2)) {
16747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16748 }
16749 if (!argp2) {
16750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16751 }
16752 arg2 = reinterpret_cast< wxIcon * >(argp2);
16753 ecode3 = SWIG_AsVal_int(obj2, &val3);
16754 if (!SWIG_IsOK(ecode3)) {
16755 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16756 }
16757 arg3 = static_cast< int >(val3);
16758 ecode4 = SWIG_AsVal_int(obj3, &val4);
16759 if (!SWIG_IsOK(ecode4)) {
16760 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16761 }
16762 arg4 = static_cast< int >(val4);
16763 {
16764 PyThreadState* __tstate = wxPyBeginAllowThreads();
16765 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16766 wxPyEndAllowThreads(__tstate);
16767 if (PyErr_Occurred()) SWIG_fail;
16768 }
16769 resultobj = SWIG_Py_Void();
16770 return resultobj;
16771 fail:
16772 return NULL;
16773 }
16774
16775
16776 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16777 PyObject *resultobj = 0;
16778 wxDC *arg1 = (wxDC *) 0 ;
16779 wxIcon *arg2 = 0 ;
16780 wxPoint *arg3 = 0 ;
16781 void *argp1 = 0 ;
16782 int res1 = 0 ;
16783 void *argp2 = 0 ;
16784 int res2 = 0 ;
16785 wxPoint temp3 ;
16786 PyObject * obj0 = 0 ;
16787 PyObject * obj1 = 0 ;
16788 PyObject * obj2 = 0 ;
16789 char * kwnames[] = {
16790 (char *) "self",(char *) "icon",(char *) "pt", NULL
16791 };
16792
16793 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16794 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16795 if (!SWIG_IsOK(res1)) {
16796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16797 }
16798 arg1 = reinterpret_cast< wxDC * >(argp1);
16799 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16800 if (!SWIG_IsOK(res2)) {
16801 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16802 }
16803 if (!argp2) {
16804 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16805 }
16806 arg2 = reinterpret_cast< wxIcon * >(argp2);
16807 {
16808 arg3 = &temp3;
16809 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16810 }
16811 {
16812 PyThreadState* __tstate = wxPyBeginAllowThreads();
16813 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16814 wxPyEndAllowThreads(__tstate);
16815 if (PyErr_Occurred()) SWIG_fail;
16816 }
16817 resultobj = SWIG_Py_Void();
16818 return resultobj;
16819 fail:
16820 return NULL;
16821 }
16822
16823
16824 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16825 PyObject *resultobj = 0;
16826 wxDC *arg1 = (wxDC *) 0 ;
16827 wxBitmap *arg2 = 0 ;
16828 int arg3 ;
16829 int arg4 ;
16830 bool arg5 = (bool) false ;
16831 void *argp1 = 0 ;
16832 int res1 = 0 ;
16833 void *argp2 = 0 ;
16834 int res2 = 0 ;
16835 int val3 ;
16836 int ecode3 = 0 ;
16837 int val4 ;
16838 int ecode4 = 0 ;
16839 bool val5 ;
16840 int ecode5 = 0 ;
16841 PyObject * obj0 = 0 ;
16842 PyObject * obj1 = 0 ;
16843 PyObject * obj2 = 0 ;
16844 PyObject * obj3 = 0 ;
16845 PyObject * obj4 = 0 ;
16846 char * kwnames[] = {
16847 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16848 };
16849
16850 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16851 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16852 if (!SWIG_IsOK(res1)) {
16853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16854 }
16855 arg1 = reinterpret_cast< wxDC * >(argp1);
16856 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16857 if (!SWIG_IsOK(res2)) {
16858 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16859 }
16860 if (!argp2) {
16861 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16862 }
16863 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16864 ecode3 = SWIG_AsVal_int(obj2, &val3);
16865 if (!SWIG_IsOK(ecode3)) {
16866 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16867 }
16868 arg3 = static_cast< int >(val3);
16869 ecode4 = SWIG_AsVal_int(obj3, &val4);
16870 if (!SWIG_IsOK(ecode4)) {
16871 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16872 }
16873 arg4 = static_cast< int >(val4);
16874 if (obj4) {
16875 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16876 if (!SWIG_IsOK(ecode5)) {
16877 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16878 }
16879 arg5 = static_cast< bool >(val5);
16880 }
16881 {
16882 PyThreadState* __tstate = wxPyBeginAllowThreads();
16883 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16884 wxPyEndAllowThreads(__tstate);
16885 if (PyErr_Occurred()) SWIG_fail;
16886 }
16887 resultobj = SWIG_Py_Void();
16888 return resultobj;
16889 fail:
16890 return NULL;
16891 }
16892
16893
16894 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16895 PyObject *resultobj = 0;
16896 wxDC *arg1 = (wxDC *) 0 ;
16897 wxBitmap *arg2 = 0 ;
16898 wxPoint *arg3 = 0 ;
16899 bool arg4 = (bool) false ;
16900 void *argp1 = 0 ;
16901 int res1 = 0 ;
16902 void *argp2 = 0 ;
16903 int res2 = 0 ;
16904 wxPoint temp3 ;
16905 bool val4 ;
16906 int ecode4 = 0 ;
16907 PyObject * obj0 = 0 ;
16908 PyObject * obj1 = 0 ;
16909 PyObject * obj2 = 0 ;
16910 PyObject * obj3 = 0 ;
16911 char * kwnames[] = {
16912 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16913 };
16914
16915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16917 if (!SWIG_IsOK(res1)) {
16918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16919 }
16920 arg1 = reinterpret_cast< wxDC * >(argp1);
16921 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16922 if (!SWIG_IsOK(res2)) {
16923 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16924 }
16925 if (!argp2) {
16926 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16927 }
16928 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16929 {
16930 arg3 = &temp3;
16931 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16932 }
16933 if (obj3) {
16934 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16935 if (!SWIG_IsOK(ecode4)) {
16936 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16937 }
16938 arg4 = static_cast< bool >(val4);
16939 }
16940 {
16941 PyThreadState* __tstate = wxPyBeginAllowThreads();
16942 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16943 wxPyEndAllowThreads(__tstate);
16944 if (PyErr_Occurred()) SWIG_fail;
16945 }
16946 resultobj = SWIG_Py_Void();
16947 return resultobj;
16948 fail:
16949 return NULL;
16950 }
16951
16952
16953 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16954 PyObject *resultobj = 0;
16955 wxDC *arg1 = (wxDC *) 0 ;
16956 wxString *arg2 = 0 ;
16957 int arg3 ;
16958 int arg4 ;
16959 void *argp1 = 0 ;
16960 int res1 = 0 ;
16961 bool temp2 = false ;
16962 int val3 ;
16963 int ecode3 = 0 ;
16964 int val4 ;
16965 int ecode4 = 0 ;
16966 PyObject * obj0 = 0 ;
16967 PyObject * obj1 = 0 ;
16968 PyObject * obj2 = 0 ;
16969 PyObject * obj3 = 0 ;
16970 char * kwnames[] = {
16971 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16972 };
16973
16974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16976 if (!SWIG_IsOK(res1)) {
16977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16978 }
16979 arg1 = reinterpret_cast< wxDC * >(argp1);
16980 {
16981 arg2 = wxString_in_helper(obj1);
16982 if (arg2 == NULL) SWIG_fail;
16983 temp2 = true;
16984 }
16985 ecode3 = SWIG_AsVal_int(obj2, &val3);
16986 if (!SWIG_IsOK(ecode3)) {
16987 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16988 }
16989 arg3 = static_cast< int >(val3);
16990 ecode4 = SWIG_AsVal_int(obj3, &val4);
16991 if (!SWIG_IsOK(ecode4)) {
16992 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16993 }
16994 arg4 = static_cast< int >(val4);
16995 {
16996 PyThreadState* __tstate = wxPyBeginAllowThreads();
16997 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16998 wxPyEndAllowThreads(__tstate);
16999 if (PyErr_Occurred()) SWIG_fail;
17000 }
17001 resultobj = SWIG_Py_Void();
17002 {
17003 if (temp2)
17004 delete arg2;
17005 }
17006 return resultobj;
17007 fail:
17008 {
17009 if (temp2)
17010 delete arg2;
17011 }
17012 return NULL;
17013 }
17014
17015
17016 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17017 PyObject *resultobj = 0;
17018 wxDC *arg1 = (wxDC *) 0 ;
17019 wxString *arg2 = 0 ;
17020 wxPoint *arg3 = 0 ;
17021 void *argp1 = 0 ;
17022 int res1 = 0 ;
17023 bool temp2 = false ;
17024 wxPoint temp3 ;
17025 PyObject * obj0 = 0 ;
17026 PyObject * obj1 = 0 ;
17027 PyObject * obj2 = 0 ;
17028 char * kwnames[] = {
17029 (char *) "self",(char *) "text",(char *) "pt", NULL
17030 };
17031
17032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17033 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17034 if (!SWIG_IsOK(res1)) {
17035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17036 }
17037 arg1 = reinterpret_cast< wxDC * >(argp1);
17038 {
17039 arg2 = wxString_in_helper(obj1);
17040 if (arg2 == NULL) SWIG_fail;
17041 temp2 = true;
17042 }
17043 {
17044 arg3 = &temp3;
17045 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17046 }
17047 {
17048 PyThreadState* __tstate = wxPyBeginAllowThreads();
17049 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17050 wxPyEndAllowThreads(__tstate);
17051 if (PyErr_Occurred()) SWIG_fail;
17052 }
17053 resultobj = SWIG_Py_Void();
17054 {
17055 if (temp2)
17056 delete arg2;
17057 }
17058 return resultobj;
17059 fail:
17060 {
17061 if (temp2)
17062 delete arg2;
17063 }
17064 return NULL;
17065 }
17066
17067
17068 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17069 PyObject *resultobj = 0;
17070 wxDC *arg1 = (wxDC *) 0 ;
17071 wxString *arg2 = 0 ;
17072 int arg3 ;
17073 int arg4 ;
17074 double arg5 ;
17075 void *argp1 = 0 ;
17076 int res1 = 0 ;
17077 bool temp2 = false ;
17078 int val3 ;
17079 int ecode3 = 0 ;
17080 int val4 ;
17081 int ecode4 = 0 ;
17082 double val5 ;
17083 int ecode5 = 0 ;
17084 PyObject * obj0 = 0 ;
17085 PyObject * obj1 = 0 ;
17086 PyObject * obj2 = 0 ;
17087 PyObject * obj3 = 0 ;
17088 PyObject * obj4 = 0 ;
17089 char * kwnames[] = {
17090 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17091 };
17092
17093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17095 if (!SWIG_IsOK(res1)) {
17096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17097 }
17098 arg1 = reinterpret_cast< wxDC * >(argp1);
17099 {
17100 arg2 = wxString_in_helper(obj1);
17101 if (arg2 == NULL) SWIG_fail;
17102 temp2 = true;
17103 }
17104 ecode3 = SWIG_AsVal_int(obj2, &val3);
17105 if (!SWIG_IsOK(ecode3)) {
17106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17107 }
17108 arg3 = static_cast< int >(val3);
17109 ecode4 = SWIG_AsVal_int(obj3, &val4);
17110 if (!SWIG_IsOK(ecode4)) {
17111 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17112 }
17113 arg4 = static_cast< int >(val4);
17114 ecode5 = SWIG_AsVal_double(obj4, &val5);
17115 if (!SWIG_IsOK(ecode5)) {
17116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17117 }
17118 arg5 = static_cast< double >(val5);
17119 {
17120 PyThreadState* __tstate = wxPyBeginAllowThreads();
17121 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17122 wxPyEndAllowThreads(__tstate);
17123 if (PyErr_Occurred()) SWIG_fail;
17124 }
17125 resultobj = SWIG_Py_Void();
17126 {
17127 if (temp2)
17128 delete arg2;
17129 }
17130 return resultobj;
17131 fail:
17132 {
17133 if (temp2)
17134 delete arg2;
17135 }
17136 return NULL;
17137 }
17138
17139
17140 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17141 PyObject *resultobj = 0;
17142 wxDC *arg1 = (wxDC *) 0 ;
17143 wxString *arg2 = 0 ;
17144 wxPoint *arg3 = 0 ;
17145 double arg4 ;
17146 void *argp1 = 0 ;
17147 int res1 = 0 ;
17148 bool temp2 = false ;
17149 wxPoint temp3 ;
17150 double val4 ;
17151 int ecode4 = 0 ;
17152 PyObject * obj0 = 0 ;
17153 PyObject * obj1 = 0 ;
17154 PyObject * obj2 = 0 ;
17155 PyObject * obj3 = 0 ;
17156 char * kwnames[] = {
17157 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17158 };
17159
17160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17162 if (!SWIG_IsOK(res1)) {
17163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17164 }
17165 arg1 = reinterpret_cast< wxDC * >(argp1);
17166 {
17167 arg2 = wxString_in_helper(obj1);
17168 if (arg2 == NULL) SWIG_fail;
17169 temp2 = true;
17170 }
17171 {
17172 arg3 = &temp3;
17173 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17174 }
17175 ecode4 = SWIG_AsVal_double(obj3, &val4);
17176 if (!SWIG_IsOK(ecode4)) {
17177 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17178 }
17179 arg4 = static_cast< double >(val4);
17180 {
17181 PyThreadState* __tstate = wxPyBeginAllowThreads();
17182 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17183 wxPyEndAllowThreads(__tstate);
17184 if (PyErr_Occurred()) SWIG_fail;
17185 }
17186 resultobj = SWIG_Py_Void();
17187 {
17188 if (temp2)
17189 delete arg2;
17190 }
17191 return resultobj;
17192 fail:
17193 {
17194 if (temp2)
17195 delete arg2;
17196 }
17197 return NULL;
17198 }
17199
17200
17201 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17202 PyObject *resultobj = 0;
17203 wxDC *arg1 = (wxDC *) 0 ;
17204 int arg2 ;
17205 int arg3 ;
17206 int arg4 ;
17207 int arg5 ;
17208 wxDC *arg6 = (wxDC *) 0 ;
17209 int arg7 ;
17210 int arg8 ;
17211 int arg9 = (int) wxCOPY ;
17212 bool arg10 = (bool) false ;
17213 int arg11 = (int) -1 ;
17214 int arg12 = (int) -1 ;
17215 bool result;
17216 void *argp1 = 0 ;
17217 int res1 = 0 ;
17218 int val2 ;
17219 int ecode2 = 0 ;
17220 int val3 ;
17221 int ecode3 = 0 ;
17222 int val4 ;
17223 int ecode4 = 0 ;
17224 int val5 ;
17225 int ecode5 = 0 ;
17226 void *argp6 = 0 ;
17227 int res6 = 0 ;
17228 int val7 ;
17229 int ecode7 = 0 ;
17230 int val8 ;
17231 int ecode8 = 0 ;
17232 int val9 ;
17233 int ecode9 = 0 ;
17234 bool val10 ;
17235 int ecode10 = 0 ;
17236 int val11 ;
17237 int ecode11 = 0 ;
17238 int val12 ;
17239 int ecode12 = 0 ;
17240 PyObject * obj0 = 0 ;
17241 PyObject * obj1 = 0 ;
17242 PyObject * obj2 = 0 ;
17243 PyObject * obj3 = 0 ;
17244 PyObject * obj4 = 0 ;
17245 PyObject * obj5 = 0 ;
17246 PyObject * obj6 = 0 ;
17247 PyObject * obj7 = 0 ;
17248 PyObject * obj8 = 0 ;
17249 PyObject * obj9 = 0 ;
17250 PyObject * obj10 = 0 ;
17251 PyObject * obj11 = 0 ;
17252 char * kwnames[] = {
17253 (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
17254 };
17255
17256 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;
17257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17258 if (!SWIG_IsOK(res1)) {
17259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17260 }
17261 arg1 = reinterpret_cast< wxDC * >(argp1);
17262 ecode2 = SWIG_AsVal_int(obj1, &val2);
17263 if (!SWIG_IsOK(ecode2)) {
17264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17265 }
17266 arg2 = static_cast< int >(val2);
17267 ecode3 = SWIG_AsVal_int(obj2, &val3);
17268 if (!SWIG_IsOK(ecode3)) {
17269 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17270 }
17271 arg3 = static_cast< int >(val3);
17272 ecode4 = SWIG_AsVal_int(obj3, &val4);
17273 if (!SWIG_IsOK(ecode4)) {
17274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17275 }
17276 arg4 = static_cast< int >(val4);
17277 ecode5 = SWIG_AsVal_int(obj4, &val5);
17278 if (!SWIG_IsOK(ecode5)) {
17279 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17280 }
17281 arg5 = static_cast< int >(val5);
17282 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17283 if (!SWIG_IsOK(res6)) {
17284 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17285 }
17286 arg6 = reinterpret_cast< wxDC * >(argp6);
17287 ecode7 = SWIG_AsVal_int(obj6, &val7);
17288 if (!SWIG_IsOK(ecode7)) {
17289 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17290 }
17291 arg7 = static_cast< int >(val7);
17292 ecode8 = SWIG_AsVal_int(obj7, &val8);
17293 if (!SWIG_IsOK(ecode8)) {
17294 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17295 }
17296 arg8 = static_cast< int >(val8);
17297 if (obj8) {
17298 ecode9 = SWIG_AsVal_int(obj8, &val9);
17299 if (!SWIG_IsOK(ecode9)) {
17300 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17301 }
17302 arg9 = static_cast< int >(val9);
17303 }
17304 if (obj9) {
17305 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17306 if (!SWIG_IsOK(ecode10)) {
17307 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17308 }
17309 arg10 = static_cast< bool >(val10);
17310 }
17311 if (obj10) {
17312 ecode11 = SWIG_AsVal_int(obj10, &val11);
17313 if (!SWIG_IsOK(ecode11)) {
17314 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17315 }
17316 arg11 = static_cast< int >(val11);
17317 }
17318 if (obj11) {
17319 ecode12 = SWIG_AsVal_int(obj11, &val12);
17320 if (!SWIG_IsOK(ecode12)) {
17321 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17322 }
17323 arg12 = static_cast< int >(val12);
17324 }
17325 {
17326 PyThreadState* __tstate = wxPyBeginAllowThreads();
17327 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17328 wxPyEndAllowThreads(__tstate);
17329 if (PyErr_Occurred()) SWIG_fail;
17330 }
17331 {
17332 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17333 }
17334 return resultobj;
17335 fail:
17336 return NULL;
17337 }
17338
17339
17340 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17341 PyObject *resultobj = 0;
17342 wxDC *arg1 = (wxDC *) 0 ;
17343 wxPoint *arg2 = 0 ;
17344 wxSize *arg3 = 0 ;
17345 wxDC *arg4 = (wxDC *) 0 ;
17346 wxPoint *arg5 = 0 ;
17347 int arg6 = (int) wxCOPY ;
17348 bool arg7 = (bool) false ;
17349 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17350 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17351 bool result;
17352 void *argp1 = 0 ;
17353 int res1 = 0 ;
17354 wxPoint temp2 ;
17355 wxSize temp3 ;
17356 void *argp4 = 0 ;
17357 int res4 = 0 ;
17358 wxPoint temp5 ;
17359 int val6 ;
17360 int ecode6 = 0 ;
17361 bool val7 ;
17362 int ecode7 = 0 ;
17363 wxPoint temp8 ;
17364 PyObject * obj0 = 0 ;
17365 PyObject * obj1 = 0 ;
17366 PyObject * obj2 = 0 ;
17367 PyObject * obj3 = 0 ;
17368 PyObject * obj4 = 0 ;
17369 PyObject * obj5 = 0 ;
17370 PyObject * obj6 = 0 ;
17371 PyObject * obj7 = 0 ;
17372 char * kwnames[] = {
17373 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17374 };
17375
17376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17377 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17378 if (!SWIG_IsOK(res1)) {
17379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17380 }
17381 arg1 = reinterpret_cast< wxDC * >(argp1);
17382 {
17383 arg2 = &temp2;
17384 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17385 }
17386 {
17387 arg3 = &temp3;
17388 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17389 }
17390 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17391 if (!SWIG_IsOK(res4)) {
17392 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17393 }
17394 arg4 = reinterpret_cast< wxDC * >(argp4);
17395 {
17396 arg5 = &temp5;
17397 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17398 }
17399 if (obj5) {
17400 ecode6 = SWIG_AsVal_int(obj5, &val6);
17401 if (!SWIG_IsOK(ecode6)) {
17402 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17403 }
17404 arg6 = static_cast< int >(val6);
17405 }
17406 if (obj6) {
17407 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17408 if (!SWIG_IsOK(ecode7)) {
17409 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17410 }
17411 arg7 = static_cast< bool >(val7);
17412 }
17413 if (obj7) {
17414 {
17415 arg8 = &temp8;
17416 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17417 }
17418 }
17419 {
17420 PyThreadState* __tstate = wxPyBeginAllowThreads();
17421 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17422 wxPyEndAllowThreads(__tstate);
17423 if (PyErr_Occurred()) SWIG_fail;
17424 }
17425 {
17426 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17427 }
17428 return resultobj;
17429 fail:
17430 return NULL;
17431 }
17432
17433
17434 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17435 PyObject *resultobj = 0;
17436 wxDC *arg1 = (wxDC *) 0 ;
17437 int arg2 ;
17438 int arg3 ;
17439 int arg4 ;
17440 int arg5 ;
17441 void *argp1 = 0 ;
17442 int res1 = 0 ;
17443 int val2 ;
17444 int ecode2 = 0 ;
17445 int val3 ;
17446 int ecode3 = 0 ;
17447 int val4 ;
17448 int ecode4 = 0 ;
17449 int val5 ;
17450 int ecode5 = 0 ;
17451 PyObject * obj0 = 0 ;
17452 PyObject * obj1 = 0 ;
17453 PyObject * obj2 = 0 ;
17454 PyObject * obj3 = 0 ;
17455 PyObject * obj4 = 0 ;
17456 char * kwnames[] = {
17457 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17458 };
17459
17460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17461 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17462 if (!SWIG_IsOK(res1)) {
17463 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17464 }
17465 arg1 = reinterpret_cast< wxDC * >(argp1);
17466 ecode2 = SWIG_AsVal_int(obj1, &val2);
17467 if (!SWIG_IsOK(ecode2)) {
17468 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17469 }
17470 arg2 = static_cast< int >(val2);
17471 ecode3 = SWIG_AsVal_int(obj2, &val3);
17472 if (!SWIG_IsOK(ecode3)) {
17473 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17474 }
17475 arg3 = static_cast< int >(val3);
17476 ecode4 = SWIG_AsVal_int(obj3, &val4);
17477 if (!SWIG_IsOK(ecode4)) {
17478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17479 }
17480 arg4 = static_cast< int >(val4);
17481 ecode5 = SWIG_AsVal_int(obj4, &val5);
17482 if (!SWIG_IsOK(ecode5)) {
17483 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17484 }
17485 arg5 = static_cast< int >(val5);
17486 {
17487 PyThreadState* __tstate = wxPyBeginAllowThreads();
17488 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17489 wxPyEndAllowThreads(__tstate);
17490 if (PyErr_Occurred()) SWIG_fail;
17491 }
17492 resultobj = SWIG_Py_Void();
17493 return resultobj;
17494 fail:
17495 return NULL;
17496 }
17497
17498
17499 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17500 PyObject *resultobj = 0;
17501 wxDC *arg1 = (wxDC *) 0 ;
17502 wxPoint *arg2 = 0 ;
17503 wxSize *arg3 = 0 ;
17504 void *argp1 = 0 ;
17505 int res1 = 0 ;
17506 wxPoint temp2 ;
17507 wxSize temp3 ;
17508 PyObject * obj0 = 0 ;
17509 PyObject * obj1 = 0 ;
17510 PyObject * obj2 = 0 ;
17511 char * kwnames[] = {
17512 (char *) "self",(char *) "pt",(char *) "sz", NULL
17513 };
17514
17515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17517 if (!SWIG_IsOK(res1)) {
17518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17519 }
17520 arg1 = reinterpret_cast< wxDC * >(argp1);
17521 {
17522 arg2 = &temp2;
17523 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17524 }
17525 {
17526 arg3 = &temp3;
17527 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17528 }
17529 {
17530 PyThreadState* __tstate = wxPyBeginAllowThreads();
17531 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17532 wxPyEndAllowThreads(__tstate);
17533 if (PyErr_Occurred()) SWIG_fail;
17534 }
17535 resultobj = SWIG_Py_Void();
17536 return resultobj;
17537 fail:
17538 return NULL;
17539 }
17540
17541
17542 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17543 PyObject *resultobj = 0;
17544 wxDC *arg1 = (wxDC *) 0 ;
17545 wxRegion *arg2 = 0 ;
17546 void *argp1 = 0 ;
17547 int res1 = 0 ;
17548 void *argp2 = 0 ;
17549 int res2 = 0 ;
17550 PyObject * obj0 = 0 ;
17551 PyObject * obj1 = 0 ;
17552 char * kwnames[] = {
17553 (char *) "self",(char *) "region", NULL
17554 };
17555
17556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17558 if (!SWIG_IsOK(res1)) {
17559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17560 }
17561 arg1 = reinterpret_cast< wxDC * >(argp1);
17562 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17563 if (!SWIG_IsOK(res2)) {
17564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17565 }
17566 if (!argp2) {
17567 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17568 }
17569 arg2 = reinterpret_cast< wxRegion * >(argp2);
17570 {
17571 PyThreadState* __tstate = wxPyBeginAllowThreads();
17572 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17573 wxPyEndAllowThreads(__tstate);
17574 if (PyErr_Occurred()) SWIG_fail;
17575 }
17576 resultobj = SWIG_Py_Void();
17577 return resultobj;
17578 fail:
17579 return NULL;
17580 }
17581
17582
17583 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17584 PyObject *resultobj = 0;
17585 wxDC *arg1 = (wxDC *) 0 ;
17586 wxRect *arg2 = 0 ;
17587 void *argp1 = 0 ;
17588 int res1 = 0 ;
17589 wxRect temp2 ;
17590 PyObject * obj0 = 0 ;
17591 PyObject * obj1 = 0 ;
17592 char * kwnames[] = {
17593 (char *) "self",(char *) "rect", NULL
17594 };
17595
17596 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17597 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17598 if (!SWIG_IsOK(res1)) {
17599 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17600 }
17601 arg1 = reinterpret_cast< wxDC * >(argp1);
17602 {
17603 arg2 = &temp2;
17604 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17605 }
17606 {
17607 PyThreadState* __tstate = wxPyBeginAllowThreads();
17608 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17609 wxPyEndAllowThreads(__tstate);
17610 if (PyErr_Occurred()) SWIG_fail;
17611 }
17612 resultobj = SWIG_Py_Void();
17613 return resultobj;
17614 fail:
17615 return NULL;
17616 }
17617
17618
17619 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17620 PyObject *resultobj = 0;
17621 wxDC *arg1 = (wxDC *) 0 ;
17622 int arg2 ;
17623 wxPoint *arg3 = (wxPoint *) 0 ;
17624 int arg4 = (int) 0 ;
17625 int arg5 = (int) 0 ;
17626 void *argp1 = 0 ;
17627 int res1 = 0 ;
17628 int val4 ;
17629 int ecode4 = 0 ;
17630 int val5 ;
17631 int ecode5 = 0 ;
17632 PyObject * obj0 = 0 ;
17633 PyObject * obj1 = 0 ;
17634 PyObject * obj2 = 0 ;
17635 PyObject * obj3 = 0 ;
17636 char * kwnames[] = {
17637 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17638 };
17639
17640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17642 if (!SWIG_IsOK(res1)) {
17643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17644 }
17645 arg1 = reinterpret_cast< wxDC * >(argp1);
17646 {
17647 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17648 if (arg3 == NULL) SWIG_fail;
17649 }
17650 if (obj2) {
17651 ecode4 = SWIG_AsVal_int(obj2, &val4);
17652 if (!SWIG_IsOK(ecode4)) {
17653 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17654 }
17655 arg4 = static_cast< int >(val4);
17656 }
17657 if (obj3) {
17658 ecode5 = SWIG_AsVal_int(obj3, &val5);
17659 if (!SWIG_IsOK(ecode5)) {
17660 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17661 }
17662 arg5 = static_cast< int >(val5);
17663 }
17664 {
17665 PyThreadState* __tstate = wxPyBeginAllowThreads();
17666 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17667 wxPyEndAllowThreads(__tstate);
17668 if (PyErr_Occurred()) SWIG_fail;
17669 }
17670 resultobj = SWIG_Py_Void();
17671 {
17672 if (arg3) delete [] arg3;
17673 }
17674 return resultobj;
17675 fail:
17676 {
17677 if (arg3) delete [] arg3;
17678 }
17679 return NULL;
17680 }
17681
17682
17683 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17684 PyObject *resultobj = 0;
17685 wxDC *arg1 = (wxDC *) 0 ;
17686 int arg2 ;
17687 wxPoint *arg3 = (wxPoint *) 0 ;
17688 int arg4 = (int) 0 ;
17689 int arg5 = (int) 0 ;
17690 int arg6 = (int) wxODDEVEN_RULE ;
17691 void *argp1 = 0 ;
17692 int res1 = 0 ;
17693 int val4 ;
17694 int ecode4 = 0 ;
17695 int val5 ;
17696 int ecode5 = 0 ;
17697 int val6 ;
17698 int ecode6 = 0 ;
17699 PyObject * obj0 = 0 ;
17700 PyObject * obj1 = 0 ;
17701 PyObject * obj2 = 0 ;
17702 PyObject * obj3 = 0 ;
17703 PyObject * obj4 = 0 ;
17704 char * kwnames[] = {
17705 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17706 };
17707
17708 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17709 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17710 if (!SWIG_IsOK(res1)) {
17711 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17712 }
17713 arg1 = reinterpret_cast< wxDC * >(argp1);
17714 {
17715 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17716 if (arg3 == NULL) SWIG_fail;
17717 }
17718 if (obj2) {
17719 ecode4 = SWIG_AsVal_int(obj2, &val4);
17720 if (!SWIG_IsOK(ecode4)) {
17721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17722 }
17723 arg4 = static_cast< int >(val4);
17724 }
17725 if (obj3) {
17726 ecode5 = SWIG_AsVal_int(obj3, &val5);
17727 if (!SWIG_IsOK(ecode5)) {
17728 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17729 }
17730 arg5 = static_cast< int >(val5);
17731 }
17732 if (obj4) {
17733 ecode6 = SWIG_AsVal_int(obj4, &val6);
17734 if (!SWIG_IsOK(ecode6)) {
17735 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17736 }
17737 arg6 = static_cast< int >(val6);
17738 }
17739 {
17740 PyThreadState* __tstate = wxPyBeginAllowThreads();
17741 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17742 wxPyEndAllowThreads(__tstate);
17743 if (PyErr_Occurred()) SWIG_fail;
17744 }
17745 resultobj = SWIG_Py_Void();
17746 {
17747 if (arg3) delete [] arg3;
17748 }
17749 return resultobj;
17750 fail:
17751 {
17752 if (arg3) delete [] arg3;
17753 }
17754 return NULL;
17755 }
17756
17757
17758 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17759 PyObject *resultobj = 0;
17760 wxDC *arg1 = (wxDC *) 0 ;
17761 wxString *arg2 = 0 ;
17762 wxRect *arg3 = 0 ;
17763 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17764 int arg5 = (int) -1 ;
17765 void *argp1 = 0 ;
17766 int res1 = 0 ;
17767 bool temp2 = false ;
17768 wxRect temp3 ;
17769 int val4 ;
17770 int ecode4 = 0 ;
17771 int val5 ;
17772 int ecode5 = 0 ;
17773 PyObject * obj0 = 0 ;
17774 PyObject * obj1 = 0 ;
17775 PyObject * obj2 = 0 ;
17776 PyObject * obj3 = 0 ;
17777 PyObject * obj4 = 0 ;
17778 char * kwnames[] = {
17779 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17780 };
17781
17782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17784 if (!SWIG_IsOK(res1)) {
17785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17786 }
17787 arg1 = reinterpret_cast< wxDC * >(argp1);
17788 {
17789 arg2 = wxString_in_helper(obj1);
17790 if (arg2 == NULL) SWIG_fail;
17791 temp2 = true;
17792 }
17793 {
17794 arg3 = &temp3;
17795 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17796 }
17797 if (obj3) {
17798 ecode4 = SWIG_AsVal_int(obj3, &val4);
17799 if (!SWIG_IsOK(ecode4)) {
17800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17801 }
17802 arg4 = static_cast< int >(val4);
17803 }
17804 if (obj4) {
17805 ecode5 = SWIG_AsVal_int(obj4, &val5);
17806 if (!SWIG_IsOK(ecode5)) {
17807 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17808 }
17809 arg5 = static_cast< int >(val5);
17810 }
17811 {
17812 PyThreadState* __tstate = wxPyBeginAllowThreads();
17813 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17814 wxPyEndAllowThreads(__tstate);
17815 if (PyErr_Occurred()) SWIG_fail;
17816 }
17817 resultobj = SWIG_Py_Void();
17818 {
17819 if (temp2)
17820 delete arg2;
17821 }
17822 return resultobj;
17823 fail:
17824 {
17825 if (temp2)
17826 delete arg2;
17827 }
17828 return NULL;
17829 }
17830
17831
17832 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17833 PyObject *resultobj = 0;
17834 wxDC *arg1 = (wxDC *) 0 ;
17835 wxString *arg2 = 0 ;
17836 wxBitmap *arg3 = 0 ;
17837 wxRect *arg4 = 0 ;
17838 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17839 int arg6 = (int) -1 ;
17840 wxRect result;
17841 void *argp1 = 0 ;
17842 int res1 = 0 ;
17843 bool temp2 = false ;
17844 void *argp3 = 0 ;
17845 int res3 = 0 ;
17846 wxRect temp4 ;
17847 int val5 ;
17848 int ecode5 = 0 ;
17849 int val6 ;
17850 int ecode6 = 0 ;
17851 PyObject * obj0 = 0 ;
17852 PyObject * obj1 = 0 ;
17853 PyObject * obj2 = 0 ;
17854 PyObject * obj3 = 0 ;
17855 PyObject * obj4 = 0 ;
17856 PyObject * obj5 = 0 ;
17857 char * kwnames[] = {
17858 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17859 };
17860
17861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17863 if (!SWIG_IsOK(res1)) {
17864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17865 }
17866 arg1 = reinterpret_cast< wxDC * >(argp1);
17867 {
17868 arg2 = wxString_in_helper(obj1);
17869 if (arg2 == NULL) SWIG_fail;
17870 temp2 = true;
17871 }
17872 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17873 if (!SWIG_IsOK(res3)) {
17874 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17875 }
17876 if (!argp3) {
17877 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17878 }
17879 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17880 {
17881 arg4 = &temp4;
17882 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17883 }
17884 if (obj4) {
17885 ecode5 = SWIG_AsVal_int(obj4, &val5);
17886 if (!SWIG_IsOK(ecode5)) {
17887 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17888 }
17889 arg5 = static_cast< int >(val5);
17890 }
17891 if (obj5) {
17892 ecode6 = SWIG_AsVal_int(obj5, &val6);
17893 if (!SWIG_IsOK(ecode6)) {
17894 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17895 }
17896 arg6 = static_cast< int >(val6);
17897 }
17898 {
17899 PyThreadState* __tstate = wxPyBeginAllowThreads();
17900 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17901 wxPyEndAllowThreads(__tstate);
17902 if (PyErr_Occurred()) SWIG_fail;
17903 }
17904 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17905 {
17906 if (temp2)
17907 delete arg2;
17908 }
17909 return resultobj;
17910 fail:
17911 {
17912 if (temp2)
17913 delete arg2;
17914 }
17915 return NULL;
17916 }
17917
17918
17919 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17920 PyObject *resultobj = 0;
17921 wxDC *arg1 = (wxDC *) 0 ;
17922 int arg2 ;
17923 wxPoint *arg3 = (wxPoint *) 0 ;
17924 void *argp1 = 0 ;
17925 int res1 = 0 ;
17926 PyObject * obj0 = 0 ;
17927 PyObject * obj1 = 0 ;
17928 char * kwnames[] = {
17929 (char *) "self",(char *) "points", NULL
17930 };
17931
17932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17934 if (!SWIG_IsOK(res1)) {
17935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17936 }
17937 arg1 = reinterpret_cast< wxDC * >(argp1);
17938 {
17939 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17940 if (arg3 == NULL) SWIG_fail;
17941 }
17942 {
17943 PyThreadState* __tstate = wxPyBeginAllowThreads();
17944 (arg1)->DrawSpline(arg2,arg3);
17945 wxPyEndAllowThreads(__tstate);
17946 if (PyErr_Occurred()) SWIG_fail;
17947 }
17948 resultobj = SWIG_Py_Void();
17949 {
17950 if (arg3) delete [] arg3;
17951 }
17952 return resultobj;
17953 fail:
17954 {
17955 if (arg3) delete [] arg3;
17956 }
17957 return NULL;
17958 }
17959
17960
17961 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17962 PyObject *resultobj = 0;
17963 wxDC *arg1 = (wxDC *) 0 ;
17964 void *argp1 = 0 ;
17965 int res1 = 0 ;
17966 PyObject *swig_obj[1] ;
17967
17968 if (!args) SWIG_fail;
17969 swig_obj[0] = args;
17970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17971 if (!SWIG_IsOK(res1)) {
17972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17973 }
17974 arg1 = reinterpret_cast< wxDC * >(argp1);
17975 {
17976 PyThreadState* __tstate = wxPyBeginAllowThreads();
17977 (arg1)->Clear();
17978 wxPyEndAllowThreads(__tstate);
17979 if (PyErr_Occurred()) SWIG_fail;
17980 }
17981 resultobj = SWIG_Py_Void();
17982 return resultobj;
17983 fail:
17984 return NULL;
17985 }
17986
17987
17988 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17989 PyObject *resultobj = 0;
17990 wxDC *arg1 = (wxDC *) 0 ;
17991 wxString *arg2 = 0 ;
17992 bool result;
17993 void *argp1 = 0 ;
17994 int res1 = 0 ;
17995 bool temp2 = false ;
17996 PyObject * obj0 = 0 ;
17997 PyObject * obj1 = 0 ;
17998 char * kwnames[] = {
17999 (char *) "self",(char *) "message", NULL
18000 };
18001
18002 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
18003 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18004 if (!SWIG_IsOK(res1)) {
18005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18006 }
18007 arg1 = reinterpret_cast< wxDC * >(argp1);
18008 {
18009 arg2 = wxString_in_helper(obj1);
18010 if (arg2 == NULL) SWIG_fail;
18011 temp2 = true;
18012 }
18013 {
18014 PyThreadState* __tstate = wxPyBeginAllowThreads();
18015 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
18016 wxPyEndAllowThreads(__tstate);
18017 if (PyErr_Occurred()) SWIG_fail;
18018 }
18019 {
18020 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18021 }
18022 {
18023 if (temp2)
18024 delete arg2;
18025 }
18026 return resultobj;
18027 fail:
18028 {
18029 if (temp2)
18030 delete arg2;
18031 }
18032 return NULL;
18033 }
18034
18035
18036 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18037 PyObject *resultobj = 0;
18038 wxDC *arg1 = (wxDC *) 0 ;
18039 void *argp1 = 0 ;
18040 int res1 = 0 ;
18041 PyObject *swig_obj[1] ;
18042
18043 if (!args) SWIG_fail;
18044 swig_obj[0] = args;
18045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18046 if (!SWIG_IsOK(res1)) {
18047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18048 }
18049 arg1 = reinterpret_cast< wxDC * >(argp1);
18050 {
18051 PyThreadState* __tstate = wxPyBeginAllowThreads();
18052 (arg1)->EndDoc();
18053 wxPyEndAllowThreads(__tstate);
18054 if (PyErr_Occurred()) SWIG_fail;
18055 }
18056 resultobj = SWIG_Py_Void();
18057 return resultobj;
18058 fail:
18059 return NULL;
18060 }
18061
18062
18063 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18064 PyObject *resultobj = 0;
18065 wxDC *arg1 = (wxDC *) 0 ;
18066 void *argp1 = 0 ;
18067 int res1 = 0 ;
18068 PyObject *swig_obj[1] ;
18069
18070 if (!args) SWIG_fail;
18071 swig_obj[0] = args;
18072 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18073 if (!SWIG_IsOK(res1)) {
18074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18075 }
18076 arg1 = reinterpret_cast< wxDC * >(argp1);
18077 {
18078 PyThreadState* __tstate = wxPyBeginAllowThreads();
18079 (arg1)->StartPage();
18080 wxPyEndAllowThreads(__tstate);
18081 if (PyErr_Occurred()) SWIG_fail;
18082 }
18083 resultobj = SWIG_Py_Void();
18084 return resultobj;
18085 fail:
18086 return NULL;
18087 }
18088
18089
18090 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18091 PyObject *resultobj = 0;
18092 wxDC *arg1 = (wxDC *) 0 ;
18093 void *argp1 = 0 ;
18094 int res1 = 0 ;
18095 PyObject *swig_obj[1] ;
18096
18097 if (!args) SWIG_fail;
18098 swig_obj[0] = args;
18099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18100 if (!SWIG_IsOK(res1)) {
18101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18102 }
18103 arg1 = reinterpret_cast< wxDC * >(argp1);
18104 {
18105 PyThreadState* __tstate = wxPyBeginAllowThreads();
18106 (arg1)->EndPage();
18107 wxPyEndAllowThreads(__tstate);
18108 if (PyErr_Occurred()) SWIG_fail;
18109 }
18110 resultobj = SWIG_Py_Void();
18111 return resultobj;
18112 fail:
18113 return NULL;
18114 }
18115
18116
18117 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18118 PyObject *resultobj = 0;
18119 wxDC *arg1 = (wxDC *) 0 ;
18120 wxFont *arg2 = 0 ;
18121 void *argp1 = 0 ;
18122 int res1 = 0 ;
18123 void *argp2 = 0 ;
18124 int res2 = 0 ;
18125 PyObject * obj0 = 0 ;
18126 PyObject * obj1 = 0 ;
18127 char * kwnames[] = {
18128 (char *) "self",(char *) "font", NULL
18129 };
18130
18131 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18132 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18133 if (!SWIG_IsOK(res1)) {
18134 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18135 }
18136 arg1 = reinterpret_cast< wxDC * >(argp1);
18137 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18138 if (!SWIG_IsOK(res2)) {
18139 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18140 }
18141 if (!argp2) {
18142 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18143 }
18144 arg2 = reinterpret_cast< wxFont * >(argp2);
18145 {
18146 PyThreadState* __tstate = wxPyBeginAllowThreads();
18147 (arg1)->SetFont((wxFont const &)*arg2);
18148 wxPyEndAllowThreads(__tstate);
18149 if (PyErr_Occurred()) SWIG_fail;
18150 }
18151 resultobj = SWIG_Py_Void();
18152 return resultobj;
18153 fail:
18154 return NULL;
18155 }
18156
18157
18158 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18159 PyObject *resultobj = 0;
18160 wxDC *arg1 = (wxDC *) 0 ;
18161 wxPen *arg2 = 0 ;
18162 void *argp1 = 0 ;
18163 int res1 = 0 ;
18164 void *argp2 = 0 ;
18165 int res2 = 0 ;
18166 PyObject * obj0 = 0 ;
18167 PyObject * obj1 = 0 ;
18168 char * kwnames[] = {
18169 (char *) "self",(char *) "pen", NULL
18170 };
18171
18172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18174 if (!SWIG_IsOK(res1)) {
18175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18176 }
18177 arg1 = reinterpret_cast< wxDC * >(argp1);
18178 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18179 if (!SWIG_IsOK(res2)) {
18180 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18181 }
18182 if (!argp2) {
18183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18184 }
18185 arg2 = reinterpret_cast< wxPen * >(argp2);
18186 {
18187 PyThreadState* __tstate = wxPyBeginAllowThreads();
18188 (arg1)->SetPen((wxPen const &)*arg2);
18189 wxPyEndAllowThreads(__tstate);
18190 if (PyErr_Occurred()) SWIG_fail;
18191 }
18192 resultobj = SWIG_Py_Void();
18193 return resultobj;
18194 fail:
18195 return NULL;
18196 }
18197
18198
18199 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18200 PyObject *resultobj = 0;
18201 wxDC *arg1 = (wxDC *) 0 ;
18202 wxBrush *arg2 = 0 ;
18203 void *argp1 = 0 ;
18204 int res1 = 0 ;
18205 void *argp2 = 0 ;
18206 int res2 = 0 ;
18207 PyObject * obj0 = 0 ;
18208 PyObject * obj1 = 0 ;
18209 char * kwnames[] = {
18210 (char *) "self",(char *) "brush", NULL
18211 };
18212
18213 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18214 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18215 if (!SWIG_IsOK(res1)) {
18216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18217 }
18218 arg1 = reinterpret_cast< wxDC * >(argp1);
18219 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18220 if (!SWIG_IsOK(res2)) {
18221 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18222 }
18223 if (!argp2) {
18224 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18225 }
18226 arg2 = reinterpret_cast< wxBrush * >(argp2);
18227 {
18228 PyThreadState* __tstate = wxPyBeginAllowThreads();
18229 (arg1)->SetBrush((wxBrush const &)*arg2);
18230 wxPyEndAllowThreads(__tstate);
18231 if (PyErr_Occurred()) SWIG_fail;
18232 }
18233 resultobj = SWIG_Py_Void();
18234 return resultobj;
18235 fail:
18236 return NULL;
18237 }
18238
18239
18240 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18241 PyObject *resultobj = 0;
18242 wxDC *arg1 = (wxDC *) 0 ;
18243 wxBrush *arg2 = 0 ;
18244 void *argp1 = 0 ;
18245 int res1 = 0 ;
18246 void *argp2 = 0 ;
18247 int res2 = 0 ;
18248 PyObject * obj0 = 0 ;
18249 PyObject * obj1 = 0 ;
18250 char * kwnames[] = {
18251 (char *) "self",(char *) "brush", NULL
18252 };
18253
18254 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18255 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18256 if (!SWIG_IsOK(res1)) {
18257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18258 }
18259 arg1 = reinterpret_cast< wxDC * >(argp1);
18260 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18261 if (!SWIG_IsOK(res2)) {
18262 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18263 }
18264 if (!argp2) {
18265 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18266 }
18267 arg2 = reinterpret_cast< wxBrush * >(argp2);
18268 {
18269 PyThreadState* __tstate = wxPyBeginAllowThreads();
18270 (arg1)->SetBackground((wxBrush const &)*arg2);
18271 wxPyEndAllowThreads(__tstate);
18272 if (PyErr_Occurred()) SWIG_fail;
18273 }
18274 resultobj = SWIG_Py_Void();
18275 return resultobj;
18276 fail:
18277 return NULL;
18278 }
18279
18280
18281 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18282 PyObject *resultobj = 0;
18283 wxDC *arg1 = (wxDC *) 0 ;
18284 int arg2 ;
18285 void *argp1 = 0 ;
18286 int res1 = 0 ;
18287 int val2 ;
18288 int ecode2 = 0 ;
18289 PyObject * obj0 = 0 ;
18290 PyObject * obj1 = 0 ;
18291 char * kwnames[] = {
18292 (char *) "self",(char *) "mode", NULL
18293 };
18294
18295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18297 if (!SWIG_IsOK(res1)) {
18298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18299 }
18300 arg1 = reinterpret_cast< wxDC * >(argp1);
18301 ecode2 = SWIG_AsVal_int(obj1, &val2);
18302 if (!SWIG_IsOK(ecode2)) {
18303 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18304 }
18305 arg2 = static_cast< int >(val2);
18306 {
18307 PyThreadState* __tstate = wxPyBeginAllowThreads();
18308 (arg1)->SetBackgroundMode(arg2);
18309 wxPyEndAllowThreads(__tstate);
18310 if (PyErr_Occurred()) SWIG_fail;
18311 }
18312 resultobj = SWIG_Py_Void();
18313 return resultobj;
18314 fail:
18315 return NULL;
18316 }
18317
18318
18319 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18320 PyObject *resultobj = 0;
18321 wxDC *arg1 = (wxDC *) 0 ;
18322 wxPalette *arg2 = 0 ;
18323 void *argp1 = 0 ;
18324 int res1 = 0 ;
18325 void *argp2 = 0 ;
18326 int res2 = 0 ;
18327 PyObject * obj0 = 0 ;
18328 PyObject * obj1 = 0 ;
18329 char * kwnames[] = {
18330 (char *) "self",(char *) "palette", NULL
18331 };
18332
18333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18335 if (!SWIG_IsOK(res1)) {
18336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18337 }
18338 arg1 = reinterpret_cast< wxDC * >(argp1);
18339 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18340 if (!SWIG_IsOK(res2)) {
18341 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18342 }
18343 if (!argp2) {
18344 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18345 }
18346 arg2 = reinterpret_cast< wxPalette * >(argp2);
18347 {
18348 PyThreadState* __tstate = wxPyBeginAllowThreads();
18349 (arg1)->SetPalette((wxPalette const &)*arg2);
18350 wxPyEndAllowThreads(__tstate);
18351 if (PyErr_Occurred()) SWIG_fail;
18352 }
18353 resultobj = SWIG_Py_Void();
18354 return resultobj;
18355 fail:
18356 return NULL;
18357 }
18358
18359
18360 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18361 PyObject *resultobj = 0;
18362 wxDC *arg1 = (wxDC *) 0 ;
18363 void *argp1 = 0 ;
18364 int res1 = 0 ;
18365 PyObject *swig_obj[1] ;
18366
18367 if (!args) SWIG_fail;
18368 swig_obj[0] = args;
18369 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18370 if (!SWIG_IsOK(res1)) {
18371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18372 }
18373 arg1 = reinterpret_cast< wxDC * >(argp1);
18374 {
18375 PyThreadState* __tstate = wxPyBeginAllowThreads();
18376 (arg1)->DestroyClippingRegion();
18377 wxPyEndAllowThreads(__tstate);
18378 if (PyErr_Occurred()) SWIG_fail;
18379 }
18380 resultobj = SWIG_Py_Void();
18381 return resultobj;
18382 fail:
18383 return NULL;
18384 }
18385
18386
18387 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18388 PyObject *resultobj = 0;
18389 wxDC *arg1 = (wxDC *) 0 ;
18390 int *arg2 = (int *) 0 ;
18391 int *arg3 = (int *) 0 ;
18392 int *arg4 = (int *) 0 ;
18393 int *arg5 = (int *) 0 ;
18394 void *argp1 = 0 ;
18395 int res1 = 0 ;
18396 int temp2 ;
18397 int res2 = SWIG_TMPOBJ ;
18398 int temp3 ;
18399 int res3 = SWIG_TMPOBJ ;
18400 int temp4 ;
18401 int res4 = SWIG_TMPOBJ ;
18402 int temp5 ;
18403 int res5 = SWIG_TMPOBJ ;
18404 PyObject *swig_obj[1] ;
18405
18406 arg2 = &temp2;
18407 arg3 = &temp3;
18408 arg4 = &temp4;
18409 arg5 = &temp5;
18410 if (!args) SWIG_fail;
18411 swig_obj[0] = args;
18412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18413 if (!SWIG_IsOK(res1)) {
18414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18415 }
18416 arg1 = reinterpret_cast< wxDC * >(argp1);
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_Py_Void();
18424 if (SWIG_IsTmpObj(res2)) {
18425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18426 } else {
18427 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18429 }
18430 if (SWIG_IsTmpObj(res3)) {
18431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18432 } else {
18433 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18435 }
18436 if (SWIG_IsTmpObj(res4)) {
18437 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18438 } else {
18439 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18440 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18441 }
18442 if (SWIG_IsTmpObj(res5)) {
18443 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18444 } else {
18445 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18446 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18447 }
18448 return resultobj;
18449 fail:
18450 return NULL;
18451 }
18452
18453
18454 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18455 PyObject *resultobj = 0;
18456 wxDC *arg1 = (wxDC *) 0 ;
18457 wxRect result;
18458 void *argp1 = 0 ;
18459 int res1 = 0 ;
18460 PyObject *swig_obj[1] ;
18461
18462 if (!args) SWIG_fail;
18463 swig_obj[0] = args;
18464 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18465 if (!SWIG_IsOK(res1)) {
18466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18467 }
18468 arg1 = reinterpret_cast< wxDC * >(argp1);
18469 {
18470 PyThreadState* __tstate = wxPyBeginAllowThreads();
18471 result = wxDC_GetClippingRect(arg1);
18472 wxPyEndAllowThreads(__tstate);
18473 if (PyErr_Occurred()) SWIG_fail;
18474 }
18475 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18476 return resultobj;
18477 fail:
18478 return NULL;
18479 }
18480
18481
18482 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18483 PyObject *resultobj = 0;
18484 wxDC *arg1 = (wxDC *) 0 ;
18485 int result;
18486 void *argp1 = 0 ;
18487 int res1 = 0 ;
18488 PyObject *swig_obj[1] ;
18489
18490 if (!args) SWIG_fail;
18491 swig_obj[0] = args;
18492 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18493 if (!SWIG_IsOK(res1)) {
18494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18495 }
18496 arg1 = reinterpret_cast< wxDC * >(argp1);
18497 {
18498 PyThreadState* __tstate = wxPyBeginAllowThreads();
18499 result = (int)((wxDC const *)arg1)->GetCharHeight();
18500 wxPyEndAllowThreads(__tstate);
18501 if (PyErr_Occurred()) SWIG_fail;
18502 }
18503 resultobj = SWIG_From_int(static_cast< int >(result));
18504 return resultobj;
18505 fail:
18506 return NULL;
18507 }
18508
18509
18510 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18511 PyObject *resultobj = 0;
18512 wxDC *arg1 = (wxDC *) 0 ;
18513 int result;
18514 void *argp1 = 0 ;
18515 int res1 = 0 ;
18516 PyObject *swig_obj[1] ;
18517
18518 if (!args) SWIG_fail;
18519 swig_obj[0] = args;
18520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18521 if (!SWIG_IsOK(res1)) {
18522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18523 }
18524 arg1 = reinterpret_cast< wxDC * >(argp1);
18525 {
18526 PyThreadState* __tstate = wxPyBeginAllowThreads();
18527 result = (int)((wxDC const *)arg1)->GetCharWidth();
18528 wxPyEndAllowThreads(__tstate);
18529 if (PyErr_Occurred()) SWIG_fail;
18530 }
18531 resultobj = SWIG_From_int(static_cast< int >(result));
18532 return resultobj;
18533 fail:
18534 return NULL;
18535 }
18536
18537
18538 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18539 PyObject *resultobj = 0;
18540 wxDC *arg1 = (wxDC *) 0 ;
18541 wxString *arg2 = 0 ;
18542 int *arg3 = (int *) 0 ;
18543 int *arg4 = (int *) 0 ;
18544 void *argp1 = 0 ;
18545 int res1 = 0 ;
18546 bool temp2 = false ;
18547 int temp3 ;
18548 int res3 = SWIG_TMPOBJ ;
18549 int temp4 ;
18550 int res4 = SWIG_TMPOBJ ;
18551 PyObject * obj0 = 0 ;
18552 PyObject * obj1 = 0 ;
18553 char * kwnames[] = {
18554 (char *) "self",(char *) "string", NULL
18555 };
18556
18557 arg3 = &temp3;
18558 arg4 = &temp4;
18559 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18560 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18561 if (!SWIG_IsOK(res1)) {
18562 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18563 }
18564 arg1 = reinterpret_cast< wxDC * >(argp1);
18565 {
18566 arg2 = wxString_in_helper(obj1);
18567 if (arg2 == NULL) SWIG_fail;
18568 temp2 = true;
18569 }
18570 {
18571 PyThreadState* __tstate = wxPyBeginAllowThreads();
18572 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18573 wxPyEndAllowThreads(__tstate);
18574 if (PyErr_Occurred()) SWIG_fail;
18575 }
18576 resultobj = SWIG_Py_Void();
18577 if (SWIG_IsTmpObj(res3)) {
18578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18579 } else {
18580 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18581 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18582 }
18583 if (SWIG_IsTmpObj(res4)) {
18584 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18585 } else {
18586 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18587 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18588 }
18589 {
18590 if (temp2)
18591 delete arg2;
18592 }
18593 return resultobj;
18594 fail:
18595 {
18596 if (temp2)
18597 delete arg2;
18598 }
18599 return NULL;
18600 }
18601
18602
18603 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18604 PyObject *resultobj = 0;
18605 wxDC *arg1 = (wxDC *) 0 ;
18606 wxString *arg2 = 0 ;
18607 int *arg3 = (int *) 0 ;
18608 int *arg4 = (int *) 0 ;
18609 int *arg5 = (int *) 0 ;
18610 int *arg6 = (int *) 0 ;
18611 wxFont *arg7 = (wxFont *) NULL ;
18612 void *argp1 = 0 ;
18613 int res1 = 0 ;
18614 bool temp2 = false ;
18615 int temp3 ;
18616 int res3 = SWIG_TMPOBJ ;
18617 int temp4 ;
18618 int res4 = SWIG_TMPOBJ ;
18619 int temp5 ;
18620 int res5 = SWIG_TMPOBJ ;
18621 int temp6 ;
18622 int res6 = SWIG_TMPOBJ ;
18623 void *argp7 = 0 ;
18624 int res7 = 0 ;
18625 PyObject * obj0 = 0 ;
18626 PyObject * obj1 = 0 ;
18627 PyObject * obj2 = 0 ;
18628 char * kwnames[] = {
18629 (char *) "self",(char *) "string",(char *) "font", NULL
18630 };
18631
18632 arg3 = &temp3;
18633 arg4 = &temp4;
18634 arg5 = &temp5;
18635 arg6 = &temp6;
18636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18638 if (!SWIG_IsOK(res1)) {
18639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18640 }
18641 arg1 = reinterpret_cast< wxDC * >(argp1);
18642 {
18643 arg2 = wxString_in_helper(obj1);
18644 if (arg2 == NULL) SWIG_fail;
18645 temp2 = true;
18646 }
18647 if (obj2) {
18648 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18649 if (!SWIG_IsOK(res7)) {
18650 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18651 }
18652 arg7 = reinterpret_cast< wxFont * >(argp7);
18653 }
18654 {
18655 PyThreadState* __tstate = wxPyBeginAllowThreads();
18656 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18657 wxPyEndAllowThreads(__tstate);
18658 if (PyErr_Occurred()) SWIG_fail;
18659 }
18660 resultobj = SWIG_Py_Void();
18661 if (SWIG_IsTmpObj(res3)) {
18662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18663 } else {
18664 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18666 }
18667 if (SWIG_IsTmpObj(res4)) {
18668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18669 } else {
18670 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18672 }
18673 if (SWIG_IsTmpObj(res5)) {
18674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18675 } else {
18676 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18678 }
18679 if (SWIG_IsTmpObj(res6)) {
18680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18681 } else {
18682 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18684 }
18685 {
18686 if (temp2)
18687 delete arg2;
18688 }
18689 return resultobj;
18690 fail:
18691 {
18692 if (temp2)
18693 delete arg2;
18694 }
18695 return NULL;
18696 }
18697
18698
18699 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18700 PyObject *resultobj = 0;
18701 wxDC *arg1 = (wxDC *) 0 ;
18702 wxString *arg2 = 0 ;
18703 int *arg3 = (int *) 0 ;
18704 int *arg4 = (int *) 0 ;
18705 int *arg5 = (int *) 0 ;
18706 wxFont *arg6 = (wxFont *) NULL ;
18707 void *argp1 = 0 ;
18708 int res1 = 0 ;
18709 bool temp2 = false ;
18710 int temp3 ;
18711 int res3 = SWIG_TMPOBJ ;
18712 int temp4 ;
18713 int res4 = SWIG_TMPOBJ ;
18714 int temp5 ;
18715 int res5 = SWIG_TMPOBJ ;
18716 void *argp6 = 0 ;
18717 int res6 = 0 ;
18718 PyObject * obj0 = 0 ;
18719 PyObject * obj1 = 0 ;
18720 PyObject * obj2 = 0 ;
18721 char * kwnames[] = {
18722 (char *) "self",(char *) "text",(char *) "font", NULL
18723 };
18724
18725 arg3 = &temp3;
18726 arg4 = &temp4;
18727 arg5 = &temp5;
18728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18730 if (!SWIG_IsOK(res1)) {
18731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18732 }
18733 arg1 = reinterpret_cast< wxDC * >(argp1);
18734 {
18735 arg2 = wxString_in_helper(obj1);
18736 if (arg2 == NULL) SWIG_fail;
18737 temp2 = true;
18738 }
18739 if (obj2) {
18740 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18741 if (!SWIG_IsOK(res6)) {
18742 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18743 }
18744 arg6 = reinterpret_cast< wxFont * >(argp6);
18745 }
18746 {
18747 PyThreadState* __tstate = wxPyBeginAllowThreads();
18748 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18749 wxPyEndAllowThreads(__tstate);
18750 if (PyErr_Occurred()) SWIG_fail;
18751 }
18752 resultobj = SWIG_Py_Void();
18753 if (SWIG_IsTmpObj(res3)) {
18754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18755 } else {
18756 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18758 }
18759 if (SWIG_IsTmpObj(res4)) {
18760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18761 } else {
18762 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18763 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18764 }
18765 if (SWIG_IsTmpObj(res5)) {
18766 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18767 } else {
18768 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18769 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18770 }
18771 {
18772 if (temp2)
18773 delete arg2;
18774 }
18775 return resultobj;
18776 fail:
18777 {
18778 if (temp2)
18779 delete arg2;
18780 }
18781 return NULL;
18782 }
18783
18784
18785 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18786 PyObject *resultobj = 0;
18787 wxDC *arg1 = (wxDC *) 0 ;
18788 wxString *arg2 = 0 ;
18789 wxArrayInt result;
18790 void *argp1 = 0 ;
18791 int res1 = 0 ;
18792 bool temp2 = false ;
18793 PyObject * obj0 = 0 ;
18794 PyObject * obj1 = 0 ;
18795 char * kwnames[] = {
18796 (char *) "self",(char *) "text", NULL
18797 };
18798
18799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18801 if (!SWIG_IsOK(res1)) {
18802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18803 }
18804 arg1 = reinterpret_cast< wxDC * >(argp1);
18805 {
18806 arg2 = wxString_in_helper(obj1);
18807 if (arg2 == NULL) SWIG_fail;
18808 temp2 = true;
18809 }
18810 {
18811 PyThreadState* __tstate = wxPyBeginAllowThreads();
18812 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18813 wxPyEndAllowThreads(__tstate);
18814 if (PyErr_Occurred()) SWIG_fail;
18815 }
18816 {
18817 resultobj = PyList_New(0);
18818 size_t idx;
18819 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18820 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18821 PyList_Append(resultobj, val);
18822 Py_DECREF(val);
18823 }
18824 }
18825 {
18826 if (temp2)
18827 delete arg2;
18828 }
18829 return resultobj;
18830 fail:
18831 {
18832 if (temp2)
18833 delete arg2;
18834 }
18835 return NULL;
18836 }
18837
18838
18839 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18840 PyObject *resultobj = 0;
18841 wxDC *arg1 = (wxDC *) 0 ;
18842 wxSize result;
18843 void *argp1 = 0 ;
18844 int res1 = 0 ;
18845 PyObject *swig_obj[1] ;
18846
18847 if (!args) SWIG_fail;
18848 swig_obj[0] = args;
18849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18850 if (!SWIG_IsOK(res1)) {
18851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18852 }
18853 arg1 = reinterpret_cast< wxDC * >(argp1);
18854 {
18855 PyThreadState* __tstate = wxPyBeginAllowThreads();
18856 result = (arg1)->GetSize();
18857 wxPyEndAllowThreads(__tstate);
18858 if (PyErr_Occurred()) SWIG_fail;
18859 }
18860 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18861 return resultobj;
18862 fail:
18863 return NULL;
18864 }
18865
18866
18867 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18868 PyObject *resultobj = 0;
18869 wxDC *arg1 = (wxDC *) 0 ;
18870 int *arg2 = (int *) 0 ;
18871 int *arg3 = (int *) 0 ;
18872 void *argp1 = 0 ;
18873 int res1 = 0 ;
18874 int temp2 ;
18875 int res2 = SWIG_TMPOBJ ;
18876 int temp3 ;
18877 int res3 = SWIG_TMPOBJ ;
18878 PyObject *swig_obj[1] ;
18879
18880 arg2 = &temp2;
18881 arg3 = &temp3;
18882 if (!args) SWIG_fail;
18883 swig_obj[0] = args;
18884 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18885 if (!SWIG_IsOK(res1)) {
18886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18887 }
18888 arg1 = reinterpret_cast< wxDC * >(argp1);
18889 {
18890 PyThreadState* __tstate = wxPyBeginAllowThreads();
18891 (arg1)->GetSize(arg2,arg3);
18892 wxPyEndAllowThreads(__tstate);
18893 if (PyErr_Occurred()) SWIG_fail;
18894 }
18895 resultobj = SWIG_Py_Void();
18896 if (SWIG_IsTmpObj(res2)) {
18897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18898 } else {
18899 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18901 }
18902 if (SWIG_IsTmpObj(res3)) {
18903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18904 } else {
18905 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18906 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18907 }
18908 return resultobj;
18909 fail:
18910 return NULL;
18911 }
18912
18913
18914 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18915 PyObject *resultobj = 0;
18916 wxDC *arg1 = (wxDC *) 0 ;
18917 wxSize result;
18918 void *argp1 = 0 ;
18919 int res1 = 0 ;
18920 PyObject *swig_obj[1] ;
18921
18922 if (!args) SWIG_fail;
18923 swig_obj[0] = args;
18924 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18925 if (!SWIG_IsOK(res1)) {
18926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18927 }
18928 arg1 = reinterpret_cast< wxDC * >(argp1);
18929 {
18930 PyThreadState* __tstate = wxPyBeginAllowThreads();
18931 result = ((wxDC const *)arg1)->GetSizeMM();
18932 wxPyEndAllowThreads(__tstate);
18933 if (PyErr_Occurred()) SWIG_fail;
18934 }
18935 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18936 return resultobj;
18937 fail:
18938 return NULL;
18939 }
18940
18941
18942 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18943 PyObject *resultobj = 0;
18944 wxDC *arg1 = (wxDC *) 0 ;
18945 int *arg2 = (int *) 0 ;
18946 int *arg3 = (int *) 0 ;
18947 void *argp1 = 0 ;
18948 int res1 = 0 ;
18949 int temp2 ;
18950 int res2 = SWIG_TMPOBJ ;
18951 int temp3 ;
18952 int res3 = SWIG_TMPOBJ ;
18953 PyObject *swig_obj[1] ;
18954
18955 arg2 = &temp2;
18956 arg3 = &temp3;
18957 if (!args) SWIG_fail;
18958 swig_obj[0] = args;
18959 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18960 if (!SWIG_IsOK(res1)) {
18961 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18962 }
18963 arg1 = reinterpret_cast< wxDC * >(argp1);
18964 {
18965 PyThreadState* __tstate = wxPyBeginAllowThreads();
18966 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18967 wxPyEndAllowThreads(__tstate);
18968 if (PyErr_Occurred()) SWIG_fail;
18969 }
18970 resultobj = SWIG_Py_Void();
18971 if (SWIG_IsTmpObj(res2)) {
18972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18973 } else {
18974 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18975 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18976 }
18977 if (SWIG_IsTmpObj(res3)) {
18978 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18979 } else {
18980 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18981 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18982 }
18983 return resultobj;
18984 fail:
18985 return NULL;
18986 }
18987
18988
18989 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18990 PyObject *resultobj = 0;
18991 wxDC *arg1 = (wxDC *) 0 ;
18992 int arg2 ;
18993 int result;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 int val2 ;
18997 int ecode2 = 0 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "x", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
19008 }
19009 arg1 = reinterpret_cast< wxDC * >(argp1);
19010 ecode2 = SWIG_AsVal_int(obj1, &val2);
19011 if (!SWIG_IsOK(ecode2)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
19013 }
19014 arg2 = static_cast< int >(val2);
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_From_int(static_cast< int >(result));
19022 return resultobj;
19023 fail:
19024 return NULL;
19025 }
19026
19027
19028 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19029 PyObject *resultobj = 0;
19030 wxDC *arg1 = (wxDC *) 0 ;
19031 int arg2 ;
19032 int result;
19033 void *argp1 = 0 ;
19034 int res1 = 0 ;
19035 int val2 ;
19036 int ecode2 = 0 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "y", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19047 }
19048 arg1 = reinterpret_cast< wxDC * >(argp1);
19049 ecode2 = SWIG_AsVal_int(obj1, &val2);
19050 if (!SWIG_IsOK(ecode2)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19052 }
19053 arg2 = static_cast< int >(val2);
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 resultobj = SWIG_From_int(static_cast< int >(result));
19061 return resultobj;
19062 fail:
19063 return NULL;
19064 }
19065
19066
19067 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19068 PyObject *resultobj = 0;
19069 wxDC *arg1 = (wxDC *) 0 ;
19070 int arg2 ;
19071 int result;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 int val2 ;
19075 int ecode2 = 0 ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char * kwnames[] = {
19079 (char *) "self",(char *) "x", NULL
19080 };
19081
19082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19084 if (!SWIG_IsOK(res1)) {
19085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19086 }
19087 arg1 = reinterpret_cast< wxDC * >(argp1);
19088 ecode2 = SWIG_AsVal_int(obj1, &val2);
19089 if (!SWIG_IsOK(ecode2)) {
19090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19091 }
19092 arg2 = static_cast< int >(val2);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = SWIG_From_int(static_cast< int >(result));
19100 return resultobj;
19101 fail:
19102 return NULL;
19103 }
19104
19105
19106 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxDC *arg1 = (wxDC *) 0 ;
19109 int arg2 ;
19110 int result;
19111 void *argp1 = 0 ;
19112 int res1 = 0 ;
19113 int val2 ;
19114 int ecode2 = 0 ;
19115 PyObject * obj0 = 0 ;
19116 PyObject * obj1 = 0 ;
19117 char * kwnames[] = {
19118 (char *) "self",(char *) "y", NULL
19119 };
19120
19121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19123 if (!SWIG_IsOK(res1)) {
19124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19125 }
19126 arg1 = reinterpret_cast< wxDC * >(argp1);
19127 ecode2 = SWIG_AsVal_int(obj1, &val2);
19128 if (!SWIG_IsOK(ecode2)) {
19129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19130 }
19131 arg2 = static_cast< int >(val2);
19132 {
19133 PyThreadState* __tstate = wxPyBeginAllowThreads();
19134 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19135 wxPyEndAllowThreads(__tstate);
19136 if (PyErr_Occurred()) SWIG_fail;
19137 }
19138 resultobj = SWIG_From_int(static_cast< int >(result));
19139 return resultobj;
19140 fail:
19141 return NULL;
19142 }
19143
19144
19145 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19146 PyObject *resultobj = 0;
19147 wxDC *arg1 = (wxDC *) 0 ;
19148 int arg2 ;
19149 int result;
19150 void *argp1 = 0 ;
19151 int res1 = 0 ;
19152 int val2 ;
19153 int ecode2 = 0 ;
19154 PyObject * obj0 = 0 ;
19155 PyObject * obj1 = 0 ;
19156 char * kwnames[] = {
19157 (char *) "self",(char *) "x", NULL
19158 };
19159
19160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19162 if (!SWIG_IsOK(res1)) {
19163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19164 }
19165 arg1 = reinterpret_cast< wxDC * >(argp1);
19166 ecode2 = SWIG_AsVal_int(obj1, &val2);
19167 if (!SWIG_IsOK(ecode2)) {
19168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19169 }
19170 arg2 = static_cast< int >(val2);
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_From_int(static_cast< int >(result));
19178 return resultobj;
19179 fail:
19180 return NULL;
19181 }
19182
19183
19184 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 int arg2 ;
19188 int result;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 int val2 ;
19192 int ecode2 = 0 ;
19193 PyObject * obj0 = 0 ;
19194 PyObject * obj1 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "y", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19203 }
19204 arg1 = reinterpret_cast< wxDC * >(argp1);
19205 ecode2 = SWIG_AsVal_int(obj1, &val2);
19206 if (!SWIG_IsOK(ecode2)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19208 }
19209 arg2 = static_cast< int >(val2);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_From_int(static_cast< int >(result));
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxDC *arg1 = (wxDC *) 0 ;
19226 int arg2 ;
19227 int result;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 int val2 ;
19231 int ecode2 = 0 ;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char * kwnames[] = {
19235 (char *) "self",(char *) "x", NULL
19236 };
19237
19238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19242 }
19243 arg1 = reinterpret_cast< wxDC * >(argp1);
19244 ecode2 = SWIG_AsVal_int(obj1, &val2);
19245 if (!SWIG_IsOK(ecode2)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19247 }
19248 arg2 = static_cast< int >(val2);
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 resultobj = SWIG_From_int(static_cast< int >(result));
19256 return resultobj;
19257 fail:
19258 return NULL;
19259 }
19260
19261
19262 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19263 PyObject *resultobj = 0;
19264 wxDC *arg1 = (wxDC *) 0 ;
19265 int arg2 ;
19266 int result;
19267 void *argp1 = 0 ;
19268 int res1 = 0 ;
19269 int val2 ;
19270 int ecode2 = 0 ;
19271 PyObject * obj0 = 0 ;
19272 PyObject * obj1 = 0 ;
19273 char * kwnames[] = {
19274 (char *) "self",(char *) "y", NULL
19275 };
19276
19277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19279 if (!SWIG_IsOK(res1)) {
19280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19281 }
19282 arg1 = reinterpret_cast< wxDC * >(argp1);
19283 ecode2 = SWIG_AsVal_int(obj1, &val2);
19284 if (!SWIG_IsOK(ecode2)) {
19285 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19286 }
19287 arg2 = static_cast< int >(val2);
19288 {
19289 PyThreadState* __tstate = wxPyBeginAllowThreads();
19290 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19291 wxPyEndAllowThreads(__tstate);
19292 if (PyErr_Occurred()) SWIG_fail;
19293 }
19294 resultobj = SWIG_From_int(static_cast< int >(result));
19295 return resultobj;
19296 fail:
19297 return NULL;
19298 }
19299
19300
19301 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19302 PyObject *resultobj = 0;
19303 wxDC *arg1 = (wxDC *) 0 ;
19304 bool result;
19305 void *argp1 = 0 ;
19306 int res1 = 0 ;
19307 PyObject *swig_obj[1] ;
19308
19309 if (!args) SWIG_fail;
19310 swig_obj[0] = args;
19311 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19312 if (!SWIG_IsOK(res1)) {
19313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19314 }
19315 arg1 = reinterpret_cast< wxDC * >(argp1);
19316 {
19317 PyThreadState* __tstate = wxPyBeginAllowThreads();
19318 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19319 wxPyEndAllowThreads(__tstate);
19320 if (PyErr_Occurred()) SWIG_fail;
19321 }
19322 {
19323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19324 }
19325 return resultobj;
19326 fail:
19327 return NULL;
19328 }
19329
19330
19331 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19332 PyObject *resultobj = 0;
19333 wxDC *arg1 = (wxDC *) 0 ;
19334 bool result;
19335 void *argp1 = 0 ;
19336 int res1 = 0 ;
19337 PyObject *swig_obj[1] ;
19338
19339 if (!args) SWIG_fail;
19340 swig_obj[0] = args;
19341 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19342 if (!SWIG_IsOK(res1)) {
19343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19344 }
19345 arg1 = reinterpret_cast< wxDC * >(argp1);
19346 {
19347 PyThreadState* __tstate = wxPyBeginAllowThreads();
19348 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19349 wxPyEndAllowThreads(__tstate);
19350 if (PyErr_Occurred()) SWIG_fail;
19351 }
19352 {
19353 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19354 }
19355 return resultobj;
19356 fail:
19357 return NULL;
19358 }
19359
19360
19361 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19362 PyObject *resultobj = 0;
19363 wxDC *arg1 = (wxDC *) 0 ;
19364 int result;
19365 void *argp1 = 0 ;
19366 int res1 = 0 ;
19367 PyObject *swig_obj[1] ;
19368
19369 if (!args) SWIG_fail;
19370 swig_obj[0] = args;
19371 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19372 if (!SWIG_IsOK(res1)) {
19373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19374 }
19375 arg1 = reinterpret_cast< wxDC * >(argp1);
19376 {
19377 PyThreadState* __tstate = wxPyBeginAllowThreads();
19378 result = (int)((wxDC const *)arg1)->GetDepth();
19379 wxPyEndAllowThreads(__tstate);
19380 if (PyErr_Occurred()) SWIG_fail;
19381 }
19382 resultobj = SWIG_From_int(static_cast< int >(result));
19383 return resultobj;
19384 fail:
19385 return NULL;
19386 }
19387
19388
19389 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19390 PyObject *resultobj = 0;
19391 wxDC *arg1 = (wxDC *) 0 ;
19392 wxSize result;
19393 void *argp1 = 0 ;
19394 int res1 = 0 ;
19395 PyObject *swig_obj[1] ;
19396
19397 if (!args) SWIG_fail;
19398 swig_obj[0] = args;
19399 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19400 if (!SWIG_IsOK(res1)) {
19401 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19402 }
19403 arg1 = reinterpret_cast< wxDC * >(argp1);
19404 {
19405 PyThreadState* __tstate = wxPyBeginAllowThreads();
19406 result = ((wxDC const *)arg1)->GetPPI();
19407 wxPyEndAllowThreads(__tstate);
19408 if (PyErr_Occurred()) SWIG_fail;
19409 }
19410 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19411 return resultobj;
19412 fail:
19413 return NULL;
19414 }
19415
19416
19417 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19418 PyObject *resultobj = 0;
19419 wxDC *arg1 = (wxDC *) 0 ;
19420 bool result;
19421 void *argp1 = 0 ;
19422 int res1 = 0 ;
19423 PyObject *swig_obj[1] ;
19424
19425 if (!args) SWIG_fail;
19426 swig_obj[0] = args;
19427 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19428 if (!SWIG_IsOK(res1)) {
19429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19430 }
19431 arg1 = reinterpret_cast< wxDC * >(argp1);
19432 {
19433 PyThreadState* __tstate = wxPyBeginAllowThreads();
19434 result = (bool)((wxDC const *)arg1)->Ok();
19435 wxPyEndAllowThreads(__tstate);
19436 if (PyErr_Occurred()) SWIG_fail;
19437 }
19438 {
19439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19440 }
19441 return resultobj;
19442 fail:
19443 return NULL;
19444 }
19445
19446
19447 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19448 PyObject *resultobj = 0;
19449 wxDC *arg1 = (wxDC *) 0 ;
19450 int result;
19451 void *argp1 = 0 ;
19452 int res1 = 0 ;
19453 PyObject *swig_obj[1] ;
19454
19455 if (!args) SWIG_fail;
19456 swig_obj[0] = args;
19457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19458 if (!SWIG_IsOK(res1)) {
19459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19460 }
19461 arg1 = reinterpret_cast< wxDC * >(argp1);
19462 {
19463 PyThreadState* __tstate = wxPyBeginAllowThreads();
19464 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19465 wxPyEndAllowThreads(__tstate);
19466 if (PyErr_Occurred()) SWIG_fail;
19467 }
19468 resultobj = SWIG_From_int(static_cast< int >(result));
19469 return resultobj;
19470 fail:
19471 return NULL;
19472 }
19473
19474
19475 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19476 PyObject *resultobj = 0;
19477 wxDC *arg1 = (wxDC *) 0 ;
19478 wxBrush *result = 0 ;
19479 void *argp1 = 0 ;
19480 int res1 = 0 ;
19481 PyObject *swig_obj[1] ;
19482
19483 if (!args) SWIG_fail;
19484 swig_obj[0] = args;
19485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19486 if (!SWIG_IsOK(res1)) {
19487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19488 }
19489 arg1 = reinterpret_cast< wxDC * >(argp1);
19490 {
19491 PyThreadState* __tstate = wxPyBeginAllowThreads();
19492 {
19493 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19494 result = (wxBrush *) &_result_ref;
19495 }
19496 wxPyEndAllowThreads(__tstate);
19497 if (PyErr_Occurred()) SWIG_fail;
19498 }
19499 {
19500 wxBrush* resultptr = new wxBrush(*result);
19501 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19502 }
19503 return resultobj;
19504 fail:
19505 return NULL;
19506 }
19507
19508
19509 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19510 PyObject *resultobj = 0;
19511 wxDC *arg1 = (wxDC *) 0 ;
19512 wxBrush *result = 0 ;
19513 void *argp1 = 0 ;
19514 int res1 = 0 ;
19515 PyObject *swig_obj[1] ;
19516
19517 if (!args) SWIG_fail;
19518 swig_obj[0] = args;
19519 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19520 if (!SWIG_IsOK(res1)) {
19521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19522 }
19523 arg1 = reinterpret_cast< wxDC * >(argp1);
19524 {
19525 PyThreadState* __tstate = wxPyBeginAllowThreads();
19526 {
19527 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19528 result = (wxBrush *) &_result_ref;
19529 }
19530 wxPyEndAllowThreads(__tstate);
19531 if (PyErr_Occurred()) SWIG_fail;
19532 }
19533 {
19534 wxBrush* resultptr = new wxBrush(*result);
19535 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19536 }
19537 return resultobj;
19538 fail:
19539 return NULL;
19540 }
19541
19542
19543 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19544 PyObject *resultobj = 0;
19545 wxDC *arg1 = (wxDC *) 0 ;
19546 wxFont *result = 0 ;
19547 void *argp1 = 0 ;
19548 int res1 = 0 ;
19549 PyObject *swig_obj[1] ;
19550
19551 if (!args) SWIG_fail;
19552 swig_obj[0] = args;
19553 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19554 if (!SWIG_IsOK(res1)) {
19555 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19556 }
19557 arg1 = reinterpret_cast< wxDC * >(argp1);
19558 {
19559 PyThreadState* __tstate = wxPyBeginAllowThreads();
19560 {
19561 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19562 result = (wxFont *) &_result_ref;
19563 }
19564 wxPyEndAllowThreads(__tstate);
19565 if (PyErr_Occurred()) SWIG_fail;
19566 }
19567 {
19568 wxFont* resultptr = new wxFont(*result);
19569 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19570 }
19571 return resultobj;
19572 fail:
19573 return NULL;
19574 }
19575
19576
19577 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19578 PyObject *resultobj = 0;
19579 wxDC *arg1 = (wxDC *) 0 ;
19580 wxPen *result = 0 ;
19581 void *argp1 = 0 ;
19582 int res1 = 0 ;
19583 PyObject *swig_obj[1] ;
19584
19585 if (!args) SWIG_fail;
19586 swig_obj[0] = args;
19587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19588 if (!SWIG_IsOK(res1)) {
19589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19590 }
19591 arg1 = reinterpret_cast< wxDC * >(argp1);
19592 {
19593 PyThreadState* __tstate = wxPyBeginAllowThreads();
19594 {
19595 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19596 result = (wxPen *) &_result_ref;
19597 }
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 {
19602 wxPen* resultptr = new wxPen(*result);
19603 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19604 }
19605 return resultobj;
19606 fail:
19607 return NULL;
19608 }
19609
19610
19611 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19612 PyObject *resultobj = 0;
19613 wxDC *arg1 = (wxDC *) 0 ;
19614 wxColour *result = 0 ;
19615 void *argp1 = 0 ;
19616 int res1 = 0 ;
19617 PyObject *swig_obj[1] ;
19618
19619 if (!args) SWIG_fail;
19620 swig_obj[0] = args;
19621 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19622 if (!SWIG_IsOK(res1)) {
19623 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19624 }
19625 arg1 = reinterpret_cast< wxDC * >(argp1);
19626 {
19627 PyThreadState* __tstate = wxPyBeginAllowThreads();
19628 {
19629 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19630 result = (wxColour *) &_result_ref;
19631 }
19632 wxPyEndAllowThreads(__tstate);
19633 if (PyErr_Occurred()) SWIG_fail;
19634 }
19635 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19636 return resultobj;
19637 fail:
19638 return NULL;
19639 }
19640
19641
19642 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19643 PyObject *resultobj = 0;
19644 wxDC *arg1 = (wxDC *) 0 ;
19645 wxColour *result = 0 ;
19646 void *argp1 = 0 ;
19647 int res1 = 0 ;
19648 PyObject *swig_obj[1] ;
19649
19650 if (!args) SWIG_fail;
19651 swig_obj[0] = args;
19652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19653 if (!SWIG_IsOK(res1)) {
19654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19655 }
19656 arg1 = reinterpret_cast< wxDC * >(argp1);
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 {
19660 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19661 result = (wxColour *) &_result_ref;
19662 }
19663 wxPyEndAllowThreads(__tstate);
19664 if (PyErr_Occurred()) SWIG_fail;
19665 }
19666 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19667 return resultobj;
19668 fail:
19669 return NULL;
19670 }
19671
19672
19673 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19674 PyObject *resultobj = 0;
19675 wxDC *arg1 = (wxDC *) 0 ;
19676 wxColour *arg2 = 0 ;
19677 void *argp1 = 0 ;
19678 int res1 = 0 ;
19679 wxColour temp2 ;
19680 PyObject * obj0 = 0 ;
19681 PyObject * obj1 = 0 ;
19682 char * kwnames[] = {
19683 (char *) "self",(char *) "colour", NULL
19684 };
19685
19686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19688 if (!SWIG_IsOK(res1)) {
19689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19690 }
19691 arg1 = reinterpret_cast< wxDC * >(argp1);
19692 {
19693 arg2 = &temp2;
19694 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19695 }
19696 {
19697 PyThreadState* __tstate = wxPyBeginAllowThreads();
19698 (arg1)->SetTextForeground((wxColour const &)*arg2);
19699 wxPyEndAllowThreads(__tstate);
19700 if (PyErr_Occurred()) SWIG_fail;
19701 }
19702 resultobj = SWIG_Py_Void();
19703 return resultobj;
19704 fail:
19705 return NULL;
19706 }
19707
19708
19709 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19710 PyObject *resultobj = 0;
19711 wxDC *arg1 = (wxDC *) 0 ;
19712 wxColour *arg2 = 0 ;
19713 void *argp1 = 0 ;
19714 int res1 = 0 ;
19715 wxColour temp2 ;
19716 PyObject * obj0 = 0 ;
19717 PyObject * obj1 = 0 ;
19718 char * kwnames[] = {
19719 (char *) "self",(char *) "colour", NULL
19720 };
19721
19722 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19723 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19724 if (!SWIG_IsOK(res1)) {
19725 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19726 }
19727 arg1 = reinterpret_cast< wxDC * >(argp1);
19728 {
19729 arg2 = &temp2;
19730 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19731 }
19732 {
19733 PyThreadState* __tstate = wxPyBeginAllowThreads();
19734 (arg1)->SetTextBackground((wxColour const &)*arg2);
19735 wxPyEndAllowThreads(__tstate);
19736 if (PyErr_Occurred()) SWIG_fail;
19737 }
19738 resultobj = SWIG_Py_Void();
19739 return resultobj;
19740 fail:
19741 return NULL;
19742 }
19743
19744
19745 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19746 PyObject *resultobj = 0;
19747 wxDC *arg1 = (wxDC *) 0 ;
19748 int result;
19749 void *argp1 = 0 ;
19750 int res1 = 0 ;
19751 PyObject *swig_obj[1] ;
19752
19753 if (!args) SWIG_fail;
19754 swig_obj[0] = args;
19755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19756 if (!SWIG_IsOK(res1)) {
19757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19758 }
19759 arg1 = reinterpret_cast< wxDC * >(argp1);
19760 {
19761 PyThreadState* __tstate = wxPyBeginAllowThreads();
19762 result = (int)((wxDC const *)arg1)->GetMapMode();
19763 wxPyEndAllowThreads(__tstate);
19764 if (PyErr_Occurred()) SWIG_fail;
19765 }
19766 resultobj = SWIG_From_int(static_cast< int >(result));
19767 return resultobj;
19768 fail:
19769 return NULL;
19770 }
19771
19772
19773 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19774 PyObject *resultobj = 0;
19775 wxDC *arg1 = (wxDC *) 0 ;
19776 int arg2 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 int val2 ;
19780 int ecode2 = 0 ;
19781 PyObject * obj0 = 0 ;
19782 PyObject * obj1 = 0 ;
19783 char * kwnames[] = {
19784 (char *) "self",(char *) "mode", NULL
19785 };
19786
19787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19789 if (!SWIG_IsOK(res1)) {
19790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19791 }
19792 arg1 = reinterpret_cast< wxDC * >(argp1);
19793 ecode2 = SWIG_AsVal_int(obj1, &val2);
19794 if (!SWIG_IsOK(ecode2)) {
19795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19796 }
19797 arg2 = static_cast< int >(val2);
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 (arg1)->SetMapMode(arg2);
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_Py_Void();
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19812 PyObject *resultobj = 0;
19813 wxDC *arg1 = (wxDC *) 0 ;
19814 double *arg2 = (double *) 0 ;
19815 double *arg3 = (double *) 0 ;
19816 void *argp1 = 0 ;
19817 int res1 = 0 ;
19818 double temp2 ;
19819 int res2 = SWIG_TMPOBJ ;
19820 double temp3 ;
19821 int res3 = SWIG_TMPOBJ ;
19822 PyObject *swig_obj[1] ;
19823
19824 arg2 = &temp2;
19825 arg3 = &temp3;
19826 if (!args) SWIG_fail;
19827 swig_obj[0] = args;
19828 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19829 if (!SWIG_IsOK(res1)) {
19830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19831 }
19832 arg1 = reinterpret_cast< wxDC * >(argp1);
19833 {
19834 PyThreadState* __tstate = wxPyBeginAllowThreads();
19835 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19836 wxPyEndAllowThreads(__tstate);
19837 if (PyErr_Occurred()) SWIG_fail;
19838 }
19839 resultobj = SWIG_Py_Void();
19840 if (SWIG_IsTmpObj(res2)) {
19841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19842 } else {
19843 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19844 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19845 }
19846 if (SWIG_IsTmpObj(res3)) {
19847 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19848 } else {
19849 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19850 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19851 }
19852 return resultobj;
19853 fail:
19854 return NULL;
19855 }
19856
19857
19858 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19859 PyObject *resultobj = 0;
19860 wxDC *arg1 = (wxDC *) 0 ;
19861 double arg2 ;
19862 double arg3 ;
19863 void *argp1 = 0 ;
19864 int res1 = 0 ;
19865 double val2 ;
19866 int ecode2 = 0 ;
19867 double val3 ;
19868 int ecode3 = 0 ;
19869 PyObject * obj0 = 0 ;
19870 PyObject * obj1 = 0 ;
19871 PyObject * obj2 = 0 ;
19872 char * kwnames[] = {
19873 (char *) "self",(char *) "x",(char *) "y", NULL
19874 };
19875
19876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19878 if (!SWIG_IsOK(res1)) {
19879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19880 }
19881 arg1 = reinterpret_cast< wxDC * >(argp1);
19882 ecode2 = SWIG_AsVal_double(obj1, &val2);
19883 if (!SWIG_IsOK(ecode2)) {
19884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19885 }
19886 arg2 = static_cast< double >(val2);
19887 ecode3 = SWIG_AsVal_double(obj2, &val3);
19888 if (!SWIG_IsOK(ecode3)) {
19889 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19890 }
19891 arg3 = static_cast< double >(val3);
19892 {
19893 PyThreadState* __tstate = wxPyBeginAllowThreads();
19894 (arg1)->SetUserScale(arg2,arg3);
19895 wxPyEndAllowThreads(__tstate);
19896 if (PyErr_Occurred()) SWIG_fail;
19897 }
19898 resultobj = SWIG_Py_Void();
19899 return resultobj;
19900 fail:
19901 return NULL;
19902 }
19903
19904
19905 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19906 PyObject *resultobj = 0;
19907 wxDC *arg1 = (wxDC *) 0 ;
19908 double *arg2 = (double *) 0 ;
19909 double *arg3 = (double *) 0 ;
19910 void *argp1 = 0 ;
19911 int res1 = 0 ;
19912 double temp2 ;
19913 int res2 = SWIG_TMPOBJ ;
19914 double temp3 ;
19915 int res3 = SWIG_TMPOBJ ;
19916 PyObject *swig_obj[1] ;
19917
19918 arg2 = &temp2;
19919 arg3 = &temp3;
19920 if (!args) SWIG_fail;
19921 swig_obj[0] = args;
19922 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19923 if (!SWIG_IsOK(res1)) {
19924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19925 }
19926 arg1 = reinterpret_cast< wxDC * >(argp1);
19927 {
19928 PyThreadState* __tstate = wxPyBeginAllowThreads();
19929 (arg1)->GetLogicalScale(arg2,arg3);
19930 wxPyEndAllowThreads(__tstate);
19931 if (PyErr_Occurred()) SWIG_fail;
19932 }
19933 resultobj = SWIG_Py_Void();
19934 if (SWIG_IsTmpObj(res2)) {
19935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19936 } else {
19937 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19938 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19939 }
19940 if (SWIG_IsTmpObj(res3)) {
19941 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19942 } else {
19943 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19944 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19945 }
19946 return resultobj;
19947 fail:
19948 return NULL;
19949 }
19950
19951
19952 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19953 PyObject *resultobj = 0;
19954 wxDC *arg1 = (wxDC *) 0 ;
19955 double arg2 ;
19956 double arg3 ;
19957 void *argp1 = 0 ;
19958 int res1 = 0 ;
19959 double val2 ;
19960 int ecode2 = 0 ;
19961 double val3 ;
19962 int ecode3 = 0 ;
19963 PyObject * obj0 = 0 ;
19964 PyObject * obj1 = 0 ;
19965 PyObject * obj2 = 0 ;
19966 char * kwnames[] = {
19967 (char *) "self",(char *) "x",(char *) "y", NULL
19968 };
19969
19970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19972 if (!SWIG_IsOK(res1)) {
19973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19974 }
19975 arg1 = reinterpret_cast< wxDC * >(argp1);
19976 ecode2 = SWIG_AsVal_double(obj1, &val2);
19977 if (!SWIG_IsOK(ecode2)) {
19978 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19979 }
19980 arg2 = static_cast< double >(val2);
19981 ecode3 = SWIG_AsVal_double(obj2, &val3);
19982 if (!SWIG_IsOK(ecode3)) {
19983 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19984 }
19985 arg3 = static_cast< double >(val3);
19986 {
19987 PyThreadState* __tstate = wxPyBeginAllowThreads();
19988 (arg1)->SetLogicalScale(arg2,arg3);
19989 wxPyEndAllowThreads(__tstate);
19990 if (PyErr_Occurred()) SWIG_fail;
19991 }
19992 resultobj = SWIG_Py_Void();
19993 return resultobj;
19994 fail:
19995 return NULL;
19996 }
19997
19998
19999 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20000 PyObject *resultobj = 0;
20001 wxDC *arg1 = (wxDC *) 0 ;
20002 wxPoint result;
20003 void *argp1 = 0 ;
20004 int res1 = 0 ;
20005 PyObject *swig_obj[1] ;
20006
20007 if (!args) SWIG_fail;
20008 swig_obj[0] = args;
20009 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20010 if (!SWIG_IsOK(res1)) {
20011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20012 }
20013 arg1 = reinterpret_cast< wxDC * >(argp1);
20014 {
20015 PyThreadState* __tstate = wxPyBeginAllowThreads();
20016 result = ((wxDC const *)arg1)->GetLogicalOrigin();
20017 wxPyEndAllowThreads(__tstate);
20018 if (PyErr_Occurred()) SWIG_fail;
20019 }
20020 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20021 return resultobj;
20022 fail:
20023 return NULL;
20024 }
20025
20026
20027 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20028 PyObject *resultobj = 0;
20029 wxDC *arg1 = (wxDC *) 0 ;
20030 int *arg2 = (int *) 0 ;
20031 int *arg3 = (int *) 0 ;
20032 void *argp1 = 0 ;
20033 int res1 = 0 ;
20034 int temp2 ;
20035 int res2 = SWIG_TMPOBJ ;
20036 int temp3 ;
20037 int res3 = SWIG_TMPOBJ ;
20038 PyObject *swig_obj[1] ;
20039
20040 arg2 = &temp2;
20041 arg3 = &temp3;
20042 if (!args) SWIG_fail;
20043 swig_obj[0] = args;
20044 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20045 if (!SWIG_IsOK(res1)) {
20046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20047 }
20048 arg1 = reinterpret_cast< wxDC * >(argp1);
20049 {
20050 PyThreadState* __tstate = wxPyBeginAllowThreads();
20051 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20052 wxPyEndAllowThreads(__tstate);
20053 if (PyErr_Occurred()) SWIG_fail;
20054 }
20055 resultobj = SWIG_Py_Void();
20056 if (SWIG_IsTmpObj(res2)) {
20057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20058 } else {
20059 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20060 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20061 }
20062 if (SWIG_IsTmpObj(res3)) {
20063 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20064 } else {
20065 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20066 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20067 }
20068 return resultobj;
20069 fail:
20070 return NULL;
20071 }
20072
20073
20074 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20075 PyObject *resultobj = 0;
20076 wxDC *arg1 = (wxDC *) 0 ;
20077 int arg2 ;
20078 int arg3 ;
20079 void *argp1 = 0 ;
20080 int res1 = 0 ;
20081 int val2 ;
20082 int ecode2 = 0 ;
20083 int val3 ;
20084 int ecode3 = 0 ;
20085 PyObject * obj0 = 0 ;
20086 PyObject * obj1 = 0 ;
20087 PyObject * obj2 = 0 ;
20088 char * kwnames[] = {
20089 (char *) "self",(char *) "x",(char *) "y", NULL
20090 };
20091
20092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20094 if (!SWIG_IsOK(res1)) {
20095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20096 }
20097 arg1 = reinterpret_cast< wxDC * >(argp1);
20098 ecode2 = SWIG_AsVal_int(obj1, &val2);
20099 if (!SWIG_IsOK(ecode2)) {
20100 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20101 }
20102 arg2 = static_cast< int >(val2);
20103 ecode3 = SWIG_AsVal_int(obj2, &val3);
20104 if (!SWIG_IsOK(ecode3)) {
20105 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20106 }
20107 arg3 = static_cast< int >(val3);
20108 {
20109 PyThreadState* __tstate = wxPyBeginAllowThreads();
20110 (arg1)->SetLogicalOrigin(arg2,arg3);
20111 wxPyEndAllowThreads(__tstate);
20112 if (PyErr_Occurred()) SWIG_fail;
20113 }
20114 resultobj = SWIG_Py_Void();
20115 return resultobj;
20116 fail:
20117 return NULL;
20118 }
20119
20120
20121 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20122 PyObject *resultobj = 0;
20123 wxDC *arg1 = (wxDC *) 0 ;
20124 wxPoint *arg2 = 0 ;
20125 void *argp1 = 0 ;
20126 int res1 = 0 ;
20127 wxPoint temp2 ;
20128 PyObject * obj0 = 0 ;
20129 PyObject * obj1 = 0 ;
20130 char * kwnames[] = {
20131 (char *) "self",(char *) "point", NULL
20132 };
20133
20134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20136 if (!SWIG_IsOK(res1)) {
20137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20138 }
20139 arg1 = reinterpret_cast< wxDC * >(argp1);
20140 {
20141 arg2 = &temp2;
20142 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20143 }
20144 {
20145 PyThreadState* __tstate = wxPyBeginAllowThreads();
20146 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20147 wxPyEndAllowThreads(__tstate);
20148 if (PyErr_Occurred()) SWIG_fail;
20149 }
20150 resultobj = SWIG_Py_Void();
20151 return resultobj;
20152 fail:
20153 return NULL;
20154 }
20155
20156
20157 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20158 PyObject *resultobj = 0;
20159 wxDC *arg1 = (wxDC *) 0 ;
20160 wxPoint result;
20161 void *argp1 = 0 ;
20162 int res1 = 0 ;
20163 PyObject *swig_obj[1] ;
20164
20165 if (!args) SWIG_fail;
20166 swig_obj[0] = args;
20167 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20168 if (!SWIG_IsOK(res1)) {
20169 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20170 }
20171 arg1 = reinterpret_cast< wxDC * >(argp1);
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20179 return resultobj;
20180 fail:
20181 return NULL;
20182 }
20183
20184
20185 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20186 PyObject *resultobj = 0;
20187 wxDC *arg1 = (wxDC *) 0 ;
20188 int *arg2 = (int *) 0 ;
20189 int *arg3 = (int *) 0 ;
20190 void *argp1 = 0 ;
20191 int res1 = 0 ;
20192 int temp2 ;
20193 int res2 = SWIG_TMPOBJ ;
20194 int temp3 ;
20195 int res3 = SWIG_TMPOBJ ;
20196 PyObject *swig_obj[1] ;
20197
20198 arg2 = &temp2;
20199 arg3 = &temp3;
20200 if (!args) SWIG_fail;
20201 swig_obj[0] = args;
20202 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20203 if (!SWIG_IsOK(res1)) {
20204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20205 }
20206 arg1 = reinterpret_cast< wxDC * >(argp1);
20207 {
20208 PyThreadState* __tstate = wxPyBeginAllowThreads();
20209 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20210 wxPyEndAllowThreads(__tstate);
20211 if (PyErr_Occurred()) SWIG_fail;
20212 }
20213 resultobj = SWIG_Py_Void();
20214 if (SWIG_IsTmpObj(res2)) {
20215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20216 } else {
20217 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20219 }
20220 if (SWIG_IsTmpObj(res3)) {
20221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20222 } else {
20223 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20225 }
20226 return resultobj;
20227 fail:
20228 return NULL;
20229 }
20230
20231
20232 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20233 PyObject *resultobj = 0;
20234 wxDC *arg1 = (wxDC *) 0 ;
20235 int arg2 ;
20236 int arg3 ;
20237 void *argp1 = 0 ;
20238 int res1 = 0 ;
20239 int val2 ;
20240 int ecode2 = 0 ;
20241 int val3 ;
20242 int ecode3 = 0 ;
20243 PyObject * obj0 = 0 ;
20244 PyObject * obj1 = 0 ;
20245 PyObject * obj2 = 0 ;
20246 char * kwnames[] = {
20247 (char *) "self",(char *) "x",(char *) "y", NULL
20248 };
20249
20250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20252 if (!SWIG_IsOK(res1)) {
20253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20254 }
20255 arg1 = reinterpret_cast< wxDC * >(argp1);
20256 ecode2 = SWIG_AsVal_int(obj1, &val2);
20257 if (!SWIG_IsOK(ecode2)) {
20258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20259 }
20260 arg2 = static_cast< int >(val2);
20261 ecode3 = SWIG_AsVal_int(obj2, &val3);
20262 if (!SWIG_IsOK(ecode3)) {
20263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20264 }
20265 arg3 = static_cast< int >(val3);
20266 {
20267 PyThreadState* __tstate = wxPyBeginAllowThreads();
20268 (arg1)->SetDeviceOrigin(arg2,arg3);
20269 wxPyEndAllowThreads(__tstate);
20270 if (PyErr_Occurred()) SWIG_fail;
20271 }
20272 resultobj = SWIG_Py_Void();
20273 return resultobj;
20274 fail:
20275 return NULL;
20276 }
20277
20278
20279 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20280 PyObject *resultobj = 0;
20281 wxDC *arg1 = (wxDC *) 0 ;
20282 wxPoint *arg2 = 0 ;
20283 void *argp1 = 0 ;
20284 int res1 = 0 ;
20285 wxPoint temp2 ;
20286 PyObject * obj0 = 0 ;
20287 PyObject * obj1 = 0 ;
20288 char * kwnames[] = {
20289 (char *) "self",(char *) "point", NULL
20290 };
20291
20292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20294 if (!SWIG_IsOK(res1)) {
20295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20296 }
20297 arg1 = reinterpret_cast< wxDC * >(argp1);
20298 {
20299 arg2 = &temp2;
20300 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20301 }
20302 {
20303 PyThreadState* __tstate = wxPyBeginAllowThreads();
20304 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20305 wxPyEndAllowThreads(__tstate);
20306 if (PyErr_Occurred()) SWIG_fail;
20307 }
20308 resultobj = SWIG_Py_Void();
20309 return resultobj;
20310 fail:
20311 return NULL;
20312 }
20313
20314
20315 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20316 PyObject *resultobj = 0;
20317 wxDC *arg1 = (wxDC *) 0 ;
20318 bool arg2 ;
20319 bool arg3 ;
20320 void *argp1 = 0 ;
20321 int res1 = 0 ;
20322 bool val2 ;
20323 int ecode2 = 0 ;
20324 bool val3 ;
20325 int ecode3 = 0 ;
20326 PyObject * obj0 = 0 ;
20327 PyObject * obj1 = 0 ;
20328 PyObject * obj2 = 0 ;
20329 char * kwnames[] = {
20330 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20331 };
20332
20333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20334 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20335 if (!SWIG_IsOK(res1)) {
20336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20337 }
20338 arg1 = reinterpret_cast< wxDC * >(argp1);
20339 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20340 if (!SWIG_IsOK(ecode2)) {
20341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20342 }
20343 arg2 = static_cast< bool >(val2);
20344 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20345 if (!SWIG_IsOK(ecode3)) {
20346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20347 }
20348 arg3 = static_cast< bool >(val3);
20349 {
20350 PyThreadState* __tstate = wxPyBeginAllowThreads();
20351 (arg1)->SetAxisOrientation(arg2,arg3);
20352 wxPyEndAllowThreads(__tstate);
20353 if (PyErr_Occurred()) SWIG_fail;
20354 }
20355 resultobj = SWIG_Py_Void();
20356 return resultobj;
20357 fail:
20358 return NULL;
20359 }
20360
20361
20362 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20363 PyObject *resultobj = 0;
20364 wxDC *arg1 = (wxDC *) 0 ;
20365 int result;
20366 void *argp1 = 0 ;
20367 int res1 = 0 ;
20368 PyObject *swig_obj[1] ;
20369
20370 if (!args) SWIG_fail;
20371 swig_obj[0] = args;
20372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20373 if (!SWIG_IsOK(res1)) {
20374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20375 }
20376 arg1 = reinterpret_cast< wxDC * >(argp1);
20377 {
20378 PyThreadState* __tstate = wxPyBeginAllowThreads();
20379 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20380 wxPyEndAllowThreads(__tstate);
20381 if (PyErr_Occurred()) SWIG_fail;
20382 }
20383 resultobj = SWIG_From_int(static_cast< int >(result));
20384 return resultobj;
20385 fail:
20386 return NULL;
20387 }
20388
20389
20390 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20391 PyObject *resultobj = 0;
20392 wxDC *arg1 = (wxDC *) 0 ;
20393 int arg2 ;
20394 void *argp1 = 0 ;
20395 int res1 = 0 ;
20396 int val2 ;
20397 int ecode2 = 0 ;
20398 PyObject * obj0 = 0 ;
20399 PyObject * obj1 = 0 ;
20400 char * kwnames[] = {
20401 (char *) "self",(char *) "function", NULL
20402 };
20403
20404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20406 if (!SWIG_IsOK(res1)) {
20407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20408 }
20409 arg1 = reinterpret_cast< wxDC * >(argp1);
20410 ecode2 = SWIG_AsVal_int(obj1, &val2);
20411 if (!SWIG_IsOK(ecode2)) {
20412 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20413 }
20414 arg2 = static_cast< int >(val2);
20415 {
20416 PyThreadState* __tstate = wxPyBeginAllowThreads();
20417 (arg1)->SetLogicalFunction(arg2);
20418 wxPyEndAllowThreads(__tstate);
20419 if (PyErr_Occurred()) SWIG_fail;
20420 }
20421 resultobj = SWIG_Py_Void();
20422 return resultobj;
20423 fail:
20424 return NULL;
20425 }
20426
20427
20428 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20429 PyObject *resultobj = 0;
20430 wxDC *arg1 = (wxDC *) 0 ;
20431 void *argp1 = 0 ;
20432 int res1 = 0 ;
20433 PyObject *swig_obj[1] ;
20434
20435 if (!args) SWIG_fail;
20436 swig_obj[0] = args;
20437 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20438 if (!SWIG_IsOK(res1)) {
20439 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20440 }
20441 arg1 = reinterpret_cast< wxDC * >(argp1);
20442 {
20443 PyThreadState* __tstate = wxPyBeginAllowThreads();
20444 (arg1)->ComputeScaleAndOrigin();
20445 wxPyEndAllowThreads(__tstate);
20446 if (PyErr_Occurred()) SWIG_fail;
20447 }
20448 resultobj = SWIG_Py_Void();
20449 return resultobj;
20450 fail:
20451 return NULL;
20452 }
20453
20454
20455 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20456 PyObject *resultobj = 0;
20457 wxDC *arg1 = (wxDC *) 0 ;
20458 int arg2 ;
20459 int arg3 ;
20460 void *argp1 = 0 ;
20461 int res1 = 0 ;
20462 int val2 ;
20463 int ecode2 = 0 ;
20464 int val3 ;
20465 int ecode3 = 0 ;
20466 PyObject * obj0 = 0 ;
20467 PyObject * obj1 = 0 ;
20468 PyObject * obj2 = 0 ;
20469 char * kwnames[] = {
20470 (char *) "self",(char *) "x",(char *) "y", NULL
20471 };
20472
20473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20475 if (!SWIG_IsOK(res1)) {
20476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20477 }
20478 arg1 = reinterpret_cast< wxDC * >(argp1);
20479 ecode2 = SWIG_AsVal_int(obj1, &val2);
20480 if (!SWIG_IsOK(ecode2)) {
20481 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20482 }
20483 arg2 = static_cast< int >(val2);
20484 ecode3 = SWIG_AsVal_int(obj2, &val3);
20485 if (!SWIG_IsOK(ecode3)) {
20486 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20487 }
20488 arg3 = static_cast< int >(val3);
20489 {
20490 PyThreadState* __tstate = wxPyBeginAllowThreads();
20491 (arg1)->CalcBoundingBox(arg2,arg3);
20492 wxPyEndAllowThreads(__tstate);
20493 if (PyErr_Occurred()) SWIG_fail;
20494 }
20495 resultobj = SWIG_Py_Void();
20496 return resultobj;
20497 fail:
20498 return NULL;
20499 }
20500
20501
20502 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20503 PyObject *resultobj = 0;
20504 wxDC *arg1 = (wxDC *) 0 ;
20505 wxPoint *arg2 = 0 ;
20506 void *argp1 = 0 ;
20507 int res1 = 0 ;
20508 wxPoint temp2 ;
20509 PyObject * obj0 = 0 ;
20510 PyObject * obj1 = 0 ;
20511 char * kwnames[] = {
20512 (char *) "self",(char *) "point", NULL
20513 };
20514
20515 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20516 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20517 if (!SWIG_IsOK(res1)) {
20518 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20519 }
20520 arg1 = reinterpret_cast< wxDC * >(argp1);
20521 {
20522 arg2 = &temp2;
20523 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20524 }
20525 {
20526 PyThreadState* __tstate = wxPyBeginAllowThreads();
20527 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20528 wxPyEndAllowThreads(__tstate);
20529 if (PyErr_Occurred()) SWIG_fail;
20530 }
20531 resultobj = SWIG_Py_Void();
20532 return resultobj;
20533 fail:
20534 return NULL;
20535 }
20536
20537
20538 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20539 PyObject *resultobj = 0;
20540 wxDC *arg1 = (wxDC *) 0 ;
20541 void *argp1 = 0 ;
20542 int res1 = 0 ;
20543 PyObject *swig_obj[1] ;
20544
20545 if (!args) SWIG_fail;
20546 swig_obj[0] = args;
20547 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20548 if (!SWIG_IsOK(res1)) {
20549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20550 }
20551 arg1 = reinterpret_cast< wxDC * >(argp1);
20552 {
20553 PyThreadState* __tstate = wxPyBeginAllowThreads();
20554 (arg1)->ResetBoundingBox();
20555 wxPyEndAllowThreads(__tstate);
20556 if (PyErr_Occurred()) SWIG_fail;
20557 }
20558 resultobj = SWIG_Py_Void();
20559 return resultobj;
20560 fail:
20561 return NULL;
20562 }
20563
20564
20565 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20566 PyObject *resultobj = 0;
20567 wxDC *arg1 = (wxDC *) 0 ;
20568 int result;
20569 void *argp1 = 0 ;
20570 int res1 = 0 ;
20571 PyObject *swig_obj[1] ;
20572
20573 if (!args) SWIG_fail;
20574 swig_obj[0] = args;
20575 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20576 if (!SWIG_IsOK(res1)) {
20577 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20578 }
20579 arg1 = reinterpret_cast< wxDC * >(argp1);
20580 {
20581 PyThreadState* __tstate = wxPyBeginAllowThreads();
20582 result = (int)((wxDC const *)arg1)->MinX();
20583 wxPyEndAllowThreads(__tstate);
20584 if (PyErr_Occurred()) SWIG_fail;
20585 }
20586 resultobj = SWIG_From_int(static_cast< int >(result));
20587 return resultobj;
20588 fail:
20589 return NULL;
20590 }
20591
20592
20593 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20594 PyObject *resultobj = 0;
20595 wxDC *arg1 = (wxDC *) 0 ;
20596 int result;
20597 void *argp1 = 0 ;
20598 int res1 = 0 ;
20599 PyObject *swig_obj[1] ;
20600
20601 if (!args) SWIG_fail;
20602 swig_obj[0] = args;
20603 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20604 if (!SWIG_IsOK(res1)) {
20605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20606 }
20607 arg1 = reinterpret_cast< wxDC * >(argp1);
20608 {
20609 PyThreadState* __tstate = wxPyBeginAllowThreads();
20610 result = (int)((wxDC const *)arg1)->MaxX();
20611 wxPyEndAllowThreads(__tstate);
20612 if (PyErr_Occurred()) SWIG_fail;
20613 }
20614 resultobj = SWIG_From_int(static_cast< int >(result));
20615 return resultobj;
20616 fail:
20617 return NULL;
20618 }
20619
20620
20621 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20622 PyObject *resultobj = 0;
20623 wxDC *arg1 = (wxDC *) 0 ;
20624 int result;
20625 void *argp1 = 0 ;
20626 int res1 = 0 ;
20627 PyObject *swig_obj[1] ;
20628
20629 if (!args) SWIG_fail;
20630 swig_obj[0] = args;
20631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20632 if (!SWIG_IsOK(res1)) {
20633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20634 }
20635 arg1 = reinterpret_cast< wxDC * >(argp1);
20636 {
20637 PyThreadState* __tstate = wxPyBeginAllowThreads();
20638 result = (int)((wxDC const *)arg1)->MinY();
20639 wxPyEndAllowThreads(__tstate);
20640 if (PyErr_Occurred()) SWIG_fail;
20641 }
20642 resultobj = SWIG_From_int(static_cast< int >(result));
20643 return resultobj;
20644 fail:
20645 return NULL;
20646 }
20647
20648
20649 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20650 PyObject *resultobj = 0;
20651 wxDC *arg1 = (wxDC *) 0 ;
20652 int result;
20653 void *argp1 = 0 ;
20654 int res1 = 0 ;
20655 PyObject *swig_obj[1] ;
20656
20657 if (!args) SWIG_fail;
20658 swig_obj[0] = args;
20659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20660 if (!SWIG_IsOK(res1)) {
20661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20662 }
20663 arg1 = reinterpret_cast< wxDC * >(argp1);
20664 {
20665 PyThreadState* __tstate = wxPyBeginAllowThreads();
20666 result = (int)((wxDC const *)arg1)->MaxY();
20667 wxPyEndAllowThreads(__tstate);
20668 if (PyErr_Occurred()) SWIG_fail;
20669 }
20670 resultobj = SWIG_From_int(static_cast< int >(result));
20671 return resultobj;
20672 fail:
20673 return NULL;
20674 }
20675
20676
20677 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20678 PyObject *resultobj = 0;
20679 wxDC *arg1 = (wxDC *) 0 ;
20680 int *arg2 = (int *) 0 ;
20681 int *arg3 = (int *) 0 ;
20682 int *arg4 = (int *) 0 ;
20683 int *arg5 = (int *) 0 ;
20684 void *argp1 = 0 ;
20685 int res1 = 0 ;
20686 int temp2 ;
20687 int res2 = SWIG_TMPOBJ ;
20688 int temp3 ;
20689 int res3 = SWIG_TMPOBJ ;
20690 int temp4 ;
20691 int res4 = SWIG_TMPOBJ ;
20692 int temp5 ;
20693 int res5 = SWIG_TMPOBJ ;
20694 PyObject *swig_obj[1] ;
20695
20696 arg2 = &temp2;
20697 arg3 = &temp3;
20698 arg4 = &temp4;
20699 arg5 = &temp5;
20700 if (!args) SWIG_fail;
20701 swig_obj[0] = args;
20702 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20703 if (!SWIG_IsOK(res1)) {
20704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20705 }
20706 arg1 = reinterpret_cast< wxDC * >(argp1);
20707 {
20708 PyThreadState* __tstate = wxPyBeginAllowThreads();
20709 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20710 wxPyEndAllowThreads(__tstate);
20711 if (PyErr_Occurred()) SWIG_fail;
20712 }
20713 resultobj = SWIG_Py_Void();
20714 if (SWIG_IsTmpObj(res2)) {
20715 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20716 } else {
20717 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20719 }
20720 if (SWIG_IsTmpObj(res3)) {
20721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20722 } else {
20723 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20725 }
20726 if (SWIG_IsTmpObj(res4)) {
20727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20728 } else {
20729 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20731 }
20732 if (SWIG_IsTmpObj(res5)) {
20733 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20734 } else {
20735 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20736 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20737 }
20738 return resultobj;
20739 fail:
20740 return NULL;
20741 }
20742
20743
20744 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20745 PyObject *resultobj = 0;
20746 wxDC *arg1 = (wxDC *) 0 ;
20747 long result;
20748 void *argp1 = 0 ;
20749 int res1 = 0 ;
20750 PyObject *swig_obj[1] ;
20751
20752 if (!args) SWIG_fail;
20753 swig_obj[0] = args;
20754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20755 if (!SWIG_IsOK(res1)) {
20756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20757 }
20758 arg1 = reinterpret_cast< wxDC * >(argp1);
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (long)(arg1)->GetHDC();
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 resultobj = SWIG_From_long(static_cast< long >(result));
20766 return resultobj;
20767 fail:
20768 return NULL;
20769 }
20770
20771
20772 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20773 PyObject *resultobj = 0;
20774 wxDC *arg1 = (wxDC *) 0 ;
20775 PyObject *arg2 = (PyObject *) 0 ;
20776 PyObject *arg3 = (PyObject *) 0 ;
20777 PyObject *arg4 = (PyObject *) 0 ;
20778 PyObject *result = 0 ;
20779 void *argp1 = 0 ;
20780 int res1 = 0 ;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783 PyObject * obj2 = 0 ;
20784 PyObject * obj3 = 0 ;
20785 char * kwnames[] = {
20786 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20787 };
20788
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20793 }
20794 arg1 = reinterpret_cast< wxDC * >(argp1);
20795 arg2 = obj1;
20796 arg3 = obj2;
20797 arg4 = obj3;
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20801 wxPyEndAllowThreads(__tstate);
20802 if (PyErr_Occurred()) SWIG_fail;
20803 }
20804 resultobj = result;
20805 return resultobj;
20806 fail:
20807 return NULL;
20808 }
20809
20810
20811 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20812 PyObject *resultobj = 0;
20813 wxDC *arg1 = (wxDC *) 0 ;
20814 PyObject *arg2 = (PyObject *) 0 ;
20815 PyObject *arg3 = (PyObject *) 0 ;
20816 PyObject *arg4 = (PyObject *) 0 ;
20817 PyObject *result = 0 ;
20818 void *argp1 = 0 ;
20819 int res1 = 0 ;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 PyObject * obj2 = 0 ;
20823 PyObject * obj3 = 0 ;
20824 char * kwnames[] = {
20825 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20826 };
20827
20828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20832 }
20833 arg1 = reinterpret_cast< wxDC * >(argp1);
20834 arg2 = obj1;
20835 arg3 = obj2;
20836 arg4 = obj3;
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = result;
20844 return resultobj;
20845 fail:
20846 return NULL;
20847 }
20848
20849
20850 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxDC *arg1 = (wxDC *) 0 ;
20853 PyObject *arg2 = (PyObject *) 0 ;
20854 PyObject *arg3 = (PyObject *) 0 ;
20855 PyObject *arg4 = (PyObject *) 0 ;
20856 PyObject *result = 0 ;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 PyObject * obj0 = 0 ;
20860 PyObject * obj1 = 0 ;
20861 PyObject * obj2 = 0 ;
20862 PyObject * obj3 = 0 ;
20863 char * kwnames[] = {
20864 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20865 };
20866
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20871 }
20872 arg1 = reinterpret_cast< wxDC * >(argp1);
20873 arg2 = obj1;
20874 arg3 = obj2;
20875 arg4 = obj3;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = result;
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 PyObject *arg2 = (PyObject *) 0 ;
20893 PyObject *arg3 = (PyObject *) 0 ;
20894 PyObject *arg4 = (PyObject *) 0 ;
20895 PyObject *result = 0 ;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 PyObject * obj0 = 0 ;
20899 PyObject * obj1 = 0 ;
20900 PyObject * obj2 = 0 ;
20901 PyObject * obj3 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 arg2 = obj1;
20913 arg3 = obj2;
20914 arg4 = obj3;
20915 {
20916 PyThreadState* __tstate = wxPyBeginAllowThreads();
20917 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 resultobj = result;
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj = 0;
20930 wxDC *arg1 = (wxDC *) 0 ;
20931 PyObject *arg2 = (PyObject *) 0 ;
20932 PyObject *arg3 = (PyObject *) 0 ;
20933 PyObject *arg4 = (PyObject *) 0 ;
20934 PyObject *result = 0 ;
20935 void *argp1 = 0 ;
20936 int res1 = 0 ;
20937 PyObject * obj0 = 0 ;
20938 PyObject * obj1 = 0 ;
20939 PyObject * obj2 = 0 ;
20940 PyObject * obj3 = 0 ;
20941 char * kwnames[] = {
20942 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20943 };
20944
20945 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20946 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20947 if (!SWIG_IsOK(res1)) {
20948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20949 }
20950 arg1 = reinterpret_cast< wxDC * >(argp1);
20951 arg2 = obj1;
20952 arg3 = obj2;
20953 arg4 = obj3;
20954 {
20955 PyThreadState* __tstate = wxPyBeginAllowThreads();
20956 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20957 wxPyEndAllowThreads(__tstate);
20958 if (PyErr_Occurred()) SWIG_fail;
20959 }
20960 resultobj = result;
20961 return resultobj;
20962 fail:
20963 return NULL;
20964 }
20965
20966
20967 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20968 PyObject *resultobj = 0;
20969 wxDC *arg1 = (wxDC *) 0 ;
20970 PyObject *arg2 = (PyObject *) 0 ;
20971 PyObject *arg3 = (PyObject *) 0 ;
20972 PyObject *arg4 = (PyObject *) 0 ;
20973 PyObject *arg5 = (PyObject *) 0 ;
20974 PyObject *result = 0 ;
20975 void *argp1 = 0 ;
20976 int res1 = 0 ;
20977 PyObject * obj0 = 0 ;
20978 PyObject * obj1 = 0 ;
20979 PyObject * obj2 = 0 ;
20980 PyObject * obj3 = 0 ;
20981 PyObject * obj4 = 0 ;
20982 char * kwnames[] = {
20983 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20984 };
20985
20986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20988 if (!SWIG_IsOK(res1)) {
20989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20990 }
20991 arg1 = reinterpret_cast< wxDC * >(argp1);
20992 arg2 = obj1;
20993 arg3 = obj2;
20994 arg4 = obj3;
20995 arg5 = obj4;
20996 {
20997 PyThreadState* __tstate = wxPyBeginAllowThreads();
20998 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20999 wxPyEndAllowThreads(__tstate);
21000 if (PyErr_Occurred()) SWIG_fail;
21001 }
21002 resultobj = result;
21003 return resultobj;
21004 fail:
21005 return NULL;
21006 }
21007
21008
21009 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21010 PyObject *obj;
21011 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21012 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
21013 return SWIG_Py_Void();
21014 }
21015
21016 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21017 PyObject *resultobj = 0;
21018 wxMemoryDC *result = 0 ;
21019
21020 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
21021 {
21022 if (!wxPyCheckForApp()) SWIG_fail;
21023 PyThreadState* __tstate = wxPyBeginAllowThreads();
21024 result = (wxMemoryDC *)new wxMemoryDC();
21025 wxPyEndAllowThreads(__tstate);
21026 if (PyErr_Occurred()) SWIG_fail;
21027 }
21028 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
21029 return resultobj;
21030 fail:
21031 return NULL;
21032 }
21033
21034
21035 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21036 PyObject *resultobj = 0;
21037 wxDC *arg1 = (wxDC *) 0 ;
21038 wxMemoryDC *result = 0 ;
21039 void *argp1 = 0 ;
21040 int res1 = 0 ;
21041 PyObject * obj0 = 0 ;
21042 char * kwnames[] = {
21043 (char *) "oldDC", NULL
21044 };
21045
21046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21048 if (!SWIG_IsOK(res1)) {
21049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21050 }
21051 arg1 = reinterpret_cast< wxDC * >(argp1);
21052 {
21053 if (!wxPyCheckForApp()) SWIG_fail;
21054 PyThreadState* __tstate = wxPyBeginAllowThreads();
21055 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21056 wxPyEndAllowThreads(__tstate);
21057 if (PyErr_Occurred()) SWIG_fail;
21058 }
21059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21060 return resultobj;
21061 fail:
21062 return NULL;
21063 }
21064
21065
21066 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21067 PyObject *resultobj = 0;
21068 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21069 wxBitmap *arg2 = 0 ;
21070 void *argp1 = 0 ;
21071 int res1 = 0 ;
21072 void *argp2 = 0 ;
21073 int res2 = 0 ;
21074 PyObject * obj0 = 0 ;
21075 PyObject * obj1 = 0 ;
21076 char * kwnames[] = {
21077 (char *) "self",(char *) "bitmap", NULL
21078 };
21079
21080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21082 if (!SWIG_IsOK(res1)) {
21083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21084 }
21085 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21086 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21087 if (!SWIG_IsOK(res2)) {
21088 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21089 }
21090 if (!argp2) {
21091 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21092 }
21093 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21094 {
21095 PyThreadState* __tstate = wxPyBeginAllowThreads();
21096 (arg1)->SelectObject((wxBitmap const &)*arg2);
21097 wxPyEndAllowThreads(__tstate);
21098 if (PyErr_Occurred()) SWIG_fail;
21099 }
21100 resultobj = SWIG_Py_Void();
21101 return resultobj;
21102 fail:
21103 return NULL;
21104 }
21105
21106
21107 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21108 PyObject *obj;
21109 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21110 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21111 return SWIG_Py_Void();
21112 }
21113
21114 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21115 return SWIG_Python_InitShadowInstance(args);
21116 }
21117
21118 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21119 PyObject *resultobj = 0;
21120 wxDC *arg1 = (wxDC *) 0 ;
21121 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21122 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21123 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21124 wxBufferedDC *result = 0 ;
21125 void *argp1 = 0 ;
21126 int res1 = 0 ;
21127 void *argp2 = 0 ;
21128 int res2 = 0 ;
21129 int val3 ;
21130 int ecode3 = 0 ;
21131
21132 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21133 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21134 if (!SWIG_IsOK(res1)) {
21135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21136 }
21137 arg1 = reinterpret_cast< wxDC * >(argp1);
21138 if (swig_obj[1]) {
21139 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21140 if (!SWIG_IsOK(res2)) {
21141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21142 }
21143 if (!argp2) {
21144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21145 }
21146 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21147 }
21148 if (swig_obj[2]) {
21149 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21150 if (!SWIG_IsOK(ecode3)) {
21151 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21152 }
21153 arg3 = static_cast< int >(val3);
21154 }
21155 {
21156 if (!wxPyCheckForApp()) SWIG_fail;
21157 PyThreadState* __tstate = wxPyBeginAllowThreads();
21158 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21159 wxPyEndAllowThreads(__tstate);
21160 if (PyErr_Occurred()) SWIG_fail;
21161 }
21162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21163 return resultobj;
21164 fail:
21165 return NULL;
21166 }
21167
21168
21169 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21170 PyObject *resultobj = 0;
21171 wxDC *arg1 = (wxDC *) 0 ;
21172 wxSize *arg2 = 0 ;
21173 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21174 wxBufferedDC *result = 0 ;
21175 void *argp1 = 0 ;
21176 int res1 = 0 ;
21177 wxSize temp2 ;
21178 int val3 ;
21179 int ecode3 = 0 ;
21180
21181 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21183 if (!SWIG_IsOK(res1)) {
21184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21185 }
21186 arg1 = reinterpret_cast< wxDC * >(argp1);
21187 {
21188 arg2 = &temp2;
21189 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21190 }
21191 if (swig_obj[2]) {
21192 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21193 if (!SWIG_IsOK(ecode3)) {
21194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21195 }
21196 arg3 = static_cast< int >(val3);
21197 }
21198 {
21199 if (!wxPyCheckForApp()) SWIG_fail;
21200 PyThreadState* __tstate = wxPyBeginAllowThreads();
21201 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21202 wxPyEndAllowThreads(__tstate);
21203 if (PyErr_Occurred()) SWIG_fail;
21204 }
21205 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21206 return resultobj;
21207 fail:
21208 return NULL;
21209 }
21210
21211
21212 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21213 int argc;
21214 PyObject *argv[4];
21215
21216 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21217 --argc;
21218 if ((argc >= 1) && (argc <= 3)) {
21219 int _v = 0;
21220 if (argc > 1) {
21221 {
21222 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21223 _v = SWIG_CheckState(res);
21224 }
21225 if (!_v) goto check_1;
21226 }
21227 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21228 }
21229 check_1:
21230
21231 if ((argc >= 2) && (argc <= 3)) {
21232 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21233 }
21234
21235 fail:
21236 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21237 return NULL;
21238 }
21239
21240
21241 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21242 PyObject *resultobj = 0;
21243 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21244 void *argp1 = 0 ;
21245 int res1 = 0 ;
21246 PyObject *swig_obj[1] ;
21247
21248 if (!args) SWIG_fail;
21249 swig_obj[0] = args;
21250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21251 if (!SWIG_IsOK(res1)) {
21252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21253 }
21254 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21255 {
21256 PyThreadState* __tstate = wxPyBeginAllowThreads();
21257 delete arg1;
21258
21259 wxPyEndAllowThreads(__tstate);
21260 if (PyErr_Occurred()) SWIG_fail;
21261 }
21262 resultobj = SWIG_Py_Void();
21263 return resultobj;
21264 fail:
21265 return NULL;
21266 }
21267
21268
21269 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21270 PyObject *resultobj = 0;
21271 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21272 void *argp1 = 0 ;
21273 int res1 = 0 ;
21274 PyObject *swig_obj[1] ;
21275
21276 if (!args) SWIG_fail;
21277 swig_obj[0] = args;
21278 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21279 if (!SWIG_IsOK(res1)) {
21280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21281 }
21282 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21283 {
21284 PyThreadState* __tstate = wxPyBeginAllowThreads();
21285 (arg1)->UnMask();
21286 wxPyEndAllowThreads(__tstate);
21287 if (PyErr_Occurred()) SWIG_fail;
21288 }
21289 resultobj = SWIG_Py_Void();
21290 return resultobj;
21291 fail:
21292 return NULL;
21293 }
21294
21295
21296 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21297 PyObject *obj;
21298 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21299 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21300 return SWIG_Py_Void();
21301 }
21302
21303 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21304 return SWIG_Python_InitShadowInstance(args);
21305 }
21306
21307 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21308 PyObject *resultobj = 0;
21309 wxWindow *arg1 = (wxWindow *) 0 ;
21310 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21311 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21312 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21313 wxBufferedPaintDC *result = 0 ;
21314 void *argp1 = 0 ;
21315 int res1 = 0 ;
21316 void *argp2 = 0 ;
21317 int res2 = 0 ;
21318 int val3 ;
21319 int ecode3 = 0 ;
21320 PyObject * obj0 = 0 ;
21321 PyObject * obj1 = 0 ;
21322 PyObject * obj2 = 0 ;
21323 char * kwnames[] = {
21324 (char *) "window",(char *) "buffer",(char *) "style", NULL
21325 };
21326
21327 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21328 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21329 if (!SWIG_IsOK(res1)) {
21330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21331 }
21332 arg1 = reinterpret_cast< wxWindow * >(argp1);
21333 if (obj1) {
21334 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21335 if (!SWIG_IsOK(res2)) {
21336 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21337 }
21338 if (!argp2) {
21339 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21340 }
21341 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21342 }
21343 if (obj2) {
21344 ecode3 = SWIG_AsVal_int(obj2, &val3);
21345 if (!SWIG_IsOK(ecode3)) {
21346 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21347 }
21348 arg3 = static_cast< int >(val3);
21349 }
21350 {
21351 if (!wxPyCheckForApp()) SWIG_fail;
21352 PyThreadState* __tstate = wxPyBeginAllowThreads();
21353 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21354 wxPyEndAllowThreads(__tstate);
21355 if (PyErr_Occurred()) SWIG_fail;
21356 }
21357 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21358 return resultobj;
21359 fail:
21360 return NULL;
21361 }
21362
21363
21364 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21365 PyObject *obj;
21366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21367 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21368 return SWIG_Py_Void();
21369 }
21370
21371 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21372 return SWIG_Python_InitShadowInstance(args);
21373 }
21374
21375 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21376 PyObject *resultobj = 0;
21377 wxScreenDC *result = 0 ;
21378
21379 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21380 {
21381 if (!wxPyCheckForApp()) SWIG_fail;
21382 PyThreadState* __tstate = wxPyBeginAllowThreads();
21383 result = (wxScreenDC *)new wxScreenDC();
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21388 return resultobj;
21389 fail:
21390 return NULL;
21391 }
21392
21393
21394 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21395 PyObject *resultobj = 0;
21396 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21397 wxWindow *arg2 = (wxWindow *) 0 ;
21398 bool result;
21399 void *argp1 = 0 ;
21400 int res1 = 0 ;
21401 void *argp2 = 0 ;
21402 int res2 = 0 ;
21403 PyObject * obj0 = 0 ;
21404 PyObject * obj1 = 0 ;
21405 char * kwnames[] = {
21406 (char *) "self",(char *) "window", NULL
21407 };
21408
21409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21411 if (!SWIG_IsOK(res1)) {
21412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21413 }
21414 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21415 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21416 if (!SWIG_IsOK(res2)) {
21417 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21418 }
21419 arg2 = reinterpret_cast< wxWindow * >(argp2);
21420 {
21421 PyThreadState* __tstate = wxPyBeginAllowThreads();
21422 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21423 wxPyEndAllowThreads(__tstate);
21424 if (PyErr_Occurred()) SWIG_fail;
21425 }
21426 {
21427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21428 }
21429 return resultobj;
21430 fail:
21431 return NULL;
21432 }
21433
21434
21435 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21436 PyObject *resultobj = 0;
21437 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21438 wxRect *arg2 = (wxRect *) NULL ;
21439 bool result;
21440 void *argp1 = 0 ;
21441 int res1 = 0 ;
21442 void *argp2 = 0 ;
21443 int res2 = 0 ;
21444 PyObject * obj0 = 0 ;
21445 PyObject * obj1 = 0 ;
21446 char * kwnames[] = {
21447 (char *) "self",(char *) "rect", NULL
21448 };
21449
21450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21452 if (!SWIG_IsOK(res1)) {
21453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21454 }
21455 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21456 if (obj1) {
21457 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21458 if (!SWIG_IsOK(res2)) {
21459 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21460 }
21461 arg2 = reinterpret_cast< wxRect * >(argp2);
21462 }
21463 {
21464 PyThreadState* __tstate = wxPyBeginAllowThreads();
21465 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21466 wxPyEndAllowThreads(__tstate);
21467 if (PyErr_Occurred()) SWIG_fail;
21468 }
21469 {
21470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21471 }
21472 return resultobj;
21473 fail:
21474 return NULL;
21475 }
21476
21477
21478 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21479 PyObject *resultobj = 0;
21480 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21481 bool result;
21482 void *argp1 = 0 ;
21483 int res1 = 0 ;
21484 PyObject *swig_obj[1] ;
21485
21486 if (!args) SWIG_fail;
21487 swig_obj[0] = args;
21488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21489 if (!SWIG_IsOK(res1)) {
21490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21491 }
21492 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21493 {
21494 PyThreadState* __tstate = wxPyBeginAllowThreads();
21495 result = (bool)(arg1)->EndDrawingOnTop();
21496 wxPyEndAllowThreads(__tstate);
21497 if (PyErr_Occurred()) SWIG_fail;
21498 }
21499 {
21500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21501 }
21502 return resultobj;
21503 fail:
21504 return NULL;
21505 }
21506
21507
21508 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21509 PyObject *obj;
21510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21511 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21512 return SWIG_Py_Void();
21513 }
21514
21515 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21516 return SWIG_Python_InitShadowInstance(args);
21517 }
21518
21519 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21520 PyObject *resultobj = 0;
21521 wxWindow *arg1 = (wxWindow *) 0 ;
21522 wxClientDC *result = 0 ;
21523 void *argp1 = 0 ;
21524 int res1 = 0 ;
21525 PyObject * obj0 = 0 ;
21526 char * kwnames[] = {
21527 (char *) "win", NULL
21528 };
21529
21530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21532 if (!SWIG_IsOK(res1)) {
21533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21534 }
21535 arg1 = reinterpret_cast< wxWindow * >(argp1);
21536 {
21537 if (!wxPyCheckForApp()) SWIG_fail;
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = (wxClientDC *)new wxClientDC(arg1);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21544 return resultobj;
21545 fail:
21546 return NULL;
21547 }
21548
21549
21550 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21551 PyObject *obj;
21552 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21553 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21554 return SWIG_Py_Void();
21555 }
21556
21557 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21558 return SWIG_Python_InitShadowInstance(args);
21559 }
21560
21561 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21562 PyObject *resultobj = 0;
21563 wxWindow *arg1 = (wxWindow *) 0 ;
21564 wxPaintDC *result = 0 ;
21565 void *argp1 = 0 ;
21566 int res1 = 0 ;
21567 PyObject * obj0 = 0 ;
21568 char * kwnames[] = {
21569 (char *) "win", NULL
21570 };
21571
21572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21574 if (!SWIG_IsOK(res1)) {
21575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21576 }
21577 arg1 = reinterpret_cast< wxWindow * >(argp1);
21578 {
21579 if (!wxPyCheckForApp()) SWIG_fail;
21580 PyThreadState* __tstate = wxPyBeginAllowThreads();
21581 result = (wxPaintDC *)new wxPaintDC(arg1);
21582 wxPyEndAllowThreads(__tstate);
21583 if (PyErr_Occurred()) SWIG_fail;
21584 }
21585 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21586 return resultobj;
21587 fail:
21588 return NULL;
21589 }
21590
21591
21592 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21593 PyObject *obj;
21594 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21595 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21596 return SWIG_Py_Void();
21597 }
21598
21599 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21600 return SWIG_Python_InitShadowInstance(args);
21601 }
21602
21603 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21604 PyObject *resultobj = 0;
21605 wxWindow *arg1 = (wxWindow *) 0 ;
21606 wxWindowDC *result = 0 ;
21607 void *argp1 = 0 ;
21608 int res1 = 0 ;
21609 PyObject * obj0 = 0 ;
21610 char * kwnames[] = {
21611 (char *) "win", NULL
21612 };
21613
21614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21616 if (!SWIG_IsOK(res1)) {
21617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21618 }
21619 arg1 = reinterpret_cast< wxWindow * >(argp1);
21620 {
21621 if (!wxPyCheckForApp()) SWIG_fail;
21622 PyThreadState* __tstate = wxPyBeginAllowThreads();
21623 result = (wxWindowDC *)new wxWindowDC(arg1);
21624 wxPyEndAllowThreads(__tstate);
21625 if (PyErr_Occurred()) SWIG_fail;
21626 }
21627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21628 return resultobj;
21629 fail:
21630 return NULL;
21631 }
21632
21633
21634 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21635 PyObject *obj;
21636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21637 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21638 return SWIG_Py_Void();
21639 }
21640
21641 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21642 return SWIG_Python_InitShadowInstance(args);
21643 }
21644
21645 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21646 PyObject *resultobj = 0;
21647 wxDC *arg1 = 0 ;
21648 bool arg2 ;
21649 wxMirrorDC *result = 0 ;
21650 void *argp1 = 0 ;
21651 int res1 = 0 ;
21652 bool val2 ;
21653 int ecode2 = 0 ;
21654 PyObject * obj0 = 0 ;
21655 PyObject * obj1 = 0 ;
21656 char * kwnames[] = {
21657 (char *) "dc",(char *) "mirror", NULL
21658 };
21659
21660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21661 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21662 if (!SWIG_IsOK(res1)) {
21663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21664 }
21665 if (!argp1) {
21666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21667 }
21668 arg1 = reinterpret_cast< wxDC * >(argp1);
21669 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21670 if (!SWIG_IsOK(ecode2)) {
21671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21672 }
21673 arg2 = static_cast< bool >(val2);
21674 {
21675 if (!wxPyCheckForApp()) SWIG_fail;
21676 PyThreadState* __tstate = wxPyBeginAllowThreads();
21677 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21678 wxPyEndAllowThreads(__tstate);
21679 if (PyErr_Occurred()) SWIG_fail;
21680 }
21681 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21682 return resultobj;
21683 fail:
21684 return NULL;
21685 }
21686
21687
21688 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21689 PyObject *obj;
21690 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21691 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21692 return SWIG_Py_Void();
21693 }
21694
21695 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21696 return SWIG_Python_InitShadowInstance(args);
21697 }
21698
21699 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21700 PyObject *resultobj = 0;
21701 wxPrintData *arg1 = 0 ;
21702 wxPostScriptDC *result = 0 ;
21703 void *argp1 = 0 ;
21704 int res1 = 0 ;
21705 PyObject * obj0 = 0 ;
21706 char * kwnames[] = {
21707 (char *) "printData", NULL
21708 };
21709
21710 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21711 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21712 if (!SWIG_IsOK(res1)) {
21713 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21714 }
21715 if (!argp1) {
21716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21717 }
21718 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21719 {
21720 if (!wxPyCheckForApp()) SWIG_fail;
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21723 wxPyEndAllowThreads(__tstate);
21724 if (PyErr_Occurred()) SWIG_fail;
21725 }
21726 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21727 return resultobj;
21728 fail:
21729 return NULL;
21730 }
21731
21732
21733 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21734 PyObject *resultobj = 0;
21735 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21736 wxPrintData *result = 0 ;
21737 void *argp1 = 0 ;
21738 int res1 = 0 ;
21739 PyObject *swig_obj[1] ;
21740
21741 if (!args) SWIG_fail;
21742 swig_obj[0] = args;
21743 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21744 if (!SWIG_IsOK(res1)) {
21745 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21746 }
21747 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21748 {
21749 PyThreadState* __tstate = wxPyBeginAllowThreads();
21750 {
21751 wxPrintData &_result_ref = (arg1)->GetPrintData();
21752 result = (wxPrintData *) &_result_ref;
21753 }
21754 wxPyEndAllowThreads(__tstate);
21755 if (PyErr_Occurred()) SWIG_fail;
21756 }
21757 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21758 return resultobj;
21759 fail:
21760 return NULL;
21761 }
21762
21763
21764 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21765 PyObject *resultobj = 0;
21766 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21767 wxPrintData *arg2 = 0 ;
21768 void *argp1 = 0 ;
21769 int res1 = 0 ;
21770 void *argp2 = 0 ;
21771 int res2 = 0 ;
21772 PyObject * obj0 = 0 ;
21773 PyObject * obj1 = 0 ;
21774 char * kwnames[] = {
21775 (char *) "self",(char *) "data", NULL
21776 };
21777
21778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21780 if (!SWIG_IsOK(res1)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21782 }
21783 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21784 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21785 if (!SWIG_IsOK(res2)) {
21786 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21787 }
21788 if (!argp2) {
21789 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21790 }
21791 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21792 {
21793 PyThreadState* __tstate = wxPyBeginAllowThreads();
21794 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21795 wxPyEndAllowThreads(__tstate);
21796 if (PyErr_Occurred()) SWIG_fail;
21797 }
21798 resultobj = SWIG_Py_Void();
21799 return resultobj;
21800 fail:
21801 return NULL;
21802 }
21803
21804
21805 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21806 PyObject *resultobj = 0;
21807 int arg1 ;
21808 int val1 ;
21809 int ecode1 = 0 ;
21810 PyObject * obj0 = 0 ;
21811 char * kwnames[] = {
21812 (char *) "ppi", NULL
21813 };
21814
21815 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21816 ecode1 = SWIG_AsVal_int(obj0, &val1);
21817 if (!SWIG_IsOK(ecode1)) {
21818 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21819 }
21820 arg1 = static_cast< int >(val1);
21821 {
21822 PyThreadState* __tstate = wxPyBeginAllowThreads();
21823 wxPostScriptDC::SetResolution(arg1);
21824 wxPyEndAllowThreads(__tstate);
21825 if (PyErr_Occurred()) SWIG_fail;
21826 }
21827 resultobj = SWIG_Py_Void();
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21835 PyObject *resultobj = 0;
21836 int result;
21837
21838 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21839 {
21840 PyThreadState* __tstate = wxPyBeginAllowThreads();
21841 result = (int)wxPostScriptDC::GetResolution();
21842 wxPyEndAllowThreads(__tstate);
21843 if (PyErr_Occurred()) SWIG_fail;
21844 }
21845 resultobj = SWIG_From_int(static_cast< int >(result));
21846 return resultobj;
21847 fail:
21848 return NULL;
21849 }
21850
21851
21852 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21853 PyObject *obj;
21854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21855 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21856 return SWIG_Py_Void();
21857 }
21858
21859 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21860 return SWIG_Python_InitShadowInstance(args);
21861 }
21862
21863 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21864 PyObject *resultobj = 0;
21865 wxString const &arg1_defvalue = wxPyEmptyString ;
21866 wxString *arg1 = (wxString *) &arg1_defvalue ;
21867 wxMetaFile *result = 0 ;
21868 bool temp1 = false ;
21869 PyObject * obj0 = 0 ;
21870 char * kwnames[] = {
21871 (char *) "filename", NULL
21872 };
21873
21874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21875 if (obj0) {
21876 {
21877 arg1 = wxString_in_helper(obj0);
21878 if (arg1 == NULL) SWIG_fail;
21879 temp1 = true;
21880 }
21881 }
21882 {
21883 if (!wxPyCheckForApp()) SWIG_fail;
21884 PyThreadState* __tstate = wxPyBeginAllowThreads();
21885 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21886 wxPyEndAllowThreads(__tstate);
21887 if (PyErr_Occurred()) SWIG_fail;
21888 }
21889 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21890 {
21891 if (temp1)
21892 delete arg1;
21893 }
21894 return resultobj;
21895 fail:
21896 {
21897 if (temp1)
21898 delete arg1;
21899 }
21900 return NULL;
21901 }
21902
21903
21904 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21905 PyObject *resultobj = 0;
21906 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21907 void *argp1 = 0 ;
21908 int res1 = 0 ;
21909 PyObject *swig_obj[1] ;
21910
21911 if (!args) SWIG_fail;
21912 swig_obj[0] = args;
21913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21914 if (!SWIG_IsOK(res1)) {
21915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21916 }
21917 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21918 {
21919 PyThreadState* __tstate = wxPyBeginAllowThreads();
21920 delete arg1;
21921
21922 wxPyEndAllowThreads(__tstate);
21923 if (PyErr_Occurred()) SWIG_fail;
21924 }
21925 resultobj = SWIG_Py_Void();
21926 return resultobj;
21927 fail:
21928 return NULL;
21929 }
21930
21931
21932 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21933 PyObject *resultobj = 0;
21934 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21935 bool result;
21936 void *argp1 = 0 ;
21937 int res1 = 0 ;
21938 PyObject *swig_obj[1] ;
21939
21940 if (!args) SWIG_fail;
21941 swig_obj[0] = args;
21942 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21943 if (!SWIG_IsOK(res1)) {
21944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21945 }
21946 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21947 {
21948 PyThreadState* __tstate = wxPyBeginAllowThreads();
21949 result = (bool)(arg1)->Ok();
21950 wxPyEndAllowThreads(__tstate);
21951 if (PyErr_Occurred()) SWIG_fail;
21952 }
21953 {
21954 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21955 }
21956 return resultobj;
21957 fail:
21958 return NULL;
21959 }
21960
21961
21962 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21963 PyObject *resultobj = 0;
21964 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21965 int arg2 = (int) 0 ;
21966 int arg3 = (int) 0 ;
21967 bool result;
21968 void *argp1 = 0 ;
21969 int res1 = 0 ;
21970 int val2 ;
21971 int ecode2 = 0 ;
21972 int val3 ;
21973 int ecode3 = 0 ;
21974 PyObject * obj0 = 0 ;
21975 PyObject * obj1 = 0 ;
21976 PyObject * obj2 = 0 ;
21977 char * kwnames[] = {
21978 (char *) "self",(char *) "width",(char *) "height", NULL
21979 };
21980
21981 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21982 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21983 if (!SWIG_IsOK(res1)) {
21984 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21985 }
21986 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21987 if (obj1) {
21988 ecode2 = SWIG_AsVal_int(obj1, &val2);
21989 if (!SWIG_IsOK(ecode2)) {
21990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21991 }
21992 arg2 = static_cast< int >(val2);
21993 }
21994 if (obj2) {
21995 ecode3 = SWIG_AsVal_int(obj2, &val3);
21996 if (!SWIG_IsOK(ecode3)) {
21997 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21998 }
21999 arg3 = static_cast< int >(val3);
22000 }
22001 {
22002 PyThreadState* __tstate = wxPyBeginAllowThreads();
22003 result = (bool)(arg1)->SetClipboard(arg2,arg3);
22004 wxPyEndAllowThreads(__tstate);
22005 if (PyErr_Occurred()) SWIG_fail;
22006 }
22007 {
22008 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22009 }
22010 return resultobj;
22011 fail:
22012 return NULL;
22013 }
22014
22015
22016 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22017 PyObject *resultobj = 0;
22018 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22019 wxSize result;
22020 void *argp1 = 0 ;
22021 int res1 = 0 ;
22022 PyObject *swig_obj[1] ;
22023
22024 if (!args) SWIG_fail;
22025 swig_obj[0] = args;
22026 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22027 if (!SWIG_IsOK(res1)) {
22028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22029 }
22030 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22031 {
22032 PyThreadState* __tstate = wxPyBeginAllowThreads();
22033 result = (arg1)->GetSize();
22034 wxPyEndAllowThreads(__tstate);
22035 if (PyErr_Occurred()) SWIG_fail;
22036 }
22037 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22038 return resultobj;
22039 fail:
22040 return NULL;
22041 }
22042
22043
22044 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22045 PyObject *resultobj = 0;
22046 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22047 int result;
22048 void *argp1 = 0 ;
22049 int res1 = 0 ;
22050 PyObject *swig_obj[1] ;
22051
22052 if (!args) SWIG_fail;
22053 swig_obj[0] = args;
22054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22055 if (!SWIG_IsOK(res1)) {
22056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22057 }
22058 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22059 {
22060 PyThreadState* __tstate = wxPyBeginAllowThreads();
22061 result = (int)(arg1)->GetWidth();
22062 wxPyEndAllowThreads(__tstate);
22063 if (PyErr_Occurred()) SWIG_fail;
22064 }
22065 resultobj = SWIG_From_int(static_cast< int >(result));
22066 return resultobj;
22067 fail:
22068 return NULL;
22069 }
22070
22071
22072 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22073 PyObject *resultobj = 0;
22074 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22075 int result;
22076 void *argp1 = 0 ;
22077 int res1 = 0 ;
22078 PyObject *swig_obj[1] ;
22079
22080 if (!args) SWIG_fail;
22081 swig_obj[0] = args;
22082 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22083 if (!SWIG_IsOK(res1)) {
22084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22085 }
22086 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22087 {
22088 PyThreadState* __tstate = wxPyBeginAllowThreads();
22089 result = (int)(arg1)->GetHeight();
22090 wxPyEndAllowThreads(__tstate);
22091 if (PyErr_Occurred()) SWIG_fail;
22092 }
22093 resultobj = SWIG_From_int(static_cast< int >(result));
22094 return resultobj;
22095 fail:
22096 return NULL;
22097 }
22098
22099
22100 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22101 PyObject *resultobj = 0;
22102 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22103 wxString *result = 0 ;
22104 void *argp1 = 0 ;
22105 int res1 = 0 ;
22106 PyObject *swig_obj[1] ;
22107
22108 if (!args) SWIG_fail;
22109 swig_obj[0] = args;
22110 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22111 if (!SWIG_IsOK(res1)) {
22112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22113 }
22114 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22115 {
22116 PyThreadState* __tstate = wxPyBeginAllowThreads();
22117 {
22118 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22119 result = (wxString *) &_result_ref;
22120 }
22121 wxPyEndAllowThreads(__tstate);
22122 if (PyErr_Occurred()) SWIG_fail;
22123 }
22124 {
22125 #if wxUSE_UNICODE
22126 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22127 #else
22128 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22129 #endif
22130 }
22131 return resultobj;
22132 fail:
22133 return NULL;
22134 }
22135
22136
22137 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22138 PyObject *obj;
22139 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22140 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22141 return SWIG_Py_Void();
22142 }
22143
22144 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22145 return SWIG_Python_InitShadowInstance(args);
22146 }
22147
22148 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22149 PyObject *resultobj = 0;
22150 wxString const &arg1_defvalue = wxPyEmptyString ;
22151 wxString *arg1 = (wxString *) &arg1_defvalue ;
22152 int arg2 = (int) 0 ;
22153 int arg3 = (int) 0 ;
22154 wxString const &arg4_defvalue = wxPyEmptyString ;
22155 wxString *arg4 = (wxString *) &arg4_defvalue ;
22156 wxMetaFileDC *result = 0 ;
22157 bool temp1 = false ;
22158 int val2 ;
22159 int ecode2 = 0 ;
22160 int val3 ;
22161 int ecode3 = 0 ;
22162 bool temp4 = false ;
22163 PyObject * obj0 = 0 ;
22164 PyObject * obj1 = 0 ;
22165 PyObject * obj2 = 0 ;
22166 PyObject * obj3 = 0 ;
22167 char * kwnames[] = {
22168 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22169 };
22170
22171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22172 if (obj0) {
22173 {
22174 arg1 = wxString_in_helper(obj0);
22175 if (arg1 == NULL) SWIG_fail;
22176 temp1 = true;
22177 }
22178 }
22179 if (obj1) {
22180 ecode2 = SWIG_AsVal_int(obj1, &val2);
22181 if (!SWIG_IsOK(ecode2)) {
22182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22183 }
22184 arg2 = static_cast< int >(val2);
22185 }
22186 if (obj2) {
22187 ecode3 = SWIG_AsVal_int(obj2, &val3);
22188 if (!SWIG_IsOK(ecode3)) {
22189 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22190 }
22191 arg3 = static_cast< int >(val3);
22192 }
22193 if (obj3) {
22194 {
22195 arg4 = wxString_in_helper(obj3);
22196 if (arg4 == NULL) SWIG_fail;
22197 temp4 = true;
22198 }
22199 }
22200 {
22201 if (!wxPyCheckForApp()) SWIG_fail;
22202 PyThreadState* __tstate = wxPyBeginAllowThreads();
22203 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22204 wxPyEndAllowThreads(__tstate);
22205 if (PyErr_Occurred()) SWIG_fail;
22206 }
22207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22208 {
22209 if (temp1)
22210 delete arg1;
22211 }
22212 {
22213 if (temp4)
22214 delete arg4;
22215 }
22216 return resultobj;
22217 fail:
22218 {
22219 if (temp1)
22220 delete arg1;
22221 }
22222 {
22223 if (temp4)
22224 delete arg4;
22225 }
22226 return NULL;
22227 }
22228
22229
22230 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22231 PyObject *resultobj = 0;
22232 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22233 wxMetaFile *result = 0 ;
22234 void *argp1 = 0 ;
22235 int res1 = 0 ;
22236 PyObject *swig_obj[1] ;
22237
22238 if (!args) SWIG_fail;
22239 swig_obj[0] = args;
22240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22241 if (!SWIG_IsOK(res1)) {
22242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22243 }
22244 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22245 {
22246 PyThreadState* __tstate = wxPyBeginAllowThreads();
22247 result = (wxMetaFile *)(arg1)->Close();
22248 wxPyEndAllowThreads(__tstate);
22249 if (PyErr_Occurred()) SWIG_fail;
22250 }
22251 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22252 return resultobj;
22253 fail:
22254 return NULL;
22255 }
22256
22257
22258 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22259 PyObject *obj;
22260 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22261 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22262 return SWIG_Py_Void();
22263 }
22264
22265 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22266 return SWIG_Python_InitShadowInstance(args);
22267 }
22268
22269 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22270 PyObject *resultobj = 0;
22271 wxPrintData *arg1 = 0 ;
22272 wxPrinterDC *result = 0 ;
22273 void *argp1 = 0 ;
22274 int res1 = 0 ;
22275 PyObject * obj0 = 0 ;
22276 char * kwnames[] = {
22277 (char *) "printData", NULL
22278 };
22279
22280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22281 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22282 if (!SWIG_IsOK(res1)) {
22283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22284 }
22285 if (!argp1) {
22286 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22287 }
22288 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22289 {
22290 if (!wxPyCheckForApp()) SWIG_fail;
22291 PyThreadState* __tstate = wxPyBeginAllowThreads();
22292 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22293 wxPyEndAllowThreads(__tstate);
22294 if (PyErr_Occurred()) SWIG_fail;
22295 }
22296 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22297 return resultobj;
22298 fail:
22299 return NULL;
22300 }
22301
22302
22303 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22304 PyObject *obj;
22305 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22306 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22307 return SWIG_Py_Void();
22308 }
22309
22310 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22311 return SWIG_Python_InitShadowInstance(args);
22312 }
22313
22314 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22315 PyObject *resultobj = 0;
22316 int arg1 ;
22317 int arg2 ;
22318 int arg3 = (int) true ;
22319 int arg4 = (int) 1 ;
22320 wxImageList *result = 0 ;
22321 int val1 ;
22322 int ecode1 = 0 ;
22323 int val2 ;
22324 int ecode2 = 0 ;
22325 int val3 ;
22326 int ecode3 = 0 ;
22327 int val4 ;
22328 int ecode4 = 0 ;
22329 PyObject * obj0 = 0 ;
22330 PyObject * obj1 = 0 ;
22331 PyObject * obj2 = 0 ;
22332 PyObject * obj3 = 0 ;
22333 char * kwnames[] = {
22334 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22335 };
22336
22337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22338 ecode1 = SWIG_AsVal_int(obj0, &val1);
22339 if (!SWIG_IsOK(ecode1)) {
22340 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22341 }
22342 arg1 = static_cast< int >(val1);
22343 ecode2 = SWIG_AsVal_int(obj1, &val2);
22344 if (!SWIG_IsOK(ecode2)) {
22345 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22346 }
22347 arg2 = static_cast< int >(val2);
22348 if (obj2) {
22349 ecode3 = SWIG_AsVal_int(obj2, &val3);
22350 if (!SWIG_IsOK(ecode3)) {
22351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22352 }
22353 arg3 = static_cast< int >(val3);
22354 }
22355 if (obj3) {
22356 ecode4 = SWIG_AsVal_int(obj3, &val4);
22357 if (!SWIG_IsOK(ecode4)) {
22358 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22359 }
22360 arg4 = static_cast< int >(val4);
22361 }
22362 {
22363 if (!wxPyCheckForApp()) SWIG_fail;
22364 PyThreadState* __tstate = wxPyBeginAllowThreads();
22365 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22366 wxPyEndAllowThreads(__tstate);
22367 if (PyErr_Occurred()) SWIG_fail;
22368 }
22369 {
22370 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22371 }
22372 return resultobj;
22373 fail:
22374 return NULL;
22375 }
22376
22377
22378 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22379 PyObject *resultobj = 0;
22380 wxImageList *arg1 = (wxImageList *) 0 ;
22381 void *argp1 = 0 ;
22382 int res1 = 0 ;
22383 PyObject *swig_obj[1] ;
22384
22385 if (!args) SWIG_fail;
22386 swig_obj[0] = args;
22387 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22388 if (!SWIG_IsOK(res1)) {
22389 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22390 }
22391 arg1 = reinterpret_cast< wxImageList * >(argp1);
22392 {
22393 PyThreadState* __tstate = wxPyBeginAllowThreads();
22394 delete arg1;
22395
22396 wxPyEndAllowThreads(__tstate);
22397 if (PyErr_Occurred()) SWIG_fail;
22398 }
22399 resultobj = SWIG_Py_Void();
22400 return resultobj;
22401 fail:
22402 return NULL;
22403 }
22404
22405
22406 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22407 PyObject *resultobj = 0;
22408 wxImageList *arg1 = (wxImageList *) 0 ;
22409 wxBitmap *arg2 = 0 ;
22410 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22411 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22412 int result;
22413 void *argp1 = 0 ;
22414 int res1 = 0 ;
22415 void *argp2 = 0 ;
22416 int res2 = 0 ;
22417 void *argp3 = 0 ;
22418 int res3 = 0 ;
22419 PyObject * obj0 = 0 ;
22420 PyObject * obj1 = 0 ;
22421 PyObject * obj2 = 0 ;
22422 char * kwnames[] = {
22423 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22424 };
22425
22426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22428 if (!SWIG_IsOK(res1)) {
22429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22430 }
22431 arg1 = reinterpret_cast< wxImageList * >(argp1);
22432 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22433 if (!SWIG_IsOK(res2)) {
22434 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22435 }
22436 if (!argp2) {
22437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22438 }
22439 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22440 if (obj2) {
22441 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22442 if (!SWIG_IsOK(res3)) {
22443 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22444 }
22445 if (!argp3) {
22446 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22447 }
22448 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22449 }
22450 {
22451 PyThreadState* __tstate = wxPyBeginAllowThreads();
22452 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22453 wxPyEndAllowThreads(__tstate);
22454 if (PyErr_Occurred()) SWIG_fail;
22455 }
22456 resultobj = SWIG_From_int(static_cast< int >(result));
22457 return resultobj;
22458 fail:
22459 return NULL;
22460 }
22461
22462
22463 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22464 PyObject *resultobj = 0;
22465 wxImageList *arg1 = (wxImageList *) 0 ;
22466 wxBitmap *arg2 = 0 ;
22467 wxColour *arg3 = 0 ;
22468 int result;
22469 void *argp1 = 0 ;
22470 int res1 = 0 ;
22471 void *argp2 = 0 ;
22472 int res2 = 0 ;
22473 wxColour temp3 ;
22474 PyObject * obj0 = 0 ;
22475 PyObject * obj1 = 0 ;
22476 PyObject * obj2 = 0 ;
22477 char * kwnames[] = {
22478 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22479 };
22480
22481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22483 if (!SWIG_IsOK(res1)) {
22484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22485 }
22486 arg1 = reinterpret_cast< wxImageList * >(argp1);
22487 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22488 if (!SWIG_IsOK(res2)) {
22489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22490 }
22491 if (!argp2) {
22492 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22493 }
22494 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22495 {
22496 arg3 = &temp3;
22497 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22498 }
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_From_int(static_cast< int >(result));
22506 return resultobj;
22507 fail:
22508 return NULL;
22509 }
22510
22511
22512 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22513 PyObject *resultobj = 0;
22514 wxImageList *arg1 = (wxImageList *) 0 ;
22515 wxIcon *arg2 = 0 ;
22516 int result;
22517 void *argp1 = 0 ;
22518 int res1 = 0 ;
22519 void *argp2 = 0 ;
22520 int res2 = 0 ;
22521 PyObject * obj0 = 0 ;
22522 PyObject * obj1 = 0 ;
22523 char * kwnames[] = {
22524 (char *) "self",(char *) "icon", NULL
22525 };
22526
22527 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22528 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22529 if (!SWIG_IsOK(res1)) {
22530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22531 }
22532 arg1 = reinterpret_cast< wxImageList * >(argp1);
22533 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22534 if (!SWIG_IsOK(res2)) {
22535 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22536 }
22537 if (!argp2) {
22538 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22539 }
22540 arg2 = reinterpret_cast< wxIcon * >(argp2);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_From_int(static_cast< int >(result));
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj = 0;
22556 wxImageList *arg1 = (wxImageList *) 0 ;
22557 int arg2 ;
22558 SwigValueWrapper<wxBitmap > result;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 int val2 ;
22562 int ecode2 = 0 ;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 char * kwnames[] = {
22566 (char *) "self",(char *) "index", NULL
22567 };
22568
22569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22571 if (!SWIG_IsOK(res1)) {
22572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22573 }
22574 arg1 = reinterpret_cast< wxImageList * >(argp1);
22575 ecode2 = SWIG_AsVal_int(obj1, &val2);
22576 if (!SWIG_IsOK(ecode2)) {
22577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22578 }
22579 arg2 = static_cast< int >(val2);
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22587 return resultobj;
22588 fail:
22589 return NULL;
22590 }
22591
22592
22593 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22594 PyObject *resultobj = 0;
22595 wxImageList *arg1 = (wxImageList *) 0 ;
22596 int arg2 ;
22597 wxIcon result;
22598 void *argp1 = 0 ;
22599 int res1 = 0 ;
22600 int val2 ;
22601 int ecode2 = 0 ;
22602 PyObject * obj0 = 0 ;
22603 PyObject * obj1 = 0 ;
22604 char * kwnames[] = {
22605 (char *) "self",(char *) "index", NULL
22606 };
22607
22608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22610 if (!SWIG_IsOK(res1)) {
22611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22612 }
22613 arg1 = reinterpret_cast< wxImageList * >(argp1);
22614 ecode2 = SWIG_AsVal_int(obj1, &val2);
22615 if (!SWIG_IsOK(ecode2)) {
22616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22617 }
22618 arg2 = static_cast< int >(val2);
22619 {
22620 PyThreadState* __tstate = wxPyBeginAllowThreads();
22621 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22622 wxPyEndAllowThreads(__tstate);
22623 if (PyErr_Occurred()) SWIG_fail;
22624 }
22625 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22626 return resultobj;
22627 fail:
22628 return NULL;
22629 }
22630
22631
22632 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22633 PyObject *resultobj = 0;
22634 wxImageList *arg1 = (wxImageList *) 0 ;
22635 int arg2 ;
22636 wxBitmap *arg3 = 0 ;
22637 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22638 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22639 bool result;
22640 void *argp1 = 0 ;
22641 int res1 = 0 ;
22642 int val2 ;
22643 int ecode2 = 0 ;
22644 void *argp3 = 0 ;
22645 int res3 = 0 ;
22646 void *argp4 = 0 ;
22647 int res4 = 0 ;
22648 PyObject * obj0 = 0 ;
22649 PyObject * obj1 = 0 ;
22650 PyObject * obj2 = 0 ;
22651 PyObject * obj3 = 0 ;
22652 char * kwnames[] = {
22653 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22654 };
22655
22656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22658 if (!SWIG_IsOK(res1)) {
22659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22660 }
22661 arg1 = reinterpret_cast< wxImageList * >(argp1);
22662 ecode2 = SWIG_AsVal_int(obj1, &val2);
22663 if (!SWIG_IsOK(ecode2)) {
22664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22665 }
22666 arg2 = static_cast< int >(val2);
22667 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22668 if (!SWIG_IsOK(res3)) {
22669 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22670 }
22671 if (!argp3) {
22672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22673 }
22674 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22675 if (obj3) {
22676 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22677 if (!SWIG_IsOK(res4)) {
22678 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22679 }
22680 if (!argp4) {
22681 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22682 }
22683 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22684 }
22685 {
22686 PyThreadState* __tstate = wxPyBeginAllowThreads();
22687 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22688 wxPyEndAllowThreads(__tstate);
22689 if (PyErr_Occurred()) SWIG_fail;
22690 }
22691 {
22692 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22693 }
22694 return resultobj;
22695 fail:
22696 return NULL;
22697 }
22698
22699
22700 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22701 PyObject *resultobj = 0;
22702 wxImageList *arg1 = (wxImageList *) 0 ;
22703 int arg2 ;
22704 wxDC *arg3 = 0 ;
22705 int arg4 ;
22706 int arg5 ;
22707 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22708 bool arg7 = (bool) (bool)false ;
22709 bool result;
22710 void *argp1 = 0 ;
22711 int res1 = 0 ;
22712 int val2 ;
22713 int ecode2 = 0 ;
22714 void *argp3 = 0 ;
22715 int res3 = 0 ;
22716 int val4 ;
22717 int ecode4 = 0 ;
22718 int val5 ;
22719 int ecode5 = 0 ;
22720 int val6 ;
22721 int ecode6 = 0 ;
22722 bool val7 ;
22723 int ecode7 = 0 ;
22724 PyObject * obj0 = 0 ;
22725 PyObject * obj1 = 0 ;
22726 PyObject * obj2 = 0 ;
22727 PyObject * obj3 = 0 ;
22728 PyObject * obj4 = 0 ;
22729 PyObject * obj5 = 0 ;
22730 PyObject * obj6 = 0 ;
22731 char * kwnames[] = {
22732 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22733 };
22734
22735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22737 if (!SWIG_IsOK(res1)) {
22738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22739 }
22740 arg1 = reinterpret_cast< wxImageList * >(argp1);
22741 ecode2 = SWIG_AsVal_int(obj1, &val2);
22742 if (!SWIG_IsOK(ecode2)) {
22743 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22744 }
22745 arg2 = static_cast< int >(val2);
22746 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22747 if (!SWIG_IsOK(res3)) {
22748 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22749 }
22750 if (!argp3) {
22751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22752 }
22753 arg3 = reinterpret_cast< wxDC * >(argp3);
22754 ecode4 = SWIG_AsVal_int(obj3, &val4);
22755 if (!SWIG_IsOK(ecode4)) {
22756 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22757 }
22758 arg4 = static_cast< int >(val4);
22759 ecode5 = SWIG_AsVal_int(obj4, &val5);
22760 if (!SWIG_IsOK(ecode5)) {
22761 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22762 }
22763 arg5 = static_cast< int >(val5);
22764 if (obj5) {
22765 ecode6 = SWIG_AsVal_int(obj5, &val6);
22766 if (!SWIG_IsOK(ecode6)) {
22767 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22768 }
22769 arg6 = static_cast< int >(val6);
22770 }
22771 if (obj6) {
22772 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22773 if (!SWIG_IsOK(ecode7)) {
22774 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22775 }
22776 arg7 = static_cast< bool >(val7);
22777 }
22778 {
22779 PyThreadState* __tstate = wxPyBeginAllowThreads();
22780 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22781 wxPyEndAllowThreads(__tstate);
22782 if (PyErr_Occurred()) SWIG_fail;
22783 }
22784 {
22785 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22786 }
22787 return resultobj;
22788 fail:
22789 return NULL;
22790 }
22791
22792
22793 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22794 PyObject *resultobj = 0;
22795 wxImageList *arg1 = (wxImageList *) 0 ;
22796 int result;
22797 void *argp1 = 0 ;
22798 int res1 = 0 ;
22799 PyObject *swig_obj[1] ;
22800
22801 if (!args) SWIG_fail;
22802 swig_obj[0] = args;
22803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22804 if (!SWIG_IsOK(res1)) {
22805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22806 }
22807 arg1 = reinterpret_cast< wxImageList * >(argp1);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 result = (int)(arg1)->GetImageCount();
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 resultobj = SWIG_From_int(static_cast< int >(result));
22815 return resultobj;
22816 fail:
22817 return NULL;
22818 }
22819
22820
22821 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22822 PyObject *resultobj = 0;
22823 wxImageList *arg1 = (wxImageList *) 0 ;
22824 int arg2 ;
22825 bool result;
22826 void *argp1 = 0 ;
22827 int res1 = 0 ;
22828 int val2 ;
22829 int ecode2 = 0 ;
22830 PyObject * obj0 = 0 ;
22831 PyObject * obj1 = 0 ;
22832 char * kwnames[] = {
22833 (char *) "self",(char *) "index", NULL
22834 };
22835
22836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22838 if (!SWIG_IsOK(res1)) {
22839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22840 }
22841 arg1 = reinterpret_cast< wxImageList * >(argp1);
22842 ecode2 = SWIG_AsVal_int(obj1, &val2);
22843 if (!SWIG_IsOK(ecode2)) {
22844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22845 }
22846 arg2 = static_cast< int >(val2);
22847 {
22848 PyThreadState* __tstate = wxPyBeginAllowThreads();
22849 result = (bool)(arg1)->Remove(arg2);
22850 wxPyEndAllowThreads(__tstate);
22851 if (PyErr_Occurred()) SWIG_fail;
22852 }
22853 {
22854 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22855 }
22856 return resultobj;
22857 fail:
22858 return NULL;
22859 }
22860
22861
22862 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22863 PyObject *resultobj = 0;
22864 wxImageList *arg1 = (wxImageList *) 0 ;
22865 bool result;
22866 void *argp1 = 0 ;
22867 int res1 = 0 ;
22868 PyObject *swig_obj[1] ;
22869
22870 if (!args) SWIG_fail;
22871 swig_obj[0] = args;
22872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22873 if (!SWIG_IsOK(res1)) {
22874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22875 }
22876 arg1 = reinterpret_cast< wxImageList * >(argp1);
22877 {
22878 PyThreadState* __tstate = wxPyBeginAllowThreads();
22879 result = (bool)(arg1)->RemoveAll();
22880 wxPyEndAllowThreads(__tstate);
22881 if (PyErr_Occurred()) SWIG_fail;
22882 }
22883 {
22884 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22885 }
22886 return resultobj;
22887 fail:
22888 return NULL;
22889 }
22890
22891
22892 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22893 PyObject *resultobj = 0;
22894 wxImageList *arg1 = (wxImageList *) 0 ;
22895 int arg2 ;
22896 int *arg3 = 0 ;
22897 int *arg4 = 0 ;
22898 void *argp1 = 0 ;
22899 int res1 = 0 ;
22900 int val2 ;
22901 int ecode2 = 0 ;
22902 int temp3 ;
22903 int res3 = SWIG_TMPOBJ ;
22904 int temp4 ;
22905 int res4 = SWIG_TMPOBJ ;
22906 PyObject * obj0 = 0 ;
22907 PyObject * obj1 = 0 ;
22908 char * kwnames[] = {
22909 (char *) "self",(char *) "index", NULL
22910 };
22911
22912 arg3 = &temp3;
22913 arg4 = &temp4;
22914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22916 if (!SWIG_IsOK(res1)) {
22917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22918 }
22919 arg1 = reinterpret_cast< wxImageList * >(argp1);
22920 ecode2 = SWIG_AsVal_int(obj1, &val2);
22921 if (!SWIG_IsOK(ecode2)) {
22922 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22923 }
22924 arg2 = static_cast< int >(val2);
22925 {
22926 PyThreadState* __tstate = wxPyBeginAllowThreads();
22927 (arg1)->GetSize(arg2,*arg3,*arg4);
22928 wxPyEndAllowThreads(__tstate);
22929 if (PyErr_Occurred()) SWIG_fail;
22930 }
22931 resultobj = SWIG_Py_Void();
22932 if (SWIG_IsTmpObj(res3)) {
22933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22934 } else {
22935 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22937 }
22938 if (SWIG_IsTmpObj(res4)) {
22939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22940 } else {
22941 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22943 }
22944 return resultobj;
22945 fail:
22946 return NULL;
22947 }
22948
22949
22950 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22951 PyObject *obj;
22952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22953 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22954 return SWIG_Py_Void();
22955 }
22956
22957 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22958 return SWIG_Python_InitShadowInstance(args);
22959 }
22960
22961 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22962 PyObject *resultobj = 0;
22963 wxStockGDI *result = 0 ;
22964
22965 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22966 {
22967 PyThreadState* __tstate = wxPyBeginAllowThreads();
22968 result = (wxStockGDI *)new wxStockGDI();
22969 wxPyEndAllowThreads(__tstate);
22970 if (PyErr_Occurred()) SWIG_fail;
22971 }
22972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22973 return resultobj;
22974 fail:
22975 return NULL;
22976 }
22977
22978
22979 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22980 PyObject *resultobj = 0;
22981 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22982 void *argp1 = 0 ;
22983 int res1 = 0 ;
22984 PyObject *swig_obj[1] ;
22985
22986 if (!args) SWIG_fail;
22987 swig_obj[0] = args;
22988 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22989 if (!SWIG_IsOK(res1)) {
22990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22991 }
22992 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22993 {
22994 PyThreadState* __tstate = wxPyBeginAllowThreads();
22995 delete arg1;
22996
22997 wxPyEndAllowThreads(__tstate);
22998 if (PyErr_Occurred()) SWIG_fail;
22999 }
23000 resultobj = SWIG_Py_Void();
23001 return resultobj;
23002 fail:
23003 return NULL;
23004 }
23005
23006
23007 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23008 PyObject *resultobj = 0;
23009
23010 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
23011 {
23012 PyThreadState* __tstate = wxPyBeginAllowThreads();
23013 wxStockGDI::DeleteAll();
23014 wxPyEndAllowThreads(__tstate);
23015 if (PyErr_Occurred()) SWIG_fail;
23016 }
23017 resultobj = SWIG_Py_Void();
23018 return resultobj;
23019 fail:
23020 return NULL;
23021 }
23022
23023
23024 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23025 PyObject *resultobj = 0;
23026 wxStockGDI *result = 0 ;
23027
23028 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
23029 {
23030 PyThreadState* __tstate = wxPyBeginAllowThreads();
23031 {
23032 wxStockGDI &_result_ref = wxStockGDI::instance();
23033 result = (wxStockGDI *) &_result_ref;
23034 }
23035 wxPyEndAllowThreads(__tstate);
23036 if (PyErr_Occurred()) SWIG_fail;
23037 }
23038 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23039 return resultobj;
23040 fail:
23041 return NULL;
23042 }
23043
23044
23045 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23046 PyObject *resultobj = 0;
23047 wxStockGDI::Item arg1 ;
23048 wxBrush *result = 0 ;
23049 int val1 ;
23050 int ecode1 = 0 ;
23051 PyObject * obj0 = 0 ;
23052 char * kwnames[] = {
23053 (char *) "item", NULL
23054 };
23055
23056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23057 ecode1 = SWIG_AsVal_int(obj0, &val1);
23058 if (!SWIG_IsOK(ecode1)) {
23059 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23060 }
23061 arg1 = static_cast< wxStockGDI::Item >(val1);
23062 {
23063 PyThreadState* __tstate = wxPyBeginAllowThreads();
23064 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23065 wxPyEndAllowThreads(__tstate);
23066 if (PyErr_Occurred()) SWIG_fail;
23067 }
23068 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23069 return resultobj;
23070 fail:
23071 return NULL;
23072 }
23073
23074
23075 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23076 PyObject *resultobj = 0;
23077 wxStockGDI::Item arg1 ;
23078 wxColour *result = 0 ;
23079 int val1 ;
23080 int ecode1 = 0 ;
23081 PyObject * obj0 = 0 ;
23082 char * kwnames[] = {
23083 (char *) "item", NULL
23084 };
23085
23086 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23087 ecode1 = SWIG_AsVal_int(obj0, &val1);
23088 if (!SWIG_IsOK(ecode1)) {
23089 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23090 }
23091 arg1 = static_cast< wxStockGDI::Item >(val1);
23092 {
23093 PyThreadState* __tstate = wxPyBeginAllowThreads();
23094 result = (wxColour *)wxStockGDI::GetColour(arg1);
23095 wxPyEndAllowThreads(__tstate);
23096 if (PyErr_Occurred()) SWIG_fail;
23097 }
23098 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23099 return resultobj;
23100 fail:
23101 return NULL;
23102 }
23103
23104
23105 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23106 PyObject *resultobj = 0;
23107 wxStockGDI::Item arg1 ;
23108 wxCursor *result = 0 ;
23109 int val1 ;
23110 int ecode1 = 0 ;
23111 PyObject * obj0 = 0 ;
23112 char * kwnames[] = {
23113 (char *) "item", NULL
23114 };
23115
23116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23117 ecode1 = SWIG_AsVal_int(obj0, &val1);
23118 if (!SWIG_IsOK(ecode1)) {
23119 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23120 }
23121 arg1 = static_cast< wxStockGDI::Item >(val1);
23122 {
23123 PyThreadState* __tstate = wxPyBeginAllowThreads();
23124 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23125 wxPyEndAllowThreads(__tstate);
23126 if (PyErr_Occurred()) SWIG_fail;
23127 }
23128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23129 return resultobj;
23130 fail:
23131 return NULL;
23132 }
23133
23134
23135 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23136 PyObject *resultobj = 0;
23137 wxStockGDI::Item arg1 ;
23138 wxPen *result = 0 ;
23139 int val1 ;
23140 int ecode1 = 0 ;
23141 PyObject * obj0 = 0 ;
23142 char * kwnames[] = {
23143 (char *) "item", NULL
23144 };
23145
23146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23147 ecode1 = SWIG_AsVal_int(obj0, &val1);
23148 if (!SWIG_IsOK(ecode1)) {
23149 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23150 }
23151 arg1 = static_cast< wxStockGDI::Item >(val1);
23152 {
23153 PyThreadState* __tstate = wxPyBeginAllowThreads();
23154 result = (wxPen *)wxStockGDI::GetPen(arg1);
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23159 return resultobj;
23160 fail:
23161 return NULL;
23162 }
23163
23164
23165 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23166 PyObject *resultobj = 0;
23167 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23168 wxStockGDI::Item arg2 ;
23169 wxFont *result = 0 ;
23170 void *argp1 = 0 ;
23171 int res1 = 0 ;
23172 int val2 ;
23173 int ecode2 = 0 ;
23174 PyObject * obj0 = 0 ;
23175 PyObject * obj1 = 0 ;
23176 char * kwnames[] = {
23177 (char *) "self",(char *) "item", NULL
23178 };
23179
23180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23182 if (!SWIG_IsOK(res1)) {
23183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23184 }
23185 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23186 ecode2 = SWIG_AsVal_int(obj1, &val2);
23187 if (!SWIG_IsOK(ecode2)) {
23188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23189 }
23190 arg2 = static_cast< wxStockGDI::Item >(val2);
23191 {
23192 PyThreadState* __tstate = wxPyBeginAllowThreads();
23193 result = (wxFont *)(arg1)->GetFont(arg2);
23194 wxPyEndAllowThreads(__tstate);
23195 if (PyErr_Occurred()) SWIG_fail;
23196 }
23197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23198 return resultobj;
23199 fail:
23200 return NULL;
23201 }
23202
23203
23204 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23205 PyObject *obj;
23206 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23207 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23208 return SWIG_Py_Void();
23209 }
23210
23211 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23212 return SWIG_Python_InitShadowInstance(args);
23213 }
23214
23215 SWIGINTERN int NullBitmap_set(PyObject *) {
23216 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23217 return 1;
23218 }
23219
23220
23221 SWIGINTERN PyObject *NullBitmap_get(void) {
23222 PyObject *pyobj = 0;
23223
23224 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23225 return pyobj;
23226 }
23227
23228
23229 SWIGINTERN int NullIcon_set(PyObject *) {
23230 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23231 return 1;
23232 }
23233
23234
23235 SWIGINTERN PyObject *NullIcon_get(void) {
23236 PyObject *pyobj = 0;
23237
23238 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23239 return pyobj;
23240 }
23241
23242
23243 SWIGINTERN int NullCursor_set(PyObject *) {
23244 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23245 return 1;
23246 }
23247
23248
23249 SWIGINTERN PyObject *NullCursor_get(void) {
23250 PyObject *pyobj = 0;
23251
23252 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23253 return pyobj;
23254 }
23255
23256
23257 SWIGINTERN int NullPen_set(PyObject *) {
23258 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23259 return 1;
23260 }
23261
23262
23263 SWIGINTERN PyObject *NullPen_get(void) {
23264 PyObject *pyobj = 0;
23265
23266 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23267 return pyobj;
23268 }
23269
23270
23271 SWIGINTERN int NullBrush_set(PyObject *) {
23272 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23273 return 1;
23274 }
23275
23276
23277 SWIGINTERN PyObject *NullBrush_get(void) {
23278 PyObject *pyobj = 0;
23279
23280 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23281 return pyobj;
23282 }
23283
23284
23285 SWIGINTERN int NullPalette_set(PyObject *) {
23286 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23287 return 1;
23288 }
23289
23290
23291 SWIGINTERN PyObject *NullPalette_get(void) {
23292 PyObject *pyobj = 0;
23293
23294 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23295 return pyobj;
23296 }
23297
23298
23299 SWIGINTERN int NullFont_set(PyObject *) {
23300 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23301 return 1;
23302 }
23303
23304
23305 SWIGINTERN PyObject *NullFont_get(void) {
23306 PyObject *pyobj = 0;
23307
23308 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23309 return pyobj;
23310 }
23311
23312
23313 SWIGINTERN int NullColour_set(PyObject *) {
23314 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23315 return 1;
23316 }
23317
23318
23319 SWIGINTERN PyObject *NullColour_get(void) {
23320 PyObject *pyobj = 0;
23321
23322 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23323 return pyobj;
23324 }
23325
23326
23327 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23328 PyObject *resultobj = 0;
23329 wxGDIObjListBase *result = 0 ;
23330
23331 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23332 {
23333 PyThreadState* __tstate = wxPyBeginAllowThreads();
23334 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23335 wxPyEndAllowThreads(__tstate);
23336 if (PyErr_Occurred()) SWIG_fail;
23337 }
23338 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23339 return resultobj;
23340 fail:
23341 return NULL;
23342 }
23343
23344
23345 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23346 PyObject *resultobj = 0;
23347 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23348 void *argp1 = 0 ;
23349 int res1 = 0 ;
23350 PyObject *swig_obj[1] ;
23351
23352 if (!args) SWIG_fail;
23353 swig_obj[0] = args;
23354 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23355 if (!SWIG_IsOK(res1)) {
23356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23357 }
23358 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23359 {
23360 PyThreadState* __tstate = wxPyBeginAllowThreads();
23361 delete arg1;
23362
23363 wxPyEndAllowThreads(__tstate);
23364 if (PyErr_Occurred()) SWIG_fail;
23365 }
23366 resultobj = SWIG_Py_Void();
23367 return resultobj;
23368 fail:
23369 return NULL;
23370 }
23371
23372
23373 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23374 PyObject *obj;
23375 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23376 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23377 return SWIG_Py_Void();
23378 }
23379
23380 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23381 return SWIG_Python_InitShadowInstance(args);
23382 }
23383
23384 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23385 PyObject *resultobj = 0;
23386 wxPenList *arg1 = (wxPenList *) 0 ;
23387 wxColour *arg2 = 0 ;
23388 int arg3 ;
23389 int arg4 ;
23390 wxPen *result = 0 ;
23391 void *argp1 = 0 ;
23392 int res1 = 0 ;
23393 wxColour temp2 ;
23394 int val3 ;
23395 int ecode3 = 0 ;
23396 int val4 ;
23397 int ecode4 = 0 ;
23398 PyObject * obj0 = 0 ;
23399 PyObject * obj1 = 0 ;
23400 PyObject * obj2 = 0 ;
23401 PyObject * obj3 = 0 ;
23402 char * kwnames[] = {
23403 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23404 };
23405
23406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23408 if (!SWIG_IsOK(res1)) {
23409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23410 }
23411 arg1 = reinterpret_cast< wxPenList * >(argp1);
23412 {
23413 arg2 = &temp2;
23414 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23415 }
23416 ecode3 = SWIG_AsVal_int(obj2, &val3);
23417 if (!SWIG_IsOK(ecode3)) {
23418 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23419 }
23420 arg3 = static_cast< int >(val3);
23421 ecode4 = SWIG_AsVal_int(obj3, &val4);
23422 if (!SWIG_IsOK(ecode4)) {
23423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23424 }
23425 arg4 = static_cast< int >(val4);
23426 {
23427 PyThreadState* __tstate = wxPyBeginAllowThreads();
23428 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23429 wxPyEndAllowThreads(__tstate);
23430 if (PyErr_Occurred()) SWIG_fail;
23431 }
23432 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23433 return resultobj;
23434 fail:
23435 return NULL;
23436 }
23437
23438
23439 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23440 PyObject *resultobj = 0;
23441 wxPenList *arg1 = (wxPenList *) 0 ;
23442 wxPen *arg2 = (wxPen *) 0 ;
23443 void *argp1 = 0 ;
23444 int res1 = 0 ;
23445 void *argp2 = 0 ;
23446 int res2 = 0 ;
23447 PyObject * obj0 = 0 ;
23448 PyObject * obj1 = 0 ;
23449 char * kwnames[] = {
23450 (char *) "self",(char *) "pen", NULL
23451 };
23452
23453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23455 if (!SWIG_IsOK(res1)) {
23456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23457 }
23458 arg1 = reinterpret_cast< wxPenList * >(argp1);
23459 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23460 if (!SWIG_IsOK(res2)) {
23461 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23462 }
23463 arg2 = reinterpret_cast< wxPen * >(argp2);
23464 {
23465 PyThreadState* __tstate = wxPyBeginAllowThreads();
23466 (arg1)->AddPen(arg2);
23467 wxPyEndAllowThreads(__tstate);
23468 if (PyErr_Occurred()) SWIG_fail;
23469 }
23470 resultobj = SWIG_Py_Void();
23471 return resultobj;
23472 fail:
23473 return NULL;
23474 }
23475
23476
23477 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23478 PyObject *resultobj = 0;
23479 wxPenList *arg1 = (wxPenList *) 0 ;
23480 wxPen *arg2 = (wxPen *) 0 ;
23481 void *argp1 = 0 ;
23482 int res1 = 0 ;
23483 void *argp2 = 0 ;
23484 int res2 = 0 ;
23485 PyObject * obj0 = 0 ;
23486 PyObject * obj1 = 0 ;
23487 char * kwnames[] = {
23488 (char *) "self",(char *) "pen", NULL
23489 };
23490
23491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23493 if (!SWIG_IsOK(res1)) {
23494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23495 }
23496 arg1 = reinterpret_cast< wxPenList * >(argp1);
23497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23498 if (!SWIG_IsOK(res2)) {
23499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23500 }
23501 arg2 = reinterpret_cast< wxPen * >(argp2);
23502 {
23503 PyThreadState* __tstate = wxPyBeginAllowThreads();
23504 (arg1)->RemovePen(arg2);
23505 wxPyEndAllowThreads(__tstate);
23506 if (PyErr_Occurred()) SWIG_fail;
23507 }
23508 resultobj = SWIG_Py_Void();
23509 return resultobj;
23510 fail:
23511 return NULL;
23512 }
23513
23514
23515 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23516 PyObject *obj;
23517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23518 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23519 return SWIG_Py_Void();
23520 }
23521
23522 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23523 PyObject *resultobj = 0;
23524 wxBrushList *arg1 = (wxBrushList *) 0 ;
23525 wxColour *arg2 = 0 ;
23526 int arg3 = (int) wxSOLID ;
23527 wxBrush *result = 0 ;
23528 void *argp1 = 0 ;
23529 int res1 = 0 ;
23530 wxColour temp2 ;
23531 int val3 ;
23532 int ecode3 = 0 ;
23533 PyObject * obj0 = 0 ;
23534 PyObject * obj1 = 0 ;
23535 PyObject * obj2 = 0 ;
23536 char * kwnames[] = {
23537 (char *) "self",(char *) "colour",(char *) "style", NULL
23538 };
23539
23540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23542 if (!SWIG_IsOK(res1)) {
23543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23544 }
23545 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23546 {
23547 arg2 = &temp2;
23548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23549 }
23550 if (obj2) {
23551 ecode3 = SWIG_AsVal_int(obj2, &val3);
23552 if (!SWIG_IsOK(ecode3)) {
23553 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23554 }
23555 arg3 = static_cast< int >(val3);
23556 }
23557 {
23558 PyThreadState* __tstate = wxPyBeginAllowThreads();
23559 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23560 wxPyEndAllowThreads(__tstate);
23561 if (PyErr_Occurred()) SWIG_fail;
23562 }
23563 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23564 return resultobj;
23565 fail:
23566 return NULL;
23567 }
23568
23569
23570 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23571 PyObject *resultobj = 0;
23572 wxBrushList *arg1 = (wxBrushList *) 0 ;
23573 wxBrush *arg2 = (wxBrush *) 0 ;
23574 void *argp1 = 0 ;
23575 int res1 = 0 ;
23576 void *argp2 = 0 ;
23577 int res2 = 0 ;
23578 PyObject * obj0 = 0 ;
23579 PyObject * obj1 = 0 ;
23580 char * kwnames[] = {
23581 (char *) "self",(char *) "brush", NULL
23582 };
23583
23584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23586 if (!SWIG_IsOK(res1)) {
23587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23588 }
23589 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23591 if (!SWIG_IsOK(res2)) {
23592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23593 }
23594 arg2 = reinterpret_cast< wxBrush * >(argp2);
23595 {
23596 PyThreadState* __tstate = wxPyBeginAllowThreads();
23597 (arg1)->AddBrush(arg2);
23598 wxPyEndAllowThreads(__tstate);
23599 if (PyErr_Occurred()) SWIG_fail;
23600 }
23601 resultobj = SWIG_Py_Void();
23602 return resultobj;
23603 fail:
23604 return NULL;
23605 }
23606
23607
23608 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23609 PyObject *resultobj = 0;
23610 wxBrushList *arg1 = (wxBrushList *) 0 ;
23611 wxBrush *arg2 = (wxBrush *) 0 ;
23612 void *argp1 = 0 ;
23613 int res1 = 0 ;
23614 void *argp2 = 0 ;
23615 int res2 = 0 ;
23616 PyObject * obj0 = 0 ;
23617 PyObject * obj1 = 0 ;
23618 char * kwnames[] = {
23619 (char *) "self",(char *) "brush", NULL
23620 };
23621
23622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23624 if (!SWIG_IsOK(res1)) {
23625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23626 }
23627 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23628 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23629 if (!SWIG_IsOK(res2)) {
23630 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23631 }
23632 arg2 = reinterpret_cast< wxBrush * >(argp2);
23633 {
23634 PyThreadState* __tstate = wxPyBeginAllowThreads();
23635 (arg1)->RemoveBrush(arg2);
23636 wxPyEndAllowThreads(__tstate);
23637 if (PyErr_Occurred()) SWIG_fail;
23638 }
23639 resultobj = SWIG_Py_Void();
23640 return resultobj;
23641 fail:
23642 return NULL;
23643 }
23644
23645
23646 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23647 PyObject *obj;
23648 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23649 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23650 return SWIG_Py_Void();
23651 }
23652
23653 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23654 PyObject *resultobj = 0;
23655 wxFontList *arg1 = (wxFontList *) 0 ;
23656 int arg2 ;
23657 int arg3 ;
23658 int arg4 ;
23659 int arg5 ;
23660 bool arg6 = (bool) false ;
23661 wxString const &arg7_defvalue = wxPyEmptyString ;
23662 wxString *arg7 = (wxString *) &arg7_defvalue ;
23663 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23664 wxFont *result = 0 ;
23665 void *argp1 = 0 ;
23666 int res1 = 0 ;
23667 int val2 ;
23668 int ecode2 = 0 ;
23669 int val3 ;
23670 int ecode3 = 0 ;
23671 int val4 ;
23672 int ecode4 = 0 ;
23673 int val5 ;
23674 int ecode5 = 0 ;
23675 bool val6 ;
23676 int ecode6 = 0 ;
23677 bool temp7 = false ;
23678 int val8 ;
23679 int ecode8 = 0 ;
23680 PyObject * obj0 = 0 ;
23681 PyObject * obj1 = 0 ;
23682 PyObject * obj2 = 0 ;
23683 PyObject * obj3 = 0 ;
23684 PyObject * obj4 = 0 ;
23685 PyObject * obj5 = 0 ;
23686 PyObject * obj6 = 0 ;
23687 PyObject * obj7 = 0 ;
23688 char * kwnames[] = {
23689 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23690 };
23691
23692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23694 if (!SWIG_IsOK(res1)) {
23695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23696 }
23697 arg1 = reinterpret_cast< wxFontList * >(argp1);
23698 ecode2 = SWIG_AsVal_int(obj1, &val2);
23699 if (!SWIG_IsOK(ecode2)) {
23700 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23701 }
23702 arg2 = static_cast< int >(val2);
23703 ecode3 = SWIG_AsVal_int(obj2, &val3);
23704 if (!SWIG_IsOK(ecode3)) {
23705 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23706 }
23707 arg3 = static_cast< int >(val3);
23708 ecode4 = SWIG_AsVal_int(obj3, &val4);
23709 if (!SWIG_IsOK(ecode4)) {
23710 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23711 }
23712 arg4 = static_cast< int >(val4);
23713 ecode5 = SWIG_AsVal_int(obj4, &val5);
23714 if (!SWIG_IsOK(ecode5)) {
23715 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23716 }
23717 arg5 = static_cast< int >(val5);
23718 if (obj5) {
23719 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23720 if (!SWIG_IsOK(ecode6)) {
23721 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23722 }
23723 arg6 = static_cast< bool >(val6);
23724 }
23725 if (obj6) {
23726 {
23727 arg7 = wxString_in_helper(obj6);
23728 if (arg7 == NULL) SWIG_fail;
23729 temp7 = true;
23730 }
23731 }
23732 if (obj7) {
23733 ecode8 = SWIG_AsVal_int(obj7, &val8);
23734 if (!SWIG_IsOK(ecode8)) {
23735 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23736 }
23737 arg8 = static_cast< wxFontEncoding >(val8);
23738 }
23739 {
23740 PyThreadState* __tstate = wxPyBeginAllowThreads();
23741 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23742 wxPyEndAllowThreads(__tstate);
23743 if (PyErr_Occurred()) SWIG_fail;
23744 }
23745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23746 {
23747 if (temp7)
23748 delete arg7;
23749 }
23750 return resultobj;
23751 fail:
23752 {
23753 if (temp7)
23754 delete arg7;
23755 }
23756 return NULL;
23757 }
23758
23759
23760 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23761 PyObject *resultobj = 0;
23762 wxFontList *arg1 = (wxFontList *) 0 ;
23763 wxFont *arg2 = (wxFont *) 0 ;
23764 void *argp1 = 0 ;
23765 int res1 = 0 ;
23766 void *argp2 = 0 ;
23767 int res2 = 0 ;
23768 PyObject * obj0 = 0 ;
23769 PyObject * obj1 = 0 ;
23770 char * kwnames[] = {
23771 (char *) "self",(char *) "font", NULL
23772 };
23773
23774 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23775 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23776 if (!SWIG_IsOK(res1)) {
23777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23778 }
23779 arg1 = reinterpret_cast< wxFontList * >(argp1);
23780 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23781 if (!SWIG_IsOK(res2)) {
23782 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23783 }
23784 arg2 = reinterpret_cast< wxFont * >(argp2);
23785 {
23786 PyThreadState* __tstate = wxPyBeginAllowThreads();
23787 (arg1)->AddFont(arg2);
23788 wxPyEndAllowThreads(__tstate);
23789 if (PyErr_Occurred()) SWIG_fail;
23790 }
23791 resultobj = SWIG_Py_Void();
23792 return resultobj;
23793 fail:
23794 return NULL;
23795 }
23796
23797
23798 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23799 PyObject *resultobj = 0;
23800 wxFontList *arg1 = (wxFontList *) 0 ;
23801 wxFont *arg2 = (wxFont *) 0 ;
23802 void *argp1 = 0 ;
23803 int res1 = 0 ;
23804 void *argp2 = 0 ;
23805 int res2 = 0 ;
23806 PyObject * obj0 = 0 ;
23807 PyObject * obj1 = 0 ;
23808 char * kwnames[] = {
23809 (char *) "self",(char *) "font", NULL
23810 };
23811
23812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23813 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23814 if (!SWIG_IsOK(res1)) {
23815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23816 }
23817 arg1 = reinterpret_cast< wxFontList * >(argp1);
23818 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23819 if (!SWIG_IsOK(res2)) {
23820 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23821 }
23822 arg2 = reinterpret_cast< wxFont * >(argp2);
23823 {
23824 PyThreadState* __tstate = wxPyBeginAllowThreads();
23825 (arg1)->RemoveFont(arg2);
23826 wxPyEndAllowThreads(__tstate);
23827 if (PyErr_Occurred()) SWIG_fail;
23828 }
23829 resultobj = SWIG_Py_Void();
23830 return resultobj;
23831 fail:
23832 return NULL;
23833 }
23834
23835
23836 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23837 PyObject *obj;
23838 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23839 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23840 return SWIG_Py_Void();
23841 }
23842
23843 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23844 PyObject *resultobj = 0;
23845 wxColourDatabase *result = 0 ;
23846
23847 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23848 {
23849 if (!wxPyCheckForApp()) SWIG_fail;
23850 PyThreadState* __tstate = wxPyBeginAllowThreads();
23851 result = (wxColourDatabase *)new wxColourDatabase();
23852 wxPyEndAllowThreads(__tstate);
23853 if (PyErr_Occurred()) SWIG_fail;
23854 }
23855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23856 return resultobj;
23857 fail:
23858 return NULL;
23859 }
23860
23861
23862 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23863 PyObject *resultobj = 0;
23864 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23865 void *argp1 = 0 ;
23866 int res1 = 0 ;
23867 PyObject *swig_obj[1] ;
23868
23869 if (!args) SWIG_fail;
23870 swig_obj[0] = args;
23871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23872 if (!SWIG_IsOK(res1)) {
23873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23874 }
23875 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 delete arg1;
23879
23880 wxPyEndAllowThreads(__tstate);
23881 if (PyErr_Occurred()) SWIG_fail;
23882 }
23883 resultobj = SWIG_Py_Void();
23884 return resultobj;
23885 fail:
23886 return NULL;
23887 }
23888
23889
23890 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23891 PyObject *resultobj = 0;
23892 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23893 wxString *arg2 = 0 ;
23894 wxColour result;
23895 void *argp1 = 0 ;
23896 int res1 = 0 ;
23897 bool temp2 = false ;
23898 PyObject * obj0 = 0 ;
23899 PyObject * obj1 = 0 ;
23900 char * kwnames[] = {
23901 (char *) "self",(char *) "name", NULL
23902 };
23903
23904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23906 if (!SWIG_IsOK(res1)) {
23907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23908 }
23909 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23910 {
23911 arg2 = wxString_in_helper(obj1);
23912 if (arg2 == NULL) SWIG_fail;
23913 temp2 = true;
23914 }
23915 {
23916 PyThreadState* __tstate = wxPyBeginAllowThreads();
23917 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23918 wxPyEndAllowThreads(__tstate);
23919 if (PyErr_Occurred()) SWIG_fail;
23920 }
23921 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23922 {
23923 if (temp2)
23924 delete arg2;
23925 }
23926 return resultobj;
23927 fail:
23928 {
23929 if (temp2)
23930 delete arg2;
23931 }
23932 return NULL;
23933 }
23934
23935
23936 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23937 PyObject *resultobj = 0;
23938 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23939 wxColour *arg2 = 0 ;
23940 wxString result;
23941 void *argp1 = 0 ;
23942 int res1 = 0 ;
23943 wxColour temp2 ;
23944 PyObject * obj0 = 0 ;
23945 PyObject * obj1 = 0 ;
23946 char * kwnames[] = {
23947 (char *) "self",(char *) "colour", NULL
23948 };
23949
23950 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23951 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23952 if (!SWIG_IsOK(res1)) {
23953 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23954 }
23955 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23956 {
23957 arg2 = &temp2;
23958 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23959 }
23960 {
23961 PyThreadState* __tstate = wxPyBeginAllowThreads();
23962 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23963 wxPyEndAllowThreads(__tstate);
23964 if (PyErr_Occurred()) SWIG_fail;
23965 }
23966 {
23967 #if wxUSE_UNICODE
23968 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23969 #else
23970 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23971 #endif
23972 }
23973 return resultobj;
23974 fail:
23975 return NULL;
23976 }
23977
23978
23979 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23980 PyObject *resultobj = 0;
23981 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23982 wxString *arg2 = 0 ;
23983 wxColour *arg3 = 0 ;
23984 void *argp1 = 0 ;
23985 int res1 = 0 ;
23986 bool temp2 = false ;
23987 wxColour temp3 ;
23988 PyObject * obj0 = 0 ;
23989 PyObject * obj1 = 0 ;
23990 PyObject * obj2 = 0 ;
23991 char * kwnames[] = {
23992 (char *) "self",(char *) "name",(char *) "colour", NULL
23993 };
23994
23995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23997 if (!SWIG_IsOK(res1)) {
23998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23999 }
24000 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24001 {
24002 arg2 = wxString_in_helper(obj1);
24003 if (arg2 == NULL) SWIG_fail;
24004 temp2 = true;
24005 }
24006 {
24007 arg3 = &temp3;
24008 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24009 }
24010 {
24011 PyThreadState* __tstate = wxPyBeginAllowThreads();
24012 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
24013 wxPyEndAllowThreads(__tstate);
24014 if (PyErr_Occurred()) SWIG_fail;
24015 }
24016 resultobj = SWIG_Py_Void();
24017 {
24018 if (temp2)
24019 delete arg2;
24020 }
24021 return resultobj;
24022 fail:
24023 {
24024 if (temp2)
24025 delete arg2;
24026 }
24027 return NULL;
24028 }
24029
24030
24031 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24032 PyObject *resultobj = 0;
24033 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
24034 wxString *arg2 = 0 ;
24035 int arg3 ;
24036 int arg4 ;
24037 int arg5 ;
24038 void *argp1 = 0 ;
24039 int res1 = 0 ;
24040 bool temp2 = false ;
24041 int val3 ;
24042 int ecode3 = 0 ;
24043 int val4 ;
24044 int ecode4 = 0 ;
24045 int val5 ;
24046 int ecode5 = 0 ;
24047 PyObject * obj0 = 0 ;
24048 PyObject * obj1 = 0 ;
24049 PyObject * obj2 = 0 ;
24050 PyObject * obj3 = 0 ;
24051 PyObject * obj4 = 0 ;
24052 char * kwnames[] = {
24053 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
24054 };
24055
24056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24058 if (!SWIG_IsOK(res1)) {
24059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24060 }
24061 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24062 {
24063 arg2 = wxString_in_helper(obj1);
24064 if (arg2 == NULL) SWIG_fail;
24065 temp2 = true;
24066 }
24067 ecode3 = SWIG_AsVal_int(obj2, &val3);
24068 if (!SWIG_IsOK(ecode3)) {
24069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
24070 }
24071 arg3 = static_cast< int >(val3);
24072 ecode4 = SWIG_AsVal_int(obj3, &val4);
24073 if (!SWIG_IsOK(ecode4)) {
24074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
24075 }
24076 arg4 = static_cast< int >(val4);
24077 ecode5 = SWIG_AsVal_int(obj4, &val5);
24078 if (!SWIG_IsOK(ecode5)) {
24079 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
24080 }
24081 arg5 = static_cast< int >(val5);
24082 {
24083 PyThreadState* __tstate = wxPyBeginAllowThreads();
24084 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
24085 wxPyEndAllowThreads(__tstate);
24086 if (PyErr_Occurred()) SWIG_fail;
24087 }
24088 resultobj = SWIG_Py_Void();
24089 {
24090 if (temp2)
24091 delete arg2;
24092 }
24093 return resultobj;
24094 fail:
24095 {
24096 if (temp2)
24097 delete arg2;
24098 }
24099 return NULL;
24100 }
24101
24102
24103 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24104 PyObject *obj;
24105 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24106 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24107 return SWIG_Py_Void();
24108 }
24109
24110 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24111 return SWIG_Python_InitShadowInstance(args);
24112 }
24113
24114 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24115 PyObject *resultobj = 0;
24116 wxFontList *result = 0 ;
24117
24118 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24119 {
24120 PyThreadState* __tstate = wxPyBeginAllowThreads();
24121 result = (wxFontList *)_wxPyInitTheFontList();
24122 wxPyEndAllowThreads(__tstate);
24123 if (PyErr_Occurred()) SWIG_fail;
24124 }
24125 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24126 return resultobj;
24127 fail:
24128 return NULL;
24129 }
24130
24131
24132 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24133 PyObject *resultobj = 0;
24134 wxPenList *result = 0 ;
24135
24136 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24137 {
24138 PyThreadState* __tstate = wxPyBeginAllowThreads();
24139 result = (wxPenList *)_wxPyInitThePenList();
24140 wxPyEndAllowThreads(__tstate);
24141 if (PyErr_Occurred()) SWIG_fail;
24142 }
24143 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24144 return resultobj;
24145 fail:
24146 return NULL;
24147 }
24148
24149
24150 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24151 PyObject *resultobj = 0;
24152 wxBrushList *result = 0 ;
24153
24154 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24155 {
24156 PyThreadState* __tstate = wxPyBeginAllowThreads();
24157 result = (wxBrushList *)_wxPyInitTheBrushList();
24158 wxPyEndAllowThreads(__tstate);
24159 if (PyErr_Occurred()) SWIG_fail;
24160 }
24161 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24162 return resultobj;
24163 fail:
24164 return NULL;
24165 }
24166
24167
24168 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24169 PyObject *resultobj = 0;
24170 wxColourDatabase *result = 0 ;
24171
24172 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24173 {
24174 PyThreadState* __tstate = wxPyBeginAllowThreads();
24175 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24176 wxPyEndAllowThreads(__tstate);
24177 if (PyErr_Occurred()) SWIG_fail;
24178 }
24179 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24180 return resultobj;
24181 fail:
24182 return NULL;
24183 }
24184
24185
24186 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24187 PyObject *resultobj = 0;
24188 wxEffects *result = 0 ;
24189
24190 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24191 {
24192 PyThreadState* __tstate = wxPyBeginAllowThreads();
24193 result = (wxEffects *)new wxEffects();
24194 wxPyEndAllowThreads(__tstate);
24195 if (PyErr_Occurred()) SWIG_fail;
24196 }
24197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24198 return resultobj;
24199 fail:
24200 return NULL;
24201 }
24202
24203
24204 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24205 PyObject *resultobj = 0;
24206 wxEffects *arg1 = (wxEffects *) 0 ;
24207 wxColour result;
24208 void *argp1 = 0 ;
24209 int res1 = 0 ;
24210 PyObject *swig_obj[1] ;
24211
24212 if (!args) SWIG_fail;
24213 swig_obj[0] = args;
24214 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24215 if (!SWIG_IsOK(res1)) {
24216 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24217 }
24218 arg1 = reinterpret_cast< wxEffects * >(argp1);
24219 {
24220 PyThreadState* __tstate = wxPyBeginAllowThreads();
24221 result = ((wxEffects const *)arg1)->GetHighlightColour();
24222 wxPyEndAllowThreads(__tstate);
24223 if (PyErr_Occurred()) SWIG_fail;
24224 }
24225 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24226 return resultobj;
24227 fail:
24228 return NULL;
24229 }
24230
24231
24232 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24233 PyObject *resultobj = 0;
24234 wxEffects *arg1 = (wxEffects *) 0 ;
24235 wxColour result;
24236 void *argp1 = 0 ;
24237 int res1 = 0 ;
24238 PyObject *swig_obj[1] ;
24239
24240 if (!args) SWIG_fail;
24241 swig_obj[0] = args;
24242 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24243 if (!SWIG_IsOK(res1)) {
24244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24245 }
24246 arg1 = reinterpret_cast< wxEffects * >(argp1);
24247 {
24248 PyThreadState* __tstate = wxPyBeginAllowThreads();
24249 result = ((wxEffects const *)arg1)->GetLightShadow();
24250 wxPyEndAllowThreads(__tstate);
24251 if (PyErr_Occurred()) SWIG_fail;
24252 }
24253 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24254 return resultobj;
24255 fail:
24256 return NULL;
24257 }
24258
24259
24260 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24261 PyObject *resultobj = 0;
24262 wxEffects *arg1 = (wxEffects *) 0 ;
24263 wxColour result;
24264 void *argp1 = 0 ;
24265 int res1 = 0 ;
24266 PyObject *swig_obj[1] ;
24267
24268 if (!args) SWIG_fail;
24269 swig_obj[0] = args;
24270 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24271 if (!SWIG_IsOK(res1)) {
24272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24273 }
24274 arg1 = reinterpret_cast< wxEffects * >(argp1);
24275 {
24276 PyThreadState* __tstate = wxPyBeginAllowThreads();
24277 result = ((wxEffects const *)arg1)->GetFaceColour();
24278 wxPyEndAllowThreads(__tstate);
24279 if (PyErr_Occurred()) SWIG_fail;
24280 }
24281 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24282 return resultobj;
24283 fail:
24284 return NULL;
24285 }
24286
24287
24288 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24289 PyObject *resultobj = 0;
24290 wxEffects *arg1 = (wxEffects *) 0 ;
24291 wxColour result;
24292 void *argp1 = 0 ;
24293 int res1 = 0 ;
24294 PyObject *swig_obj[1] ;
24295
24296 if (!args) SWIG_fail;
24297 swig_obj[0] = args;
24298 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24299 if (!SWIG_IsOK(res1)) {
24300 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24301 }
24302 arg1 = reinterpret_cast< wxEffects * >(argp1);
24303 {
24304 PyThreadState* __tstate = wxPyBeginAllowThreads();
24305 result = ((wxEffects const *)arg1)->GetMediumShadow();
24306 wxPyEndAllowThreads(__tstate);
24307 if (PyErr_Occurred()) SWIG_fail;
24308 }
24309 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24310 return resultobj;
24311 fail:
24312 return NULL;
24313 }
24314
24315
24316 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24317 PyObject *resultobj = 0;
24318 wxEffects *arg1 = (wxEffects *) 0 ;
24319 wxColour result;
24320 void *argp1 = 0 ;
24321 int res1 = 0 ;
24322 PyObject *swig_obj[1] ;
24323
24324 if (!args) SWIG_fail;
24325 swig_obj[0] = args;
24326 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24327 if (!SWIG_IsOK(res1)) {
24328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24329 }
24330 arg1 = reinterpret_cast< wxEffects * >(argp1);
24331 {
24332 PyThreadState* __tstate = wxPyBeginAllowThreads();
24333 result = ((wxEffects const *)arg1)->GetDarkShadow();
24334 wxPyEndAllowThreads(__tstate);
24335 if (PyErr_Occurred()) SWIG_fail;
24336 }
24337 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24338 return resultobj;
24339 fail:
24340 return NULL;
24341 }
24342
24343
24344 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24345 PyObject *resultobj = 0;
24346 wxEffects *arg1 = (wxEffects *) 0 ;
24347 wxColour *arg2 = 0 ;
24348 void *argp1 = 0 ;
24349 int res1 = 0 ;
24350 wxColour temp2 ;
24351 PyObject * obj0 = 0 ;
24352 PyObject * obj1 = 0 ;
24353 char * kwnames[] = {
24354 (char *) "self",(char *) "c", NULL
24355 };
24356
24357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24359 if (!SWIG_IsOK(res1)) {
24360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24361 }
24362 arg1 = reinterpret_cast< wxEffects * >(argp1);
24363 {
24364 arg2 = &temp2;
24365 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24366 }
24367 {
24368 PyThreadState* __tstate = wxPyBeginAllowThreads();
24369 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24370 wxPyEndAllowThreads(__tstate);
24371 if (PyErr_Occurred()) SWIG_fail;
24372 }
24373 resultobj = SWIG_Py_Void();
24374 return resultobj;
24375 fail:
24376 return NULL;
24377 }
24378
24379
24380 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24381 PyObject *resultobj = 0;
24382 wxEffects *arg1 = (wxEffects *) 0 ;
24383 wxColour *arg2 = 0 ;
24384 void *argp1 = 0 ;
24385 int res1 = 0 ;
24386 wxColour temp2 ;
24387 PyObject * obj0 = 0 ;
24388 PyObject * obj1 = 0 ;
24389 char * kwnames[] = {
24390 (char *) "self",(char *) "c", NULL
24391 };
24392
24393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24395 if (!SWIG_IsOK(res1)) {
24396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24397 }
24398 arg1 = reinterpret_cast< wxEffects * >(argp1);
24399 {
24400 arg2 = &temp2;
24401 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24402 }
24403 {
24404 PyThreadState* __tstate = wxPyBeginAllowThreads();
24405 (arg1)->SetLightShadow((wxColour const &)*arg2);
24406 wxPyEndAllowThreads(__tstate);
24407 if (PyErr_Occurred()) SWIG_fail;
24408 }
24409 resultobj = SWIG_Py_Void();
24410 return resultobj;
24411 fail:
24412 return NULL;
24413 }
24414
24415
24416 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24417 PyObject *resultobj = 0;
24418 wxEffects *arg1 = (wxEffects *) 0 ;
24419 wxColour *arg2 = 0 ;
24420 void *argp1 = 0 ;
24421 int res1 = 0 ;
24422 wxColour temp2 ;
24423 PyObject * obj0 = 0 ;
24424 PyObject * obj1 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "self",(char *) "c", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24433 }
24434 arg1 = reinterpret_cast< wxEffects * >(argp1);
24435 {
24436 arg2 = &temp2;
24437 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24438 }
24439 {
24440 PyThreadState* __tstate = wxPyBeginAllowThreads();
24441 (arg1)->SetFaceColour((wxColour const &)*arg2);
24442 wxPyEndAllowThreads(__tstate);
24443 if (PyErr_Occurred()) SWIG_fail;
24444 }
24445 resultobj = SWIG_Py_Void();
24446 return resultobj;
24447 fail:
24448 return NULL;
24449 }
24450
24451
24452 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24453 PyObject *resultobj = 0;
24454 wxEffects *arg1 = (wxEffects *) 0 ;
24455 wxColour *arg2 = 0 ;
24456 void *argp1 = 0 ;
24457 int res1 = 0 ;
24458 wxColour temp2 ;
24459 PyObject * obj0 = 0 ;
24460 PyObject * obj1 = 0 ;
24461 char * kwnames[] = {
24462 (char *) "self",(char *) "c", NULL
24463 };
24464
24465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24467 if (!SWIG_IsOK(res1)) {
24468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24469 }
24470 arg1 = reinterpret_cast< wxEffects * >(argp1);
24471 {
24472 arg2 = &temp2;
24473 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24474 }
24475 {
24476 PyThreadState* __tstate = wxPyBeginAllowThreads();
24477 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24478 wxPyEndAllowThreads(__tstate);
24479 if (PyErr_Occurred()) SWIG_fail;
24480 }
24481 resultobj = SWIG_Py_Void();
24482 return resultobj;
24483 fail:
24484 return NULL;
24485 }
24486
24487
24488 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24489 PyObject *resultobj = 0;
24490 wxEffects *arg1 = (wxEffects *) 0 ;
24491 wxColour *arg2 = 0 ;
24492 void *argp1 = 0 ;
24493 int res1 = 0 ;
24494 wxColour temp2 ;
24495 PyObject * obj0 = 0 ;
24496 PyObject * obj1 = 0 ;
24497 char * kwnames[] = {
24498 (char *) "self",(char *) "c", NULL
24499 };
24500
24501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24503 if (!SWIG_IsOK(res1)) {
24504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24505 }
24506 arg1 = reinterpret_cast< wxEffects * >(argp1);
24507 {
24508 arg2 = &temp2;
24509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24510 }
24511 {
24512 PyThreadState* __tstate = wxPyBeginAllowThreads();
24513 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24514 wxPyEndAllowThreads(__tstate);
24515 if (PyErr_Occurred()) SWIG_fail;
24516 }
24517 resultobj = SWIG_Py_Void();
24518 return resultobj;
24519 fail:
24520 return NULL;
24521 }
24522
24523
24524 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24525 PyObject *resultobj = 0;
24526 wxEffects *arg1 = (wxEffects *) 0 ;
24527 wxColour *arg2 = 0 ;
24528 wxColour *arg3 = 0 ;
24529 wxColour *arg4 = 0 ;
24530 wxColour *arg5 = 0 ;
24531 wxColour *arg6 = 0 ;
24532 void *argp1 = 0 ;
24533 int res1 = 0 ;
24534 wxColour temp2 ;
24535 wxColour temp3 ;
24536 wxColour temp4 ;
24537 wxColour temp5 ;
24538 wxColour temp6 ;
24539 PyObject * obj0 = 0 ;
24540 PyObject * obj1 = 0 ;
24541 PyObject * obj2 = 0 ;
24542 PyObject * obj3 = 0 ;
24543 PyObject * obj4 = 0 ;
24544 PyObject * obj5 = 0 ;
24545 char * kwnames[] = {
24546 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24547 };
24548
24549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24550 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24551 if (!SWIG_IsOK(res1)) {
24552 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24553 }
24554 arg1 = reinterpret_cast< wxEffects * >(argp1);
24555 {
24556 arg2 = &temp2;
24557 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24558 }
24559 {
24560 arg3 = &temp3;
24561 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24562 }
24563 {
24564 arg4 = &temp4;
24565 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24566 }
24567 {
24568 arg5 = &temp5;
24569 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24570 }
24571 {
24572 arg6 = &temp6;
24573 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24574 }
24575 {
24576 PyThreadState* __tstate = wxPyBeginAllowThreads();
24577 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24578 wxPyEndAllowThreads(__tstate);
24579 if (PyErr_Occurred()) SWIG_fail;
24580 }
24581 resultobj = SWIG_Py_Void();
24582 return resultobj;
24583 fail:
24584 return NULL;
24585 }
24586
24587
24588 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24589 PyObject *resultobj = 0;
24590 wxEffects *arg1 = (wxEffects *) 0 ;
24591 wxDC *arg2 = 0 ;
24592 wxRect *arg3 = 0 ;
24593 int arg4 = (int) 1 ;
24594 void *argp1 = 0 ;
24595 int res1 = 0 ;
24596 void *argp2 = 0 ;
24597 int res2 = 0 ;
24598 wxRect temp3 ;
24599 int val4 ;
24600 int ecode4 = 0 ;
24601 PyObject * obj0 = 0 ;
24602 PyObject * obj1 = 0 ;
24603 PyObject * obj2 = 0 ;
24604 PyObject * obj3 = 0 ;
24605 char * kwnames[] = {
24606 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24607 };
24608
24609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24611 if (!SWIG_IsOK(res1)) {
24612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24613 }
24614 arg1 = reinterpret_cast< wxEffects * >(argp1);
24615 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24616 if (!SWIG_IsOK(res2)) {
24617 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24618 }
24619 if (!argp2) {
24620 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24621 }
24622 arg2 = reinterpret_cast< wxDC * >(argp2);
24623 {
24624 arg3 = &temp3;
24625 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24626 }
24627 if (obj3) {
24628 ecode4 = SWIG_AsVal_int(obj3, &val4);
24629 if (!SWIG_IsOK(ecode4)) {
24630 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24631 }
24632 arg4 = static_cast< int >(val4);
24633 }
24634 {
24635 PyThreadState* __tstate = wxPyBeginAllowThreads();
24636 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24637 wxPyEndAllowThreads(__tstate);
24638 if (PyErr_Occurred()) SWIG_fail;
24639 }
24640 resultobj = SWIG_Py_Void();
24641 return resultobj;
24642 fail:
24643 return NULL;
24644 }
24645
24646
24647 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24648 PyObject *resultobj = 0;
24649 wxEffects *arg1 = (wxEffects *) 0 ;
24650 wxRect *arg2 = 0 ;
24651 wxDC *arg3 = 0 ;
24652 wxBitmap *arg4 = 0 ;
24653 bool result;
24654 void *argp1 = 0 ;
24655 int res1 = 0 ;
24656 wxRect temp2 ;
24657 void *argp3 = 0 ;
24658 int res3 = 0 ;
24659 void *argp4 = 0 ;
24660 int res4 = 0 ;
24661 PyObject * obj0 = 0 ;
24662 PyObject * obj1 = 0 ;
24663 PyObject * obj2 = 0 ;
24664 PyObject * obj3 = 0 ;
24665 char * kwnames[] = {
24666 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24667 };
24668
24669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24671 if (!SWIG_IsOK(res1)) {
24672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24673 }
24674 arg1 = reinterpret_cast< wxEffects * >(argp1);
24675 {
24676 arg2 = &temp2;
24677 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24678 }
24679 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24680 if (!SWIG_IsOK(res3)) {
24681 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24682 }
24683 if (!argp3) {
24684 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24685 }
24686 arg3 = reinterpret_cast< wxDC * >(argp3);
24687 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24688 if (!SWIG_IsOK(res4)) {
24689 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24690 }
24691 if (!argp4) {
24692 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24693 }
24694 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24695 {
24696 PyThreadState* __tstate = wxPyBeginAllowThreads();
24697 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24698 wxPyEndAllowThreads(__tstate);
24699 if (PyErr_Occurred()) SWIG_fail;
24700 }
24701 {
24702 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24703 }
24704 return resultobj;
24705 fail:
24706 return NULL;
24707 }
24708
24709
24710 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24711 PyObject *obj;
24712 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24713 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24714 return SWIG_Py_Void();
24715 }
24716
24717 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24718 return SWIG_Python_InitShadowInstance(args);
24719 }
24720
24721 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24722 PyObject *resultobj = 0;
24723 int arg1 ;
24724 int arg2 ;
24725 bool arg3 ;
24726 wxSplitterRenderParams *result = 0 ;
24727 int val1 ;
24728 int ecode1 = 0 ;
24729 int val2 ;
24730 int ecode2 = 0 ;
24731 bool val3 ;
24732 int ecode3 = 0 ;
24733 PyObject * obj0 = 0 ;
24734 PyObject * obj1 = 0 ;
24735 PyObject * obj2 = 0 ;
24736 char * kwnames[] = {
24737 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24738 };
24739
24740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24741 ecode1 = SWIG_AsVal_int(obj0, &val1);
24742 if (!SWIG_IsOK(ecode1)) {
24743 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24744 }
24745 arg1 = static_cast< int >(val1);
24746 ecode2 = SWIG_AsVal_int(obj1, &val2);
24747 if (!SWIG_IsOK(ecode2)) {
24748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24749 }
24750 arg2 = static_cast< int >(val2);
24751 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24752 if (!SWIG_IsOK(ecode3)) {
24753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24754 }
24755 arg3 = static_cast< bool >(val3);
24756 {
24757 PyThreadState* __tstate = wxPyBeginAllowThreads();
24758 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24759 wxPyEndAllowThreads(__tstate);
24760 if (PyErr_Occurred()) SWIG_fail;
24761 }
24762 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24763 return resultobj;
24764 fail:
24765 return NULL;
24766 }
24767
24768
24769 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24770 PyObject *resultobj = 0;
24771 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24772 void *argp1 = 0 ;
24773 int res1 = 0 ;
24774 PyObject *swig_obj[1] ;
24775
24776 if (!args) SWIG_fail;
24777 swig_obj[0] = args;
24778 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24779 if (!SWIG_IsOK(res1)) {
24780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24781 }
24782 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24783 {
24784 PyThreadState* __tstate = wxPyBeginAllowThreads();
24785 delete arg1;
24786
24787 wxPyEndAllowThreads(__tstate);
24788 if (PyErr_Occurred()) SWIG_fail;
24789 }
24790 resultobj = SWIG_Py_Void();
24791 return resultobj;
24792 fail:
24793 return NULL;
24794 }
24795
24796
24797 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24798 PyObject *resultobj = 0;
24799 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24800 int result;
24801 void *argp1 = 0 ;
24802 int res1 = 0 ;
24803 PyObject *swig_obj[1] ;
24804
24805 if (!args) SWIG_fail;
24806 swig_obj[0] = args;
24807 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24808 if (!SWIG_IsOK(res1)) {
24809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24810 }
24811 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24812 result = (int)(int) ((arg1)->widthSash);
24813 resultobj = SWIG_From_int(static_cast< int >(result));
24814 return resultobj;
24815 fail:
24816 return NULL;
24817 }
24818
24819
24820 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24821 PyObject *resultobj = 0;
24822 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24823 int result;
24824 void *argp1 = 0 ;
24825 int res1 = 0 ;
24826 PyObject *swig_obj[1] ;
24827
24828 if (!args) SWIG_fail;
24829 swig_obj[0] = args;
24830 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24831 if (!SWIG_IsOK(res1)) {
24832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24833 }
24834 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24835 result = (int)(int) ((arg1)->border);
24836 resultobj = SWIG_From_int(static_cast< int >(result));
24837 return resultobj;
24838 fail:
24839 return NULL;
24840 }
24841
24842
24843 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24844 PyObject *resultobj = 0;
24845 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24846 bool result;
24847 void *argp1 = 0 ;
24848 int res1 = 0 ;
24849 PyObject *swig_obj[1] ;
24850
24851 if (!args) SWIG_fail;
24852 swig_obj[0] = args;
24853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24854 if (!SWIG_IsOK(res1)) {
24855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24856 }
24857 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24858 result = (bool)(bool) ((arg1)->isHotSensitive);
24859 resultobj = SWIG_From_bool(static_cast< bool >(result));
24860 return resultobj;
24861 fail:
24862 return NULL;
24863 }
24864
24865
24866 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24867 PyObject *obj;
24868 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24869 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24870 return SWIG_Py_Void();
24871 }
24872
24873 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24874 return SWIG_Python_InitShadowInstance(args);
24875 }
24876
24877 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24878 PyObject *resultobj = 0;
24879 int arg1 ;
24880 int arg2 ;
24881 wxRendererVersion *result = 0 ;
24882 int val1 ;
24883 int ecode1 = 0 ;
24884 int val2 ;
24885 int ecode2 = 0 ;
24886 PyObject * obj0 = 0 ;
24887 PyObject * obj1 = 0 ;
24888 char * kwnames[] = {
24889 (char *) "version_",(char *) "age_", NULL
24890 };
24891
24892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24893 ecode1 = SWIG_AsVal_int(obj0, &val1);
24894 if (!SWIG_IsOK(ecode1)) {
24895 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24896 }
24897 arg1 = static_cast< int >(val1);
24898 ecode2 = SWIG_AsVal_int(obj1, &val2);
24899 if (!SWIG_IsOK(ecode2)) {
24900 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24901 }
24902 arg2 = static_cast< int >(val2);
24903 {
24904 PyThreadState* __tstate = wxPyBeginAllowThreads();
24905 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24906 wxPyEndAllowThreads(__tstate);
24907 if (PyErr_Occurred()) SWIG_fail;
24908 }
24909 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24910 return resultobj;
24911 fail:
24912 return NULL;
24913 }
24914
24915
24916 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24917 PyObject *resultobj = 0;
24918 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24919 void *argp1 = 0 ;
24920 int res1 = 0 ;
24921 PyObject *swig_obj[1] ;
24922
24923 if (!args) SWIG_fail;
24924 swig_obj[0] = args;
24925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24926 if (!SWIG_IsOK(res1)) {
24927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24928 }
24929 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24930 {
24931 PyThreadState* __tstate = wxPyBeginAllowThreads();
24932 delete arg1;
24933
24934 wxPyEndAllowThreads(__tstate);
24935 if (PyErr_Occurred()) SWIG_fail;
24936 }
24937 resultobj = SWIG_Py_Void();
24938 return resultobj;
24939 fail:
24940 return NULL;
24941 }
24942
24943
24944 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24945 PyObject *resultobj = 0;
24946 wxRendererVersion *arg1 = 0 ;
24947 bool result;
24948 void *argp1 = 0 ;
24949 int res1 = 0 ;
24950 PyObject * obj0 = 0 ;
24951 char * kwnames[] = {
24952 (char *) "ver", NULL
24953 };
24954
24955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24956 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24957 if (!SWIG_IsOK(res1)) {
24958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24959 }
24960 if (!argp1) {
24961 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24962 }
24963 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24964 {
24965 PyThreadState* __tstate = wxPyBeginAllowThreads();
24966 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24967 wxPyEndAllowThreads(__tstate);
24968 if (PyErr_Occurred()) SWIG_fail;
24969 }
24970 {
24971 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24972 }
24973 return resultobj;
24974 fail:
24975 return NULL;
24976 }
24977
24978
24979 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24980 PyObject *resultobj = 0;
24981 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24982 int result;
24983 void *argp1 = 0 ;
24984 int res1 = 0 ;
24985 PyObject *swig_obj[1] ;
24986
24987 if (!args) SWIG_fail;
24988 swig_obj[0] = args;
24989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24990 if (!SWIG_IsOK(res1)) {
24991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24992 }
24993 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24994 result = (int)(int) ((arg1)->version);
24995 resultobj = SWIG_From_int(static_cast< int >(result));
24996 return resultobj;
24997 fail:
24998 return NULL;
24999 }
25000
25001
25002 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25003 PyObject *resultobj = 0;
25004 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
25005 int result;
25006 void *argp1 = 0 ;
25007 int res1 = 0 ;
25008 PyObject *swig_obj[1] ;
25009
25010 if (!args) SWIG_fail;
25011 swig_obj[0] = args;
25012 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
25013 if (!SWIG_IsOK(res1)) {
25014 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
25015 }
25016 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
25017 result = (int)(int) ((arg1)->age);
25018 resultobj = SWIG_From_int(static_cast< int >(result));
25019 return resultobj;
25020 fail:
25021 return NULL;
25022 }
25023
25024
25025 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25026 PyObject *obj;
25027 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25028 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
25029 return SWIG_Py_Void();
25030 }
25031
25032 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25033 return SWIG_Python_InitShadowInstance(args);
25034 }
25035
25036 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25037 PyObject *resultobj = 0;
25038 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25039 wxWindow *arg2 = (wxWindow *) 0 ;
25040 wxDC *arg3 = 0 ;
25041 wxRect *arg4 = 0 ;
25042 int arg5 = (int) 0 ;
25043 void *argp1 = 0 ;
25044 int res1 = 0 ;
25045 void *argp2 = 0 ;
25046 int res2 = 0 ;
25047 void *argp3 = 0 ;
25048 int res3 = 0 ;
25049 wxRect temp4 ;
25050 int val5 ;
25051 int ecode5 = 0 ;
25052 PyObject * obj0 = 0 ;
25053 PyObject * obj1 = 0 ;
25054 PyObject * obj2 = 0 ;
25055 PyObject * obj3 = 0 ;
25056 PyObject * obj4 = 0 ;
25057 char * kwnames[] = {
25058 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25059 };
25060
25061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25063 if (!SWIG_IsOK(res1)) {
25064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25065 }
25066 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25067 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25068 if (!SWIG_IsOK(res2)) {
25069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25070 }
25071 arg2 = reinterpret_cast< wxWindow * >(argp2);
25072 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25073 if (!SWIG_IsOK(res3)) {
25074 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25075 }
25076 if (!argp3) {
25077 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25078 }
25079 arg3 = reinterpret_cast< wxDC * >(argp3);
25080 {
25081 arg4 = &temp4;
25082 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25083 }
25084 if (obj4) {
25085 ecode5 = SWIG_AsVal_int(obj4, &val5);
25086 if (!SWIG_IsOK(ecode5)) {
25087 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25088 }
25089 arg5 = static_cast< int >(val5);
25090 }
25091 {
25092 PyThreadState* __tstate = wxPyBeginAllowThreads();
25093 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25094 wxPyEndAllowThreads(__tstate);
25095 if (PyErr_Occurred()) SWIG_fail;
25096 }
25097 resultobj = SWIG_Py_Void();
25098 return resultobj;
25099 fail:
25100 return NULL;
25101 }
25102
25103
25104 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25105 PyObject *resultobj = 0;
25106 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25107 wxWindow *arg2 = (wxWindow *) 0 ;
25108 wxDC *arg3 = 0 ;
25109 wxRect *arg4 = 0 ;
25110 int arg5 = (int) 0 ;
25111 void *argp1 = 0 ;
25112 int res1 = 0 ;
25113 void *argp2 = 0 ;
25114 int res2 = 0 ;
25115 void *argp3 = 0 ;
25116 int res3 = 0 ;
25117 wxRect temp4 ;
25118 int val5 ;
25119 int ecode5 = 0 ;
25120 PyObject * obj0 = 0 ;
25121 PyObject * obj1 = 0 ;
25122 PyObject * obj2 = 0 ;
25123 PyObject * obj3 = 0 ;
25124 PyObject * obj4 = 0 ;
25125 char * kwnames[] = {
25126 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25127 };
25128
25129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25131 if (!SWIG_IsOK(res1)) {
25132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25133 }
25134 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25135 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25136 if (!SWIG_IsOK(res2)) {
25137 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25138 }
25139 arg2 = reinterpret_cast< wxWindow * >(argp2);
25140 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25141 if (!SWIG_IsOK(res3)) {
25142 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25143 }
25144 if (!argp3) {
25145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25146 }
25147 arg3 = reinterpret_cast< wxDC * >(argp3);
25148 {
25149 arg4 = &temp4;
25150 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25151 }
25152 if (obj4) {
25153 ecode5 = SWIG_AsVal_int(obj4, &val5);
25154 if (!SWIG_IsOK(ecode5)) {
25155 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25156 }
25157 arg5 = static_cast< int >(val5);
25158 }
25159 {
25160 PyThreadState* __tstate = wxPyBeginAllowThreads();
25161 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25162 wxPyEndAllowThreads(__tstate);
25163 if (PyErr_Occurred()) SWIG_fail;
25164 }
25165 resultobj = SWIG_Py_Void();
25166 return resultobj;
25167 fail:
25168 return NULL;
25169 }
25170
25171
25172 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25173 PyObject *resultobj = 0;
25174 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25175 wxWindow *arg2 = (wxWindow *) 0 ;
25176 wxDC *arg3 = 0 ;
25177 wxRect *arg4 = 0 ;
25178 int arg5 = (int) 0 ;
25179 void *argp1 = 0 ;
25180 int res1 = 0 ;
25181 void *argp2 = 0 ;
25182 int res2 = 0 ;
25183 void *argp3 = 0 ;
25184 int res3 = 0 ;
25185 wxRect temp4 ;
25186 int val5 ;
25187 int ecode5 = 0 ;
25188 PyObject * obj0 = 0 ;
25189 PyObject * obj1 = 0 ;
25190 PyObject * obj2 = 0 ;
25191 PyObject * obj3 = 0 ;
25192 PyObject * obj4 = 0 ;
25193 char * kwnames[] = {
25194 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25195 };
25196
25197 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25198 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25199 if (!SWIG_IsOK(res1)) {
25200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25201 }
25202 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25203 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25204 if (!SWIG_IsOK(res2)) {
25205 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25206 }
25207 arg2 = reinterpret_cast< wxWindow * >(argp2);
25208 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25209 if (!SWIG_IsOK(res3)) {
25210 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25211 }
25212 if (!argp3) {
25213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25214 }
25215 arg3 = reinterpret_cast< wxDC * >(argp3);
25216 {
25217 arg4 = &temp4;
25218 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25219 }
25220 if (obj4) {
25221 ecode5 = SWIG_AsVal_int(obj4, &val5);
25222 if (!SWIG_IsOK(ecode5)) {
25223 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25224 }
25225 arg5 = static_cast< int >(val5);
25226 }
25227 {
25228 PyThreadState* __tstate = wxPyBeginAllowThreads();
25229 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25230 wxPyEndAllowThreads(__tstate);
25231 if (PyErr_Occurred()) SWIG_fail;
25232 }
25233 resultobj = SWIG_Py_Void();
25234 return resultobj;
25235 fail:
25236 return NULL;
25237 }
25238
25239
25240 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25241 PyObject *resultobj = 0;
25242 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25243 wxWindow *arg2 = (wxWindow *) 0 ;
25244 wxDC *arg3 = 0 ;
25245 wxSize *arg4 = 0 ;
25246 int arg5 ;
25247 wxOrientation arg6 ;
25248 int arg7 = (int) 0 ;
25249 void *argp1 = 0 ;
25250 int res1 = 0 ;
25251 void *argp2 = 0 ;
25252 int res2 = 0 ;
25253 void *argp3 = 0 ;
25254 int res3 = 0 ;
25255 wxSize temp4 ;
25256 int val5 ;
25257 int ecode5 = 0 ;
25258 int val6 ;
25259 int ecode6 = 0 ;
25260 int val7 ;
25261 int ecode7 = 0 ;
25262 PyObject * obj0 = 0 ;
25263 PyObject * obj1 = 0 ;
25264 PyObject * obj2 = 0 ;
25265 PyObject * obj3 = 0 ;
25266 PyObject * obj4 = 0 ;
25267 PyObject * obj5 = 0 ;
25268 PyObject * obj6 = 0 ;
25269 char * kwnames[] = {
25270 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25271 };
25272
25273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25274 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25275 if (!SWIG_IsOK(res1)) {
25276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25277 }
25278 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25279 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25280 if (!SWIG_IsOK(res2)) {
25281 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25282 }
25283 arg2 = reinterpret_cast< wxWindow * >(argp2);
25284 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25285 if (!SWIG_IsOK(res3)) {
25286 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25287 }
25288 if (!argp3) {
25289 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25290 }
25291 arg3 = reinterpret_cast< wxDC * >(argp3);
25292 {
25293 arg4 = &temp4;
25294 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25295 }
25296 ecode5 = SWIG_AsVal_int(obj4, &val5);
25297 if (!SWIG_IsOK(ecode5)) {
25298 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25299 }
25300 arg5 = static_cast< int >(val5);
25301 ecode6 = SWIG_AsVal_int(obj5, &val6);
25302 if (!SWIG_IsOK(ecode6)) {
25303 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25304 }
25305 arg6 = static_cast< wxOrientation >(val6);
25306 if (obj6) {
25307 ecode7 = SWIG_AsVal_int(obj6, &val7);
25308 if (!SWIG_IsOK(ecode7)) {
25309 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25310 }
25311 arg7 = static_cast< int >(val7);
25312 }
25313 {
25314 PyThreadState* __tstate = wxPyBeginAllowThreads();
25315 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25316 wxPyEndAllowThreads(__tstate);
25317 if (PyErr_Occurred()) SWIG_fail;
25318 }
25319 resultobj = SWIG_Py_Void();
25320 return resultobj;
25321 fail:
25322 return NULL;
25323 }
25324
25325
25326 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25327 PyObject *resultobj = 0;
25328 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25329 wxWindow *arg2 = (wxWindow *) 0 ;
25330 wxDC *arg3 = 0 ;
25331 wxRect *arg4 = 0 ;
25332 int arg5 = (int) 0 ;
25333 void *argp1 = 0 ;
25334 int res1 = 0 ;
25335 void *argp2 = 0 ;
25336 int res2 = 0 ;
25337 void *argp3 = 0 ;
25338 int res3 = 0 ;
25339 wxRect temp4 ;
25340 int val5 ;
25341 int ecode5 = 0 ;
25342 PyObject * obj0 = 0 ;
25343 PyObject * obj1 = 0 ;
25344 PyObject * obj2 = 0 ;
25345 PyObject * obj3 = 0 ;
25346 PyObject * obj4 = 0 ;
25347 char * kwnames[] = {
25348 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25349 };
25350
25351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25352 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25353 if (!SWIG_IsOK(res1)) {
25354 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25355 }
25356 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25357 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25358 if (!SWIG_IsOK(res2)) {
25359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25360 }
25361 arg2 = reinterpret_cast< wxWindow * >(argp2);
25362 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25363 if (!SWIG_IsOK(res3)) {
25364 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25365 }
25366 if (!argp3) {
25367 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25368 }
25369 arg3 = reinterpret_cast< wxDC * >(argp3);
25370 {
25371 arg4 = &temp4;
25372 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25373 }
25374 if (obj4) {
25375 ecode5 = SWIG_AsVal_int(obj4, &val5);
25376 if (!SWIG_IsOK(ecode5)) {
25377 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25378 }
25379 arg5 = static_cast< int >(val5);
25380 }
25381 {
25382 PyThreadState* __tstate = wxPyBeginAllowThreads();
25383 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25384 wxPyEndAllowThreads(__tstate);
25385 if (PyErr_Occurred()) SWIG_fail;
25386 }
25387 resultobj = SWIG_Py_Void();
25388 return resultobj;
25389 fail:
25390 return NULL;
25391 }
25392
25393
25394 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25395 PyObject *resultobj = 0;
25396 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25397 wxWindow *arg2 = (wxWindow *) 0 ;
25398 wxDC *arg3 = 0 ;
25399 wxRect *arg4 = 0 ;
25400 int arg5 = (int) 0 ;
25401 void *argp1 = 0 ;
25402 int res1 = 0 ;
25403 void *argp2 = 0 ;
25404 int res2 = 0 ;
25405 void *argp3 = 0 ;
25406 int res3 = 0 ;
25407 wxRect temp4 ;
25408 int val5 ;
25409 int ecode5 = 0 ;
25410 PyObject * obj0 = 0 ;
25411 PyObject * obj1 = 0 ;
25412 PyObject * obj2 = 0 ;
25413 PyObject * obj3 = 0 ;
25414 PyObject * obj4 = 0 ;
25415 char * kwnames[] = {
25416 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25417 };
25418
25419 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25420 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25421 if (!SWIG_IsOK(res1)) {
25422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25423 }
25424 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25425 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25426 if (!SWIG_IsOK(res2)) {
25427 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25428 }
25429 arg2 = reinterpret_cast< wxWindow * >(argp2);
25430 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25431 if (!SWIG_IsOK(res3)) {
25432 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25433 }
25434 if (!argp3) {
25435 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25436 }
25437 arg3 = reinterpret_cast< wxDC * >(argp3);
25438 {
25439 arg4 = &temp4;
25440 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25441 }
25442 if (obj4) {
25443 ecode5 = SWIG_AsVal_int(obj4, &val5);
25444 if (!SWIG_IsOK(ecode5)) {
25445 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25446 }
25447 arg5 = static_cast< int >(val5);
25448 }
25449 {
25450 PyThreadState* __tstate = wxPyBeginAllowThreads();
25451 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25452 wxPyEndAllowThreads(__tstate);
25453 if (PyErr_Occurred()) SWIG_fail;
25454 }
25455 resultobj = SWIG_Py_Void();
25456 return resultobj;
25457 fail:
25458 return NULL;
25459 }
25460
25461
25462 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25463 PyObject *resultobj = 0;
25464 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25465 wxWindow *arg2 = (wxWindow *) 0 ;
25466 wxDC *arg3 = 0 ;
25467 wxRect *arg4 = 0 ;
25468 int arg5 = (int) 0 ;
25469 void *argp1 = 0 ;
25470 int res1 = 0 ;
25471 void *argp2 = 0 ;
25472 int res2 = 0 ;
25473 void *argp3 = 0 ;
25474 int res3 = 0 ;
25475 wxRect temp4 ;
25476 int val5 ;
25477 int ecode5 = 0 ;
25478 PyObject * obj0 = 0 ;
25479 PyObject * obj1 = 0 ;
25480 PyObject * obj2 = 0 ;
25481 PyObject * obj3 = 0 ;
25482 PyObject * obj4 = 0 ;
25483 char * kwnames[] = {
25484 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25485 };
25486
25487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25489 if (!SWIG_IsOK(res1)) {
25490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25491 }
25492 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25494 if (!SWIG_IsOK(res2)) {
25495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25496 }
25497 arg2 = reinterpret_cast< wxWindow * >(argp2);
25498 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25499 if (!SWIG_IsOK(res3)) {
25500 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25501 }
25502 if (!argp3) {
25503 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25504 }
25505 arg3 = reinterpret_cast< wxDC * >(argp3);
25506 {
25507 arg4 = &temp4;
25508 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25509 }
25510 if (obj4) {
25511 ecode5 = SWIG_AsVal_int(obj4, &val5);
25512 if (!SWIG_IsOK(ecode5)) {
25513 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25514 }
25515 arg5 = static_cast< int >(val5);
25516 }
25517 {
25518 PyThreadState* __tstate = wxPyBeginAllowThreads();
25519 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25520 wxPyEndAllowThreads(__tstate);
25521 if (PyErr_Occurred()) SWIG_fail;
25522 }
25523 resultobj = SWIG_Py_Void();
25524 return resultobj;
25525 fail:
25526 return NULL;
25527 }
25528
25529
25530 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25531 PyObject *resultobj = 0;
25532 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25533 wxWindow *arg2 = (wxWindow *) 0 ;
25534 wxDC *arg3 = 0 ;
25535 wxRect *arg4 = 0 ;
25536 int arg5 = (int) 0 ;
25537 void *argp1 = 0 ;
25538 int res1 = 0 ;
25539 void *argp2 = 0 ;
25540 int res2 = 0 ;
25541 void *argp3 = 0 ;
25542 int res3 = 0 ;
25543 wxRect temp4 ;
25544 int val5 ;
25545 int ecode5 = 0 ;
25546 PyObject * obj0 = 0 ;
25547 PyObject * obj1 = 0 ;
25548 PyObject * obj2 = 0 ;
25549 PyObject * obj3 = 0 ;
25550 PyObject * obj4 = 0 ;
25551 char * kwnames[] = {
25552 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25553 };
25554
25555 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25556 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25557 if (!SWIG_IsOK(res1)) {
25558 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25559 }
25560 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25561 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25562 if (!SWIG_IsOK(res2)) {
25563 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25564 }
25565 arg2 = reinterpret_cast< wxWindow * >(argp2);
25566 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25567 if (!SWIG_IsOK(res3)) {
25568 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25569 }
25570 if (!argp3) {
25571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25572 }
25573 arg3 = reinterpret_cast< wxDC * >(argp3);
25574 {
25575 arg4 = &temp4;
25576 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25577 }
25578 if (obj4) {
25579 ecode5 = SWIG_AsVal_int(obj4, &val5);
25580 if (!SWIG_IsOK(ecode5)) {
25581 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25582 }
25583 arg5 = static_cast< int >(val5);
25584 }
25585 {
25586 PyThreadState* __tstate = wxPyBeginAllowThreads();
25587 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25588 wxPyEndAllowThreads(__tstate);
25589 if (PyErr_Occurred()) SWIG_fail;
25590 }
25591 resultobj = SWIG_Py_Void();
25592 return resultobj;
25593 fail:
25594 return NULL;
25595 }
25596
25597
25598 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25599 PyObject *resultobj = 0;
25600 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25601 wxWindow *arg2 = (wxWindow *) 0 ;
25602 wxDC *arg3 = 0 ;
25603 wxRect *arg4 = 0 ;
25604 int arg5 = (int) 0 ;
25605 void *argp1 = 0 ;
25606 int res1 = 0 ;
25607 void *argp2 = 0 ;
25608 int res2 = 0 ;
25609 void *argp3 = 0 ;
25610 int res3 = 0 ;
25611 wxRect temp4 ;
25612 int val5 ;
25613 int ecode5 = 0 ;
25614 PyObject * obj0 = 0 ;
25615 PyObject * obj1 = 0 ;
25616 PyObject * obj2 = 0 ;
25617 PyObject * obj3 = 0 ;
25618 PyObject * obj4 = 0 ;
25619 char * kwnames[] = {
25620 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25621 };
25622
25623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25625 if (!SWIG_IsOK(res1)) {
25626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25627 }
25628 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25630 if (!SWIG_IsOK(res2)) {
25631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
25632 }
25633 arg2 = reinterpret_cast< wxWindow * >(argp2);
25634 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25635 if (!SWIG_IsOK(res3)) {
25636 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25637 }
25638 if (!argp3) {
25639 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25640 }
25641 arg3 = reinterpret_cast< wxDC * >(argp3);
25642 {
25643 arg4 = &temp4;
25644 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25645 }
25646 if (obj4) {
25647 ecode5 = SWIG_AsVal_int(obj4, &val5);
25648 if (!SWIG_IsOK(ecode5)) {
25649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
25650 }
25651 arg5 = static_cast< int >(val5);
25652 }
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = SWIG_Py_Void();
25660 return resultobj;
25661 fail:
25662 return NULL;
25663 }
25664
25665
25666 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25667 PyObject *resultobj = 0;
25668 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25669 wxWindow *arg2 = (wxWindow *) 0 ;
25670 SwigValueWrapper<wxSplitterRenderParams > result;
25671 void *argp1 = 0 ;
25672 int res1 = 0 ;
25673 void *argp2 = 0 ;
25674 int res2 = 0 ;
25675 PyObject * obj0 = 0 ;
25676 PyObject * obj1 = 0 ;
25677 char * kwnames[] = {
25678 (char *) "self",(char *) "win", NULL
25679 };
25680
25681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25683 if (!SWIG_IsOK(res1)) {
25684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25685 }
25686 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25687 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25688 if (!SWIG_IsOK(res2)) {
25689 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25690 }
25691 arg2 = reinterpret_cast< wxWindow * >(argp2);
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25695 wxPyEndAllowThreads(__tstate);
25696 if (PyErr_Occurred()) SWIG_fail;
25697 }
25698 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25699 return resultobj;
25700 fail:
25701 return NULL;
25702 }
25703
25704
25705 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25706 PyObject *resultobj = 0;
25707 wxRendererNative *result = 0 ;
25708
25709 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25710 {
25711 if (!wxPyCheckForApp()) SWIG_fail;
25712 PyThreadState* __tstate = wxPyBeginAllowThreads();
25713 {
25714 wxRendererNative &_result_ref = wxRendererNative::Get();
25715 result = (wxRendererNative *) &_result_ref;
25716 }
25717 wxPyEndAllowThreads(__tstate);
25718 if (PyErr_Occurred()) SWIG_fail;
25719 }
25720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25721 return resultobj;
25722 fail:
25723 return NULL;
25724 }
25725
25726
25727 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25728 PyObject *resultobj = 0;
25729 wxRendererNative *result = 0 ;
25730
25731 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25732 {
25733 if (!wxPyCheckForApp()) SWIG_fail;
25734 PyThreadState* __tstate = wxPyBeginAllowThreads();
25735 {
25736 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25737 result = (wxRendererNative *) &_result_ref;
25738 }
25739 wxPyEndAllowThreads(__tstate);
25740 if (PyErr_Occurred()) SWIG_fail;
25741 }
25742 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25743 return resultobj;
25744 fail:
25745 return NULL;
25746 }
25747
25748
25749 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25750 PyObject *resultobj = 0;
25751 wxRendererNative *result = 0 ;
25752
25753 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25754 {
25755 if (!wxPyCheckForApp()) SWIG_fail;
25756 PyThreadState* __tstate = wxPyBeginAllowThreads();
25757 {
25758 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25759 result = (wxRendererNative *) &_result_ref;
25760 }
25761 wxPyEndAllowThreads(__tstate);
25762 if (PyErr_Occurred()) SWIG_fail;
25763 }
25764 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25765 return resultobj;
25766 fail:
25767 return NULL;
25768 }
25769
25770
25771 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25772 PyObject *resultobj = 0;
25773 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25774 wxRendererNative *result = 0 ;
25775 void *argp1 = 0 ;
25776 int res1 = 0 ;
25777 PyObject * obj0 = 0 ;
25778 char * kwnames[] = {
25779 (char *) "renderer", NULL
25780 };
25781
25782 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25783 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25784 if (!SWIG_IsOK(res1)) {
25785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25786 }
25787 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25788 {
25789 if (!wxPyCheckForApp()) SWIG_fail;
25790 PyThreadState* __tstate = wxPyBeginAllowThreads();
25791 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25792 wxPyEndAllowThreads(__tstate);
25793 if (PyErr_Occurred()) SWIG_fail;
25794 }
25795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25796 return resultobj;
25797 fail:
25798 return NULL;
25799 }
25800
25801
25802 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25803 PyObject *resultobj = 0;
25804 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25805 SwigValueWrapper<wxRendererVersion > result;
25806 void *argp1 = 0 ;
25807 int res1 = 0 ;
25808 PyObject *swig_obj[1] ;
25809
25810 if (!args) SWIG_fail;
25811 swig_obj[0] = args;
25812 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25813 if (!SWIG_IsOK(res1)) {
25814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25815 }
25816 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25817 {
25818 PyThreadState* __tstate = wxPyBeginAllowThreads();
25819 result = ((wxRendererNative const *)arg1)->GetVersion();
25820 wxPyEndAllowThreads(__tstate);
25821 if (PyErr_Occurred()) SWIG_fail;
25822 }
25823 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25824 return resultobj;
25825 fail:
25826 return NULL;
25827 }
25828
25829
25830 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25831 PyObject *obj;
25832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25833 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25834 return SWIG_Py_Void();
25835 }
25836
25837 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25838 PyObject *resultobj = 0;
25839 wxPseudoDC *result = 0 ;
25840
25841 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
25842 {
25843 PyThreadState* __tstate = wxPyBeginAllowThreads();
25844 result = (wxPseudoDC *)new wxPseudoDC();
25845 wxPyEndAllowThreads(__tstate);
25846 if (PyErr_Occurred()) SWIG_fail;
25847 }
25848 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
25849 return resultobj;
25850 fail:
25851 return NULL;
25852 }
25853
25854
25855 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25856 PyObject *resultobj = 0;
25857 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25858 void *argp1 = 0 ;
25859 int res1 = 0 ;
25860 PyObject *swig_obj[1] ;
25861
25862 if (!args) SWIG_fail;
25863 swig_obj[0] = args;
25864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25865 if (!SWIG_IsOK(res1)) {
25866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25867 }
25868 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25869 {
25870 PyThreadState* __tstate = wxPyBeginAllowThreads();
25871 (arg1)->BeginDrawing();
25872 wxPyEndAllowThreads(__tstate);
25873 if (PyErr_Occurred()) SWIG_fail;
25874 }
25875 resultobj = SWIG_Py_Void();
25876 return resultobj;
25877 fail:
25878 return NULL;
25879 }
25880
25881
25882 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25883 PyObject *resultobj = 0;
25884 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25885 void *argp1 = 0 ;
25886 int res1 = 0 ;
25887 PyObject *swig_obj[1] ;
25888
25889 if (!args) SWIG_fail;
25890 swig_obj[0] = args;
25891 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25892 if (!SWIG_IsOK(res1)) {
25893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25894 }
25895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25896 {
25897 PyThreadState* __tstate = wxPyBeginAllowThreads();
25898 (arg1)->EndDrawing();
25899 wxPyEndAllowThreads(__tstate);
25900 if (PyErr_Occurred()) SWIG_fail;
25901 }
25902 resultobj = SWIG_Py_Void();
25903 return resultobj;
25904 fail:
25905 return NULL;
25906 }
25907
25908
25909 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25910 PyObject *resultobj = 0;
25911 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25912 void *argp1 = 0 ;
25913 int res1 = 0 ;
25914 PyObject *swig_obj[1] ;
25915
25916 if (!args) SWIG_fail;
25917 swig_obj[0] = args;
25918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
25919 if (!SWIG_IsOK(res1)) {
25920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25921 }
25922 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25923 {
25924 PyThreadState* __tstate = wxPyBeginAllowThreads();
25925 delete arg1;
25926
25927 wxPyEndAllowThreads(__tstate);
25928 if (PyErr_Occurred()) SWIG_fail;
25929 }
25930 resultobj = SWIG_Py_Void();
25931 return resultobj;
25932 fail:
25933 return NULL;
25934 }
25935
25936
25937 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25938 PyObject *resultobj = 0;
25939 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25940 void *argp1 = 0 ;
25941 int res1 = 0 ;
25942 PyObject *swig_obj[1] ;
25943
25944 if (!args) SWIG_fail;
25945 swig_obj[0] = args;
25946 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25947 if (!SWIG_IsOK(res1)) {
25948 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25949 }
25950 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25951 {
25952 PyThreadState* __tstate = wxPyBeginAllowThreads();
25953 (arg1)->RemoveAll();
25954 wxPyEndAllowThreads(__tstate);
25955 if (PyErr_Occurred()) SWIG_fail;
25956 }
25957 resultobj = SWIG_Py_Void();
25958 return resultobj;
25959 fail:
25960 return NULL;
25961 }
25962
25963
25964 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25965 PyObject *resultobj = 0;
25966 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25967 int result;
25968 void *argp1 = 0 ;
25969 int res1 = 0 ;
25970 PyObject *swig_obj[1] ;
25971
25972 if (!args) SWIG_fail;
25973 swig_obj[0] = args;
25974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25975 if (!SWIG_IsOK(res1)) {
25976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25977 }
25978 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25979 {
25980 PyThreadState* __tstate = wxPyBeginAllowThreads();
25981 result = (int)(arg1)->GetLen();
25982 wxPyEndAllowThreads(__tstate);
25983 if (PyErr_Occurred()) SWIG_fail;
25984 }
25985 resultobj = SWIG_From_int(static_cast< int >(result));
25986 return resultobj;
25987 fail:
25988 return NULL;
25989 }
25990
25991
25992 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25993 PyObject *resultobj = 0;
25994 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25995 int arg2 ;
25996 void *argp1 = 0 ;
25997 int res1 = 0 ;
25998 int val2 ;
25999 int ecode2 = 0 ;
26000 PyObject * obj0 = 0 ;
26001 PyObject * obj1 = 0 ;
26002 char * kwnames[] = {
26003 (char *) "self",(char *) "id", NULL
26004 };
26005
26006 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26007 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26008 if (!SWIG_IsOK(res1)) {
26009 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26010 }
26011 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26012 ecode2 = SWIG_AsVal_int(obj1, &val2);
26013 if (!SWIG_IsOK(ecode2)) {
26014 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
26015 }
26016 arg2 = static_cast< int >(val2);
26017 {
26018 PyThreadState* __tstate = wxPyBeginAllowThreads();
26019 (arg1)->SetId(arg2);
26020 wxPyEndAllowThreads(__tstate);
26021 if (PyErr_Occurred()) SWIG_fail;
26022 }
26023 resultobj = SWIG_Py_Void();
26024 return resultobj;
26025 fail:
26026 return NULL;
26027 }
26028
26029
26030 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26031 PyObject *resultobj = 0;
26032 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26033 int arg2 ;
26034 void *argp1 = 0 ;
26035 int res1 = 0 ;
26036 int val2 ;
26037 int ecode2 = 0 ;
26038 PyObject * obj0 = 0 ;
26039 PyObject * obj1 = 0 ;
26040 char * kwnames[] = {
26041 (char *) "self",(char *) "id", NULL
26042 };
26043
26044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
26045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26046 if (!SWIG_IsOK(res1)) {
26047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26048 }
26049 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26050 ecode2 = SWIG_AsVal_int(obj1, &val2);
26051 if (!SWIG_IsOK(ecode2)) {
26052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
26053 }
26054 arg2 = static_cast< int >(val2);
26055 {
26056 PyThreadState* __tstate = wxPyBeginAllowThreads();
26057 (arg1)->ClearId(arg2);
26058 wxPyEndAllowThreads(__tstate);
26059 if (PyErr_Occurred()) SWIG_fail;
26060 }
26061 resultobj = SWIG_Py_Void();
26062 return resultobj;
26063 fail:
26064 return NULL;
26065 }
26066
26067
26068 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26069 PyObject *resultobj = 0;
26070 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26071 int arg2 ;
26072 void *argp1 = 0 ;
26073 int res1 = 0 ;
26074 int val2 ;
26075 int ecode2 = 0 ;
26076 PyObject * obj0 = 0 ;
26077 PyObject * obj1 = 0 ;
26078 char * kwnames[] = {
26079 (char *) "self",(char *) "id", NULL
26080 };
26081
26082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
26083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26084 if (!SWIG_IsOK(res1)) {
26085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26086 }
26087 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26088 ecode2 = SWIG_AsVal_int(obj1, &val2);
26089 if (!SWIG_IsOK(ecode2)) {
26090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
26091 }
26092 arg2 = static_cast< int >(val2);
26093 {
26094 PyThreadState* __tstate = wxPyBeginAllowThreads();
26095 (arg1)->RemoveId(arg2);
26096 wxPyEndAllowThreads(__tstate);
26097 if (PyErr_Occurred()) SWIG_fail;
26098 }
26099 resultobj = SWIG_Py_Void();
26100 return resultobj;
26101 fail:
26102 return NULL;
26103 }
26104
26105
26106 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26107 PyObject *resultobj = 0;
26108 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26109 int arg2 ;
26110 int arg3 ;
26111 int arg4 ;
26112 void *argp1 = 0 ;
26113 int res1 = 0 ;
26114 int val2 ;
26115 int ecode2 = 0 ;
26116 int val3 ;
26117 int ecode3 = 0 ;
26118 int val4 ;
26119 int ecode4 = 0 ;
26120 PyObject * obj0 = 0 ;
26121 PyObject * obj1 = 0 ;
26122 PyObject * obj2 = 0 ;
26123 PyObject * obj3 = 0 ;
26124 char * kwnames[] = {
26125 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
26126 };
26127
26128 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26129 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26130 if (!SWIG_IsOK(res1)) {
26131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26132 }
26133 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26134 ecode2 = SWIG_AsVal_int(obj1, &val2);
26135 if (!SWIG_IsOK(ecode2)) {
26136 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
26137 }
26138 arg2 = static_cast< int >(val2);
26139 ecode3 = SWIG_AsVal_int(obj2, &val3);
26140 if (!SWIG_IsOK(ecode3)) {
26141 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
26142 }
26143 arg3 = static_cast< int >(val3);
26144 ecode4 = SWIG_AsVal_int(obj3, &val4);
26145 if (!SWIG_IsOK(ecode4)) {
26146 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
26147 }
26148 arg4 = static_cast< int >(val4);
26149 {
26150 PyThreadState* __tstate = wxPyBeginAllowThreads();
26151 (arg1)->TranslateId(arg2,arg3,arg4);
26152 wxPyEndAllowThreads(__tstate);
26153 if (PyErr_Occurred()) SWIG_fail;
26154 }
26155 resultobj = SWIG_Py_Void();
26156 return resultobj;
26157 fail:
26158 return NULL;
26159 }
26160
26161
26162 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26163 PyObject *resultobj = 0;
26164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26165 int arg2 ;
26166 wxDC *arg3 = (wxDC *) 0 ;
26167 void *argp1 = 0 ;
26168 int res1 = 0 ;
26169 int val2 ;
26170 int ecode2 = 0 ;
26171 void *argp3 = 0 ;
26172 int res3 = 0 ;
26173 PyObject * obj0 = 0 ;
26174 PyObject * obj1 = 0 ;
26175 PyObject * obj2 = 0 ;
26176 char * kwnames[] = {
26177 (char *) "self",(char *) "id",(char *) "dc", NULL
26178 };
26179
26180 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26181 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26182 if (!SWIG_IsOK(res1)) {
26183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26184 }
26185 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26186 ecode2 = SWIG_AsVal_int(obj1, &val2);
26187 if (!SWIG_IsOK(ecode2)) {
26188 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
26189 }
26190 arg2 = static_cast< int >(val2);
26191 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
26192 if (!SWIG_IsOK(res3)) {
26193 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
26194 }
26195 arg3 = reinterpret_cast< wxDC * >(argp3);
26196 {
26197 PyThreadState* __tstate = wxPyBeginAllowThreads();
26198 (arg1)->DrawIdToDC(arg2,arg3);
26199 wxPyEndAllowThreads(__tstate);
26200 if (PyErr_Occurred()) SWIG_fail;
26201 }
26202 resultobj = SWIG_Py_Void();
26203 return resultobj;
26204 fail:
26205 return NULL;
26206 }
26207
26208
26209 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26210 PyObject *resultobj = 0;
26211 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26212 int arg2 ;
26213 wxRect *arg3 = 0 ;
26214 void *argp1 = 0 ;
26215 int res1 = 0 ;
26216 int val2 ;
26217 int ecode2 = 0 ;
26218 wxRect temp3 ;
26219 PyObject * obj0 = 0 ;
26220 PyObject * obj1 = 0 ;
26221 PyObject * obj2 = 0 ;
26222 char * kwnames[] = {
26223 (char *) "self",(char *) "id",(char *) "rect", NULL
26224 };
26225
26226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26228 if (!SWIG_IsOK(res1)) {
26229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26230 }
26231 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26232 ecode2 = SWIG_AsVal_int(obj1, &val2);
26233 if (!SWIG_IsOK(ecode2)) {
26234 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
26235 }
26236 arg2 = static_cast< int >(val2);
26237 {
26238 arg3 = &temp3;
26239 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26240 }
26241 {
26242 PyThreadState* __tstate = wxPyBeginAllowThreads();
26243 (arg1)->SetIdBounds(arg2,*arg3);
26244 wxPyEndAllowThreads(__tstate);
26245 if (PyErr_Occurred()) SWIG_fail;
26246 }
26247 resultobj = SWIG_Py_Void();
26248 return resultobj;
26249 fail:
26250 return NULL;
26251 }
26252
26253
26254 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26255 PyObject *resultobj = 0;
26256 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26257 int arg2 ;
26258 wxRect result;
26259 void *argp1 = 0 ;
26260 int res1 = 0 ;
26261 int val2 ;
26262 int ecode2 = 0 ;
26263 PyObject * obj0 = 0 ;
26264 PyObject * obj1 = 0 ;
26265 char * kwnames[] = {
26266 (char *) "self",(char *) "id", NULL
26267 };
26268
26269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
26270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26271 if (!SWIG_IsOK(res1)) {
26272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26273 }
26274 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26275 ecode2 = SWIG_AsVal_int(obj1, &val2);
26276 if (!SWIG_IsOK(ecode2)) {
26277 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
26278 }
26279 arg2 = static_cast< int >(val2);
26280 {
26281 PyThreadState* __tstate = wxPyBeginAllowThreads();
26282 result = wxPseudoDC_GetIdBounds(arg1,arg2);
26283 wxPyEndAllowThreads(__tstate);
26284 if (PyErr_Occurred()) SWIG_fail;
26285 }
26286 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
26287 return resultobj;
26288 fail:
26289 return NULL;
26290 }
26291
26292
26293 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26294 PyObject *resultobj = 0;
26295 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26296 wxDC *arg2 = (wxDC *) 0 ;
26297 wxRect *arg3 = 0 ;
26298 void *argp1 = 0 ;
26299 int res1 = 0 ;
26300 void *argp2 = 0 ;
26301 int res2 = 0 ;
26302 wxRect temp3 ;
26303 PyObject * obj0 = 0 ;
26304 PyObject * obj1 = 0 ;
26305 PyObject * obj2 = 0 ;
26306 char * kwnames[] = {
26307 (char *) "self",(char *) "dc",(char *) "rect", NULL
26308 };
26309
26310 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26311 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26312 if (!SWIG_IsOK(res1)) {
26313 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26314 }
26315 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26316 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26317 if (!SWIG_IsOK(res2)) {
26318 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
26319 }
26320 arg2 = reinterpret_cast< wxDC * >(argp2);
26321 {
26322 arg3 = &temp3;
26323 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26324 }
26325 {
26326 PyThreadState* __tstate = wxPyBeginAllowThreads();
26327 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
26328 wxPyEndAllowThreads(__tstate);
26329 if (PyErr_Occurred()) SWIG_fail;
26330 }
26331 resultobj = SWIG_Py_Void();
26332 return resultobj;
26333 fail:
26334 return NULL;
26335 }
26336
26337
26338 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26339 PyObject *resultobj = 0;
26340 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26341 wxDC *arg2 = (wxDC *) 0 ;
26342 wxRegion *arg3 = 0 ;
26343 void *argp1 = 0 ;
26344 int res1 = 0 ;
26345 void *argp2 = 0 ;
26346 int res2 = 0 ;
26347 void *argp3 = 0 ;
26348 int res3 = 0 ;
26349 PyObject * obj0 = 0 ;
26350 PyObject * obj1 = 0 ;
26351 PyObject * obj2 = 0 ;
26352 char * kwnames[] = {
26353 (char *) "self",(char *) "dc",(char *) "region", NULL
26354 };
26355
26356 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26357 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26358 if (!SWIG_IsOK(res1)) {
26359 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26360 }
26361 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26362 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26363 if (!SWIG_IsOK(res2)) {
26364 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
26365 }
26366 arg2 = reinterpret_cast< wxDC * >(argp2);
26367 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
26368 if (!SWIG_IsOK(res3)) {
26369 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
26370 }
26371 if (!argp3) {
26372 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
26373 }
26374 arg3 = reinterpret_cast< wxRegion * >(argp3);
26375 {
26376 PyThreadState* __tstate = wxPyBeginAllowThreads();
26377 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
26378 wxPyEndAllowThreads(__tstate);
26379 if (PyErr_Occurred()) SWIG_fail;
26380 }
26381 resultobj = SWIG_Py_Void();
26382 return resultobj;
26383 fail:
26384 return NULL;
26385 }
26386
26387
26388 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26389 PyObject *resultobj = 0;
26390 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26391 wxDC *arg2 = (wxDC *) 0 ;
26392 void *argp1 = 0 ;
26393 int res1 = 0 ;
26394 void *argp2 = 0 ;
26395 int res2 = 0 ;
26396 PyObject * obj0 = 0 ;
26397 PyObject * obj1 = 0 ;
26398 char * kwnames[] = {
26399 (char *) "self",(char *) "dc", NULL
26400 };
26401
26402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
26403 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26404 if (!SWIG_IsOK(res1)) {
26405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26406 }
26407 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26408 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26409 if (!SWIG_IsOK(res2)) {
26410 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
26411 }
26412 arg2 = reinterpret_cast< wxDC * >(argp2);
26413 {
26414 PyThreadState* __tstate = wxPyBeginAllowThreads();
26415 (arg1)->DrawToDC(arg2);
26416 wxPyEndAllowThreads(__tstate);
26417 if (PyErr_Occurred()) SWIG_fail;
26418 }
26419 resultobj = SWIG_Py_Void();
26420 return resultobj;
26421 fail:
26422 return NULL;
26423 }
26424
26425
26426 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26427 PyObject *resultobj = 0;
26428 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26429 int arg2 ;
26430 int arg3 ;
26431 wxColour *arg4 = 0 ;
26432 int arg5 = (int) wxFLOOD_SURFACE ;
26433 void *argp1 = 0 ;
26434 int res1 = 0 ;
26435 int val2 ;
26436 int ecode2 = 0 ;
26437 int val3 ;
26438 int ecode3 = 0 ;
26439 wxColour temp4 ;
26440 int val5 ;
26441 int ecode5 = 0 ;
26442 PyObject * obj0 = 0 ;
26443 PyObject * obj1 = 0 ;
26444 PyObject * obj2 = 0 ;
26445 PyObject * obj3 = 0 ;
26446 PyObject * obj4 = 0 ;
26447 char * kwnames[] = {
26448 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
26449 };
26450
26451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26453 if (!SWIG_IsOK(res1)) {
26454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26455 }
26456 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26457 ecode2 = SWIG_AsVal_int(obj1, &val2);
26458 if (!SWIG_IsOK(ecode2)) {
26459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
26460 }
26461 arg2 = static_cast< int >(val2);
26462 ecode3 = SWIG_AsVal_int(obj2, &val3);
26463 if (!SWIG_IsOK(ecode3)) {
26464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
26465 }
26466 arg3 = static_cast< int >(val3);
26467 {
26468 arg4 = &temp4;
26469 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26470 }
26471 if (obj4) {
26472 ecode5 = SWIG_AsVal_int(obj4, &val5);
26473 if (!SWIG_IsOK(ecode5)) {
26474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
26475 }
26476 arg5 = static_cast< int >(val5);
26477 }
26478 {
26479 PyThreadState* __tstate = wxPyBeginAllowThreads();
26480 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
26481 wxPyEndAllowThreads(__tstate);
26482 if (PyErr_Occurred()) SWIG_fail;
26483 }
26484 resultobj = SWIG_Py_Void();
26485 return resultobj;
26486 fail:
26487 return NULL;
26488 }
26489
26490
26491 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26492 PyObject *resultobj = 0;
26493 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26494 wxPoint *arg2 = 0 ;
26495 wxColour *arg3 = 0 ;
26496 int arg4 = (int) wxFLOOD_SURFACE ;
26497 void *argp1 = 0 ;
26498 int res1 = 0 ;
26499 wxPoint temp2 ;
26500 wxColour temp3 ;
26501 int val4 ;
26502 int ecode4 = 0 ;
26503 PyObject * obj0 = 0 ;
26504 PyObject * obj1 = 0 ;
26505 PyObject * obj2 = 0 ;
26506 PyObject * obj3 = 0 ;
26507 char * kwnames[] = {
26508 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
26509 };
26510
26511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26512 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26513 if (!SWIG_IsOK(res1)) {
26514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26515 }
26516 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26517 {
26518 arg2 = &temp2;
26519 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26520 }
26521 {
26522 arg3 = &temp3;
26523 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26524 }
26525 if (obj3) {
26526 ecode4 = SWIG_AsVal_int(obj3, &val4);
26527 if (!SWIG_IsOK(ecode4)) {
26528 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
26529 }
26530 arg4 = static_cast< int >(val4);
26531 }
26532 {
26533 PyThreadState* __tstate = wxPyBeginAllowThreads();
26534 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
26535 wxPyEndAllowThreads(__tstate);
26536 if (PyErr_Occurred()) SWIG_fail;
26537 }
26538 resultobj = SWIG_Py_Void();
26539 return resultobj;
26540 fail:
26541 return NULL;
26542 }
26543
26544
26545 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26546 PyObject *resultobj = 0;
26547 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26548 int arg2 ;
26549 int arg3 ;
26550 int arg4 ;
26551 int arg5 ;
26552 void *argp1 = 0 ;
26553 int res1 = 0 ;
26554 int val2 ;
26555 int ecode2 = 0 ;
26556 int val3 ;
26557 int ecode3 = 0 ;
26558 int val4 ;
26559 int ecode4 = 0 ;
26560 int val5 ;
26561 int ecode5 = 0 ;
26562 PyObject * obj0 = 0 ;
26563 PyObject * obj1 = 0 ;
26564 PyObject * obj2 = 0 ;
26565 PyObject * obj3 = 0 ;
26566 PyObject * obj4 = 0 ;
26567 char * kwnames[] = {
26568 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26569 };
26570
26571 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26572 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26573 if (!SWIG_IsOK(res1)) {
26574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26575 }
26576 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26577 ecode2 = SWIG_AsVal_int(obj1, &val2);
26578 if (!SWIG_IsOK(ecode2)) {
26579 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
26580 }
26581 arg2 = static_cast< int >(val2);
26582 ecode3 = SWIG_AsVal_int(obj2, &val3);
26583 if (!SWIG_IsOK(ecode3)) {
26584 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
26585 }
26586 arg3 = static_cast< int >(val3);
26587 ecode4 = SWIG_AsVal_int(obj3, &val4);
26588 if (!SWIG_IsOK(ecode4)) {
26589 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
26590 }
26591 arg4 = static_cast< int >(val4);
26592 ecode5 = SWIG_AsVal_int(obj4, &val5);
26593 if (!SWIG_IsOK(ecode5)) {
26594 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
26595 }
26596 arg5 = static_cast< int >(val5);
26597 {
26598 PyThreadState* __tstate = wxPyBeginAllowThreads();
26599 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
26600 wxPyEndAllowThreads(__tstate);
26601 if (PyErr_Occurred()) SWIG_fail;
26602 }
26603 resultobj = SWIG_Py_Void();
26604 return resultobj;
26605 fail:
26606 return NULL;
26607 }
26608
26609
26610 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26611 PyObject *resultobj = 0;
26612 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26613 wxPoint *arg2 = 0 ;
26614 wxPoint *arg3 = 0 ;
26615 void *argp1 = 0 ;
26616 int res1 = 0 ;
26617 wxPoint temp2 ;
26618 wxPoint temp3 ;
26619 PyObject * obj0 = 0 ;
26620 PyObject * obj1 = 0 ;
26621 PyObject * obj2 = 0 ;
26622 char * kwnames[] = {
26623 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
26624 };
26625
26626 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26627 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26628 if (!SWIG_IsOK(res1)) {
26629 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26630 }
26631 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26632 {
26633 arg2 = &temp2;
26634 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26635 }
26636 {
26637 arg3 = &temp3;
26638 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26639 }
26640 {
26641 PyThreadState* __tstate = wxPyBeginAllowThreads();
26642 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
26643 wxPyEndAllowThreads(__tstate);
26644 if (PyErr_Occurred()) SWIG_fail;
26645 }
26646 resultobj = SWIG_Py_Void();
26647 return resultobj;
26648 fail:
26649 return NULL;
26650 }
26651
26652
26653 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26654 PyObject *resultobj = 0;
26655 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26656 int arg2 ;
26657 int arg3 ;
26658 void *argp1 = 0 ;
26659 int res1 = 0 ;
26660 int val2 ;
26661 int ecode2 = 0 ;
26662 int val3 ;
26663 int ecode3 = 0 ;
26664 PyObject * obj0 = 0 ;
26665 PyObject * obj1 = 0 ;
26666 PyObject * obj2 = 0 ;
26667 char * kwnames[] = {
26668 (char *) "self",(char *) "x",(char *) "y", NULL
26669 };
26670
26671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26672 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26673 if (!SWIG_IsOK(res1)) {
26674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26675 }
26676 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26677 ecode2 = SWIG_AsVal_int(obj1, &val2);
26678 if (!SWIG_IsOK(ecode2)) {
26679 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
26680 }
26681 arg2 = static_cast< int >(val2);
26682 ecode3 = SWIG_AsVal_int(obj2, &val3);
26683 if (!SWIG_IsOK(ecode3)) {
26684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
26685 }
26686 arg3 = static_cast< int >(val3);
26687 {
26688 PyThreadState* __tstate = wxPyBeginAllowThreads();
26689 (arg1)->CrossHair(arg2,arg3);
26690 wxPyEndAllowThreads(__tstate);
26691 if (PyErr_Occurred()) SWIG_fail;
26692 }
26693 resultobj = SWIG_Py_Void();
26694 return resultobj;
26695 fail:
26696 return NULL;
26697 }
26698
26699
26700 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26701 PyObject *resultobj = 0;
26702 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26703 wxPoint *arg2 = 0 ;
26704 void *argp1 = 0 ;
26705 int res1 = 0 ;
26706 wxPoint temp2 ;
26707 PyObject * obj0 = 0 ;
26708 PyObject * obj1 = 0 ;
26709 char * kwnames[] = {
26710 (char *) "self",(char *) "pt", NULL
26711 };
26712
26713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
26714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26715 if (!SWIG_IsOK(res1)) {
26716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26717 }
26718 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26719 {
26720 arg2 = &temp2;
26721 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26722 }
26723 {
26724 PyThreadState* __tstate = wxPyBeginAllowThreads();
26725 (arg1)->CrossHair((wxPoint const &)*arg2);
26726 wxPyEndAllowThreads(__tstate);
26727 if (PyErr_Occurred()) SWIG_fail;
26728 }
26729 resultobj = SWIG_Py_Void();
26730 return resultobj;
26731 fail:
26732 return NULL;
26733 }
26734
26735
26736 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26737 PyObject *resultobj = 0;
26738 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26739 int arg2 ;
26740 int arg3 ;
26741 int arg4 ;
26742 int arg5 ;
26743 int arg6 ;
26744 int arg7 ;
26745 void *argp1 = 0 ;
26746 int res1 = 0 ;
26747 int val2 ;
26748 int ecode2 = 0 ;
26749 int val3 ;
26750 int ecode3 = 0 ;
26751 int val4 ;
26752 int ecode4 = 0 ;
26753 int val5 ;
26754 int ecode5 = 0 ;
26755 int val6 ;
26756 int ecode6 = 0 ;
26757 int val7 ;
26758 int ecode7 = 0 ;
26759 PyObject * obj0 = 0 ;
26760 PyObject * obj1 = 0 ;
26761 PyObject * obj2 = 0 ;
26762 PyObject * obj3 = 0 ;
26763 PyObject * obj4 = 0 ;
26764 PyObject * obj5 = 0 ;
26765 PyObject * obj6 = 0 ;
26766 char * kwnames[] = {
26767 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
26768 };
26769
26770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26772 if (!SWIG_IsOK(res1)) {
26773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26774 }
26775 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26776 ecode2 = SWIG_AsVal_int(obj1, &val2);
26777 if (!SWIG_IsOK(ecode2)) {
26778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
26779 }
26780 arg2 = static_cast< int >(val2);
26781 ecode3 = SWIG_AsVal_int(obj2, &val3);
26782 if (!SWIG_IsOK(ecode3)) {
26783 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
26784 }
26785 arg3 = static_cast< int >(val3);
26786 ecode4 = SWIG_AsVal_int(obj3, &val4);
26787 if (!SWIG_IsOK(ecode4)) {
26788 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
26789 }
26790 arg4 = static_cast< int >(val4);
26791 ecode5 = SWIG_AsVal_int(obj4, &val5);
26792 if (!SWIG_IsOK(ecode5)) {
26793 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
26794 }
26795 arg5 = static_cast< int >(val5);
26796 ecode6 = SWIG_AsVal_int(obj5, &val6);
26797 if (!SWIG_IsOK(ecode6)) {
26798 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
26799 }
26800 arg6 = static_cast< int >(val6);
26801 ecode7 = SWIG_AsVal_int(obj6, &val7);
26802 if (!SWIG_IsOK(ecode7)) {
26803 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
26804 }
26805 arg7 = static_cast< int >(val7);
26806 {
26807 PyThreadState* __tstate = wxPyBeginAllowThreads();
26808 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
26809 wxPyEndAllowThreads(__tstate);
26810 if (PyErr_Occurred()) SWIG_fail;
26811 }
26812 resultobj = SWIG_Py_Void();
26813 return resultobj;
26814 fail:
26815 return NULL;
26816 }
26817
26818
26819 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26820 PyObject *resultobj = 0;
26821 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26822 wxPoint *arg2 = 0 ;
26823 wxPoint *arg3 = 0 ;
26824 wxPoint *arg4 = 0 ;
26825 void *argp1 = 0 ;
26826 int res1 = 0 ;
26827 wxPoint temp2 ;
26828 wxPoint temp3 ;
26829 wxPoint temp4 ;
26830 PyObject * obj0 = 0 ;
26831 PyObject * obj1 = 0 ;
26832 PyObject * obj2 = 0 ;
26833 PyObject * obj3 = 0 ;
26834 char * kwnames[] = {
26835 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
26836 };
26837
26838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26840 if (!SWIG_IsOK(res1)) {
26841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26842 }
26843 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26844 {
26845 arg2 = &temp2;
26846 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26847 }
26848 {
26849 arg3 = &temp3;
26850 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26851 }
26852 {
26853 arg4 = &temp4;
26854 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26855 }
26856 {
26857 PyThreadState* __tstate = wxPyBeginAllowThreads();
26858 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
26859 wxPyEndAllowThreads(__tstate);
26860 if (PyErr_Occurred()) SWIG_fail;
26861 }
26862 resultobj = SWIG_Py_Void();
26863 return resultobj;
26864 fail:
26865 return NULL;
26866 }
26867
26868
26869 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26870 PyObject *resultobj = 0;
26871 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26872 int arg2 ;
26873 int arg3 ;
26874 int arg4 ;
26875 int arg5 ;
26876 void *argp1 = 0 ;
26877 int res1 = 0 ;
26878 int val2 ;
26879 int ecode2 = 0 ;
26880 int val3 ;
26881 int ecode3 = 0 ;
26882 int val4 ;
26883 int ecode4 = 0 ;
26884 int val5 ;
26885 int ecode5 = 0 ;
26886 PyObject * obj0 = 0 ;
26887 PyObject * obj1 = 0 ;
26888 PyObject * obj2 = 0 ;
26889 PyObject * obj3 = 0 ;
26890 PyObject * obj4 = 0 ;
26891 char * kwnames[] = {
26892 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26893 };
26894
26895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26897 if (!SWIG_IsOK(res1)) {
26898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26899 }
26900 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26901 ecode2 = SWIG_AsVal_int(obj1, &val2);
26902 if (!SWIG_IsOK(ecode2)) {
26903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
26904 }
26905 arg2 = static_cast< int >(val2);
26906 ecode3 = SWIG_AsVal_int(obj2, &val3);
26907 if (!SWIG_IsOK(ecode3)) {
26908 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
26909 }
26910 arg3 = static_cast< int >(val3);
26911 ecode4 = SWIG_AsVal_int(obj3, &val4);
26912 if (!SWIG_IsOK(ecode4)) {
26913 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
26914 }
26915 arg4 = static_cast< int >(val4);
26916 ecode5 = SWIG_AsVal_int(obj4, &val5);
26917 if (!SWIG_IsOK(ecode5)) {
26918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
26919 }
26920 arg5 = static_cast< int >(val5);
26921 {
26922 PyThreadState* __tstate = wxPyBeginAllowThreads();
26923 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
26924 wxPyEndAllowThreads(__tstate);
26925 if (PyErr_Occurred()) SWIG_fail;
26926 }
26927 resultobj = SWIG_Py_Void();
26928 return resultobj;
26929 fail:
26930 return NULL;
26931 }
26932
26933
26934 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26935 PyObject *resultobj = 0;
26936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26937 wxRect *arg2 = 0 ;
26938 void *argp1 = 0 ;
26939 int res1 = 0 ;
26940 wxRect temp2 ;
26941 PyObject * obj0 = 0 ;
26942 PyObject * obj1 = 0 ;
26943 char * kwnames[] = {
26944 (char *) "self",(char *) "rect", NULL
26945 };
26946
26947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
26948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26949 if (!SWIG_IsOK(res1)) {
26950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26951 }
26952 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26953 {
26954 arg2 = &temp2;
26955 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26956 }
26957 {
26958 PyThreadState* __tstate = wxPyBeginAllowThreads();
26959 (arg1)->DrawCheckMark((wxRect const &)*arg2);
26960 wxPyEndAllowThreads(__tstate);
26961 if (PyErr_Occurred()) SWIG_fail;
26962 }
26963 resultobj = SWIG_Py_Void();
26964 return resultobj;
26965 fail:
26966 return NULL;
26967 }
26968
26969
26970 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26971 PyObject *resultobj = 0;
26972 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26973 int arg2 ;
26974 int arg3 ;
26975 int arg4 ;
26976 int arg5 ;
26977 double arg6 ;
26978 double arg7 ;
26979 void *argp1 = 0 ;
26980 int res1 = 0 ;
26981 int val2 ;
26982 int ecode2 = 0 ;
26983 int val3 ;
26984 int ecode3 = 0 ;
26985 int val4 ;
26986 int ecode4 = 0 ;
26987 int val5 ;
26988 int ecode5 = 0 ;
26989 double val6 ;
26990 int ecode6 = 0 ;
26991 double val7 ;
26992 int ecode7 = 0 ;
26993 PyObject * obj0 = 0 ;
26994 PyObject * obj1 = 0 ;
26995 PyObject * obj2 = 0 ;
26996 PyObject * obj3 = 0 ;
26997 PyObject * obj4 = 0 ;
26998 PyObject * obj5 = 0 ;
26999 PyObject * obj6 = 0 ;
27000 char * kwnames[] = {
27001 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
27002 };
27003
27004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27006 if (!SWIG_IsOK(res1)) {
27007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27008 }
27009 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27010 ecode2 = SWIG_AsVal_int(obj1, &val2);
27011 if (!SWIG_IsOK(ecode2)) {
27012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
27013 }
27014 arg2 = static_cast< int >(val2);
27015 ecode3 = SWIG_AsVal_int(obj2, &val3);
27016 if (!SWIG_IsOK(ecode3)) {
27017 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
27018 }
27019 arg3 = static_cast< int >(val3);
27020 ecode4 = SWIG_AsVal_int(obj3, &val4);
27021 if (!SWIG_IsOK(ecode4)) {
27022 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
27023 }
27024 arg4 = static_cast< int >(val4);
27025 ecode5 = SWIG_AsVal_int(obj4, &val5);
27026 if (!SWIG_IsOK(ecode5)) {
27027 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
27028 }
27029 arg5 = static_cast< int >(val5);
27030 ecode6 = SWIG_AsVal_double(obj5, &val6);
27031 if (!SWIG_IsOK(ecode6)) {
27032 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
27033 }
27034 arg6 = static_cast< double >(val6);
27035 ecode7 = SWIG_AsVal_double(obj6, &val7);
27036 if (!SWIG_IsOK(ecode7)) {
27037 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
27038 }
27039 arg7 = static_cast< double >(val7);
27040 {
27041 PyThreadState* __tstate = wxPyBeginAllowThreads();
27042 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
27043 wxPyEndAllowThreads(__tstate);
27044 if (PyErr_Occurred()) SWIG_fail;
27045 }
27046 resultobj = SWIG_Py_Void();
27047 return resultobj;
27048 fail:
27049 return NULL;
27050 }
27051
27052
27053 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27054 PyObject *resultobj = 0;
27055 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27056 wxPoint *arg2 = 0 ;
27057 wxSize *arg3 = 0 ;
27058 double arg4 ;
27059 double arg5 ;
27060 void *argp1 = 0 ;
27061 int res1 = 0 ;
27062 wxPoint temp2 ;
27063 wxSize temp3 ;
27064 double val4 ;
27065 int ecode4 = 0 ;
27066 double val5 ;
27067 int ecode5 = 0 ;
27068 PyObject * obj0 = 0 ;
27069 PyObject * obj1 = 0 ;
27070 PyObject * obj2 = 0 ;
27071 PyObject * obj3 = 0 ;
27072 PyObject * obj4 = 0 ;
27073 char * kwnames[] = {
27074 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
27075 };
27076
27077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27079 if (!SWIG_IsOK(res1)) {
27080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27081 }
27082 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27083 {
27084 arg2 = &temp2;
27085 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27086 }
27087 {
27088 arg3 = &temp3;
27089 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27090 }
27091 ecode4 = SWIG_AsVal_double(obj3, &val4);
27092 if (!SWIG_IsOK(ecode4)) {
27093 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
27094 }
27095 arg4 = static_cast< double >(val4);
27096 ecode5 = SWIG_AsVal_double(obj4, &val5);
27097 if (!SWIG_IsOK(ecode5)) {
27098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
27099 }
27100 arg5 = static_cast< double >(val5);
27101 {
27102 PyThreadState* __tstate = wxPyBeginAllowThreads();
27103 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
27104 wxPyEndAllowThreads(__tstate);
27105 if (PyErr_Occurred()) SWIG_fail;
27106 }
27107 resultobj = SWIG_Py_Void();
27108 return resultobj;
27109 fail:
27110 return NULL;
27111 }
27112
27113
27114 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27115 PyObject *resultobj = 0;
27116 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27117 int arg2 ;
27118 int arg3 ;
27119 void *argp1 = 0 ;
27120 int res1 = 0 ;
27121 int val2 ;
27122 int ecode2 = 0 ;
27123 int val3 ;
27124 int ecode3 = 0 ;
27125 PyObject * obj0 = 0 ;
27126 PyObject * obj1 = 0 ;
27127 PyObject * obj2 = 0 ;
27128 char * kwnames[] = {
27129 (char *) "self",(char *) "x",(char *) "y", NULL
27130 };
27131
27132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27134 if (!SWIG_IsOK(res1)) {
27135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27136 }
27137 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27138 ecode2 = SWIG_AsVal_int(obj1, &val2);
27139 if (!SWIG_IsOK(ecode2)) {
27140 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
27141 }
27142 arg2 = static_cast< int >(val2);
27143 ecode3 = SWIG_AsVal_int(obj2, &val3);
27144 if (!SWIG_IsOK(ecode3)) {
27145 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
27146 }
27147 arg3 = static_cast< int >(val3);
27148 {
27149 PyThreadState* __tstate = wxPyBeginAllowThreads();
27150 (arg1)->DrawPoint(arg2,arg3);
27151 wxPyEndAllowThreads(__tstate);
27152 if (PyErr_Occurred()) SWIG_fail;
27153 }
27154 resultobj = SWIG_Py_Void();
27155 return resultobj;
27156 fail:
27157 return NULL;
27158 }
27159
27160
27161 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27162 PyObject *resultobj = 0;
27163 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27164 wxPoint *arg2 = 0 ;
27165 void *argp1 = 0 ;
27166 int res1 = 0 ;
27167 wxPoint temp2 ;
27168 PyObject * obj0 = 0 ;
27169 PyObject * obj1 = 0 ;
27170 char * kwnames[] = {
27171 (char *) "self",(char *) "pt", NULL
27172 };
27173
27174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
27175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27176 if (!SWIG_IsOK(res1)) {
27177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27178 }
27179 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27180 {
27181 arg2 = &temp2;
27182 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27183 }
27184 {
27185 PyThreadState* __tstate = wxPyBeginAllowThreads();
27186 (arg1)->DrawPoint((wxPoint const &)*arg2);
27187 wxPyEndAllowThreads(__tstate);
27188 if (PyErr_Occurred()) SWIG_fail;
27189 }
27190 resultobj = SWIG_Py_Void();
27191 return resultobj;
27192 fail:
27193 return NULL;
27194 }
27195
27196
27197 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27198 PyObject *resultobj = 0;
27199 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27200 int arg2 ;
27201 int arg3 ;
27202 int arg4 ;
27203 int arg5 ;
27204 void *argp1 = 0 ;
27205 int res1 = 0 ;
27206 int val2 ;
27207 int ecode2 = 0 ;
27208 int val3 ;
27209 int ecode3 = 0 ;
27210 int val4 ;
27211 int ecode4 = 0 ;
27212 int val5 ;
27213 int ecode5 = 0 ;
27214 PyObject * obj0 = 0 ;
27215 PyObject * obj1 = 0 ;
27216 PyObject * obj2 = 0 ;
27217 PyObject * obj3 = 0 ;
27218 PyObject * obj4 = 0 ;
27219 char * kwnames[] = {
27220 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27221 };
27222
27223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27225 if (!SWIG_IsOK(res1)) {
27226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27227 }
27228 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27229 ecode2 = SWIG_AsVal_int(obj1, &val2);
27230 if (!SWIG_IsOK(ecode2)) {
27231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
27232 }
27233 arg2 = static_cast< int >(val2);
27234 ecode3 = SWIG_AsVal_int(obj2, &val3);
27235 if (!SWIG_IsOK(ecode3)) {
27236 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
27237 }
27238 arg3 = static_cast< int >(val3);
27239 ecode4 = SWIG_AsVal_int(obj3, &val4);
27240 if (!SWIG_IsOK(ecode4)) {
27241 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
27242 }
27243 arg4 = static_cast< int >(val4);
27244 ecode5 = SWIG_AsVal_int(obj4, &val5);
27245 if (!SWIG_IsOK(ecode5)) {
27246 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
27247 }
27248 arg5 = static_cast< int >(val5);
27249 {
27250 PyThreadState* __tstate = wxPyBeginAllowThreads();
27251 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27252 wxPyEndAllowThreads(__tstate);
27253 if (PyErr_Occurred()) SWIG_fail;
27254 }
27255 resultobj = SWIG_Py_Void();
27256 return resultobj;
27257 fail:
27258 return NULL;
27259 }
27260
27261
27262 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27263 PyObject *resultobj = 0;
27264 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27265 wxRect *arg2 = 0 ;
27266 void *argp1 = 0 ;
27267 int res1 = 0 ;
27268 wxRect temp2 ;
27269 PyObject * obj0 = 0 ;
27270 PyObject * obj1 = 0 ;
27271 char * kwnames[] = {
27272 (char *) "self",(char *) "rect", NULL
27273 };
27274
27275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
27276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27277 if (!SWIG_IsOK(res1)) {
27278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27279 }
27280 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27281 {
27282 arg2 = &temp2;
27283 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27284 }
27285 {
27286 PyThreadState* __tstate = wxPyBeginAllowThreads();
27287 (arg1)->DrawRectangle((wxRect const &)*arg2);
27288 wxPyEndAllowThreads(__tstate);
27289 if (PyErr_Occurred()) SWIG_fail;
27290 }
27291 resultobj = SWIG_Py_Void();
27292 return resultobj;
27293 fail:
27294 return NULL;
27295 }
27296
27297
27298 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27299 PyObject *resultobj = 0;
27300 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27301 wxPoint *arg2 = 0 ;
27302 wxSize *arg3 = 0 ;
27303 void *argp1 = 0 ;
27304 int res1 = 0 ;
27305 wxPoint temp2 ;
27306 wxSize temp3 ;
27307 PyObject * obj0 = 0 ;
27308 PyObject * obj1 = 0 ;
27309 PyObject * obj2 = 0 ;
27310 char * kwnames[] = {
27311 (char *) "self",(char *) "pt",(char *) "sz", NULL
27312 };
27313
27314 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27315 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27316 if (!SWIG_IsOK(res1)) {
27317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27318 }
27319 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27320 {
27321 arg2 = &temp2;
27322 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27323 }
27324 {
27325 arg3 = &temp3;
27326 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27327 }
27328 {
27329 PyThreadState* __tstate = wxPyBeginAllowThreads();
27330 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
27331 wxPyEndAllowThreads(__tstate);
27332 if (PyErr_Occurred()) SWIG_fail;
27333 }
27334 resultobj = SWIG_Py_Void();
27335 return resultobj;
27336 fail:
27337 return NULL;
27338 }
27339
27340
27341 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27342 PyObject *resultobj = 0;
27343 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27344 int arg2 ;
27345 int arg3 ;
27346 int arg4 ;
27347 int arg5 ;
27348 double arg6 ;
27349 void *argp1 = 0 ;
27350 int res1 = 0 ;
27351 int val2 ;
27352 int ecode2 = 0 ;
27353 int val3 ;
27354 int ecode3 = 0 ;
27355 int val4 ;
27356 int ecode4 = 0 ;
27357 int val5 ;
27358 int ecode5 = 0 ;
27359 double val6 ;
27360 int ecode6 = 0 ;
27361 PyObject * obj0 = 0 ;
27362 PyObject * obj1 = 0 ;
27363 PyObject * obj2 = 0 ;
27364 PyObject * obj3 = 0 ;
27365 PyObject * obj4 = 0 ;
27366 PyObject * obj5 = 0 ;
27367 char * kwnames[] = {
27368 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
27369 };
27370
27371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27373 if (!SWIG_IsOK(res1)) {
27374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27375 }
27376 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27377 ecode2 = SWIG_AsVal_int(obj1, &val2);
27378 if (!SWIG_IsOK(ecode2)) {
27379 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
27380 }
27381 arg2 = static_cast< int >(val2);
27382 ecode3 = SWIG_AsVal_int(obj2, &val3);
27383 if (!SWIG_IsOK(ecode3)) {
27384 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
27385 }
27386 arg3 = static_cast< int >(val3);
27387 ecode4 = SWIG_AsVal_int(obj3, &val4);
27388 if (!SWIG_IsOK(ecode4)) {
27389 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
27390 }
27391 arg4 = static_cast< int >(val4);
27392 ecode5 = SWIG_AsVal_int(obj4, &val5);
27393 if (!SWIG_IsOK(ecode5)) {
27394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
27395 }
27396 arg5 = static_cast< int >(val5);
27397 ecode6 = SWIG_AsVal_double(obj5, &val6);
27398 if (!SWIG_IsOK(ecode6)) {
27399 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
27400 }
27401 arg6 = static_cast< double >(val6);
27402 {
27403 PyThreadState* __tstate = wxPyBeginAllowThreads();
27404 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27405 wxPyEndAllowThreads(__tstate);
27406 if (PyErr_Occurred()) SWIG_fail;
27407 }
27408 resultobj = SWIG_Py_Void();
27409 return resultobj;
27410 fail:
27411 return NULL;
27412 }
27413
27414
27415 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27416 PyObject *resultobj = 0;
27417 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27418 wxRect *arg2 = 0 ;
27419 double arg3 ;
27420 void *argp1 = 0 ;
27421 int res1 = 0 ;
27422 wxRect temp2 ;
27423 double val3 ;
27424 int ecode3 = 0 ;
27425 PyObject * obj0 = 0 ;
27426 PyObject * obj1 = 0 ;
27427 PyObject * obj2 = 0 ;
27428 char * kwnames[] = {
27429 (char *) "self",(char *) "r",(char *) "radius", NULL
27430 };
27431
27432 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27433 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27434 if (!SWIG_IsOK(res1)) {
27435 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27436 }
27437 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27438 {
27439 arg2 = &temp2;
27440 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27441 }
27442 ecode3 = SWIG_AsVal_double(obj2, &val3);
27443 if (!SWIG_IsOK(ecode3)) {
27444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
27445 }
27446 arg3 = static_cast< double >(val3);
27447 {
27448 PyThreadState* __tstate = wxPyBeginAllowThreads();
27449 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
27450 wxPyEndAllowThreads(__tstate);
27451 if (PyErr_Occurred()) SWIG_fail;
27452 }
27453 resultobj = SWIG_Py_Void();
27454 return resultobj;
27455 fail:
27456 return NULL;
27457 }
27458
27459
27460 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27461 PyObject *resultobj = 0;
27462 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27463 wxPoint *arg2 = 0 ;
27464 wxSize *arg3 = 0 ;
27465 double arg4 ;
27466 void *argp1 = 0 ;
27467 int res1 = 0 ;
27468 wxPoint temp2 ;
27469 wxSize temp3 ;
27470 double val4 ;
27471 int ecode4 = 0 ;
27472 PyObject * obj0 = 0 ;
27473 PyObject * obj1 = 0 ;
27474 PyObject * obj2 = 0 ;
27475 PyObject * obj3 = 0 ;
27476 char * kwnames[] = {
27477 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
27478 };
27479
27480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27481 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27482 if (!SWIG_IsOK(res1)) {
27483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27484 }
27485 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27486 {
27487 arg2 = &temp2;
27488 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27489 }
27490 {
27491 arg3 = &temp3;
27492 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27493 }
27494 ecode4 = SWIG_AsVal_double(obj3, &val4);
27495 if (!SWIG_IsOK(ecode4)) {
27496 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
27497 }
27498 arg4 = static_cast< double >(val4);
27499 {
27500 PyThreadState* __tstate = wxPyBeginAllowThreads();
27501 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
27502 wxPyEndAllowThreads(__tstate);
27503 if (PyErr_Occurred()) SWIG_fail;
27504 }
27505 resultobj = SWIG_Py_Void();
27506 return resultobj;
27507 fail:
27508 return NULL;
27509 }
27510
27511
27512 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27513 PyObject *resultobj = 0;
27514 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27515 int arg2 ;
27516 int arg3 ;
27517 int arg4 ;
27518 void *argp1 = 0 ;
27519 int res1 = 0 ;
27520 int val2 ;
27521 int ecode2 = 0 ;
27522 int val3 ;
27523 int ecode3 = 0 ;
27524 int val4 ;
27525 int ecode4 = 0 ;
27526 PyObject * obj0 = 0 ;
27527 PyObject * obj1 = 0 ;
27528 PyObject * obj2 = 0 ;
27529 PyObject * obj3 = 0 ;
27530 char * kwnames[] = {
27531 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
27532 };
27533
27534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27535 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27536 if (!SWIG_IsOK(res1)) {
27537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27538 }
27539 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27540 ecode2 = SWIG_AsVal_int(obj1, &val2);
27541 if (!SWIG_IsOK(ecode2)) {
27542 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
27543 }
27544 arg2 = static_cast< int >(val2);
27545 ecode3 = SWIG_AsVal_int(obj2, &val3);
27546 if (!SWIG_IsOK(ecode3)) {
27547 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
27548 }
27549 arg3 = static_cast< int >(val3);
27550 ecode4 = SWIG_AsVal_int(obj3, &val4);
27551 if (!SWIG_IsOK(ecode4)) {
27552 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
27553 }
27554 arg4 = static_cast< int >(val4);
27555 {
27556 PyThreadState* __tstate = wxPyBeginAllowThreads();
27557 (arg1)->DrawCircle(arg2,arg3,arg4);
27558 wxPyEndAllowThreads(__tstate);
27559 if (PyErr_Occurred()) SWIG_fail;
27560 }
27561 resultobj = SWIG_Py_Void();
27562 return resultobj;
27563 fail:
27564 return NULL;
27565 }
27566
27567
27568 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27569 PyObject *resultobj = 0;
27570 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27571 wxPoint *arg2 = 0 ;
27572 int arg3 ;
27573 void *argp1 = 0 ;
27574 int res1 = 0 ;
27575 wxPoint temp2 ;
27576 int val3 ;
27577 int ecode3 = 0 ;
27578 PyObject * obj0 = 0 ;
27579 PyObject * obj1 = 0 ;
27580 PyObject * obj2 = 0 ;
27581 char * kwnames[] = {
27582 (char *) "self",(char *) "pt",(char *) "radius", NULL
27583 };
27584
27585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27587 if (!SWIG_IsOK(res1)) {
27588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27589 }
27590 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27591 {
27592 arg2 = &temp2;
27593 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27594 }
27595 ecode3 = SWIG_AsVal_int(obj2, &val3);
27596 if (!SWIG_IsOK(ecode3)) {
27597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
27598 }
27599 arg3 = static_cast< int >(val3);
27600 {
27601 PyThreadState* __tstate = wxPyBeginAllowThreads();
27602 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
27603 wxPyEndAllowThreads(__tstate);
27604 if (PyErr_Occurred()) SWIG_fail;
27605 }
27606 resultobj = SWIG_Py_Void();
27607 return resultobj;
27608 fail:
27609 return NULL;
27610 }
27611
27612
27613 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27614 PyObject *resultobj = 0;
27615 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27616 int arg2 ;
27617 int arg3 ;
27618 int arg4 ;
27619 int arg5 ;
27620 void *argp1 = 0 ;
27621 int res1 = 0 ;
27622 int val2 ;
27623 int ecode2 = 0 ;
27624 int val3 ;
27625 int ecode3 = 0 ;
27626 int val4 ;
27627 int ecode4 = 0 ;
27628 int val5 ;
27629 int ecode5 = 0 ;
27630 PyObject * obj0 = 0 ;
27631 PyObject * obj1 = 0 ;
27632 PyObject * obj2 = 0 ;
27633 PyObject * obj3 = 0 ;
27634 PyObject * obj4 = 0 ;
27635 char * kwnames[] = {
27636 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27637 };
27638
27639 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27640 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27641 if (!SWIG_IsOK(res1)) {
27642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27643 }
27644 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27645 ecode2 = SWIG_AsVal_int(obj1, &val2);
27646 if (!SWIG_IsOK(ecode2)) {
27647 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
27648 }
27649 arg2 = static_cast< int >(val2);
27650 ecode3 = SWIG_AsVal_int(obj2, &val3);
27651 if (!SWIG_IsOK(ecode3)) {
27652 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
27653 }
27654 arg3 = static_cast< int >(val3);
27655 ecode4 = SWIG_AsVal_int(obj3, &val4);
27656 if (!SWIG_IsOK(ecode4)) {
27657 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
27658 }
27659 arg4 = static_cast< int >(val4);
27660 ecode5 = SWIG_AsVal_int(obj4, &val5);
27661 if (!SWIG_IsOK(ecode5)) {
27662 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
27663 }
27664 arg5 = static_cast< int >(val5);
27665 {
27666 PyThreadState* __tstate = wxPyBeginAllowThreads();
27667 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27668 wxPyEndAllowThreads(__tstate);
27669 if (PyErr_Occurred()) SWIG_fail;
27670 }
27671 resultobj = SWIG_Py_Void();
27672 return resultobj;
27673 fail:
27674 return NULL;
27675 }
27676
27677
27678 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27679 PyObject *resultobj = 0;
27680 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27681 wxRect *arg2 = 0 ;
27682 void *argp1 = 0 ;
27683 int res1 = 0 ;
27684 wxRect temp2 ;
27685 PyObject * obj0 = 0 ;
27686 PyObject * obj1 = 0 ;
27687 char * kwnames[] = {
27688 (char *) "self",(char *) "rect", NULL
27689 };
27690
27691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
27692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27693 if (!SWIG_IsOK(res1)) {
27694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27695 }
27696 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27697 {
27698 arg2 = &temp2;
27699 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27700 }
27701 {
27702 PyThreadState* __tstate = wxPyBeginAllowThreads();
27703 (arg1)->DrawEllipse((wxRect const &)*arg2);
27704 wxPyEndAllowThreads(__tstate);
27705 if (PyErr_Occurred()) SWIG_fail;
27706 }
27707 resultobj = SWIG_Py_Void();
27708 return resultobj;
27709 fail:
27710 return NULL;
27711 }
27712
27713
27714 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27715 PyObject *resultobj = 0;
27716 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27717 wxPoint *arg2 = 0 ;
27718 wxSize *arg3 = 0 ;
27719 void *argp1 = 0 ;
27720 int res1 = 0 ;
27721 wxPoint temp2 ;
27722 wxSize temp3 ;
27723 PyObject * obj0 = 0 ;
27724 PyObject * obj1 = 0 ;
27725 PyObject * obj2 = 0 ;
27726 char * kwnames[] = {
27727 (char *) "self",(char *) "pt",(char *) "sz", NULL
27728 };
27729
27730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27732 if (!SWIG_IsOK(res1)) {
27733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27734 }
27735 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27736 {
27737 arg2 = &temp2;
27738 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27739 }
27740 {
27741 arg3 = &temp3;
27742 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27743 }
27744 {
27745 PyThreadState* __tstate = wxPyBeginAllowThreads();
27746 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
27747 wxPyEndAllowThreads(__tstate);
27748 if (PyErr_Occurred()) SWIG_fail;
27749 }
27750 resultobj = SWIG_Py_Void();
27751 return resultobj;
27752 fail:
27753 return NULL;
27754 }
27755
27756
27757 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27758 PyObject *resultobj = 0;
27759 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27760 wxIcon *arg2 = 0 ;
27761 int arg3 ;
27762 int arg4 ;
27763 void *argp1 = 0 ;
27764 int res1 = 0 ;
27765 void *argp2 = 0 ;
27766 int res2 = 0 ;
27767 int val3 ;
27768 int ecode3 = 0 ;
27769 int val4 ;
27770 int ecode4 = 0 ;
27771 PyObject * obj0 = 0 ;
27772 PyObject * obj1 = 0 ;
27773 PyObject * obj2 = 0 ;
27774 PyObject * obj3 = 0 ;
27775 char * kwnames[] = {
27776 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
27777 };
27778
27779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27781 if (!SWIG_IsOK(res1)) {
27782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27783 }
27784 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27786 if (!SWIG_IsOK(res2)) {
27787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27788 }
27789 if (!argp2) {
27790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27791 }
27792 arg2 = reinterpret_cast< wxIcon * >(argp2);
27793 ecode3 = SWIG_AsVal_int(obj2, &val3);
27794 if (!SWIG_IsOK(ecode3)) {
27795 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
27796 }
27797 arg3 = static_cast< int >(val3);
27798 ecode4 = SWIG_AsVal_int(obj3, &val4);
27799 if (!SWIG_IsOK(ecode4)) {
27800 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
27801 }
27802 arg4 = static_cast< int >(val4);
27803 {
27804 PyThreadState* __tstate = wxPyBeginAllowThreads();
27805 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
27806 wxPyEndAllowThreads(__tstate);
27807 if (PyErr_Occurred()) SWIG_fail;
27808 }
27809 resultobj = SWIG_Py_Void();
27810 return resultobj;
27811 fail:
27812 return NULL;
27813 }
27814
27815
27816 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27817 PyObject *resultobj = 0;
27818 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27819 wxIcon *arg2 = 0 ;
27820 wxPoint *arg3 = 0 ;
27821 void *argp1 = 0 ;
27822 int res1 = 0 ;
27823 void *argp2 = 0 ;
27824 int res2 = 0 ;
27825 wxPoint temp3 ;
27826 PyObject * obj0 = 0 ;
27827 PyObject * obj1 = 0 ;
27828 PyObject * obj2 = 0 ;
27829 char * kwnames[] = {
27830 (char *) "self",(char *) "icon",(char *) "pt", NULL
27831 };
27832
27833 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27834 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27835 if (!SWIG_IsOK(res1)) {
27836 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27837 }
27838 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27839 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27840 if (!SWIG_IsOK(res2)) {
27841 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27842 }
27843 if (!argp2) {
27844 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27845 }
27846 arg2 = reinterpret_cast< wxIcon * >(argp2);
27847 {
27848 arg3 = &temp3;
27849 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27850 }
27851 {
27852 PyThreadState* __tstate = wxPyBeginAllowThreads();
27853 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
27854 wxPyEndAllowThreads(__tstate);
27855 if (PyErr_Occurred()) SWIG_fail;
27856 }
27857 resultobj = SWIG_Py_Void();
27858 return resultobj;
27859 fail:
27860 return NULL;
27861 }
27862
27863
27864 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27865 PyObject *resultobj = 0;
27866 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27867 wxBitmap *arg2 = 0 ;
27868 int arg3 ;
27869 int arg4 ;
27870 bool arg5 = (bool) false ;
27871 void *argp1 = 0 ;
27872 int res1 = 0 ;
27873 void *argp2 = 0 ;
27874 int res2 = 0 ;
27875 int val3 ;
27876 int ecode3 = 0 ;
27877 int val4 ;
27878 int ecode4 = 0 ;
27879 bool val5 ;
27880 int ecode5 = 0 ;
27881 PyObject * obj0 = 0 ;
27882 PyObject * obj1 = 0 ;
27883 PyObject * obj2 = 0 ;
27884 PyObject * obj3 = 0 ;
27885 PyObject * obj4 = 0 ;
27886 char * kwnames[] = {
27887 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
27888 };
27889
27890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27892 if (!SWIG_IsOK(res1)) {
27893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27894 }
27895 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27897 if (!SWIG_IsOK(res2)) {
27898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27899 }
27900 if (!argp2) {
27901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27902 }
27903 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27904 ecode3 = SWIG_AsVal_int(obj2, &val3);
27905 if (!SWIG_IsOK(ecode3)) {
27906 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
27907 }
27908 arg3 = static_cast< int >(val3);
27909 ecode4 = SWIG_AsVal_int(obj3, &val4);
27910 if (!SWIG_IsOK(ecode4)) {
27911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
27912 }
27913 arg4 = static_cast< int >(val4);
27914 if (obj4) {
27915 ecode5 = SWIG_AsVal_bool(obj4, &val5);
27916 if (!SWIG_IsOK(ecode5)) {
27917 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
27918 }
27919 arg5 = static_cast< bool >(val5);
27920 }
27921 {
27922 PyThreadState* __tstate = wxPyBeginAllowThreads();
27923 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
27924 wxPyEndAllowThreads(__tstate);
27925 if (PyErr_Occurred()) SWIG_fail;
27926 }
27927 resultobj = SWIG_Py_Void();
27928 return resultobj;
27929 fail:
27930 return NULL;
27931 }
27932
27933
27934 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27935 PyObject *resultobj = 0;
27936 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27937 wxBitmap *arg2 = 0 ;
27938 wxPoint *arg3 = 0 ;
27939 bool arg4 = (bool) false ;
27940 void *argp1 = 0 ;
27941 int res1 = 0 ;
27942 void *argp2 = 0 ;
27943 int res2 = 0 ;
27944 wxPoint temp3 ;
27945 bool val4 ;
27946 int ecode4 = 0 ;
27947 PyObject * obj0 = 0 ;
27948 PyObject * obj1 = 0 ;
27949 PyObject * obj2 = 0 ;
27950 PyObject * obj3 = 0 ;
27951 char * kwnames[] = {
27952 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
27953 };
27954
27955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27957 if (!SWIG_IsOK(res1)) {
27958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27959 }
27960 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27961 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27962 if (!SWIG_IsOK(res2)) {
27963 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27964 }
27965 if (!argp2) {
27966 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27967 }
27968 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27969 {
27970 arg3 = &temp3;
27971 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27972 }
27973 if (obj3) {
27974 ecode4 = SWIG_AsVal_bool(obj3, &val4);
27975 if (!SWIG_IsOK(ecode4)) {
27976 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
27977 }
27978 arg4 = static_cast< bool >(val4);
27979 }
27980 {
27981 PyThreadState* __tstate = wxPyBeginAllowThreads();
27982 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
27983 wxPyEndAllowThreads(__tstate);
27984 if (PyErr_Occurred()) SWIG_fail;
27985 }
27986 resultobj = SWIG_Py_Void();
27987 return resultobj;
27988 fail:
27989 return NULL;
27990 }
27991
27992
27993 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27994 PyObject *resultobj = 0;
27995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27996 wxString *arg2 = 0 ;
27997 int arg3 ;
27998 int arg4 ;
27999 void *argp1 = 0 ;
28000 int res1 = 0 ;
28001 bool temp2 = false ;
28002 int val3 ;
28003 int ecode3 = 0 ;
28004 int val4 ;
28005 int ecode4 = 0 ;
28006 PyObject * obj0 = 0 ;
28007 PyObject * obj1 = 0 ;
28008 PyObject * obj2 = 0 ;
28009 PyObject * obj3 = 0 ;
28010 char * kwnames[] = {
28011 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
28012 };
28013
28014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28015 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28016 if (!SWIG_IsOK(res1)) {
28017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28018 }
28019 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28020 {
28021 arg2 = wxString_in_helper(obj1);
28022 if (arg2 == NULL) SWIG_fail;
28023 temp2 = true;
28024 }
28025 ecode3 = SWIG_AsVal_int(obj2, &val3);
28026 if (!SWIG_IsOK(ecode3)) {
28027 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
28028 }
28029 arg3 = static_cast< int >(val3);
28030 ecode4 = SWIG_AsVal_int(obj3, &val4);
28031 if (!SWIG_IsOK(ecode4)) {
28032 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
28033 }
28034 arg4 = static_cast< int >(val4);
28035 {
28036 PyThreadState* __tstate = wxPyBeginAllowThreads();
28037 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
28038 wxPyEndAllowThreads(__tstate);
28039 if (PyErr_Occurred()) SWIG_fail;
28040 }
28041 resultobj = SWIG_Py_Void();
28042 {
28043 if (temp2)
28044 delete arg2;
28045 }
28046 return resultobj;
28047 fail:
28048 {
28049 if (temp2)
28050 delete arg2;
28051 }
28052 return NULL;
28053 }
28054
28055
28056 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28057 PyObject *resultobj = 0;
28058 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28059 wxString *arg2 = 0 ;
28060 wxPoint *arg3 = 0 ;
28061 void *argp1 = 0 ;
28062 int res1 = 0 ;
28063 bool temp2 = false ;
28064 wxPoint temp3 ;
28065 PyObject * obj0 = 0 ;
28066 PyObject * obj1 = 0 ;
28067 PyObject * obj2 = 0 ;
28068 char * kwnames[] = {
28069 (char *) "self",(char *) "text",(char *) "pt", NULL
28070 };
28071
28072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28073 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28074 if (!SWIG_IsOK(res1)) {
28075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28076 }
28077 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28078 {
28079 arg2 = wxString_in_helper(obj1);
28080 if (arg2 == NULL) SWIG_fail;
28081 temp2 = true;
28082 }
28083 {
28084 arg3 = &temp3;
28085 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28086 }
28087 {
28088 PyThreadState* __tstate = wxPyBeginAllowThreads();
28089 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
28090 wxPyEndAllowThreads(__tstate);
28091 if (PyErr_Occurred()) SWIG_fail;
28092 }
28093 resultobj = SWIG_Py_Void();
28094 {
28095 if (temp2)
28096 delete arg2;
28097 }
28098 return resultobj;
28099 fail:
28100 {
28101 if (temp2)
28102 delete arg2;
28103 }
28104 return NULL;
28105 }
28106
28107
28108 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28109 PyObject *resultobj = 0;
28110 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28111 wxString *arg2 = 0 ;
28112 int arg3 ;
28113 int arg4 ;
28114 double arg5 ;
28115 void *argp1 = 0 ;
28116 int res1 = 0 ;
28117 bool temp2 = false ;
28118 int val3 ;
28119 int ecode3 = 0 ;
28120 int val4 ;
28121 int ecode4 = 0 ;
28122 double val5 ;
28123 int ecode5 = 0 ;
28124 PyObject * obj0 = 0 ;
28125 PyObject * obj1 = 0 ;
28126 PyObject * obj2 = 0 ;
28127 PyObject * obj3 = 0 ;
28128 PyObject * obj4 = 0 ;
28129 char * kwnames[] = {
28130 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
28131 };
28132
28133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28135 if (!SWIG_IsOK(res1)) {
28136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28137 }
28138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28139 {
28140 arg2 = wxString_in_helper(obj1);
28141 if (arg2 == NULL) SWIG_fail;
28142 temp2 = true;
28143 }
28144 ecode3 = SWIG_AsVal_int(obj2, &val3);
28145 if (!SWIG_IsOK(ecode3)) {
28146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
28147 }
28148 arg3 = static_cast< int >(val3);
28149 ecode4 = SWIG_AsVal_int(obj3, &val4);
28150 if (!SWIG_IsOK(ecode4)) {
28151 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
28152 }
28153 arg4 = static_cast< int >(val4);
28154 ecode5 = SWIG_AsVal_double(obj4, &val5);
28155 if (!SWIG_IsOK(ecode5)) {
28156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
28157 }
28158 arg5 = static_cast< double >(val5);
28159 {
28160 PyThreadState* __tstate = wxPyBeginAllowThreads();
28161 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
28162 wxPyEndAllowThreads(__tstate);
28163 if (PyErr_Occurred()) SWIG_fail;
28164 }
28165 resultobj = SWIG_Py_Void();
28166 {
28167 if (temp2)
28168 delete arg2;
28169 }
28170 return resultobj;
28171 fail:
28172 {
28173 if (temp2)
28174 delete arg2;
28175 }
28176 return NULL;
28177 }
28178
28179
28180 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28181 PyObject *resultobj = 0;
28182 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28183 wxString *arg2 = 0 ;
28184 wxPoint *arg3 = 0 ;
28185 double arg4 ;
28186 void *argp1 = 0 ;
28187 int res1 = 0 ;
28188 bool temp2 = false ;
28189 wxPoint temp3 ;
28190 double val4 ;
28191 int ecode4 = 0 ;
28192 PyObject * obj0 = 0 ;
28193 PyObject * obj1 = 0 ;
28194 PyObject * obj2 = 0 ;
28195 PyObject * obj3 = 0 ;
28196 char * kwnames[] = {
28197 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
28198 };
28199
28200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28202 if (!SWIG_IsOK(res1)) {
28203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28204 }
28205 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28206 {
28207 arg2 = wxString_in_helper(obj1);
28208 if (arg2 == NULL) SWIG_fail;
28209 temp2 = true;
28210 }
28211 {
28212 arg3 = &temp3;
28213 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28214 }
28215 ecode4 = SWIG_AsVal_double(obj3, &val4);
28216 if (!SWIG_IsOK(ecode4)) {
28217 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
28218 }
28219 arg4 = static_cast< double >(val4);
28220 {
28221 PyThreadState* __tstate = wxPyBeginAllowThreads();
28222 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
28223 wxPyEndAllowThreads(__tstate);
28224 if (PyErr_Occurred()) SWIG_fail;
28225 }
28226 resultobj = SWIG_Py_Void();
28227 {
28228 if (temp2)
28229 delete arg2;
28230 }
28231 return resultobj;
28232 fail:
28233 {
28234 if (temp2)
28235 delete arg2;
28236 }
28237 return NULL;
28238 }
28239
28240
28241 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28242 PyObject *resultobj = 0;
28243 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28244 int arg2 ;
28245 wxPoint *arg3 = (wxPoint *) 0 ;
28246 int arg4 = (int) 0 ;
28247 int arg5 = (int) 0 ;
28248 void *argp1 = 0 ;
28249 int res1 = 0 ;
28250 int val4 ;
28251 int ecode4 = 0 ;
28252 int val5 ;
28253 int ecode5 = 0 ;
28254 PyObject * obj0 = 0 ;
28255 PyObject * obj1 = 0 ;
28256 PyObject * obj2 = 0 ;
28257 PyObject * obj3 = 0 ;
28258 char * kwnames[] = {
28259 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
28260 };
28261
28262 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28263 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28264 if (!SWIG_IsOK(res1)) {
28265 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28266 }
28267 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28268 {
28269 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28270 if (arg3 == NULL) SWIG_fail;
28271 }
28272 if (obj2) {
28273 ecode4 = SWIG_AsVal_int(obj2, &val4);
28274 if (!SWIG_IsOK(ecode4)) {
28275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
28276 }
28277 arg4 = static_cast< int >(val4);
28278 }
28279 if (obj3) {
28280 ecode5 = SWIG_AsVal_int(obj3, &val5);
28281 if (!SWIG_IsOK(ecode5)) {
28282 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
28283 }
28284 arg5 = static_cast< int >(val5);
28285 }
28286 {
28287 PyThreadState* __tstate = wxPyBeginAllowThreads();
28288 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
28289 wxPyEndAllowThreads(__tstate);
28290 if (PyErr_Occurred()) SWIG_fail;
28291 }
28292 resultobj = SWIG_Py_Void();
28293 {
28294 if (arg3) delete [] arg3;
28295 }
28296 return resultobj;
28297 fail:
28298 {
28299 if (arg3) delete [] arg3;
28300 }
28301 return NULL;
28302 }
28303
28304
28305 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28306 PyObject *resultobj = 0;
28307 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28308 int arg2 ;
28309 wxPoint *arg3 = (wxPoint *) 0 ;
28310 int arg4 = (int) 0 ;
28311 int arg5 = (int) 0 ;
28312 int arg6 = (int) wxODDEVEN_RULE ;
28313 void *argp1 = 0 ;
28314 int res1 = 0 ;
28315 int val4 ;
28316 int ecode4 = 0 ;
28317 int val5 ;
28318 int ecode5 = 0 ;
28319 int val6 ;
28320 int ecode6 = 0 ;
28321 PyObject * obj0 = 0 ;
28322 PyObject * obj1 = 0 ;
28323 PyObject * obj2 = 0 ;
28324 PyObject * obj3 = 0 ;
28325 PyObject * obj4 = 0 ;
28326 char * kwnames[] = {
28327 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
28328 };
28329
28330 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28331 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28332 if (!SWIG_IsOK(res1)) {
28333 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28334 }
28335 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28336 {
28337 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28338 if (arg3 == NULL) SWIG_fail;
28339 }
28340 if (obj2) {
28341 ecode4 = SWIG_AsVal_int(obj2, &val4);
28342 if (!SWIG_IsOK(ecode4)) {
28343 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
28344 }
28345 arg4 = static_cast< int >(val4);
28346 }
28347 if (obj3) {
28348 ecode5 = SWIG_AsVal_int(obj3, &val5);
28349 if (!SWIG_IsOK(ecode5)) {
28350 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
28351 }
28352 arg5 = static_cast< int >(val5);
28353 }
28354 if (obj4) {
28355 ecode6 = SWIG_AsVal_int(obj4, &val6);
28356 if (!SWIG_IsOK(ecode6)) {
28357 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
28358 }
28359 arg6 = static_cast< int >(val6);
28360 }
28361 {
28362 PyThreadState* __tstate = wxPyBeginAllowThreads();
28363 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
28364 wxPyEndAllowThreads(__tstate);
28365 if (PyErr_Occurred()) SWIG_fail;
28366 }
28367 resultobj = SWIG_Py_Void();
28368 {
28369 if (arg3) delete [] arg3;
28370 }
28371 return resultobj;
28372 fail:
28373 {
28374 if (arg3) delete [] arg3;
28375 }
28376 return NULL;
28377 }
28378
28379
28380 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28381 PyObject *resultobj = 0;
28382 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28383 wxString *arg2 = 0 ;
28384 wxRect *arg3 = 0 ;
28385 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
28386 int arg5 = (int) -1 ;
28387 void *argp1 = 0 ;
28388 int res1 = 0 ;
28389 bool temp2 = false ;
28390 wxRect temp3 ;
28391 int val4 ;
28392 int ecode4 = 0 ;
28393 int val5 ;
28394 int ecode5 = 0 ;
28395 PyObject * obj0 = 0 ;
28396 PyObject * obj1 = 0 ;
28397 PyObject * obj2 = 0 ;
28398 PyObject * obj3 = 0 ;
28399 PyObject * obj4 = 0 ;
28400 char * kwnames[] = {
28401 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
28402 };
28403
28404 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28405 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28406 if (!SWIG_IsOK(res1)) {
28407 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28408 }
28409 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28410 {
28411 arg2 = wxString_in_helper(obj1);
28412 if (arg2 == NULL) SWIG_fail;
28413 temp2 = true;
28414 }
28415 {
28416 arg3 = &temp3;
28417 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28418 }
28419 if (obj3) {
28420 ecode4 = SWIG_AsVal_int(obj3, &val4);
28421 if (!SWIG_IsOK(ecode4)) {
28422 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
28423 }
28424 arg4 = static_cast< int >(val4);
28425 }
28426 if (obj4) {
28427 ecode5 = SWIG_AsVal_int(obj4, &val5);
28428 if (!SWIG_IsOK(ecode5)) {
28429 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
28430 }
28431 arg5 = static_cast< int >(val5);
28432 }
28433 {
28434 PyThreadState* __tstate = wxPyBeginAllowThreads();
28435 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
28436 wxPyEndAllowThreads(__tstate);
28437 if (PyErr_Occurred()) SWIG_fail;
28438 }
28439 resultobj = SWIG_Py_Void();
28440 {
28441 if (temp2)
28442 delete arg2;
28443 }
28444 return resultobj;
28445 fail:
28446 {
28447 if (temp2)
28448 delete arg2;
28449 }
28450 return NULL;
28451 }
28452
28453
28454 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28455 PyObject *resultobj = 0;
28456 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28457 wxString *arg2 = 0 ;
28458 wxBitmap *arg3 = 0 ;
28459 wxRect *arg4 = 0 ;
28460 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
28461 int arg6 = (int) -1 ;
28462 void *argp1 = 0 ;
28463 int res1 = 0 ;
28464 bool temp2 = false ;
28465 void *argp3 = 0 ;
28466 int res3 = 0 ;
28467 wxRect temp4 ;
28468 int val5 ;
28469 int ecode5 = 0 ;
28470 int val6 ;
28471 int ecode6 = 0 ;
28472 PyObject * obj0 = 0 ;
28473 PyObject * obj1 = 0 ;
28474 PyObject * obj2 = 0 ;
28475 PyObject * obj3 = 0 ;
28476 PyObject * obj4 = 0 ;
28477 PyObject * obj5 = 0 ;
28478 char * kwnames[] = {
28479 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
28480 };
28481
28482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28484 if (!SWIG_IsOK(res1)) {
28485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28486 }
28487 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28488 {
28489 arg2 = wxString_in_helper(obj1);
28490 if (arg2 == NULL) SWIG_fail;
28491 temp2 = true;
28492 }
28493 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28494 if (!SWIG_IsOK(res3)) {
28495 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28496 }
28497 if (!argp3) {
28498 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28499 }
28500 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28501 {
28502 arg4 = &temp4;
28503 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28504 }
28505 if (obj4) {
28506 ecode5 = SWIG_AsVal_int(obj4, &val5);
28507 if (!SWIG_IsOK(ecode5)) {
28508 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
28509 }
28510 arg5 = static_cast< int >(val5);
28511 }
28512 if (obj5) {
28513 ecode6 = SWIG_AsVal_int(obj5, &val6);
28514 if (!SWIG_IsOK(ecode6)) {
28515 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
28516 }
28517 arg6 = static_cast< int >(val6);
28518 }
28519 {
28520 PyThreadState* __tstate = wxPyBeginAllowThreads();
28521 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
28522 wxPyEndAllowThreads(__tstate);
28523 if (PyErr_Occurred()) SWIG_fail;
28524 }
28525 resultobj = SWIG_Py_Void();
28526 {
28527 if (temp2)
28528 delete arg2;
28529 }
28530 return resultobj;
28531 fail:
28532 {
28533 if (temp2)
28534 delete arg2;
28535 }
28536 return NULL;
28537 }
28538
28539
28540 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28541 PyObject *resultobj = 0;
28542 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28543 int arg2 ;
28544 wxPoint *arg3 = (wxPoint *) 0 ;
28545 void *argp1 = 0 ;
28546 int res1 = 0 ;
28547 PyObject * obj0 = 0 ;
28548 PyObject * obj1 = 0 ;
28549 char * kwnames[] = {
28550 (char *) "self",(char *) "points", NULL
28551 };
28552
28553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
28554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28555 if (!SWIG_IsOK(res1)) {
28556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28557 }
28558 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28559 {
28560 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28561 if (arg3 == NULL) SWIG_fail;
28562 }
28563 {
28564 PyThreadState* __tstate = wxPyBeginAllowThreads();
28565 (arg1)->DrawSpline(arg2,arg3);
28566 wxPyEndAllowThreads(__tstate);
28567 if (PyErr_Occurred()) SWIG_fail;
28568 }
28569 resultobj = SWIG_Py_Void();
28570 {
28571 if (arg3) delete [] arg3;
28572 }
28573 return resultobj;
28574 fail:
28575 {
28576 if (arg3) delete [] arg3;
28577 }
28578 return NULL;
28579 }
28580
28581
28582 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28583 PyObject *resultobj = 0;
28584 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28585 void *argp1 = 0 ;
28586 int res1 = 0 ;
28587 PyObject *swig_obj[1] ;
28588
28589 if (!args) SWIG_fail;
28590 swig_obj[0] = args;
28591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28592 if (!SWIG_IsOK(res1)) {
28593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28594 }
28595 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28596 {
28597 PyThreadState* __tstate = wxPyBeginAllowThreads();
28598 (arg1)->Clear();
28599 wxPyEndAllowThreads(__tstate);
28600 if (PyErr_Occurred()) SWIG_fail;
28601 }
28602 resultobj = SWIG_Py_Void();
28603 return resultobj;
28604 fail:
28605 return NULL;
28606 }
28607
28608
28609 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28610 PyObject *resultobj = 0;
28611 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28612 wxFont *arg2 = 0 ;
28613 void *argp1 = 0 ;
28614 int res1 = 0 ;
28615 void *argp2 = 0 ;
28616 int res2 = 0 ;
28617 PyObject * obj0 = 0 ;
28618 PyObject * obj1 = 0 ;
28619 char * kwnames[] = {
28620 (char *) "self",(char *) "font", NULL
28621 };
28622
28623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28625 if (!SWIG_IsOK(res1)) {
28626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28627 }
28628 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28629 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28630 if (!SWIG_IsOK(res2)) {
28631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28632 }
28633 if (!argp2) {
28634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28635 }
28636 arg2 = reinterpret_cast< wxFont * >(argp2);
28637 {
28638 PyThreadState* __tstate = wxPyBeginAllowThreads();
28639 (arg1)->SetFont((wxFont const &)*arg2);
28640 wxPyEndAllowThreads(__tstate);
28641 if (PyErr_Occurred()) SWIG_fail;
28642 }
28643 resultobj = SWIG_Py_Void();
28644 return resultobj;
28645 fail:
28646 return NULL;
28647 }
28648
28649
28650 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28651 PyObject *resultobj = 0;
28652 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28653 wxPen *arg2 = 0 ;
28654 void *argp1 = 0 ;
28655 int res1 = 0 ;
28656 void *argp2 = 0 ;
28657 int res2 = 0 ;
28658 PyObject * obj0 = 0 ;
28659 PyObject * obj1 = 0 ;
28660 char * kwnames[] = {
28661 (char *) "self",(char *) "pen", NULL
28662 };
28663
28664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
28665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28666 if (!SWIG_IsOK(res1)) {
28667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28668 }
28669 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28670 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28671 if (!SWIG_IsOK(res2)) {
28672 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28673 }
28674 if (!argp2) {
28675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28676 }
28677 arg2 = reinterpret_cast< wxPen * >(argp2);
28678 {
28679 PyThreadState* __tstate = wxPyBeginAllowThreads();
28680 (arg1)->SetPen((wxPen const &)*arg2);
28681 wxPyEndAllowThreads(__tstate);
28682 if (PyErr_Occurred()) SWIG_fail;
28683 }
28684 resultobj = SWIG_Py_Void();
28685 return resultobj;
28686 fail:
28687 return NULL;
28688 }
28689
28690
28691 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28692 PyObject *resultobj = 0;
28693 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28694 wxBrush *arg2 = 0 ;
28695 void *argp1 = 0 ;
28696 int res1 = 0 ;
28697 void *argp2 = 0 ;
28698 int res2 = 0 ;
28699 PyObject * obj0 = 0 ;
28700 PyObject * obj1 = 0 ;
28701 char * kwnames[] = {
28702 (char *) "self",(char *) "brush", NULL
28703 };
28704
28705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28707 if (!SWIG_IsOK(res1)) {
28708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28709 }
28710 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28711 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28712 if (!SWIG_IsOK(res2)) {
28713 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28714 }
28715 if (!argp2) {
28716 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28717 }
28718 arg2 = reinterpret_cast< wxBrush * >(argp2);
28719 {
28720 PyThreadState* __tstate = wxPyBeginAllowThreads();
28721 (arg1)->SetBrush((wxBrush const &)*arg2);
28722 wxPyEndAllowThreads(__tstate);
28723 if (PyErr_Occurred()) SWIG_fail;
28724 }
28725 resultobj = SWIG_Py_Void();
28726 return resultobj;
28727 fail:
28728 return NULL;
28729 }
28730
28731
28732 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28733 PyObject *resultobj = 0;
28734 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28735 wxBrush *arg2 = 0 ;
28736 void *argp1 = 0 ;
28737 int res1 = 0 ;
28738 void *argp2 = 0 ;
28739 int res2 = 0 ;
28740 PyObject * obj0 = 0 ;
28741 PyObject * obj1 = 0 ;
28742 char * kwnames[] = {
28743 (char *) "self",(char *) "brush", NULL
28744 };
28745
28746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28748 if (!SWIG_IsOK(res1)) {
28749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28750 }
28751 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28752 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28753 if (!SWIG_IsOK(res2)) {
28754 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28755 }
28756 if (!argp2) {
28757 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28758 }
28759 arg2 = reinterpret_cast< wxBrush * >(argp2);
28760 {
28761 PyThreadState* __tstate = wxPyBeginAllowThreads();
28762 (arg1)->SetBackground((wxBrush const &)*arg2);
28763 wxPyEndAllowThreads(__tstate);
28764 if (PyErr_Occurred()) SWIG_fail;
28765 }
28766 resultobj = SWIG_Py_Void();
28767 return resultobj;
28768 fail:
28769 return NULL;
28770 }
28771
28772
28773 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28774 PyObject *resultobj = 0;
28775 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28776 int arg2 ;
28777 void *argp1 = 0 ;
28778 int res1 = 0 ;
28779 int val2 ;
28780 int ecode2 = 0 ;
28781 PyObject * obj0 = 0 ;
28782 PyObject * obj1 = 0 ;
28783 char * kwnames[] = {
28784 (char *) "self",(char *) "mode", NULL
28785 };
28786
28787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
28788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28789 if (!SWIG_IsOK(res1)) {
28790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28791 }
28792 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28793 ecode2 = SWIG_AsVal_int(obj1, &val2);
28794 if (!SWIG_IsOK(ecode2)) {
28795 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
28796 }
28797 arg2 = static_cast< int >(val2);
28798 {
28799 PyThreadState* __tstate = wxPyBeginAllowThreads();
28800 (arg1)->SetBackgroundMode(arg2);
28801 wxPyEndAllowThreads(__tstate);
28802 if (PyErr_Occurred()) SWIG_fail;
28803 }
28804 resultobj = SWIG_Py_Void();
28805 return resultobj;
28806 fail:
28807 return NULL;
28808 }
28809
28810
28811 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28812 PyObject *resultobj = 0;
28813 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28814 wxPalette *arg2 = 0 ;
28815 void *argp1 = 0 ;
28816 int res1 = 0 ;
28817 void *argp2 = 0 ;
28818 int res2 = 0 ;
28819 PyObject * obj0 = 0 ;
28820 PyObject * obj1 = 0 ;
28821 char * kwnames[] = {
28822 (char *) "self",(char *) "palette", NULL
28823 };
28824
28825 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
28826 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28827 if (!SWIG_IsOK(res1)) {
28828 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28829 }
28830 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28831 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
28832 if (!SWIG_IsOK(res2)) {
28833 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28834 }
28835 if (!argp2) {
28836 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28837 }
28838 arg2 = reinterpret_cast< wxPalette * >(argp2);
28839 {
28840 PyThreadState* __tstate = wxPyBeginAllowThreads();
28841 (arg1)->SetPalette((wxPalette const &)*arg2);
28842 wxPyEndAllowThreads(__tstate);
28843 if (PyErr_Occurred()) SWIG_fail;
28844 }
28845 resultobj = SWIG_Py_Void();
28846 return resultobj;
28847 fail:
28848 return NULL;
28849 }
28850
28851
28852 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28853 PyObject *resultobj = 0;
28854 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28855 wxColour *arg2 = 0 ;
28856 void *argp1 = 0 ;
28857 int res1 = 0 ;
28858 wxColour temp2 ;
28859 PyObject * obj0 = 0 ;
28860 PyObject * obj1 = 0 ;
28861 char * kwnames[] = {
28862 (char *) "self",(char *) "colour", NULL
28863 };
28864
28865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
28866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28867 if (!SWIG_IsOK(res1)) {
28868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28869 }
28870 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28871 {
28872 arg2 = &temp2;
28873 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28874 }
28875 {
28876 PyThreadState* __tstate = wxPyBeginAllowThreads();
28877 (arg1)->SetTextForeground((wxColour const &)*arg2);
28878 wxPyEndAllowThreads(__tstate);
28879 if (PyErr_Occurred()) SWIG_fail;
28880 }
28881 resultobj = SWIG_Py_Void();
28882 return resultobj;
28883 fail:
28884 return NULL;
28885 }
28886
28887
28888 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28889 PyObject *resultobj = 0;
28890 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28891 wxColour *arg2 = 0 ;
28892 void *argp1 = 0 ;
28893 int res1 = 0 ;
28894 wxColour temp2 ;
28895 PyObject * obj0 = 0 ;
28896 PyObject * obj1 = 0 ;
28897 char * kwnames[] = {
28898 (char *) "self",(char *) "colour", NULL
28899 };
28900
28901 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28902 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28903 if (!SWIG_IsOK(res1)) {
28904 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28905 }
28906 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28907 {
28908 arg2 = &temp2;
28909 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28910 }
28911 {
28912 PyThreadState* __tstate = wxPyBeginAllowThreads();
28913 (arg1)->SetTextBackground((wxColour const &)*arg2);
28914 wxPyEndAllowThreads(__tstate);
28915 if (PyErr_Occurred()) SWIG_fail;
28916 }
28917 resultobj = SWIG_Py_Void();
28918 return resultobj;
28919 fail:
28920 return NULL;
28921 }
28922
28923
28924 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28925 PyObject *resultobj = 0;
28926 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28927 int arg2 ;
28928 void *argp1 = 0 ;
28929 int res1 = 0 ;
28930 int val2 ;
28931 int ecode2 = 0 ;
28932 PyObject * obj0 = 0 ;
28933 PyObject * obj1 = 0 ;
28934 char * kwnames[] = {
28935 (char *) "self",(char *) "function", NULL
28936 };
28937
28938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28940 if (!SWIG_IsOK(res1)) {
28941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28942 }
28943 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28944 ecode2 = SWIG_AsVal_int(obj1, &val2);
28945 if (!SWIG_IsOK(ecode2)) {
28946 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28947 }
28948 arg2 = static_cast< int >(val2);
28949 {
28950 PyThreadState* __tstate = wxPyBeginAllowThreads();
28951 (arg1)->SetLogicalFunction(arg2);
28952 wxPyEndAllowThreads(__tstate);
28953 if (PyErr_Occurred()) SWIG_fail;
28954 }
28955 resultobj = SWIG_Py_Void();
28956 return resultobj;
28957 fail:
28958 return NULL;
28959 }
28960
28961
28962 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28963 PyObject *obj;
28964 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28965 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
28966 return SWIG_Py_Void();
28967 }
28968
28969 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28970 return SWIG_Python_InitShadowInstance(args);
28971 }
28972
28973 static PyMethodDef SwigMethods[] = {
28974 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
28975 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
28976 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
28977 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
28978 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
28979 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
28980 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
28981 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28982 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
28983 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
28984 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
28985 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
28986 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
28987 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28988 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28989 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28990 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
28991 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
28992 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28993 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28994 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
28995 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
28996 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
28997 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
28998 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
28999 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
29000 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
29001 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
29002 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
29003 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
29004 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
29005 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
29006 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
29007 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
29008 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
29009 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
29010 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
29011 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
29012 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
29013 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
29014 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
29015 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29016 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
29017 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29018 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29019 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
29020 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
29021 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
29022 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
29023 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
29024 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
29025 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29026 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29027 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
29028 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
29029 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
29030 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29031 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
29032 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29033 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29034 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
29035 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
29036 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
29037 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
29038 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
29039 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
29040 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
29041 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
29042 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29043 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
29044 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29045 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29046 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
29047 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
29048 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
29049 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
29050 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29051 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
29052 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
29053 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
29054 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
29055 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
29056 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
29057 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
29058 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
29059 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
29060 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29061 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
29062 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
29063 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
29064 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29065 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29066 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29067 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29068 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29069 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29070 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29071 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29072 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29073 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
29074 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
29075 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
29076 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
29077 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
29078 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
29079 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
29080 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
29081 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
29082 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
29083 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29084 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
29085 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
29086 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
29087 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29088 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
29089 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
29090 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
29091 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
29092 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29093 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29094 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29095 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29096 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29097 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
29098 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
29099 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
29100 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
29101 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
29102 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
29103 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
29104 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
29105 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
29106 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
29107 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
29108 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
29109 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
29110 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29111 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
29112 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29113 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
29114 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29115 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
29116 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
29117 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
29118 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
29119 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29120 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
29121 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
29122 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29123 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
29124 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
29125 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
29126 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
29127 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29128 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29129 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29130 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29131 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
29132 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
29133 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
29134 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29135 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
29136 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
29137 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
29138 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
29139 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
29140 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
29141 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29142 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
29143 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
29144 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
29145 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
29146 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
29147 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29148 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
29149 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
29150 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
29151 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29152 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
29153 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
29154 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29155 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
29156 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
29157 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29158 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
29159 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29160 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
29161 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
29162 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
29163 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
29164 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
29165 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
29166 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
29167 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
29168 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
29169 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
29170 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
29171 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
29172 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
29173 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
29174 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
29175 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
29176 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
29177 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
29178 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
29179 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
29180 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
29181 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
29182 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
29183 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
29184 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
29185 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
29186 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
29187 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
29188 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
29189 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
29190 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29191 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29192 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29193 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
29194 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
29195 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
29196 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
29197 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29198 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
29199 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
29200 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
29201 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
29202 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
29203 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
29204 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
29205 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
29206 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
29207 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
29208 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
29209 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
29210 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
29211 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
29212 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
29213 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
29214 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
29215 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29216 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29217 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
29218 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
29219 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
29220 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29221 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29222 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
29223 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29224 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
29225 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
29226 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
29227 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
29228 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
29229 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29230 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
29231 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
29232 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
29233 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
29234 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
29235 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
29236 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
29237 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29238 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
29239 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
29240 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29241 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29242 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
29243 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29244 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29245 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
29246 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
29247 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
29248 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
29249 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
29250 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
29251 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
29252 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
29253 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
29254 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
29255 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
29256 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
29257 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
29258 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29259 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29260 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
29261 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29262 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
29263 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
29264 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
29265 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29266 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29267 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
29268 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
29269 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
29270 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
29271 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
29272 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
29273 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
29274 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
29275 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29276 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
29277 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
29278 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
29279 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
29280 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29281 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
29282 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
29283 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
29284 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
29285 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
29286 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
29287 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
29288 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
29289 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
29290 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
29291 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
29292 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
29293 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
29294 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
29295 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
29296 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
29297 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
29298 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
29299 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
29300 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
29301 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
29302 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
29303 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
29304 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
29305 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
29306 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
29307 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
29308 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
29309 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
29310 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29311 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
29312 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29313 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
29314 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
29315 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
29316 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
29317 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
29318 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
29319 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
29320 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
29321 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
29322 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
29323 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
29324 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
29325 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
29326 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
29327 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
29328 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
29329 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
29330 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
29331 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29332 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
29333 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
29334 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
29335 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29336 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
29337 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29338 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
29339 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29340 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
29341 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29342 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
29343 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
29344 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
29345 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29346 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29347 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29348 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29349 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29350 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29351 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29352 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29353 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29354 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
29355 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29356 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
29357 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
29358 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29359 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29360 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29361 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29362 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29363 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
29364 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29365 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
29366 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29367 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
29368 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29369 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29370 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29371 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29372 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
29373 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
29374 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
29375 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29376 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29377 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
29378 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
29379 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
29380 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
29381 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
29382 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
29383 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29384 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29385 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29386 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29387 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
29388 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29389 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
29390 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
29391 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
29392 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
29393 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
29394 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29395 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29396 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29397 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
29398 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
29399 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
29400 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
29401 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
29402 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
29403 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
29404 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
29405 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
29406 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
29407 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
29408 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
29409 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
29410 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
29411 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
29412 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
29413 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
29414 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
29415 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
29416 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
29417 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
29418 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
29419 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
29420 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
29421 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
29422 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
29423 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29424 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
29425 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
29426 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
29427 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
29428 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
29429 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
29430 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
29431 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
29432 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
29433 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29434 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
29435 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
29436 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
29437 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29438 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
29439 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
29440 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
29441 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
29442 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
29443 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29444 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
29445 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
29446 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
29447 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
29448 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
29449 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
29450 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
29451 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
29452 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
29453 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
29454 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
29455 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
29456 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
29457 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
29458 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
29459 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
29460 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
29461 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
29462 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
29463 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
29464 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
29465 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
29466 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
29467 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
29468 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
29469 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
29470 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
29471 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
29472 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
29473 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
29474 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
29475 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
29476 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
29477 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
29478 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
29479 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
29480 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
29481 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
29482 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
29483 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
29484 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
29485 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
29486 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
29487 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
29488 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
29489 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
29490 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
29491 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
29492 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
29493 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
29494 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
29495 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
29496 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
29497 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
29498 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
29499 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
29500 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
29501 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
29502 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
29503 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
29504 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
29505 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
29506 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
29507 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
29508 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
29509 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
29510 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
29511 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
29512 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
29513 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
29514 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
29515 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
29516 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
29517 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29518 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29519 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29520 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
29521 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
29522 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
29523 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
29524 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
29525 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29526 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
29527 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
29528 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
29529 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
29530 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
29531 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
29532 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29533 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29534 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29535 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29536 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29537 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
29538 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
29539 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
29540 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
29541 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
29542 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
29543 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
29544 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
29545 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
29546 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
29547 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29548 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29549 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29550 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
29551 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
29552 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
29553 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
29554 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
29555 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
29556 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
29557 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
29558 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
29559 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
29560 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
29561 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
29562 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
29563 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
29564 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
29565 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
29566 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
29567 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
29568 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
29569 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
29570 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
29571 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
29572 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
29573 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
29574 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29575 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
29576 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29577 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29578 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29579 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
29580 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29581 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
29582 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
29583 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
29584 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
29585 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
29586 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
29587 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
29588 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
29589 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
29590 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
29591 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
29592 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
29593 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
29594 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
29595 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
29596 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
29597 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
29598 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
29599 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
29600 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
29601 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
29602 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
29603 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
29604 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
29605 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
29606 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
29607 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
29608 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
29609 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
29610 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29611 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
29612 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
29613 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
29614 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
29615 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
29616 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
29617 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
29618 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
29619 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
29620 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
29621 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
29622 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
29623 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
29624 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
29625 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
29626 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
29627 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
29628 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
29629 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
29630 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29631 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
29632 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29633 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
29634 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29635 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
29636 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29637 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
29638 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
29639 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
29640 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29641 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29642 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29643 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29644 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29645 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29646 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29647 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29648 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29649 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
29650 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29651 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
29652 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
29653 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29654 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29655 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29656 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29657 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29658 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
29659 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29660 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
29661 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29662 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
29663 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
29664 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29665 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29666 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
29667 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
29668 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29669 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29670 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29671 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29672 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
29673 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29674 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
29675 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29676 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
29677 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
29678 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
29679 { NULL, NULL, 0, NULL }
29680 };
29681
29682
29683 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29684
29685 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
29686 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
29687 }
29688 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
29689 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
29690 }
29691 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
29692 return (void *)((wxGDIObject *) ((wxIcon *) x));
29693 }
29694 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
29695 return (void *)((wxGDIObject *) ((wxPalette *) x));
29696 }
29697 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
29698 return (void *)((wxGDIObject *) ((wxPen *) x));
29699 }
29700 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
29701 return (void *)((wxGDIObject *) ((wxFont *) x));
29702 }
29703 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
29704 return (void *)((wxGDIObject *) ((wxCursor *) x));
29705 }
29706 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
29707 return (void *)((wxGDIObject *) ((wxBitmap *) x));
29708 }
29709 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
29710 return (void *)((wxGDIObject *) ((wxRegion *) x));
29711 }
29712 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
29713 return (void *)((wxGDIObject *) ((wxBrush *) x));
29714 }
29715 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
29716 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
29717 }
29718 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
29719 return (void *)((wxDC *) ((wxScreenDC *) x));
29720 }
29721 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
29722 return (void *)((wxDC *) ((wxMirrorDC *) x));
29723 }
29724 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
29725 return (void *)((wxDC *) ((wxMemoryDC *) x));
29726 }
29727 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
29728 return (void *)((wxDC *) ((wxWindowDC *) x));
29729 }
29730 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
29731 return (void *)((wxDC *) ((wxMetaFileDC *) x));
29732 }
29733 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
29734 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29735 }
29736 static void *_p_wxClientDCTo_p_wxDC(void *x) {
29737 return (void *)((wxDC *) ((wxClientDC *) x));
29738 }
29739 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
29740 return (void *)((wxDC *) ((wxPaintDC *) x));
29741 }
29742 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
29743 return (void *)((wxDC *) ((wxPostScriptDC *) x));
29744 }
29745 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
29746 return (void *)((wxDC *) ((wxPrinterDC *) x));
29747 }
29748 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
29749 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
29750 }
29751 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
29752 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
29753 }
29754 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
29755 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
29756 }
29757 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
29758 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
29759 }
29760 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29761 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29762 }
29763 static void *_p_wxPenTo_p_wxObject(void *x) {
29764 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
29765 }
29766 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
29767 return (void *)((wxObject *) ((wxRegionIterator *) x));
29768 }
29769 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29770 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29771 }
29772 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29773 return (void *)((wxObject *) ((wxSizerItem *) x));
29774 }
29775 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29776 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29777 }
29778 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29779 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29780 }
29781 static void *_p_wxIconTo_p_wxObject(void *x) {
29782 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
29783 }
29784 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29785 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29786 }
29787 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29788 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29789 }
29790 static void *_p_wxSizerTo_p_wxObject(void *x) {
29791 return (void *)((wxObject *) ((wxSizer *) x));
29792 }
29793 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29794 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29795 }
29796 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29797 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29798 }
29799 static void *_p_wxEventTo_p_wxObject(void *x) {
29800 return (void *)((wxObject *) ((wxEvent *) x));
29801 }
29802 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29803 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29804 }
29805 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29806 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29807 }
29808 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29809 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29810 }
29811 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
29812 return (void *)((wxObject *) ((wxPseudoDC *) x));
29813 }
29814 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
29815 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
29816 }
29817 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29818 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29819 }
29820 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29821 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29822 }
29823 static void *_p_wxDCTo_p_wxObject(void *x) {
29824 return (void *)((wxObject *) ((wxDC *) x));
29825 }
29826 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29827 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29828 }
29829 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29830 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29831 }
29832 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29833 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29834 }
29835 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29836 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29837 }
29838 static void *_p_wxControlTo_p_wxObject(void *x) {
29839 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29840 }
29841 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29842 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29843 }
29844 static void *_p_wxClientDCTo_p_wxObject(void *x) {
29845 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
29846 }
29847 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29848 return (void *)((wxObject *) ((wxFSFile *) x));
29849 }
29850 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
29851 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
29852 }
29853 static void *_p_wxRegionTo_p_wxObject(void *x) {
29854 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
29855 }
29856 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29857 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29858 }
29859 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
29860 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
29861 }
29862 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
29863 return (void *)((wxObject *) ((wxGDIObject *) x));
29864 }
29865 static void *_p_wxEffectsTo_p_wxObject(void *x) {
29866 return (void *)((wxObject *) ((wxEffects *) x));
29867 }
29868 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29869 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29870 }
29871 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29872 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29873 }
29874 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
29875 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
29876 }
29877 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29878 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29879 }
29880 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29881 return (void *)((wxObject *) ((wxMenuItem *) x));
29882 }
29883 static void *_p_wxDateEventTo_p_wxObject(void *x) {
29884 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
29885 }
29886 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29887 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29888 }
29889 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29890 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29891 }
29892 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29893 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29894 }
29895 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29896 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29897 }
29898 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29899 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29900 }
29901 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29902 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29903 }
29904 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29905 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29906 }
29907 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29908 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29909 }
29910 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29911 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29912 }
29913 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29914 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29915 }
29916 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29917 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29918 }
29919 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29920 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29921 }
29922 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29923 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29924 }
29925 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29926 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29927 }
29928 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29929 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29930 }
29931 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29932 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29933 }
29934 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29935 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29936 }
29937 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
29938 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
29939 }
29940 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29941 return (void *)((wxObject *) ((wxImageHandler *) x));
29942 }
29943 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29944 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29945 }
29946 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29947 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29948 }
29949 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29950 return (void *)((wxObject *) ((wxEvtHandler *) x));
29951 }
29952 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
29953 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29954 }
29955 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
29956 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
29957 }
29958 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
29959 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
29960 }
29961 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
29962 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
29963 }
29964 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
29965 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
29966 }
29967 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29968 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29969 }
29970 static void *_p_wxImageTo_p_wxObject(void *x) {
29971 return (void *)((wxObject *) ((wxImage *) x));
29972 }
29973 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29974 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29975 }
29976 static void *_p_wxPaletteTo_p_wxObject(void *x) {
29977 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
29978 }
29979 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
29980 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
29981 }
29982 static void *_p_wxImageListTo_p_wxObject(void *x) {
29983 return (void *)((wxObject *) ((wxImageList *) x));
29984 }
29985 static void *_p_wxCursorTo_p_wxObject(void *x) {
29986 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
29987 }
29988 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
29989 return (void *)((wxObject *) ((wxEncodingConverter *) x));
29990 }
29991 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
29992 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
29993 }
29994 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29995 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
29996 }
29997 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
29998 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
29999 }
30000 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30001 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30002 }
30003 static void *_p_wxWindowTo_p_wxObject(void *x) {
30004 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30005 }
30006 static void *_p_wxMenuTo_p_wxObject(void *x) {
30007 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30008 }
30009 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30010 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30011 }
30012 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
30013 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
30014 }
30015 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30016 return (void *)((wxObject *) ((wxFileSystem *) x));
30017 }
30018 static void *_p_wxBitmapTo_p_wxObject(void *x) {
30019 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
30020 }
30021 static void *_p_wxMaskTo_p_wxObject(void *x) {
30022 return (void *)((wxObject *) ((wxMask *) x));
30023 }
30024 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30025 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30026 }
30027 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30028 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30029 }
30030 static void *_p_wxPyAppTo_p_wxObject(void *x) {
30031 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30032 }
30033 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30034 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30035 }
30036 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30037 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30038 }
30039 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30040 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30041 }
30042 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30043 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30044 }
30045 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30046 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30047 }
30048 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30049 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30050 }
30051 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30052 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30053 }
30054 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30055 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30056 }
30057 static void *_p_wxFontTo_p_wxObject(void *x) {
30058 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
30059 }
30060 static void *_p_wxBrushTo_p_wxObject(void *x) {
30061 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
30062 }
30063 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
30064 return (void *)((wxObject *) ((wxMetaFile *) x));
30065 }
30066 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30067 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30068 }
30069 static void *_p_wxColourTo_p_wxObject(void *x) {
30070 return (void *)((wxObject *) ((wxColour *) x));
30071 }
30072 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30073 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30074 }
30075 static void *_p_wxValidatorTo_p_wxObject(void *x) {
30076 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30077 }
30078 static void *_p_wxControlTo_p_wxWindow(void *x) {
30079 return (void *)((wxWindow *) ((wxControl *) x));
30080 }
30081 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30082 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30083 }
30084 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30085 return (void *)((wxWindow *) ((wxMenuBar *) x));
30086 }
30087 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
30088 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
30089 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};
30090 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
30091 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
30092 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
30093 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
30094 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
30095 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
30096 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
30097 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
30098 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
30099 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
30100 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
30101 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
30102 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
30103 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
30104 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
30105 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
30106 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
30107 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
30108 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
30109 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
30110 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
30111 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
30112 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
30113 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
30114 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
30115 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
30116 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
30117 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
30118 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
30119 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
30120 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
30121 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
30122 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
30123 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
30124 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
30125 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
30126 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
30127 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
30128 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
30129 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
30130 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
30131 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
30132 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
30133 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
30134 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
30135 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
30136 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
30137 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
30138 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
30139 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
30140 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
30141 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
30142 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
30143 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
30144 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
30145 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
30146 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
30147 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
30148 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
30149 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
30150 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
30151 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
30152 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
30153 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
30154 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
30155 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
30156 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
30157 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
30158 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
30159 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
30160 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
30161 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
30162 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
30163 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
30164 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
30165 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
30166 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
30167 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
30168 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
30169 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
30170 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
30171 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
30172 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
30173 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
30174 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
30175 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
30176 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
30177 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
30178 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
30179 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
30180 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
30181 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
30182 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
30183 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
30184 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
30185 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
30186 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
30187 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
30188 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
30189 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
30190 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
30191 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
30192 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
30193 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
30194 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
30195 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
30196 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
30197 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
30198 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
30199 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
30200 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
30201 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
30202 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
30203 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
30204 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
30205 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
30206 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
30207 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
30208 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
30209 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
30210 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
30211 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
30212 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
30213 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
30214 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
30215 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
30216 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
30217 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
30218 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
30219 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
30220 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
30221 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
30222 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
30223 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
30224 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
30225 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
30226
30227 static swig_type_info *swig_type_initial[] = {
30228 &_swigt__p_char,
30229 &_swigt__p_double,
30230 &_swigt__p_form_ops_t,
30231 &_swigt__p_int,
30232 &_swigt__p_unsigned_char,
30233 &_swigt__p_unsigned_int,
30234 &_swigt__p_unsigned_long,
30235 &_swigt__p_wxANIHandler,
30236 &_swigt__p_wxAcceleratorTable,
30237 &_swigt__p_wxActivateEvent,
30238 &_swigt__p_wxBMPHandler,
30239 &_swigt__p_wxBitmap,
30240 &_swigt__p_wxBoxSizer,
30241 &_swigt__p_wxBrush,
30242 &_swigt__p_wxBrushList,
30243 &_swigt__p_wxBufferedDC,
30244 &_swigt__p_wxBufferedPaintDC,
30245 &_swigt__p_wxCURHandler,
30246 &_swigt__p_wxChildFocusEvent,
30247 &_swigt__p_wxClientDC,
30248 &_swigt__p_wxClipboardTextEvent,
30249 &_swigt__p_wxCloseEvent,
30250 &_swigt__p_wxColour,
30251 &_swigt__p_wxColourDatabase,
30252 &_swigt__p_wxCommandEvent,
30253 &_swigt__p_wxContextMenuEvent,
30254 &_swigt__p_wxControl,
30255 &_swigt__p_wxControlWithItems,
30256 &_swigt__p_wxCursor,
30257 &_swigt__p_wxDC,
30258 &_swigt__p_wxDash,
30259 &_swigt__p_wxDateEvent,
30260 &_swigt__p_wxDisplayChangedEvent,
30261 &_swigt__p_wxDropFilesEvent,
30262 &_swigt__p_wxDuplexMode,
30263 &_swigt__p_wxEffects,
30264 &_swigt__p_wxEncodingConverter,
30265 &_swigt__p_wxEraseEvent,
30266 &_swigt__p_wxEvent,
30267 &_swigt__p_wxEvtHandler,
30268 &_swigt__p_wxFSFile,
30269 &_swigt__p_wxFileSystem,
30270 &_swigt__p_wxFlexGridSizer,
30271 &_swigt__p_wxFocusEvent,
30272 &_swigt__p_wxFont,
30273 &_swigt__p_wxFontList,
30274 &_swigt__p_wxFontMapper,
30275 &_swigt__p_wxGBSizerItem,
30276 &_swigt__p_wxGDIObjListBase,
30277 &_swigt__p_wxGDIObject,
30278 &_swigt__p_wxGIFHandler,
30279 &_swigt__p_wxGridBagSizer,
30280 &_swigt__p_wxGridSizer,
30281 &_swigt__p_wxICOHandler,
30282 &_swigt__p_wxIcon,
30283 &_swigt__p_wxIconBundle,
30284 &_swigt__p_wxIconLocation,
30285 &_swigt__p_wxIconizeEvent,
30286 &_swigt__p_wxIdleEvent,
30287 &_swigt__p_wxImage,
30288 &_swigt__p_wxImageHandler,
30289 &_swigt__p_wxImageList,
30290 &_swigt__p_wxIndividualLayoutConstraint,
30291 &_swigt__p_wxInitDialogEvent,
30292 &_swigt__p_wxJPEGHandler,
30293 &_swigt__p_wxKeyEvent,
30294 &_swigt__p_wxLanguageInfo,
30295 &_swigt__p_wxLayoutConstraints,
30296 &_swigt__p_wxLocale,
30297 &_swigt__p_wxMask,
30298 &_swigt__p_wxMaximizeEvent,
30299 &_swigt__p_wxMemoryDC,
30300 &_swigt__p_wxMenu,
30301 &_swigt__p_wxMenuBar,
30302 &_swigt__p_wxMenuEvent,
30303 &_swigt__p_wxMenuItem,
30304 &_swigt__p_wxMetaFile,
30305 &_swigt__p_wxMetaFileDC,
30306 &_swigt__p_wxMirrorDC,
30307 &_swigt__p_wxMouseCaptureChangedEvent,
30308 &_swigt__p_wxMouseEvent,
30309 &_swigt__p_wxMoveEvent,
30310 &_swigt__p_wxNativeEncodingInfo,
30311 &_swigt__p_wxNativeFontInfo,
30312 &_swigt__p_wxNavigationKeyEvent,
30313 &_swigt__p_wxNcPaintEvent,
30314 &_swigt__p_wxNotifyEvent,
30315 &_swigt__p_wxObject,
30316 &_swigt__p_wxPCXHandler,
30317 &_swigt__p_wxPNGHandler,
30318 &_swigt__p_wxPNMHandler,
30319 &_swigt__p_wxPaintDC,
30320 &_swigt__p_wxPaintEvent,
30321 &_swigt__p_wxPalette,
30322 &_swigt__p_wxPaletteChangedEvent,
30323 &_swigt__p_wxPaperSize,
30324 &_swigt__p_wxPen,
30325 &_swigt__p_wxPenList,
30326 &_swigt__p_wxPoint,
30327 &_swigt__p_wxPostScriptDC,
30328 &_swigt__p_wxPrintData,
30329 &_swigt__p_wxPrinterDC,
30330 &_swigt__p_wxPseudoDC,
30331 &_swigt__p_wxPyApp,
30332 &_swigt__p_wxPyCommandEvent,
30333 &_swigt__p_wxPyEvent,
30334 &_swigt__p_wxPyFontEnumerator,
30335 &_swigt__p_wxPyImageHandler,
30336 &_swigt__p_wxPySizer,
30337 &_swigt__p_wxPyValidator,
30338 &_swigt__p_wxQueryNewPaletteEvent,
30339 &_swigt__p_wxRect,
30340 &_swigt__p_wxRegion,
30341 &_swigt__p_wxRegionIterator,
30342 &_swigt__p_wxRendererNative,
30343 &_swigt__p_wxRendererVersion,
30344 &_swigt__p_wxScreenDC,
30345 &_swigt__p_wxScrollEvent,
30346 &_swigt__p_wxScrollWinEvent,
30347 &_swigt__p_wxSetCursorEvent,
30348 &_swigt__p_wxShowEvent,
30349 &_swigt__p_wxSize,
30350 &_swigt__p_wxSizeEvent,
30351 &_swigt__p_wxSizer,
30352 &_swigt__p_wxSizerItem,
30353 &_swigt__p_wxSplitterRenderParams,
30354 &_swigt__p_wxStaticBoxSizer,
30355 &_swigt__p_wxStdDialogButtonSizer,
30356 &_swigt__p_wxStockGDI,
30357 &_swigt__p_wxString,
30358 &_swigt__p_wxSysColourChangedEvent,
30359 &_swigt__p_wxTIFFHandler,
30360 &_swigt__p_wxUpdateUIEvent,
30361 &_swigt__p_wxValidator,
30362 &_swigt__p_wxWindow,
30363 &_swigt__p_wxWindowCreateEvent,
30364 &_swigt__p_wxWindowDC,
30365 &_swigt__p_wxWindowDestroyEvent,
30366 &_swigt__p_wxXPMHandler,
30367 };
30368
30369 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
30370 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
30371 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
30372 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
30373 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
30374 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
30375 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
30376 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
30377 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
30378 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
30379 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}};
30380 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
30381 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
30382 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
30383 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
30384 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
30385 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}};
30386 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
30387 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
30388 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
30389 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
30390 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
30391 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
30392 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
30393 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}};
30394 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}};
30395 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
30396 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
30397 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
30398 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
30399 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
30400 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
30401 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
30402 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
30403 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}};
30404 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
30405 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
30406 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
30407 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
30408 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
30409 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
30410 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
30411 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
30412 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
30413 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
30414 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
30415 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
30416 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
30417 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
30418 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
30419 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
30420 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
30421 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
30422 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
30423 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
30424 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
30425 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
30426 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
30427 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30428 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30429 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30430 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30431 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
30432 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
30433 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
30434 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
30435 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
30436 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
30437 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
30438 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
30439 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
30440 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
30441 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
30442 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
30443 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30444 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30445 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30446 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
30447 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
30448 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
30449 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
30450 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
30451 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
30452 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
30453 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
30454 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
30455 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
30456 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
30457 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
30458 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
30459 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
30460 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
30461 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
30462 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
30463 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
30464 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
30465 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
30466 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
30467 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
30468 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
30469 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
30470 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
30471 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
30472 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
30473 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
30474 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
30475 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
30476 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
30477 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
30478 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
30479 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
30480 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
30481 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
30482 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
30483 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
30484 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_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_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_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}};
30485 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
30486 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
30487 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
30488 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
30489 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
30490 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
30491 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
30492 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
30493 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
30494 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
30495 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
30496 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
30497 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
30498 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
30499 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
30500 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
30501 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
30502 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
30503 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
30504 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
30505 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
30506 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}};
30507 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
30508
30509 static swig_cast_info *swig_cast_initial[] = {
30510 _swigc__p_char,
30511 _swigc__p_double,
30512 _swigc__p_form_ops_t,
30513 _swigc__p_int,
30514 _swigc__p_unsigned_char,
30515 _swigc__p_unsigned_int,
30516 _swigc__p_unsigned_long,
30517 _swigc__p_wxANIHandler,
30518 _swigc__p_wxAcceleratorTable,
30519 _swigc__p_wxActivateEvent,
30520 _swigc__p_wxBMPHandler,
30521 _swigc__p_wxBitmap,
30522 _swigc__p_wxBoxSizer,
30523 _swigc__p_wxBrush,
30524 _swigc__p_wxBrushList,
30525 _swigc__p_wxBufferedDC,
30526 _swigc__p_wxBufferedPaintDC,
30527 _swigc__p_wxCURHandler,
30528 _swigc__p_wxChildFocusEvent,
30529 _swigc__p_wxClientDC,
30530 _swigc__p_wxClipboardTextEvent,
30531 _swigc__p_wxCloseEvent,
30532 _swigc__p_wxColour,
30533 _swigc__p_wxColourDatabase,
30534 _swigc__p_wxCommandEvent,
30535 _swigc__p_wxContextMenuEvent,
30536 _swigc__p_wxControl,
30537 _swigc__p_wxControlWithItems,
30538 _swigc__p_wxCursor,
30539 _swigc__p_wxDC,
30540 _swigc__p_wxDash,
30541 _swigc__p_wxDateEvent,
30542 _swigc__p_wxDisplayChangedEvent,
30543 _swigc__p_wxDropFilesEvent,
30544 _swigc__p_wxDuplexMode,
30545 _swigc__p_wxEffects,
30546 _swigc__p_wxEncodingConverter,
30547 _swigc__p_wxEraseEvent,
30548 _swigc__p_wxEvent,
30549 _swigc__p_wxEvtHandler,
30550 _swigc__p_wxFSFile,
30551 _swigc__p_wxFileSystem,
30552 _swigc__p_wxFlexGridSizer,
30553 _swigc__p_wxFocusEvent,
30554 _swigc__p_wxFont,
30555 _swigc__p_wxFontList,
30556 _swigc__p_wxFontMapper,
30557 _swigc__p_wxGBSizerItem,
30558 _swigc__p_wxGDIObjListBase,
30559 _swigc__p_wxGDIObject,
30560 _swigc__p_wxGIFHandler,
30561 _swigc__p_wxGridBagSizer,
30562 _swigc__p_wxGridSizer,
30563 _swigc__p_wxICOHandler,
30564 _swigc__p_wxIcon,
30565 _swigc__p_wxIconBundle,
30566 _swigc__p_wxIconLocation,
30567 _swigc__p_wxIconizeEvent,
30568 _swigc__p_wxIdleEvent,
30569 _swigc__p_wxImage,
30570 _swigc__p_wxImageHandler,
30571 _swigc__p_wxImageList,
30572 _swigc__p_wxIndividualLayoutConstraint,
30573 _swigc__p_wxInitDialogEvent,
30574 _swigc__p_wxJPEGHandler,
30575 _swigc__p_wxKeyEvent,
30576 _swigc__p_wxLanguageInfo,
30577 _swigc__p_wxLayoutConstraints,
30578 _swigc__p_wxLocale,
30579 _swigc__p_wxMask,
30580 _swigc__p_wxMaximizeEvent,
30581 _swigc__p_wxMemoryDC,
30582 _swigc__p_wxMenu,
30583 _swigc__p_wxMenuBar,
30584 _swigc__p_wxMenuEvent,
30585 _swigc__p_wxMenuItem,
30586 _swigc__p_wxMetaFile,
30587 _swigc__p_wxMetaFileDC,
30588 _swigc__p_wxMirrorDC,
30589 _swigc__p_wxMouseCaptureChangedEvent,
30590 _swigc__p_wxMouseEvent,
30591 _swigc__p_wxMoveEvent,
30592 _swigc__p_wxNativeEncodingInfo,
30593 _swigc__p_wxNativeFontInfo,
30594 _swigc__p_wxNavigationKeyEvent,
30595 _swigc__p_wxNcPaintEvent,
30596 _swigc__p_wxNotifyEvent,
30597 _swigc__p_wxObject,
30598 _swigc__p_wxPCXHandler,
30599 _swigc__p_wxPNGHandler,
30600 _swigc__p_wxPNMHandler,
30601 _swigc__p_wxPaintDC,
30602 _swigc__p_wxPaintEvent,
30603 _swigc__p_wxPalette,
30604 _swigc__p_wxPaletteChangedEvent,
30605 _swigc__p_wxPaperSize,
30606 _swigc__p_wxPen,
30607 _swigc__p_wxPenList,
30608 _swigc__p_wxPoint,
30609 _swigc__p_wxPostScriptDC,
30610 _swigc__p_wxPrintData,
30611 _swigc__p_wxPrinterDC,
30612 _swigc__p_wxPseudoDC,
30613 _swigc__p_wxPyApp,
30614 _swigc__p_wxPyCommandEvent,
30615 _swigc__p_wxPyEvent,
30616 _swigc__p_wxPyFontEnumerator,
30617 _swigc__p_wxPyImageHandler,
30618 _swigc__p_wxPySizer,
30619 _swigc__p_wxPyValidator,
30620 _swigc__p_wxQueryNewPaletteEvent,
30621 _swigc__p_wxRect,
30622 _swigc__p_wxRegion,
30623 _swigc__p_wxRegionIterator,
30624 _swigc__p_wxRendererNative,
30625 _swigc__p_wxRendererVersion,
30626 _swigc__p_wxScreenDC,
30627 _swigc__p_wxScrollEvent,
30628 _swigc__p_wxScrollWinEvent,
30629 _swigc__p_wxSetCursorEvent,
30630 _swigc__p_wxShowEvent,
30631 _swigc__p_wxSize,
30632 _swigc__p_wxSizeEvent,
30633 _swigc__p_wxSizer,
30634 _swigc__p_wxSizerItem,
30635 _swigc__p_wxSplitterRenderParams,
30636 _swigc__p_wxStaticBoxSizer,
30637 _swigc__p_wxStdDialogButtonSizer,
30638 _swigc__p_wxStockGDI,
30639 _swigc__p_wxString,
30640 _swigc__p_wxSysColourChangedEvent,
30641 _swigc__p_wxTIFFHandler,
30642 _swigc__p_wxUpdateUIEvent,
30643 _swigc__p_wxValidator,
30644 _swigc__p_wxWindow,
30645 _swigc__p_wxWindowCreateEvent,
30646 _swigc__p_wxWindowDC,
30647 _swigc__p_wxWindowDestroyEvent,
30648 _swigc__p_wxXPMHandler,
30649 };
30650
30651
30652 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30653
30654 static swig_const_info swig_const_table[] = {
30655 {0, 0, 0, 0.0, 0, 0}};
30656
30657 #ifdef __cplusplus
30658 }
30659 #endif
30660 /* -----------------------------------------------------------------------------
30661 * Type initialization:
30662 * This problem is tough by the requirement that no dynamic
30663 * memory is used. Also, since swig_type_info structures store pointers to
30664 * swig_cast_info structures and swig_cast_info structures store pointers back
30665 * to swig_type_info structures, we need some lookup code at initialization.
30666 * The idea is that swig generates all the structures that are needed.
30667 * The runtime then collects these partially filled structures.
30668 * The SWIG_InitializeModule function takes these initial arrays out of
30669 * swig_module, and does all the lookup, filling in the swig_module.types
30670 * array with the correct data and linking the correct swig_cast_info
30671 * structures together.
30672 *
30673 * The generated swig_type_info structures are assigned staticly to an initial
30674 * array. We just loop though that array, and handle each type individually.
30675 * First we lookup if this type has been already loaded, and if so, use the
30676 * loaded structure instead of the generated one. Then we have to fill in the
30677 * cast linked list. The cast data is initially stored in something like a
30678 * two-dimensional array. Each row corresponds to a type (there are the same
30679 * number of rows as there are in the swig_type_initial array). Each entry in
30680 * a column is one of the swig_cast_info structures for that type.
30681 * The cast_initial array is actually an array of arrays, because each row has
30682 * a variable number of columns. So to actually build the cast linked list,
30683 * we find the array of casts associated with the type, and loop through it
30684 * adding the casts to the list. The one last trick we need to do is making
30685 * sure the type pointer in the swig_cast_info struct is correct.
30686 *
30687 * First off, we lookup the cast->type name to see if it is already loaded.
30688 * There are three cases to handle:
30689 * 1) If the cast->type has already been loaded AND the type we are adding
30690 * casting info to has not been loaded (it is in this module), THEN we
30691 * replace the cast->type pointer with the type pointer that has already
30692 * been loaded.
30693 * 2) If BOTH types (the one we are adding casting info to, and the
30694 * cast->type) are loaded, THEN the cast info has already been loaded by
30695 * the previous module so we just ignore it.
30696 * 3) Finally, if cast->type has not already been loaded, then we add that
30697 * swig_cast_info to the linked list (because the cast->type) pointer will
30698 * be correct.
30699 * ----------------------------------------------------------------------------- */
30700
30701 #ifdef __cplusplus
30702 extern "C" {
30703 #if 0
30704 } /* c-mode */
30705 #endif
30706 #endif
30707
30708 #if 0
30709 #define SWIGRUNTIME_DEBUG
30710 #endif
30711
30712 SWIGRUNTIME void
30713 SWIG_InitializeModule(void *clientdata) {
30714 size_t i;
30715 swig_module_info *module_head;
30716 static int init_run = 0;
30717
30718 clientdata = clientdata;
30719
30720 if (init_run) return;
30721 init_run = 1;
30722
30723 /* Initialize the swig_module */
30724 swig_module.type_initial = swig_type_initial;
30725 swig_module.cast_initial = swig_cast_initial;
30726
30727 /* Try and load any already created modules */
30728 module_head = SWIG_GetModule(clientdata);
30729 if (module_head) {
30730 swig_module.next = module_head->next;
30731 module_head->next = &swig_module;
30732 } else {
30733 /* This is the first module loaded */
30734 swig_module.next = &swig_module;
30735 SWIG_SetModule(clientdata, &swig_module);
30736 }
30737
30738 /* Now work on filling in swig_module.types */
30739 #ifdef SWIGRUNTIME_DEBUG
30740 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
30741 #endif
30742 for (i = 0; i < swig_module.size; ++i) {
30743 swig_type_info *type = 0;
30744 swig_type_info *ret;
30745 swig_cast_info *cast;
30746
30747 #ifdef SWIGRUNTIME_DEBUG
30748 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30749 #endif
30750
30751 /* if there is another module already loaded */
30752 if (swig_module.next != &swig_module) {
30753 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
30754 }
30755 if (type) {
30756 /* Overwrite clientdata field */
30757 #ifdef SWIGRUNTIME_DEBUG
30758 printf("SWIG_InitializeModule: found type %s\n", type->name);
30759 #endif
30760 if (swig_module.type_initial[i]->clientdata) {
30761 type->clientdata = swig_module.type_initial[i]->clientdata;
30762 #ifdef SWIGRUNTIME_DEBUG
30763 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
30764 #endif
30765 }
30766 } else {
30767 type = swig_module.type_initial[i];
30768 }
30769
30770 /* Insert casting types */
30771 cast = swig_module.cast_initial[i];
30772 while (cast->type) {
30773 /* Don't need to add information already in the list */
30774 ret = 0;
30775 #ifdef SWIGRUNTIME_DEBUG
30776 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
30777 #endif
30778 if (swig_module.next != &swig_module) {
30779 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
30780 #ifdef SWIGRUNTIME_DEBUG
30781 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
30782 #endif
30783 }
30784 if (ret) {
30785 if (type == swig_module.type_initial[i]) {
30786 #ifdef SWIGRUNTIME_DEBUG
30787 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
30788 #endif
30789 cast->type = ret;
30790 ret = 0;
30791 } else {
30792 /* Check for casting already in the list */
30793 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
30794 #ifdef SWIGRUNTIME_DEBUG
30795 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
30796 #endif
30797 if (!ocast) ret = 0;
30798 }
30799 }
30800
30801 if (!ret) {
30802 #ifdef SWIGRUNTIME_DEBUG
30803 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
30804 #endif
30805 if (type->cast) {
30806 type->cast->prev = cast;
30807 cast->next = type->cast;
30808 }
30809 type->cast = cast;
30810 }
30811 cast++;
30812 }
30813 /* Set entry in modules->types array equal to the type */
30814 swig_module.types[i] = type;
30815 }
30816 swig_module.types[i] = 0;
30817
30818 #ifdef SWIGRUNTIME_DEBUG
30819 printf("**** SWIG_InitializeModule: Cast List ******\n");
30820 for (i = 0; i < swig_module.size; ++i) {
30821 int j = 0;
30822 swig_cast_info *cast = swig_module.cast_initial[i];
30823 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30824 while (cast->type) {
30825 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
30826 cast++;
30827 ++j;
30828 }
30829 printf("---- Total casts: %d\n",j);
30830 }
30831 printf("**** SWIG_InitializeModule: Cast List ******\n");
30832 #endif
30833 }
30834
30835 /* This function will propagate the clientdata field of type to
30836 * any new swig_type_info structures that have been added into the list
30837 * of equivalent types. It is like calling
30838 * SWIG_TypeClientData(type, clientdata) a second time.
30839 */
30840 SWIGRUNTIME void
30841 SWIG_PropagateClientData(void) {
30842 size_t i;
30843 swig_cast_info *equiv;
30844 static int init_run = 0;
30845
30846 if (init_run) return;
30847 init_run = 1;
30848
30849 for (i = 0; i < swig_module.size; i++) {
30850 if (swig_module.types[i]->clientdata) {
30851 equiv = swig_module.types[i]->cast;
30852 while (equiv) {
30853 if (!equiv->converter) {
30854 if (equiv->type && !equiv->type->clientdata)
30855 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
30856 }
30857 equiv = equiv->next;
30858 }
30859 }
30860 }
30861 }
30862
30863 #ifdef __cplusplus
30864 #if 0
30865 {
30866 /* c-mode */
30867 #endif
30868 }
30869 #endif
30870
30871
30872
30873 #ifdef __cplusplus
30874 extern "C" {
30875 #endif
30876
30877 /* Python-specific SWIG API */
30878 #define SWIG_newvarlink() SWIG_Python_newvarlink()
30879 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
30880 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
30881
30882 /* -----------------------------------------------------------------------------
30883 * global variable support code.
30884 * ----------------------------------------------------------------------------- */
30885
30886 typedef struct swig_globalvar {
30887 char *name; /* Name of global variable */
30888 PyObject *(*get_attr)(void); /* Return the current value */
30889 int (*set_attr)(PyObject *); /* Set the value */
30890 struct swig_globalvar *next;
30891 } swig_globalvar;
30892
30893 typedef struct swig_varlinkobject {
30894 PyObject_HEAD
30895 swig_globalvar *vars;
30896 } swig_varlinkobject;
30897
30898 SWIGINTERN PyObject *
30899 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
30900 return PyString_FromString("<Swig global variables>");
30901 }
30902
30903 SWIGINTERN PyObject *
30904 swig_varlink_str(swig_varlinkobject *v) {
30905 PyObject *str = PyString_FromString("(");
30906 swig_globalvar *var;
30907 for (var = v->vars; var; var=var->next) {
30908 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
30909 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
30910 }
30911 PyString_ConcatAndDel(&str,PyString_FromString(")"));
30912 return str;
30913 }
30914
30915 SWIGINTERN int
30916 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
30917 PyObject *str = swig_varlink_str(v);
30918 fprintf(fp,"Swig global variables ");
30919 fprintf(fp,"%s\n", PyString_AsString(str));
30920 Py_DECREF(str);
30921 return 0;
30922 }
30923
30924 SWIGINTERN void
30925 swig_varlink_dealloc(swig_varlinkobject *v) {
30926 swig_globalvar *var = v->vars;
30927 while (var) {
30928 swig_globalvar *n = var->next;
30929 free(var->name);
30930 free(var);
30931 var = n;
30932 }
30933 }
30934
30935 SWIGINTERN PyObject *
30936 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
30937 PyObject *res = NULL;
30938 swig_globalvar *var = v->vars;
30939 while (var) {
30940 if (strcmp(var->name,n) == 0) {
30941 res = (*var->get_attr)();
30942 break;
30943 }
30944 var = var->next;
30945 }
30946 if (res == NULL && !PyErr_Occurred()) {
30947 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30948 }
30949 return res;
30950 }
30951
30952 SWIGINTERN int
30953 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
30954 int res = 1;
30955 swig_globalvar *var = v->vars;
30956 while (var) {
30957 if (strcmp(var->name,n) == 0) {
30958 res = (*var->set_attr)(p);
30959 break;
30960 }
30961 var = var->next;
30962 }
30963 if (res == 1 && !PyErr_Occurred()) {
30964 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30965 }
30966 return res;
30967 }
30968
30969 SWIGINTERN PyTypeObject*
30970 swig_varlink_type(void) {
30971 static char varlink__doc__[] = "Swig var link object";
30972 static PyTypeObject varlink_type;
30973 static int type_init = 0;
30974 if (!type_init) {
30975 const PyTypeObject tmp
30976 = {
30977 PyObject_HEAD_INIT(NULL)
30978 0, /* Number of items in variable part (ob_size) */
30979 (char *)"swigvarlink", /* Type name (tp_name) */
30980 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
30981 0, /* Itemsize (tp_itemsize) */
30982 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
30983 (printfunc) swig_varlink_print, /* Print (tp_print) */
30984 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
30985 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
30986 0, /* tp_compare */
30987 (reprfunc) swig_varlink_repr, /* tp_repr */
30988 0, /* tp_as_number */
30989 0, /* tp_as_sequence */
30990 0, /* tp_as_mapping */
30991 0, /* tp_hash */
30992 0, /* tp_call */
30993 (reprfunc)swig_varlink_str, /* tp_str */
30994 0, /* tp_getattro */
30995 0, /* tp_setattro */
30996 0, /* tp_as_buffer */
30997 0, /* tp_flags */
30998 varlink__doc__, /* tp_doc */
30999 0, /* tp_traverse */
31000 0, /* tp_clear */
31001 0, /* tp_richcompare */
31002 0, /* tp_weaklistoffset */
31003 #if PY_VERSION_HEX >= 0x02020000
31004 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
31005 #endif
31006 #if PY_VERSION_HEX >= 0x02030000
31007 0, /* tp_del */
31008 #endif
31009 #ifdef COUNT_ALLOCS
31010 0,0,0,0 /* tp_alloc -> tp_next */
31011 #endif
31012 };
31013 varlink_type = tmp;
31014 varlink_type.ob_type = &PyType_Type;
31015 type_init = 1;
31016 }
31017 return &varlink_type;
31018 }
31019
31020 /* Create a variable linking object for use later */
31021 SWIGINTERN PyObject *
31022 SWIG_Python_newvarlink(void) {
31023 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
31024 if (result) {
31025 result->vars = 0;
31026 }
31027 return ((PyObject*) result);
31028 }
31029
31030 SWIGINTERN void
31031 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
31032 swig_varlinkobject *v = (swig_varlinkobject *) p;
31033 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
31034 if (gv) {
31035 size_t size = strlen(name)+1;
31036 gv->name = (char *)malloc(size);
31037 if (gv->name) {
31038 strncpy(gv->name,name,size);
31039 gv->get_attr = get_attr;
31040 gv->set_attr = set_attr;
31041 gv->next = v->vars;
31042 }
31043 }
31044 v->vars = gv;
31045 }
31046
31047 SWIGINTERN PyObject *
31048 SWIG_globals() {
31049 static PyObject *_SWIG_globals = 0;
31050 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
31051 return _SWIG_globals;
31052 }
31053
31054 /* -----------------------------------------------------------------------------
31055 * constants/methods manipulation
31056 * ----------------------------------------------------------------------------- */
31057
31058 /* Install Constants */
31059 SWIGINTERN void
31060 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
31061 PyObject *obj = 0;
31062 size_t i;
31063 for (i = 0; constants[i].type; ++i) {
31064 switch(constants[i].type) {
31065 case SWIG_PY_POINTER:
31066 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
31067 break;
31068 case SWIG_PY_BINARY:
31069 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
31070 break;
31071 default:
31072 obj = 0;
31073 break;
31074 }
31075 if (obj) {
31076 PyDict_SetItemString(d, constants[i].name, obj);
31077 Py_DECREF(obj);
31078 }
31079 }
31080 }
31081
31082 /* -----------------------------------------------------------------------------*/
31083 /* Fix SwigMethods to carry the callback ptrs when needed */
31084 /* -----------------------------------------------------------------------------*/
31085
31086 SWIGINTERN void
31087 SWIG_Python_FixMethods(PyMethodDef *methods,
31088 swig_const_info *const_table,
31089 swig_type_info **types,
31090 swig_type_info **types_initial) {
31091 size_t i;
31092 for (i = 0; methods[i].ml_name; ++i) {
31093 const char *c = methods[i].ml_doc;
31094 if (c && (c = strstr(c, "swig_ptr: "))) {
31095 int j;
31096 swig_const_info *ci = 0;
31097 const char *name = c + 10;
31098 for (j = 0; const_table[j].type; ++j) {
31099 if (strncmp(const_table[j].name, name,
31100 strlen(const_table[j].name)) == 0) {
31101 ci = &(const_table[j]);
31102 break;
31103 }
31104 }
31105 if (ci) {
31106 size_t shift = (ci->ptype) - types;
31107 swig_type_info *ty = types_initial[shift];
31108 size_t ldoc = (c - methods[i].ml_doc);
31109 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
31110 char *ndoc = (char*)malloc(ldoc + lptr + 10);
31111 if (ndoc) {
31112 char *buff = ndoc;
31113 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
31114 if (ptr) {
31115 strncpy(buff, methods[i].ml_doc, ldoc);
31116 buff += ldoc;
31117 strncpy(buff, "swig_ptr: ", 10);
31118 buff += 10;
31119 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
31120 methods[i].ml_doc = ndoc;
31121 }
31122 }
31123 }
31124 }
31125 }
31126 }
31127
31128 #ifdef __cplusplus
31129 }
31130 #endif
31131
31132 /* -----------------------------------------------------------------------------*
31133 * Partial Init method
31134 * -----------------------------------------------------------------------------*/
31135
31136 #ifdef __cplusplus
31137 extern "C"
31138 #endif
31139 SWIGEXPORT void SWIG_init(void) {
31140 PyObject *m, *d;
31141
31142 /* Fix SwigMethods to carry the callback ptrs when needed */
31143 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
31144
31145 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31146 d = PyModule_GetDict(m);
31147
31148 SWIG_InitializeModule(0);
31149 SWIG_InstallConstants(d,swig_const_table);
31150
31151
31152 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
31153 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
31154 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
31155 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
31156 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
31157 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
31158 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
31159 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
31160 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
31161 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
31162 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
31163 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
31164 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
31165 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
31166 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
31167 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
31168 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
31169 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
31170 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
31171 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
31172 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
31173 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
31174 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
31175 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
31176 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
31177 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
31178 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
31179 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
31180 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
31181 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
31182 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
31183 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
31184 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
31185 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
31186 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
31187 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
31188 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
31189 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
31190 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
31191 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
31192 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
31193 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
31194 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
31195 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
31196 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
31197 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
31198 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
31199 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
31200 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
31201 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
31202 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
31203 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
31204 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
31205 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
31206 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
31207 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
31208 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
31209 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
31210 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
31211 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
31212 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
31213 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
31214 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
31215 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
31216 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
31217 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
31218 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
31219 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
31220 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
31221 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
31222 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
31223 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
31224 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
31225 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
31226 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
31227 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
31228 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
31229 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
31230 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
31231 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
31232 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
31233 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
31234 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
31235 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
31236 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
31237 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
31238 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
31239 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
31240 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
31241 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
31242 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
31243 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
31244 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
31245 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
31246 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
31247 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
31248 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
31249 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
31250 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
31251 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
31252 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
31253 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
31254 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
31255 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
31256 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
31257 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
31258 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
31259 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
31260 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
31261 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
31262 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
31263 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
31264 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
31265 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
31266 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
31267 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
31268 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
31269 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
31270 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
31271 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
31272 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
31273 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
31274 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
31275 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
31276 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
31277 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
31278 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
31279 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
31280 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
31281 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
31282
31283 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
31284
31285 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
31286 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
31287 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
31288 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
31289 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
31290 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
31291 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
31292 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
31293 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
31294 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
31295 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
31296 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
31297 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
31298 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
31299 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
31300 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
31301 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
31302 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
31303 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
31304 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
31305 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
31306 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
31307 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
31308 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
31309 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
31310 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
31311 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
31312 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
31313 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
31314 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
31315 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
31316 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
31317 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
31318 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
31319 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
31320 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
31321 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
31322 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
31323 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
31324 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
31325 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
31326 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
31327 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
31328 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
31329 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
31330 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
31331 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
31332 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
31333 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
31334 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
31335 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
31336 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
31337 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
31338 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
31339 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
31340 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
31341 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
31342 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
31343 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
31344 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
31345 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
31346 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
31347 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
31348 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
31349 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
31350 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
31351 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
31352 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
31353 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
31354 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
31355 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
31356 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
31357 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
31358 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
31359 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
31360 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
31361 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
31362 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
31363 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
31364 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
31365 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
31366 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
31367 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
31368 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
31369 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
31370 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
31371 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
31372 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
31373 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
31374 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
31375 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
31376 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
31377 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
31378 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
31379 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
31380 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
31381 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
31382 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
31383 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
31384 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
31385 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
31386 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
31387 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
31388 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
31389 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
31390 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
31391 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
31392 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
31393 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
31394 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
31395 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
31396 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
31397 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
31398 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
31399 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
31400 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
31401 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
31402 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
31403 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
31404 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
31405 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
31406 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
31407 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
31408 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
31409 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
31410 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
31411 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
31412 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
31413 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
31414 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
31415 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
31416 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
31417 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
31418 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
31419 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
31420 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
31421 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
31422 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
31423 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
31424 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
31425 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
31426 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
31427 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
31428 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
31429 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
31430 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
31431 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
31432 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
31433 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
31434 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
31435 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
31436 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
31437 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
31438 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
31439 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
31440 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
31441 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
31442 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
31443 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
31444 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
31445 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
31446 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
31447 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
31448 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
31449 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
31450 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
31451 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
31452 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
31453 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
31454 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
31455 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
31456 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
31457 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
31458 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
31459 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
31460 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
31461 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
31462 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
31463 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
31464 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
31465 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
31466 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
31467 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
31468 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
31469 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
31470 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
31471 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
31472 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
31473 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
31474 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
31475 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
31476 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
31477 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
31478 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
31479 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
31480 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
31481 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
31482 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
31483 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
31484 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
31485 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
31486 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
31487 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
31488 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
31489 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
31490 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
31491 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
31492 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
31493 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
31494 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
31495 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
31496 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
31497 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
31498 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
31499 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
31500 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
31501 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
31502 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
31503 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
31504 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
31505 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
31506 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
31507 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
31508 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
31509 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
31510 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
31511 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
31512 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
31513 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
31514 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
31515 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
31516 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
31517 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
31518 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
31519 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
31520 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
31521 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
31522 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
31523 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
31524 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
31525 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
31526 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
31527 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
31528 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
31529 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
31530 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
31531 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
31532 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
31533 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
31534 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
31535 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
31536 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
31537 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
31538 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
31539 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
31540 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
31541 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
31542 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
31543 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
31544 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
31545 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
31546 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
31547 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
31548 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
31549 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
31550 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
31551 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
31552 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
31553 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
31554 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
31555 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
31556 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
31557 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
31558 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
31559 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
31560 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
31561 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
31562 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
31563 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
31564 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
31565 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
31566 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
31567 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
31568 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
31569 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
31570 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
31571 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
31572 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
31573 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
31574 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
31575 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
31576 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
31577 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
31578 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
31579 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
31580 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
31581 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
31582 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
31583 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
31584 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
31585 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
31586 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
31587 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
31588 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
31589 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
31590 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
31591 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
31592 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
31593 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
31594 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
31595 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
31596 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
31597 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
31598 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
31599
31600 // Work around a chicken/egg problem in drawlist.cpp
31601 wxPyDrawList_SetAPIPtr();
31602
31603 }
31604