]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
make control children of a panel and not directly the frame
[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_wxMouseCaptureLostEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMouseEvent swig_types[81]
2548 #define SWIGTYPE_p_wxMoveEvent swig_types[82]
2549 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[83]
2550 #define SWIGTYPE_p_wxNativeFontInfo swig_types[84]
2551 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[85]
2552 #define SWIGTYPE_p_wxNcPaintEvent swig_types[86]
2553 #define SWIGTYPE_p_wxNotifyEvent swig_types[87]
2554 #define SWIGTYPE_p_wxObject swig_types[88]
2555 #define SWIGTYPE_p_wxPCXHandler swig_types[89]
2556 #define SWIGTYPE_p_wxPNGHandler swig_types[90]
2557 #define SWIGTYPE_p_wxPNMHandler swig_types[91]
2558 #define SWIGTYPE_p_wxPaintDC swig_types[92]
2559 #define SWIGTYPE_p_wxPaintEvent swig_types[93]
2560 #define SWIGTYPE_p_wxPalette swig_types[94]
2561 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[95]
2562 #define SWIGTYPE_p_wxPaperSize swig_types[96]
2563 #define SWIGTYPE_p_wxPen swig_types[97]
2564 #define SWIGTYPE_p_wxPenList swig_types[98]
2565 #define SWIGTYPE_p_wxPoint swig_types[99]
2566 #define SWIGTYPE_p_wxPostScriptDC swig_types[100]
2567 #define SWIGTYPE_p_wxPrintData swig_types[101]
2568 #define SWIGTYPE_p_wxPrinterDC swig_types[102]
2569 #define SWIGTYPE_p_wxPseudoDC swig_types[103]
2570 #define SWIGTYPE_p_wxPyApp swig_types[104]
2571 #define SWIGTYPE_p_wxPyCommandEvent swig_types[105]
2572 #define SWIGTYPE_p_wxPyEvent swig_types[106]
2573 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[107]
2574 #define SWIGTYPE_p_wxPyImageHandler swig_types[108]
2575 #define SWIGTYPE_p_wxPySizer swig_types[109]
2576 #define SWIGTYPE_p_wxPyValidator swig_types[110]
2577 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[111]
2578 #define SWIGTYPE_p_wxRect swig_types[112]
2579 #define SWIGTYPE_p_wxRegion swig_types[113]
2580 #define SWIGTYPE_p_wxRegionIterator swig_types[114]
2581 #define SWIGTYPE_p_wxRendererNative swig_types[115]
2582 #define SWIGTYPE_p_wxRendererVersion swig_types[116]
2583 #define SWIGTYPE_p_wxScreenDC swig_types[117]
2584 #define SWIGTYPE_p_wxScrollEvent swig_types[118]
2585 #define SWIGTYPE_p_wxScrollWinEvent swig_types[119]
2586 #define SWIGTYPE_p_wxSetCursorEvent swig_types[120]
2587 #define SWIGTYPE_p_wxShowEvent swig_types[121]
2588 #define SWIGTYPE_p_wxSize swig_types[122]
2589 #define SWIGTYPE_p_wxSizeEvent swig_types[123]
2590 #define SWIGTYPE_p_wxSizer swig_types[124]
2591 #define SWIGTYPE_p_wxSizerItem swig_types[125]
2592 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[126]
2593 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[127]
2594 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[128]
2595 #define SWIGTYPE_p_wxStockGDI swig_types[129]
2596 #define SWIGTYPE_p_wxString swig_types[130]
2597 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[131]
2598 #define SWIGTYPE_p_wxTIFFHandler swig_types[132]
2599 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[133]
2600 #define SWIGTYPE_p_wxValidator swig_types[134]
2601 #define SWIGTYPE_p_wxWindow swig_types[135]
2602 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[136]
2603 #define SWIGTYPE_p_wxWindowDC swig_types[137]
2604 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[138]
2605 #define SWIGTYPE_p_wxXPMHandler swig_types[139]
2606 static swig_type_info *swig_types[141];
2607 static swig_module_info swig_module = {swig_types, 140, 0, 0, 0, 0};
2608 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2609 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2610
2611 /* -------- TYPES TABLE (END) -------- */
2612
2613 #if (PY_VERSION_HEX <= 0x02000000)
2614 # if !defined(SWIG_PYTHON_CLASSIC)
2615 # error "This python version requires to use swig with the '-classic' option"
2616 # endif
2617 #endif
2618 #if (PY_VERSION_HEX <= 0x02020000)
2619 # error "This python version requires to use swig with the '-nomodern' option"
2620 #endif
2621 #if (PY_VERSION_HEX <= 0x02020000)
2622 # error "This python version requires to use swig with the '-nomodernargs' option"
2623 #endif
2624 #ifndef METH_O
2625 # error "This python version requires to use swig with the '-nofastunpack' option"
2626 #endif
2627
2628 /*-----------------------------------------------
2629 @(target):= _gdi_.so
2630 ------------------------------------------------*/
2631 #define SWIG_init init_gdi_
2632
2633 #define SWIG_name "_gdi_"
2634
2635 #define SWIGVERSION 0x010329
2636
2637
2638 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2639 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2640
2641
2642 #include <stdexcept>
2643
2644
2645 namespace swig {
2646 class PyObject_ptr {
2647 protected:
2648 PyObject *_obj;
2649
2650 public:
2651 PyObject_ptr() :_obj(0)
2652 {
2653 }
2654
2655 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2656 {
2657 Py_XINCREF(_obj);
2658 }
2659
2660 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2661 {
2662 if (initial_ref) Py_XINCREF(_obj);
2663 }
2664
2665 PyObject_ptr & operator=(const PyObject_ptr& item)
2666 {
2667 Py_XINCREF(item._obj);
2668 Py_XDECREF(_obj);
2669 _obj = item._obj;
2670 return *this;
2671 }
2672
2673 ~PyObject_ptr()
2674 {
2675 Py_XDECREF(_obj);
2676 }
2677
2678 operator PyObject *() const
2679 {
2680 return _obj;
2681 }
2682
2683 PyObject *operator->() const
2684 {
2685 return _obj;
2686 }
2687 };
2688 }
2689
2690
2691 namespace swig {
2692 struct PyObject_var : PyObject_ptr {
2693 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2694
2695 PyObject_var & operator = (PyObject* obj)
2696 {
2697 Py_XDECREF(_obj);
2698 _obj = obj;
2699 return *this;
2700 }
2701 };
2702 }
2703
2704
2705 #include "wx/wxPython/wxPython.h"
2706 #include "wx/wxPython/pyclasses.h"
2707
2708
2709 static const wxString wxPyEmptyString(wxEmptyString);
2710
2711 #define SWIG_From_long PyInt_FromLong
2712
2713
2714 SWIGINTERNINLINE PyObject *
2715 SWIG_From_int (int value)
2716 {
2717 return SWIG_From_long (value);
2718 }
2719
2720
2721 #include <limits.h>
2722 #ifndef LLONG_MIN
2723 # define LLONG_MIN LONG_LONG_MIN
2724 #endif
2725 #ifndef LLONG_MAX
2726 # define LLONG_MAX LONG_LONG_MAX
2727 #endif
2728 #ifndef ULLONG_MAX
2729 # define ULLONG_MAX ULONG_LONG_MAX
2730 #endif
2731
2732
2733 SWIGINTERN int
2734 SWIG_AsVal_long (PyObject* obj, long* val)
2735 {
2736 if (PyNumber_Check(obj)) {
2737 if (val) *val = PyInt_AsLong(obj);
2738 return SWIG_OK;
2739 }
2740 return SWIG_TypeError;
2741 }
2742
2743
2744 SWIGINTERN int
2745 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2746 {
2747 long v = 0;
2748 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2749 return SWIG_TypeError;
2750 }
2751 else if (val)
2752 *val = (unsigned long)v;
2753 return SWIG_OK;
2754 }
2755
2756
2757 SWIGINTERN int
2758 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2759 {
2760 unsigned long v;
2761 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2762 if (SWIG_IsOK(res)) {
2763 if ((v > UCHAR_MAX)) {
2764 return SWIG_OverflowError;
2765 } else {
2766 if (val) *val = static_cast< unsigned char >(v);
2767 }
2768 }
2769 return res;
2770 }
2771
2772
2773 SWIGINTERNINLINE PyObject*
2774 SWIG_From_unsigned_SS_long (unsigned long value)
2775 {
2776 return (value > LONG_MAX) ?
2777 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2778 }
2779
2780
2781 SWIGINTERNINLINE PyObject *
2782 SWIG_From_unsigned_SS_char (unsigned char value)
2783 {
2784 return SWIG_From_unsigned_SS_long (value);
2785 }
2786
2787 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2788 wxColour temp, *obj = &temp;
2789 if ( other == Py_None ) return false;
2790 if ( ! wxColour_helper(other, &obj) ) {
2791 PyErr_Clear();
2792 return false;
2793 }
2794 return self->operator==(*obj);
2795 }
2796 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2797 wxColour temp, *obj = &temp;
2798 if ( other == Py_None ) return true;
2799 if ( ! wxColour_helper(other, &obj)) {
2800 PyErr_Clear();
2801 return true;
2802 }
2803 return self->operator!=(*obj);
2804 }
2805 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2806 PyObject* rv = PyTuple_New(3);
2807 int red = -1;
2808 int green = -1;
2809 int blue = -1;
2810 if (self->Ok()) {
2811 red = self->Red();
2812 green = self->Green();
2813 blue = self->Blue();
2814 }
2815 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2816 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2817 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2818 return rv;
2819 }
2820 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2821 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2822 }
2823
2824 SWIGINTERN int
2825 SWIG_AsVal_int (PyObject * obj, int *val)
2826 {
2827 long v;
2828 int res = SWIG_AsVal_long (obj, &v);
2829 if (SWIG_IsOK(res)) {
2830 if ((v < INT_MIN || v > INT_MAX)) {
2831 return SWIG_OverflowError;
2832 } else {
2833 if (val) *val = static_cast< int >(v);
2834 }
2835 }
2836 return res;
2837 }
2838
2839 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2840 wxDash* dashes;
2841 int count = self->GetDashes(&dashes);
2842 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2843 PyObject* retval = PyList_New(0);
2844 for (int x=0; x<count; x++) {
2845 PyObject* pyint = PyInt_FromLong(dashes[x]);
2846 PyList_Append(retval, pyint);
2847 Py_DECREF(pyint);
2848 }
2849 wxPyEndBlockThreads(blocked);
2850 return retval;
2851 }
2852 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2853 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2854 int size = PyList_Size(pyDashes);
2855 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2856
2857 // black magic warning! The array of wxDashes needs to exist as
2858 // long as the pen does because wxPen does not copy the array. So
2859 // stick a copy in a Python string object and attach it to _self,
2860 // and then call SetDashes with a pointer to that array. Then
2861 // when the Python pen object is destroyed the array will be
2862 // cleaned up too.
2863 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2864 PyObject_SetAttrString(_self, "_dashes", strDashes);
2865
2866 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2867 delete [] dashes;
2868 Py_DECREF(strDashes);
2869 wxPyEndBlockThreads(blocked);
2870 }
2871 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2872 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2873
2874 #include <wx/image.h>
2875
2876 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2877 char** cArray = NULL;
2878 int count;
2879
2880 if (!PyList_Check(listOfStrings)) {
2881 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2882 return NULL;
2883 }
2884 count = PyList_Size(listOfStrings);
2885 cArray = new char*[count];
2886
2887 for(int x=0; x<count; x++) {
2888 // TODO: Need some validation and error checking here
2889 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2890 }
2891 return cArray;
2892 }
2893
2894
2895 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2896 char** cArray = NULL;
2897 wxBitmap* bmp;
2898
2899 cArray = ConvertListOfStrings(listOfStrings);
2900 if (! cArray)
2901 return NULL;
2902 bmp = new wxBitmap(cArray);
2903 delete [] cArray;
2904 return bmp;
2905 }
2906 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2907 char* buf;
2908 Py_ssize_t length;
2909 PyString_AsStringAndSize(bits, &buf, &length);
2910 return new wxBitmap(buf, width, height, depth);
2911 }
2912 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2913 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2914 wxSize size(self->GetWidth(), self->GetHeight());
2915 return size;
2916 }
2917 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2918 wxMask *mask = new wxMask(*self, colour);
2919 self->SetMask(mask);
2920 }
2921 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2922 self->SetWidth(size.x);
2923 self->SetHeight(size.y);
2924 }
2925 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2926 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2927 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2928 if ( !colour.Ok() )
2929 return new wxMask(bitmap, *wxBLACK);
2930 else
2931 return new wxMask(bitmap, colour);
2932 }
2933
2934 #include <wx/iconbndl.h>
2935
2936 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2937 wxIcon* icon = new wxIcon();
2938 icon->CopyFromBitmap(bmp);
2939 return icon;
2940 }
2941 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2942 char** cArray = NULL;
2943 wxIcon* icon;
2944
2945 cArray = ConvertListOfStrings(listOfStrings);
2946 if (! cArray)
2947 return NULL;
2948 icon = new wxIcon(cArray);
2949 delete [] cArray;
2950 return icon;
2951 }
2952 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2953 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2954
2955 return new wxIconLocation(*filename, num);
2956
2957
2958
2959 }
2960 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2961
2962 self->SetIndex(num);
2963
2964
2965
2966 }
2967 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2968
2969 return self->GetIndex();
2970
2971
2972
2973 }
2974 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2975 #ifdef __WXGTK__
2976 wxImage img(cursorName, type);
2977 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2978 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2979 return new wxCursor(img);
2980 #else
2981 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2982 #endif
2983 }
2984 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2985
2986
2987 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2988 (*self) ++;
2989 }
2990 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2991 return self->operator bool();
2992 }
2993
2994 #include <wx/fontutil.h>
2995 #include <wx/fontmap.h>
2996 #include <wx/fontenum.h>
2997
2998
2999 SWIGINTERN int
3000 SWIG_AsVal_bool (PyObject *obj, bool *val)
3001 {
3002 if (obj == Py_True) {
3003 if (val) *val = true;
3004 return SWIG_OK;
3005 } else if (obj == Py_False) {
3006 if (val) *val = false;
3007 return SWIG_OK;
3008 } else {
3009 long v = 0;
3010 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3011 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3012 return res;
3013 }
3014 }
3015
3016 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3017 return self->ToString();
3018 }
3019
3020 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3021 { wxPyRaiseNotImplemented(); return NULL; }
3022
3023 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3024 { wxPyRaiseNotImplemented(); return false; }
3025
3026
3027 SWIGINTERNINLINE PyObject *
3028 SWIG_From_size_t (size_t value)
3029 {
3030 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3031 }
3032
3033
3034 SWIGINTERNINLINE int
3035 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3036 {
3037 unsigned long v;
3038 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3039 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3040 return res;
3041 }
3042
3043 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3044 wxFontEncoding alt_enc;
3045 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3046 return PyInt_FromLong(alt_enc);
3047 else {
3048 Py_INCREF(Py_None);
3049 return Py_None;
3050 }
3051 }
3052 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3053 wxNativeFontInfo nfi;
3054 nfi.FromString(info);
3055 return new wxFont(nfi);
3056 }
3057 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3058 return wxFont::New(pointSize, family, flags, face, encoding);
3059 }
3060 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3061 return wxFontBase::New(pixelSize, family,
3062 style, weight, underlined,
3063 face, encoding);
3064 }
3065 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3066 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3067 }
3068 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3069 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3070
3071 class wxPyFontEnumerator : public wxFontEnumerator {
3072 public:
3073 wxPyFontEnumerator() {}
3074 ~wxPyFontEnumerator() {}
3075
3076 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3077 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3078
3079 PYPRIVATE;
3080 };
3081
3082 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3083 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3084
3085
3086 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3087 PyObject* ret;
3088 wxArrayString arr = wxFontEnumerator::GetEncodings();
3089 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3090 ret = wxArrayString2PyList_helper(arr);
3091 wxPyEndBlockThreads(blocked);
3092 return ret;
3093 }
3094 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3095 PyObject* ret;
3096 wxArrayString arr = wxFontEnumerator::GetFacenames();
3097 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3098 ret = wxArrayString2PyList_helper(arr);
3099 wxPyEndBlockThreads(blocked);
3100 return ret;
3101 }
3102
3103 #include <locale.h>
3104
3105 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3106 wxLocale* loc;
3107 if (language == -1)
3108 loc = new wxLocale();
3109 else
3110 loc = new wxLocale(language, flags);
3111 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3112 // for the floating point conversions and such to work right.
3113 #if PY_VERSION_HEX < 0x02040000
3114 setlocale(LC_NUMERIC, "C");
3115 #endif
3116 return loc;
3117 }
3118 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3119 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3120 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3121 // for the floating point conversions and such to work right.
3122 #if PY_VERSION_HEX < 0x02040000
3123 setlocale(LC_NUMERIC, "C");
3124 #endif
3125 return rc;
3126 }
3127 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3128 bool rc = self->Init(language, flags);
3129 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3130 // for the floating point conversions and such to work right.
3131 #if PY_VERSION_HEX < 0x02040000
3132 setlocale(LC_NUMERIC, "C");
3133 #endif
3134 return rc;
3135 }
3136
3137 #include "wx/wxPython/pydrawxxx.h"
3138
3139 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3140 wxColour col;
3141 self->GetPixel(x, y, &col);
3142 return col;
3143 }
3144 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3145 wxColour col;
3146 self->GetPixel(pt, &col);
3147 return col;
3148 }
3149
3150 SWIGINTERN int
3151 SWIG_AsVal_double (PyObject *obj, double* val)
3152 {
3153 if (PyNumber_Check(obj)) {
3154 if (val) *val = PyFloat_AsDouble(obj);
3155 return SWIG_OK;
3156 }
3157 return SWIG_TypeError;
3158 }
3159
3160 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3161 wxRect rv;
3162 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3163 return rv;
3164 }
3165 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3166 wxRect rect;
3167 self->GetClippingBox(rect);
3168 return rect;
3169 }
3170 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3171 wxArrayInt widths;
3172 self->GetPartialTextExtents(text, widths);
3173 return widths;
3174 }
3175
3176 #define SWIG_From_double PyFloat_FromDouble
3177
3178 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3179 self->SetLogicalOrigin(point.x, point.y);
3180 }
3181 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3182 self->SetDeviceOrigin(point.x, point.y);
3183 }
3184 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3185 self->CalcBoundingBox(point.x, point.y);
3186 }
3187 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3188 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3189 }
3190 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3191 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3192 }
3193 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3194 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3195 }
3196 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3197 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3198 }
3199 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3200 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3201 }
3202 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3203 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3204 }
3205
3206 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3207 *x1 = dc->MinX();
3208 *y1 = dc->MinY();
3209 *x2 = dc->MaxX();
3210 *y2 = dc->MaxY();
3211 }
3212
3213
3214 #include <wx/dcbuffer.h>
3215
3216
3217 #include <wx/dcps.h>
3218
3219
3220 #include <wx/metafile.h>
3221
3222
3223
3224 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3225 self->AddColour(name, wxColour(red, green, blue));
3226 }
3227
3228 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3229 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3230 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3231 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3232
3233
3234 #include <wx/effects.h>
3235
3236
3237 #include "wx/renderer.h"
3238
3239
3240 SWIGINTERNINLINE PyObject*
3241 SWIG_From_bool (bool value)
3242 {
3243 return PyBool_FromLong(value ? 1 : 0);
3244 }
3245
3246
3247 #include "wx/wxPython/pseudodc.h"
3248
3249 SWIGINTERN wxRect wxPseudoDC_GetIdBounds(wxPseudoDC *self,int id){
3250 wxRect rect;
3251 self->GetIdBounds(id, rect);
3252 return rect;
3253 }
3254 #ifdef __cplusplus
3255 extern "C" {
3256 #endif
3257 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3258 PyObject *resultobj = 0;
3259 wxGDIObject *result = 0 ;
3260
3261 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3262 {
3263 if (!wxPyCheckForApp()) SWIG_fail;
3264 PyThreadState* __tstate = wxPyBeginAllowThreads();
3265 result = (wxGDIObject *)new wxGDIObject();
3266 wxPyEndAllowThreads(__tstate);
3267 if (PyErr_Occurred()) SWIG_fail;
3268 }
3269 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3270 return resultobj;
3271 fail:
3272 return NULL;
3273 }
3274
3275
3276 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3277 PyObject *resultobj = 0;
3278 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3279 void *argp1 = 0 ;
3280 int res1 = 0 ;
3281 PyObject *swig_obj[1] ;
3282
3283 if (!args) SWIG_fail;
3284 swig_obj[0] = args;
3285 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3286 if (!SWIG_IsOK(res1)) {
3287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3288 }
3289 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3290 {
3291 PyThreadState* __tstate = wxPyBeginAllowThreads();
3292 delete arg1;
3293
3294 wxPyEndAllowThreads(__tstate);
3295 if (PyErr_Occurred()) SWIG_fail;
3296 }
3297 resultobj = SWIG_Py_Void();
3298 return resultobj;
3299 fail:
3300 return NULL;
3301 }
3302
3303
3304 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3305 PyObject *resultobj = 0;
3306 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3307 bool result;
3308 void *argp1 = 0 ;
3309 int res1 = 0 ;
3310 PyObject *swig_obj[1] ;
3311
3312 if (!args) SWIG_fail;
3313 swig_obj[0] = args;
3314 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3315 if (!SWIG_IsOK(res1)) {
3316 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3317 }
3318 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3319 {
3320 PyThreadState* __tstate = wxPyBeginAllowThreads();
3321 result = (bool)(arg1)->IsNull();
3322 wxPyEndAllowThreads(__tstate);
3323 if (PyErr_Occurred()) SWIG_fail;
3324 }
3325 {
3326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3327 }
3328 return resultobj;
3329 fail:
3330 return NULL;
3331 }
3332
3333
3334 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3335 PyObject *obj;
3336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3337 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3338 return SWIG_Py_Void();
3339 }
3340
3341 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3342 return SWIG_Python_InitShadowInstance(args);
3343 }
3344
3345 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3346 PyObject *resultobj = 0;
3347 byte arg1 = (byte) 0 ;
3348 byte arg2 = (byte) 0 ;
3349 byte arg3 = (byte) 0 ;
3350 wxColour *result = 0 ;
3351 unsigned char val1 ;
3352 int ecode1 = 0 ;
3353 unsigned char val2 ;
3354 int ecode2 = 0 ;
3355 unsigned char val3 ;
3356 int ecode3 = 0 ;
3357 PyObject * obj0 = 0 ;
3358 PyObject * obj1 = 0 ;
3359 PyObject * obj2 = 0 ;
3360 char * kwnames[] = {
3361 (char *) "red",(char *) "green",(char *) "blue", NULL
3362 };
3363
3364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3365 if (obj0) {
3366 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3367 if (!SWIG_IsOK(ecode1)) {
3368 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3369 }
3370 arg1 = static_cast< byte >(val1);
3371 }
3372 if (obj1) {
3373 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3374 if (!SWIG_IsOK(ecode2)) {
3375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3376 }
3377 arg2 = static_cast< byte >(val2);
3378 }
3379 if (obj2) {
3380 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3381 if (!SWIG_IsOK(ecode3)) {
3382 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3383 }
3384 arg3 = static_cast< byte >(val3);
3385 }
3386 {
3387 PyThreadState* __tstate = wxPyBeginAllowThreads();
3388 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3389 wxPyEndAllowThreads(__tstate);
3390 if (PyErr_Occurred()) SWIG_fail;
3391 }
3392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3393 return resultobj;
3394 fail:
3395 return NULL;
3396 }
3397
3398
3399 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3400 PyObject *resultobj = 0;
3401 wxString *arg1 = 0 ;
3402 wxColour *result = 0 ;
3403 bool temp1 = false ;
3404 PyObject * obj0 = 0 ;
3405 char * kwnames[] = {
3406 (char *) "colorName", NULL
3407 };
3408
3409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3410 {
3411 arg1 = wxString_in_helper(obj0);
3412 if (arg1 == NULL) SWIG_fail;
3413 temp1 = true;
3414 }
3415 {
3416 if (!wxPyCheckForApp()) SWIG_fail;
3417 PyThreadState* __tstate = wxPyBeginAllowThreads();
3418 result = (wxColour *)new wxColour((wxString const &)*arg1);
3419 wxPyEndAllowThreads(__tstate);
3420 if (PyErr_Occurred()) SWIG_fail;
3421 }
3422 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3423 {
3424 if (temp1)
3425 delete arg1;
3426 }
3427 return resultobj;
3428 fail:
3429 {
3430 if (temp1)
3431 delete arg1;
3432 }
3433 return NULL;
3434 }
3435
3436
3437 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3438 PyObject *resultobj = 0;
3439 unsigned long arg1 ;
3440 wxColour *result = 0 ;
3441 unsigned long val1 ;
3442 int ecode1 = 0 ;
3443 PyObject * obj0 = 0 ;
3444 char * kwnames[] = {
3445 (char *) "colRGB", NULL
3446 };
3447
3448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3449 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3450 if (!SWIG_IsOK(ecode1)) {
3451 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3452 }
3453 arg1 = static_cast< unsigned long >(val1);
3454 {
3455 PyThreadState* __tstate = wxPyBeginAllowThreads();
3456 result = (wxColour *)new wxColour(arg1);
3457 wxPyEndAllowThreads(__tstate);
3458 if (PyErr_Occurred()) SWIG_fail;
3459 }
3460 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3461 return resultobj;
3462 fail:
3463 return NULL;
3464 }
3465
3466
3467 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3468 PyObject *resultobj = 0;
3469 wxColour *arg1 = (wxColour *) 0 ;
3470 void *argp1 = 0 ;
3471 int res1 = 0 ;
3472 PyObject *swig_obj[1] ;
3473
3474 if (!args) SWIG_fail;
3475 swig_obj[0] = args;
3476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3477 if (!SWIG_IsOK(res1)) {
3478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3479 }
3480 arg1 = reinterpret_cast< wxColour * >(argp1);
3481 {
3482 PyThreadState* __tstate = wxPyBeginAllowThreads();
3483 delete arg1;
3484
3485 wxPyEndAllowThreads(__tstate);
3486 if (PyErr_Occurred()) SWIG_fail;
3487 }
3488 resultobj = SWIG_Py_Void();
3489 return resultobj;
3490 fail:
3491 return NULL;
3492 }
3493
3494
3495 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3496 PyObject *resultobj = 0;
3497 wxColour *arg1 = (wxColour *) 0 ;
3498 byte result;
3499 void *argp1 = 0 ;
3500 int res1 = 0 ;
3501 PyObject *swig_obj[1] ;
3502
3503 if (!args) SWIG_fail;
3504 swig_obj[0] = args;
3505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3506 if (!SWIG_IsOK(res1)) {
3507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3508 }
3509 arg1 = reinterpret_cast< wxColour * >(argp1);
3510 {
3511 PyThreadState* __tstate = wxPyBeginAllowThreads();
3512 result = (byte)(arg1)->Red();
3513 wxPyEndAllowThreads(__tstate);
3514 if (PyErr_Occurred()) SWIG_fail;
3515 }
3516 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3517 return resultobj;
3518 fail:
3519 return NULL;
3520 }
3521
3522
3523 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3524 PyObject *resultobj = 0;
3525 wxColour *arg1 = (wxColour *) 0 ;
3526 byte result;
3527 void *argp1 = 0 ;
3528 int res1 = 0 ;
3529 PyObject *swig_obj[1] ;
3530
3531 if (!args) SWIG_fail;
3532 swig_obj[0] = args;
3533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3534 if (!SWIG_IsOK(res1)) {
3535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3536 }
3537 arg1 = reinterpret_cast< wxColour * >(argp1);
3538 {
3539 PyThreadState* __tstate = wxPyBeginAllowThreads();
3540 result = (byte)(arg1)->Green();
3541 wxPyEndAllowThreads(__tstate);
3542 if (PyErr_Occurred()) SWIG_fail;
3543 }
3544 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3545 return resultobj;
3546 fail:
3547 return NULL;
3548 }
3549
3550
3551 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3552 PyObject *resultobj = 0;
3553 wxColour *arg1 = (wxColour *) 0 ;
3554 byte result;
3555 void *argp1 = 0 ;
3556 int res1 = 0 ;
3557 PyObject *swig_obj[1] ;
3558
3559 if (!args) SWIG_fail;
3560 swig_obj[0] = args;
3561 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3562 if (!SWIG_IsOK(res1)) {
3563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3564 }
3565 arg1 = reinterpret_cast< wxColour * >(argp1);
3566 {
3567 PyThreadState* __tstate = wxPyBeginAllowThreads();
3568 result = (byte)(arg1)->Blue();
3569 wxPyEndAllowThreads(__tstate);
3570 if (PyErr_Occurred()) SWIG_fail;
3571 }
3572 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3573 return resultobj;
3574 fail:
3575 return NULL;
3576 }
3577
3578
3579 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3580 PyObject *resultobj = 0;
3581 wxColour *arg1 = (wxColour *) 0 ;
3582 bool result;
3583 void *argp1 = 0 ;
3584 int res1 = 0 ;
3585 PyObject *swig_obj[1] ;
3586
3587 if (!args) SWIG_fail;
3588 swig_obj[0] = args;
3589 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3590 if (!SWIG_IsOK(res1)) {
3591 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3592 }
3593 arg1 = reinterpret_cast< wxColour * >(argp1);
3594 {
3595 PyThreadState* __tstate = wxPyBeginAllowThreads();
3596 result = (bool)(arg1)->Ok();
3597 wxPyEndAllowThreads(__tstate);
3598 if (PyErr_Occurred()) SWIG_fail;
3599 }
3600 {
3601 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3602 }
3603 return resultobj;
3604 fail:
3605 return NULL;
3606 }
3607
3608
3609 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3610 PyObject *resultobj = 0;
3611 wxColour *arg1 = (wxColour *) 0 ;
3612 byte arg2 ;
3613 byte arg3 ;
3614 byte arg4 ;
3615 void *argp1 = 0 ;
3616 int res1 = 0 ;
3617 unsigned char val2 ;
3618 int ecode2 = 0 ;
3619 unsigned char val3 ;
3620 int ecode3 = 0 ;
3621 unsigned char val4 ;
3622 int ecode4 = 0 ;
3623 PyObject * obj0 = 0 ;
3624 PyObject * obj1 = 0 ;
3625 PyObject * obj2 = 0 ;
3626 PyObject * obj3 = 0 ;
3627 char * kwnames[] = {
3628 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3629 };
3630
3631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3633 if (!SWIG_IsOK(res1)) {
3634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3635 }
3636 arg1 = reinterpret_cast< wxColour * >(argp1);
3637 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3638 if (!SWIG_IsOK(ecode2)) {
3639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3640 }
3641 arg2 = static_cast< byte >(val2);
3642 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3643 if (!SWIG_IsOK(ecode3)) {
3644 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3645 }
3646 arg3 = static_cast< byte >(val3);
3647 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3648 if (!SWIG_IsOK(ecode4)) {
3649 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3650 }
3651 arg4 = static_cast< byte >(val4);
3652 {
3653 PyThreadState* __tstate = wxPyBeginAllowThreads();
3654 (arg1)->Set(arg2,arg3,arg4);
3655 wxPyEndAllowThreads(__tstate);
3656 if (PyErr_Occurred()) SWIG_fail;
3657 }
3658 resultobj = SWIG_Py_Void();
3659 return resultobj;
3660 fail:
3661 return NULL;
3662 }
3663
3664
3665 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3666 PyObject *resultobj = 0;
3667 wxColour *arg1 = (wxColour *) 0 ;
3668 unsigned long arg2 ;
3669 void *argp1 = 0 ;
3670 int res1 = 0 ;
3671 unsigned long val2 ;
3672 int ecode2 = 0 ;
3673 PyObject * obj0 = 0 ;
3674 PyObject * obj1 = 0 ;
3675 char * kwnames[] = {
3676 (char *) "self",(char *) "colRGB", NULL
3677 };
3678
3679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3681 if (!SWIG_IsOK(res1)) {
3682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3683 }
3684 arg1 = reinterpret_cast< wxColour * >(argp1);
3685 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3686 if (!SWIG_IsOK(ecode2)) {
3687 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3688 }
3689 arg2 = static_cast< unsigned long >(val2);
3690 {
3691 PyThreadState* __tstate = wxPyBeginAllowThreads();
3692 (arg1)->Set(arg2);
3693 wxPyEndAllowThreads(__tstate);
3694 if (PyErr_Occurred()) SWIG_fail;
3695 }
3696 resultobj = SWIG_Py_Void();
3697 return resultobj;
3698 fail:
3699 return NULL;
3700 }
3701
3702
3703 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3704 PyObject *resultobj = 0;
3705 wxColour *arg1 = (wxColour *) 0 ;
3706 wxString *arg2 = 0 ;
3707 void *argp1 = 0 ;
3708 int res1 = 0 ;
3709 bool temp2 = false ;
3710 PyObject * obj0 = 0 ;
3711 PyObject * obj1 = 0 ;
3712 char * kwnames[] = {
3713 (char *) "self",(char *) "colourName", NULL
3714 };
3715
3716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3718 if (!SWIG_IsOK(res1)) {
3719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3720 }
3721 arg1 = reinterpret_cast< wxColour * >(argp1);
3722 {
3723 arg2 = wxString_in_helper(obj1);
3724 if (arg2 == NULL) SWIG_fail;
3725 temp2 = true;
3726 }
3727 {
3728 PyThreadState* __tstate = wxPyBeginAllowThreads();
3729 (arg1)->InitFromName((wxString const &)*arg2);
3730 wxPyEndAllowThreads(__tstate);
3731 if (PyErr_Occurred()) SWIG_fail;
3732 }
3733 resultobj = SWIG_Py_Void();
3734 {
3735 if (temp2)
3736 delete arg2;
3737 }
3738 return resultobj;
3739 fail:
3740 {
3741 if (temp2)
3742 delete arg2;
3743 }
3744 return NULL;
3745 }
3746
3747
3748 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3749 PyObject *resultobj = 0;
3750 wxColour *arg1 = (wxColour *) 0 ;
3751 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3752 wxString result;
3753 void *argp1 = 0 ;
3754 int res1 = 0 ;
3755 long val2 ;
3756 int ecode2 = 0 ;
3757 PyObject * obj0 = 0 ;
3758 PyObject * obj1 = 0 ;
3759 char * kwnames[] = {
3760 (char *) "self",(char *) "flags", NULL
3761 };
3762
3763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3765 if (!SWIG_IsOK(res1)) {
3766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3767 }
3768 arg1 = reinterpret_cast< wxColour * >(argp1);
3769 if (obj1) {
3770 ecode2 = SWIG_AsVal_long(obj1, &val2);
3771 if (!SWIG_IsOK(ecode2)) {
3772 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3773 }
3774 arg2 = static_cast< long >(val2);
3775 }
3776 {
3777 PyThreadState* __tstate = wxPyBeginAllowThreads();
3778 result = ((wxColour const *)arg1)->GetAsString(arg2);
3779 wxPyEndAllowThreads(__tstate);
3780 if (PyErr_Occurred()) SWIG_fail;
3781 }
3782 {
3783 #if wxUSE_UNICODE
3784 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3785 #else
3786 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3787 #endif
3788 }
3789 return resultobj;
3790 fail:
3791 return NULL;
3792 }
3793
3794
3795 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3796 PyObject *resultobj = 0;
3797 wxColour *arg1 = (wxColour *) 0 ;
3798 long result;
3799 void *argp1 = 0 ;
3800 int res1 = 0 ;
3801 PyObject *swig_obj[1] ;
3802
3803 if (!args) SWIG_fail;
3804 swig_obj[0] = args;
3805 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3806 if (!SWIG_IsOK(res1)) {
3807 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3808 }
3809 arg1 = reinterpret_cast< wxColour * >(argp1);
3810 {
3811 PyThreadState* __tstate = wxPyBeginAllowThreads();
3812 result = (long)((wxColour const *)arg1)->GetPixel();
3813 wxPyEndAllowThreads(__tstate);
3814 if (PyErr_Occurred()) SWIG_fail;
3815 }
3816 resultobj = SWIG_From_long(static_cast< long >(result));
3817 return resultobj;
3818 fail:
3819 return NULL;
3820 }
3821
3822
3823 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3824 PyObject *resultobj = 0;
3825 wxColour *arg1 = (wxColour *) 0 ;
3826 PyObject *arg2 = (PyObject *) 0 ;
3827 bool result;
3828 void *argp1 = 0 ;
3829 int res1 = 0 ;
3830 PyObject * obj0 = 0 ;
3831 PyObject * obj1 = 0 ;
3832 char * kwnames[] = {
3833 (char *) "self",(char *) "other", NULL
3834 };
3835
3836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3838 if (!SWIG_IsOK(res1)) {
3839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3840 }
3841 arg1 = reinterpret_cast< wxColour * >(argp1);
3842 arg2 = obj1;
3843 {
3844 result = (bool)wxColour___eq__(arg1,arg2);
3845 if (PyErr_Occurred()) SWIG_fail;
3846 }
3847 {
3848 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3849 }
3850 return resultobj;
3851 fail:
3852 return NULL;
3853 }
3854
3855
3856 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3857 PyObject *resultobj = 0;
3858 wxColour *arg1 = (wxColour *) 0 ;
3859 PyObject *arg2 = (PyObject *) 0 ;
3860 bool result;
3861 void *argp1 = 0 ;
3862 int res1 = 0 ;
3863 PyObject * obj0 = 0 ;
3864 PyObject * obj1 = 0 ;
3865 char * kwnames[] = {
3866 (char *) "self",(char *) "other", NULL
3867 };
3868
3869 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3870 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3871 if (!SWIG_IsOK(res1)) {
3872 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3873 }
3874 arg1 = reinterpret_cast< wxColour * >(argp1);
3875 arg2 = obj1;
3876 {
3877 result = (bool)wxColour___ne__(arg1,arg2);
3878 if (PyErr_Occurred()) SWIG_fail;
3879 }
3880 {
3881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3882 }
3883 return resultobj;
3884 fail:
3885 return NULL;
3886 }
3887
3888
3889 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3890 PyObject *resultobj = 0;
3891 wxColour *arg1 = (wxColour *) 0 ;
3892 PyObject *result = 0 ;
3893 void *argp1 = 0 ;
3894 int res1 = 0 ;
3895 PyObject *swig_obj[1] ;
3896
3897 if (!args) SWIG_fail;
3898 swig_obj[0] = args;
3899 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3900 if (!SWIG_IsOK(res1)) {
3901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3902 }
3903 arg1 = reinterpret_cast< wxColour * >(argp1);
3904 {
3905 PyThreadState* __tstate = wxPyBeginAllowThreads();
3906 result = (PyObject *)wxColour_Get(arg1);
3907 wxPyEndAllowThreads(__tstate);
3908 if (PyErr_Occurred()) SWIG_fail;
3909 }
3910 resultobj = result;
3911 return resultobj;
3912 fail:
3913 return NULL;
3914 }
3915
3916
3917 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3918 PyObject *resultobj = 0;
3919 wxColour *arg1 = (wxColour *) 0 ;
3920 unsigned long result;
3921 void *argp1 = 0 ;
3922 int res1 = 0 ;
3923 PyObject *swig_obj[1] ;
3924
3925 if (!args) SWIG_fail;
3926 swig_obj[0] = args;
3927 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3928 if (!SWIG_IsOK(res1)) {
3929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3930 }
3931 arg1 = reinterpret_cast< wxColour * >(argp1);
3932 {
3933 PyThreadState* __tstate = wxPyBeginAllowThreads();
3934 result = (unsigned long)wxColour_GetRGB(arg1);
3935 wxPyEndAllowThreads(__tstate);
3936 if (PyErr_Occurred()) SWIG_fail;
3937 }
3938 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3939 return resultobj;
3940 fail:
3941 return NULL;
3942 }
3943
3944
3945 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3946 PyObject *obj;
3947 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3948 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3949 return SWIG_Py_Void();
3950 }
3951
3952 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3953 return SWIG_Python_InitShadowInstance(args);
3954 }
3955
3956 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3957 PyObject *resultobj = 0;
3958 int arg1 ;
3959 unsigned char *arg2 = (unsigned char *) 0 ;
3960 unsigned char *arg3 = (unsigned char *) 0 ;
3961 unsigned char *arg4 = (unsigned char *) 0 ;
3962 wxPalette *result = 0 ;
3963 int val1 ;
3964 int ecode1 = 0 ;
3965 void *argp2 = 0 ;
3966 int res2 = 0 ;
3967 void *argp3 = 0 ;
3968 int res3 = 0 ;
3969 void *argp4 = 0 ;
3970 int res4 = 0 ;
3971 PyObject * obj0 = 0 ;
3972 PyObject * obj1 = 0 ;
3973 PyObject * obj2 = 0 ;
3974 PyObject * obj3 = 0 ;
3975 char * kwnames[] = {
3976 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3977 };
3978
3979 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3980 ecode1 = SWIG_AsVal_int(obj0, &val1);
3981 if (!SWIG_IsOK(ecode1)) {
3982 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3983 }
3984 arg1 = static_cast< int >(val1);
3985 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3986 if (!SWIG_IsOK(res2)) {
3987 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3988 }
3989 arg2 = reinterpret_cast< unsigned char * >(argp2);
3990 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3991 if (!SWIG_IsOK(res3)) {
3992 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3993 }
3994 arg3 = reinterpret_cast< unsigned char * >(argp3);
3995 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3996 if (!SWIG_IsOK(res4)) {
3997 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3998 }
3999 arg4 = reinterpret_cast< unsigned char * >(argp4);
4000 {
4001 if (!wxPyCheckForApp()) SWIG_fail;
4002 PyThreadState* __tstate = wxPyBeginAllowThreads();
4003 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
4004 wxPyEndAllowThreads(__tstate);
4005 if (PyErr_Occurred()) SWIG_fail;
4006 }
4007 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
4008 return resultobj;
4009 fail:
4010 return NULL;
4011 }
4012
4013
4014 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4015 PyObject *resultobj = 0;
4016 wxPalette *arg1 = (wxPalette *) 0 ;
4017 void *argp1 = 0 ;
4018 int res1 = 0 ;
4019 PyObject *swig_obj[1] ;
4020
4021 if (!args) SWIG_fail;
4022 swig_obj[0] = args;
4023 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4024 if (!SWIG_IsOK(res1)) {
4025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4026 }
4027 arg1 = reinterpret_cast< wxPalette * >(argp1);
4028 {
4029 PyThreadState* __tstate = wxPyBeginAllowThreads();
4030 delete arg1;
4031
4032 wxPyEndAllowThreads(__tstate);
4033 if (PyErr_Occurred()) SWIG_fail;
4034 }
4035 resultobj = SWIG_Py_Void();
4036 return resultobj;
4037 fail:
4038 return NULL;
4039 }
4040
4041
4042 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4043 PyObject *resultobj = 0;
4044 wxPalette *arg1 = (wxPalette *) 0 ;
4045 byte arg2 ;
4046 byte arg3 ;
4047 byte arg4 ;
4048 int result;
4049 void *argp1 = 0 ;
4050 int res1 = 0 ;
4051 unsigned char val2 ;
4052 int ecode2 = 0 ;
4053 unsigned char val3 ;
4054 int ecode3 = 0 ;
4055 unsigned char val4 ;
4056 int ecode4 = 0 ;
4057 PyObject * obj0 = 0 ;
4058 PyObject * obj1 = 0 ;
4059 PyObject * obj2 = 0 ;
4060 PyObject * obj3 = 0 ;
4061 char * kwnames[] = {
4062 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4063 };
4064
4065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4067 if (!SWIG_IsOK(res1)) {
4068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4069 }
4070 arg1 = reinterpret_cast< wxPalette * >(argp1);
4071 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4072 if (!SWIG_IsOK(ecode2)) {
4073 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4074 }
4075 arg2 = static_cast< byte >(val2);
4076 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4077 if (!SWIG_IsOK(ecode3)) {
4078 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4079 }
4080 arg3 = static_cast< byte >(val3);
4081 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4082 if (!SWIG_IsOK(ecode4)) {
4083 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4084 }
4085 arg4 = static_cast< byte >(val4);
4086 {
4087 PyThreadState* __tstate = wxPyBeginAllowThreads();
4088 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4089 wxPyEndAllowThreads(__tstate);
4090 if (PyErr_Occurred()) SWIG_fail;
4091 }
4092 resultobj = SWIG_From_int(static_cast< int >(result));
4093 return resultobj;
4094 fail:
4095 return NULL;
4096 }
4097
4098
4099 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4100 PyObject *resultobj = 0;
4101 wxPalette *arg1 = (wxPalette *) 0 ;
4102 int arg2 ;
4103 byte *arg3 = (byte *) 0 ;
4104 byte *arg4 = (byte *) 0 ;
4105 byte *arg5 = (byte *) 0 ;
4106 bool result;
4107 void *argp1 = 0 ;
4108 int res1 = 0 ;
4109 int val2 ;
4110 int ecode2 = 0 ;
4111 byte temp3 ;
4112 int res3 = SWIG_TMPOBJ ;
4113 byte temp4 ;
4114 int res4 = SWIG_TMPOBJ ;
4115 byte temp5 ;
4116 int res5 = SWIG_TMPOBJ ;
4117 PyObject * obj0 = 0 ;
4118 PyObject * obj1 = 0 ;
4119 char * kwnames[] = {
4120 (char *) "self",(char *) "pixel", NULL
4121 };
4122
4123 arg3 = &temp3;
4124 arg4 = &temp4;
4125 arg5 = &temp5;
4126 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4127 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4128 if (!SWIG_IsOK(res1)) {
4129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4130 }
4131 arg1 = reinterpret_cast< wxPalette * >(argp1);
4132 ecode2 = SWIG_AsVal_int(obj1, &val2);
4133 if (!SWIG_IsOK(ecode2)) {
4134 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4135 }
4136 arg2 = static_cast< int >(val2);
4137 {
4138 PyThreadState* __tstate = wxPyBeginAllowThreads();
4139 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4140 wxPyEndAllowThreads(__tstate);
4141 if (PyErr_Occurred()) SWIG_fail;
4142 }
4143 {
4144 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4145 }
4146 if (SWIG_IsTmpObj(res3)) {
4147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4148 } else {
4149 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4151 }
4152 if (SWIG_IsTmpObj(res4)) {
4153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4154 } else {
4155 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4156 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4157 }
4158 if (SWIG_IsTmpObj(res5)) {
4159 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4160 } else {
4161 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4162 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4163 }
4164 return resultobj;
4165 fail:
4166 return NULL;
4167 }
4168
4169
4170 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4171 PyObject *resultobj = 0;
4172 wxPalette *arg1 = (wxPalette *) 0 ;
4173 int result;
4174 void *argp1 = 0 ;
4175 int res1 = 0 ;
4176 PyObject *swig_obj[1] ;
4177
4178 if (!args) SWIG_fail;
4179 swig_obj[0] = args;
4180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4181 if (!SWIG_IsOK(res1)) {
4182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4183 }
4184 arg1 = reinterpret_cast< wxPalette * >(argp1);
4185 {
4186 PyThreadState* __tstate = wxPyBeginAllowThreads();
4187 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4188 wxPyEndAllowThreads(__tstate);
4189 if (PyErr_Occurred()) SWIG_fail;
4190 }
4191 resultobj = SWIG_From_int(static_cast< int >(result));
4192 return resultobj;
4193 fail:
4194 return NULL;
4195 }
4196
4197
4198 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4199 PyObject *resultobj = 0;
4200 wxPalette *arg1 = (wxPalette *) 0 ;
4201 bool result;
4202 void *argp1 = 0 ;
4203 int res1 = 0 ;
4204 PyObject *swig_obj[1] ;
4205
4206 if (!args) SWIG_fail;
4207 swig_obj[0] = args;
4208 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4209 if (!SWIG_IsOK(res1)) {
4210 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4211 }
4212 arg1 = reinterpret_cast< wxPalette * >(argp1);
4213 {
4214 PyThreadState* __tstate = wxPyBeginAllowThreads();
4215 result = (bool)(arg1)->Ok();
4216 wxPyEndAllowThreads(__tstate);
4217 if (PyErr_Occurred()) SWIG_fail;
4218 }
4219 {
4220 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4221 }
4222 return resultobj;
4223 fail:
4224 return NULL;
4225 }
4226
4227
4228 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4229 PyObject *obj;
4230 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4231 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4232 return SWIG_Py_Void();
4233 }
4234
4235 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4236 return SWIG_Python_InitShadowInstance(args);
4237 }
4238
4239 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4240 PyObject *resultobj = 0;
4241 wxColour *arg1 = 0 ;
4242 int arg2 = (int) 1 ;
4243 int arg3 = (int) wxSOLID ;
4244 wxPen *result = 0 ;
4245 wxColour temp1 ;
4246 int val2 ;
4247 int ecode2 = 0 ;
4248 int val3 ;
4249 int ecode3 = 0 ;
4250 PyObject * obj0 = 0 ;
4251 PyObject * obj1 = 0 ;
4252 PyObject * obj2 = 0 ;
4253 char * kwnames[] = {
4254 (char *) "colour",(char *) "width",(char *) "style", NULL
4255 };
4256
4257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4258 {
4259 arg1 = &temp1;
4260 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4261 }
4262 if (obj1) {
4263 ecode2 = SWIG_AsVal_int(obj1, &val2);
4264 if (!SWIG_IsOK(ecode2)) {
4265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4266 }
4267 arg2 = static_cast< int >(val2);
4268 }
4269 if (obj2) {
4270 ecode3 = SWIG_AsVal_int(obj2, &val3);
4271 if (!SWIG_IsOK(ecode3)) {
4272 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4273 }
4274 arg3 = static_cast< int >(val3);
4275 }
4276 {
4277 if (!wxPyCheckForApp()) SWIG_fail;
4278 PyThreadState* __tstate = wxPyBeginAllowThreads();
4279 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4280 wxPyEndAllowThreads(__tstate);
4281 if (PyErr_Occurred()) SWIG_fail;
4282 }
4283 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4284 return resultobj;
4285 fail:
4286 return NULL;
4287 }
4288
4289
4290 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4291 PyObject *resultobj = 0;
4292 wxPen *arg1 = (wxPen *) 0 ;
4293 void *argp1 = 0 ;
4294 int res1 = 0 ;
4295 PyObject *swig_obj[1] ;
4296
4297 if (!args) SWIG_fail;
4298 swig_obj[0] = args;
4299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4300 if (!SWIG_IsOK(res1)) {
4301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4302 }
4303 arg1 = reinterpret_cast< wxPen * >(argp1);
4304 {
4305 PyThreadState* __tstate = wxPyBeginAllowThreads();
4306 delete arg1;
4307
4308 wxPyEndAllowThreads(__tstate);
4309 if (PyErr_Occurred()) SWIG_fail;
4310 }
4311 resultobj = SWIG_Py_Void();
4312 return resultobj;
4313 fail:
4314 return NULL;
4315 }
4316
4317
4318 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4319 PyObject *resultobj = 0;
4320 wxPen *arg1 = (wxPen *) 0 ;
4321 int result;
4322 void *argp1 = 0 ;
4323 int res1 = 0 ;
4324 PyObject *swig_obj[1] ;
4325
4326 if (!args) SWIG_fail;
4327 swig_obj[0] = args;
4328 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4329 if (!SWIG_IsOK(res1)) {
4330 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4331 }
4332 arg1 = reinterpret_cast< wxPen * >(argp1);
4333 {
4334 PyThreadState* __tstate = wxPyBeginAllowThreads();
4335 result = (int)(arg1)->GetCap();
4336 wxPyEndAllowThreads(__tstate);
4337 if (PyErr_Occurred()) SWIG_fail;
4338 }
4339 resultobj = SWIG_From_int(static_cast< int >(result));
4340 return resultobj;
4341 fail:
4342 return NULL;
4343 }
4344
4345
4346 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4347 PyObject *resultobj = 0;
4348 wxPen *arg1 = (wxPen *) 0 ;
4349 wxColour result;
4350 void *argp1 = 0 ;
4351 int res1 = 0 ;
4352 PyObject *swig_obj[1] ;
4353
4354 if (!args) SWIG_fail;
4355 swig_obj[0] = args;
4356 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4357 if (!SWIG_IsOK(res1)) {
4358 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4359 }
4360 arg1 = reinterpret_cast< wxPen * >(argp1);
4361 {
4362 PyThreadState* __tstate = wxPyBeginAllowThreads();
4363 result = (arg1)->GetColour();
4364 wxPyEndAllowThreads(__tstate);
4365 if (PyErr_Occurred()) SWIG_fail;
4366 }
4367 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4368 return resultobj;
4369 fail:
4370 return NULL;
4371 }
4372
4373
4374 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4375 PyObject *resultobj = 0;
4376 wxPen *arg1 = (wxPen *) 0 ;
4377 int result;
4378 void *argp1 = 0 ;
4379 int res1 = 0 ;
4380 PyObject *swig_obj[1] ;
4381
4382 if (!args) SWIG_fail;
4383 swig_obj[0] = args;
4384 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4385 if (!SWIG_IsOK(res1)) {
4386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4387 }
4388 arg1 = reinterpret_cast< wxPen * >(argp1);
4389 {
4390 PyThreadState* __tstate = wxPyBeginAllowThreads();
4391 result = (int)(arg1)->GetJoin();
4392 wxPyEndAllowThreads(__tstate);
4393 if (PyErr_Occurred()) SWIG_fail;
4394 }
4395 resultobj = SWIG_From_int(static_cast< int >(result));
4396 return resultobj;
4397 fail:
4398 return NULL;
4399 }
4400
4401
4402 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4403 PyObject *resultobj = 0;
4404 wxPen *arg1 = (wxPen *) 0 ;
4405 int result;
4406 void *argp1 = 0 ;
4407 int res1 = 0 ;
4408 PyObject *swig_obj[1] ;
4409
4410 if (!args) SWIG_fail;
4411 swig_obj[0] = args;
4412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4413 if (!SWIG_IsOK(res1)) {
4414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4415 }
4416 arg1 = reinterpret_cast< wxPen * >(argp1);
4417 {
4418 PyThreadState* __tstate = wxPyBeginAllowThreads();
4419 result = (int)(arg1)->GetStyle();
4420 wxPyEndAllowThreads(__tstate);
4421 if (PyErr_Occurred()) SWIG_fail;
4422 }
4423 resultobj = SWIG_From_int(static_cast< int >(result));
4424 return resultobj;
4425 fail:
4426 return NULL;
4427 }
4428
4429
4430 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4431 PyObject *resultobj = 0;
4432 wxPen *arg1 = (wxPen *) 0 ;
4433 int result;
4434 void *argp1 = 0 ;
4435 int res1 = 0 ;
4436 PyObject *swig_obj[1] ;
4437
4438 if (!args) SWIG_fail;
4439 swig_obj[0] = args;
4440 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4441 if (!SWIG_IsOK(res1)) {
4442 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4443 }
4444 arg1 = reinterpret_cast< wxPen * >(argp1);
4445 {
4446 PyThreadState* __tstate = wxPyBeginAllowThreads();
4447 result = (int)(arg1)->GetWidth();
4448 wxPyEndAllowThreads(__tstate);
4449 if (PyErr_Occurred()) SWIG_fail;
4450 }
4451 resultobj = SWIG_From_int(static_cast< int >(result));
4452 return resultobj;
4453 fail:
4454 return NULL;
4455 }
4456
4457
4458 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4459 PyObject *resultobj = 0;
4460 wxPen *arg1 = (wxPen *) 0 ;
4461 bool result;
4462 void *argp1 = 0 ;
4463 int res1 = 0 ;
4464 PyObject *swig_obj[1] ;
4465
4466 if (!args) SWIG_fail;
4467 swig_obj[0] = args;
4468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4469 if (!SWIG_IsOK(res1)) {
4470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4471 }
4472 arg1 = reinterpret_cast< wxPen * >(argp1);
4473 {
4474 PyThreadState* __tstate = wxPyBeginAllowThreads();
4475 result = (bool)(arg1)->Ok();
4476 wxPyEndAllowThreads(__tstate);
4477 if (PyErr_Occurred()) SWIG_fail;
4478 }
4479 {
4480 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4481 }
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj = 0;
4490 wxPen *arg1 = (wxPen *) 0 ;
4491 int arg2 ;
4492 void *argp1 = 0 ;
4493 int res1 = 0 ;
4494 int val2 ;
4495 int ecode2 = 0 ;
4496 PyObject * obj0 = 0 ;
4497 PyObject * obj1 = 0 ;
4498 char * kwnames[] = {
4499 (char *) "self",(char *) "cap_style", NULL
4500 };
4501
4502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4504 if (!SWIG_IsOK(res1)) {
4505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4506 }
4507 arg1 = reinterpret_cast< wxPen * >(argp1);
4508 ecode2 = SWIG_AsVal_int(obj1, &val2);
4509 if (!SWIG_IsOK(ecode2)) {
4510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4511 }
4512 arg2 = static_cast< int >(val2);
4513 {
4514 PyThreadState* __tstate = wxPyBeginAllowThreads();
4515 (arg1)->SetCap(arg2);
4516 wxPyEndAllowThreads(__tstate);
4517 if (PyErr_Occurred()) SWIG_fail;
4518 }
4519 resultobj = SWIG_Py_Void();
4520 return resultobj;
4521 fail:
4522 return NULL;
4523 }
4524
4525
4526 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4527 PyObject *resultobj = 0;
4528 wxPen *arg1 = (wxPen *) 0 ;
4529 wxColour *arg2 = 0 ;
4530 void *argp1 = 0 ;
4531 int res1 = 0 ;
4532 wxColour temp2 ;
4533 PyObject * obj0 = 0 ;
4534 PyObject * obj1 = 0 ;
4535 char * kwnames[] = {
4536 (char *) "self",(char *) "colour", NULL
4537 };
4538
4539 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4540 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4541 if (!SWIG_IsOK(res1)) {
4542 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4543 }
4544 arg1 = reinterpret_cast< wxPen * >(argp1);
4545 {
4546 arg2 = &temp2;
4547 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4548 }
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 (arg1)->SetColour(*arg2);
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 resultobj = SWIG_Py_Void();
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj = 0;
4564 wxPen *arg1 = (wxPen *) 0 ;
4565 int arg2 ;
4566 void *argp1 = 0 ;
4567 int res1 = 0 ;
4568 int val2 ;
4569 int ecode2 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 char * kwnames[] = {
4573 (char *) "self",(char *) "join_style", NULL
4574 };
4575
4576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4580 }
4581 arg1 = reinterpret_cast< wxPen * >(argp1);
4582 ecode2 = SWIG_AsVal_int(obj1, &val2);
4583 if (!SWIG_IsOK(ecode2)) {
4584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4585 }
4586 arg2 = static_cast< int >(val2);
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 (arg1)->SetJoin(arg2);
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 resultobj = SWIG_Py_Void();
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj = 0;
4602 wxPen *arg1 = (wxPen *) 0 ;
4603 int arg2 ;
4604 void *argp1 = 0 ;
4605 int res1 = 0 ;
4606 int val2 ;
4607 int ecode2 = 0 ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "self",(char *) "style", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4618 }
4619 arg1 = reinterpret_cast< wxPen * >(argp1);
4620 ecode2 = SWIG_AsVal_int(obj1, &val2);
4621 if (!SWIG_IsOK(ecode2)) {
4622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4623 }
4624 arg2 = static_cast< int >(val2);
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 (arg1)->SetStyle(arg2);
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 resultobj = SWIG_Py_Void();
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxPen *arg1 = (wxPen *) 0 ;
4641 int arg2 ;
4642 void *argp1 = 0 ;
4643 int res1 = 0 ;
4644 int val2 ;
4645 int ecode2 = 0 ;
4646 PyObject * obj0 = 0 ;
4647 PyObject * obj1 = 0 ;
4648 char * kwnames[] = {
4649 (char *) "self",(char *) "width", NULL
4650 };
4651
4652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4654 if (!SWIG_IsOK(res1)) {
4655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4656 }
4657 arg1 = reinterpret_cast< wxPen * >(argp1);
4658 ecode2 = SWIG_AsVal_int(obj1, &val2);
4659 if (!SWIG_IsOK(ecode2)) {
4660 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4661 }
4662 arg2 = static_cast< int >(val2);
4663 {
4664 PyThreadState* __tstate = wxPyBeginAllowThreads();
4665 (arg1)->SetWidth(arg2);
4666 wxPyEndAllowThreads(__tstate);
4667 if (PyErr_Occurred()) SWIG_fail;
4668 }
4669 resultobj = SWIG_Py_Void();
4670 return resultobj;
4671 fail:
4672 return NULL;
4673 }
4674
4675
4676 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4677 PyObject *resultobj = 0;
4678 wxPen *arg1 = (wxPen *) 0 ;
4679 int arg2 ;
4680 wxDash *arg3 = (wxDash *) 0 ;
4681 void *argp1 = 0 ;
4682 int res1 = 0 ;
4683 PyObject * obj0 = 0 ;
4684 PyObject * obj1 = 0 ;
4685 char * kwnames[] = {
4686 (char *) "self",(char *) "dashes", NULL
4687 };
4688
4689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4691 if (!SWIG_IsOK(res1)) {
4692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4693 }
4694 arg1 = reinterpret_cast< wxPen * >(argp1);
4695 {
4696 arg2 = PyList_Size(obj1);
4697 arg3 = (wxDash*)byte_LIST_helper(obj1);
4698 if (arg3 == NULL) SWIG_fail;
4699 }
4700 {
4701 PyThreadState* __tstate = wxPyBeginAllowThreads();
4702 (arg1)->SetDashes(arg2,arg3);
4703 wxPyEndAllowThreads(__tstate);
4704 if (PyErr_Occurred()) SWIG_fail;
4705 }
4706 resultobj = SWIG_Py_Void();
4707 {
4708 if (arg3) delete [] arg3;
4709 }
4710 return resultobj;
4711 fail:
4712 {
4713 if (arg3) delete [] arg3;
4714 }
4715 return NULL;
4716 }
4717
4718
4719 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4720 PyObject *resultobj = 0;
4721 wxPen *arg1 = (wxPen *) 0 ;
4722 PyObject *result = 0 ;
4723 void *argp1 = 0 ;
4724 int res1 = 0 ;
4725 PyObject *swig_obj[1] ;
4726
4727 if (!args) SWIG_fail;
4728 swig_obj[0] = args;
4729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4730 if (!SWIG_IsOK(res1)) {
4731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4732 }
4733 arg1 = reinterpret_cast< wxPen * >(argp1);
4734 {
4735 PyThreadState* __tstate = wxPyBeginAllowThreads();
4736 result = (PyObject *)wxPen_GetDashes(arg1);
4737 wxPyEndAllowThreads(__tstate);
4738 if (PyErr_Occurred()) SWIG_fail;
4739 }
4740 resultobj = result;
4741 return resultobj;
4742 fail:
4743 return NULL;
4744 }
4745
4746
4747 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4748 PyObject *resultobj = 0;
4749 wxPen *arg1 = (wxPen *) 0 ;
4750 PyObject *arg2 = (PyObject *) 0 ;
4751 PyObject *arg3 = (PyObject *) 0 ;
4752 void *argp1 = 0 ;
4753 int res1 = 0 ;
4754 PyObject * obj0 = 0 ;
4755 PyObject * obj1 = 0 ;
4756 PyObject * obj2 = 0 ;
4757 char * kwnames[] = {
4758 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4759 };
4760
4761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4763 if (!SWIG_IsOK(res1)) {
4764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4765 }
4766 arg1 = reinterpret_cast< wxPen * >(argp1);
4767 arg2 = obj1;
4768 arg3 = obj2;
4769 {
4770 PyThreadState* __tstate = wxPyBeginAllowThreads();
4771 wxPen__SetDashes(arg1,arg2,arg3);
4772 wxPyEndAllowThreads(__tstate);
4773 if (PyErr_Occurred()) SWIG_fail;
4774 }
4775 resultobj = SWIG_Py_Void();
4776 return resultobj;
4777 fail:
4778 return NULL;
4779 }
4780
4781
4782 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4783 PyObject *resultobj = 0;
4784 wxPen *arg1 = (wxPen *) 0 ;
4785 int result;
4786 void *argp1 = 0 ;
4787 int res1 = 0 ;
4788 PyObject *swig_obj[1] ;
4789
4790 if (!args) SWIG_fail;
4791 swig_obj[0] = args;
4792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4793 if (!SWIG_IsOK(res1)) {
4794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4795 }
4796 arg1 = reinterpret_cast< wxPen * >(argp1);
4797 {
4798 PyThreadState* __tstate = wxPyBeginAllowThreads();
4799 result = (int)((wxPen const *)arg1)->GetDashCount();
4800 wxPyEndAllowThreads(__tstate);
4801 if (PyErr_Occurred()) SWIG_fail;
4802 }
4803 resultobj = SWIG_From_int(static_cast< int >(result));
4804 return resultobj;
4805 fail:
4806 return NULL;
4807 }
4808
4809
4810 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4811 PyObject *resultobj = 0;
4812 wxPen *arg1 = (wxPen *) 0 ;
4813 wxBitmap *result = 0 ;
4814 void *argp1 = 0 ;
4815 int res1 = 0 ;
4816 PyObject *swig_obj[1] ;
4817
4818 if (!args) SWIG_fail;
4819 swig_obj[0] = args;
4820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4821 if (!SWIG_IsOK(res1)) {
4822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4823 }
4824 arg1 = reinterpret_cast< wxPen * >(argp1);
4825 {
4826 PyThreadState* __tstate = wxPyBeginAllowThreads();
4827 result = (wxBitmap *)(arg1)->GetStipple();
4828 wxPyEndAllowThreads(__tstate);
4829 if (PyErr_Occurred()) SWIG_fail;
4830 }
4831 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4832 return resultobj;
4833 fail:
4834 return NULL;
4835 }
4836
4837
4838 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4839 PyObject *resultobj = 0;
4840 wxPen *arg1 = (wxPen *) 0 ;
4841 wxBitmap *arg2 = 0 ;
4842 void *argp1 = 0 ;
4843 int res1 = 0 ;
4844 void *argp2 = 0 ;
4845 int res2 = 0 ;
4846 PyObject * obj0 = 0 ;
4847 PyObject * obj1 = 0 ;
4848 char * kwnames[] = {
4849 (char *) "self",(char *) "stipple", NULL
4850 };
4851
4852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4854 if (!SWIG_IsOK(res1)) {
4855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4856 }
4857 arg1 = reinterpret_cast< wxPen * >(argp1);
4858 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4859 if (!SWIG_IsOK(res2)) {
4860 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4861 }
4862 if (!argp2) {
4863 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4864 }
4865 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4866 {
4867 PyThreadState* __tstate = wxPyBeginAllowThreads();
4868 (arg1)->SetStipple(*arg2);
4869 wxPyEndAllowThreads(__tstate);
4870 if (PyErr_Occurred()) SWIG_fail;
4871 }
4872 resultobj = SWIG_Py_Void();
4873 return resultobj;
4874 fail:
4875 return NULL;
4876 }
4877
4878
4879 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4880 PyObject *resultobj = 0;
4881 wxPen *arg1 = (wxPen *) 0 ;
4882 wxPen *arg2 = (wxPen *) 0 ;
4883 bool result;
4884 void *argp1 = 0 ;
4885 int res1 = 0 ;
4886 void *argp2 = 0 ;
4887 int res2 = 0 ;
4888 PyObject * obj0 = 0 ;
4889 PyObject * obj1 = 0 ;
4890 char * kwnames[] = {
4891 (char *) "self",(char *) "other", NULL
4892 };
4893
4894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4896 if (!SWIG_IsOK(res1)) {
4897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4898 }
4899 arg1 = reinterpret_cast< wxPen * >(argp1);
4900 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4901 if (!SWIG_IsOK(res2)) {
4902 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4903 }
4904 arg2 = reinterpret_cast< wxPen * >(argp2);
4905 {
4906 PyThreadState* __tstate = wxPyBeginAllowThreads();
4907 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4908 wxPyEndAllowThreads(__tstate);
4909 if (PyErr_Occurred()) SWIG_fail;
4910 }
4911 {
4912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4913 }
4914 return resultobj;
4915 fail:
4916 return NULL;
4917 }
4918
4919
4920 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4921 PyObject *resultobj = 0;
4922 wxPen *arg1 = (wxPen *) 0 ;
4923 wxPen *arg2 = (wxPen *) 0 ;
4924 bool result;
4925 void *argp1 = 0 ;
4926 int res1 = 0 ;
4927 void *argp2 = 0 ;
4928 int res2 = 0 ;
4929 PyObject * obj0 = 0 ;
4930 PyObject * obj1 = 0 ;
4931 char * kwnames[] = {
4932 (char *) "self",(char *) "other", NULL
4933 };
4934
4935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4937 if (!SWIG_IsOK(res1)) {
4938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4939 }
4940 arg1 = reinterpret_cast< wxPen * >(argp1);
4941 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4942 if (!SWIG_IsOK(res2)) {
4943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4944 }
4945 arg2 = reinterpret_cast< wxPen * >(argp2);
4946 {
4947 PyThreadState* __tstate = wxPyBeginAllowThreads();
4948 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4949 wxPyEndAllowThreads(__tstate);
4950 if (PyErr_Occurred()) SWIG_fail;
4951 }
4952 {
4953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4954 }
4955 return resultobj;
4956 fail:
4957 return NULL;
4958 }
4959
4960
4961 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4962 PyObject *obj;
4963 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4964 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4965 return SWIG_Py_Void();
4966 }
4967
4968 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4969 return SWIG_Python_InitShadowInstance(args);
4970 }
4971
4972 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4973 PyObject *resultobj = 0;
4974 wxColour *arg1 = 0 ;
4975 int arg2 = (int) wxSOLID ;
4976 wxBrush *result = 0 ;
4977 wxColour temp1 ;
4978 int val2 ;
4979 int ecode2 = 0 ;
4980 PyObject * obj0 = 0 ;
4981 PyObject * obj1 = 0 ;
4982 char * kwnames[] = {
4983 (char *) "colour",(char *) "style", NULL
4984 };
4985
4986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4987 {
4988 arg1 = &temp1;
4989 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4990 }
4991 if (obj1) {
4992 ecode2 = SWIG_AsVal_int(obj1, &val2);
4993 if (!SWIG_IsOK(ecode2)) {
4994 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4995 }
4996 arg2 = static_cast< int >(val2);
4997 }
4998 {
4999 if (!wxPyCheckForApp()) SWIG_fail;
5000 PyThreadState* __tstate = wxPyBeginAllowThreads();
5001 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
5002 wxPyEndAllowThreads(__tstate);
5003 if (PyErr_Occurred()) SWIG_fail;
5004 }
5005 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
5006 return resultobj;
5007 fail:
5008 return NULL;
5009 }
5010
5011
5012 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5013 PyObject *resultobj = 0;
5014 wxBitmap *arg1 = 0 ;
5015 wxBrush *result = 0 ;
5016 void *argp1 = 0 ;
5017 int res1 = 0 ;
5018 PyObject * obj0 = 0 ;
5019 char * kwnames[] = {
5020 (char *) "stippleBitmap", NULL
5021 };
5022
5023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5024 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5025 if (!SWIG_IsOK(res1)) {
5026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5027 }
5028 if (!argp1) {
5029 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5030 }
5031 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5032 {
5033 if (!wxPyCheckForApp()) SWIG_fail;
5034 PyThreadState* __tstate = wxPyBeginAllowThreads();
5035 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5036 wxPyEndAllowThreads(__tstate);
5037 if (PyErr_Occurred()) SWIG_fail;
5038 }
5039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5040 return resultobj;
5041 fail:
5042 return NULL;
5043 }
5044
5045
5046 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5047 PyObject *resultobj = 0;
5048 wxBrush *arg1 = (wxBrush *) 0 ;
5049 void *argp1 = 0 ;
5050 int res1 = 0 ;
5051 PyObject *swig_obj[1] ;
5052
5053 if (!args) SWIG_fail;
5054 swig_obj[0] = args;
5055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5056 if (!SWIG_IsOK(res1)) {
5057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5058 }
5059 arg1 = reinterpret_cast< wxBrush * >(argp1);
5060 {
5061 PyThreadState* __tstate = wxPyBeginAllowThreads();
5062 delete arg1;
5063
5064 wxPyEndAllowThreads(__tstate);
5065 if (PyErr_Occurred()) SWIG_fail;
5066 }
5067 resultobj = SWIG_Py_Void();
5068 return resultobj;
5069 fail:
5070 return NULL;
5071 }
5072
5073
5074 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5075 PyObject *resultobj = 0;
5076 wxBrush *arg1 = (wxBrush *) 0 ;
5077 wxColour *arg2 = 0 ;
5078 void *argp1 = 0 ;
5079 int res1 = 0 ;
5080 wxColour temp2 ;
5081 PyObject * obj0 = 0 ;
5082 PyObject * obj1 = 0 ;
5083 char * kwnames[] = {
5084 (char *) "self",(char *) "col", NULL
5085 };
5086
5087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5088 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5089 if (!SWIG_IsOK(res1)) {
5090 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5091 }
5092 arg1 = reinterpret_cast< wxBrush * >(argp1);
5093 {
5094 arg2 = &temp2;
5095 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5096 }
5097 {
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 (arg1)->SetColour((wxColour const &)*arg2);
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_Py_Void();
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5111 PyObject *resultobj = 0;
5112 wxBrush *arg1 = (wxBrush *) 0 ;
5113 int arg2 ;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 int val2 ;
5117 int ecode2 = 0 ;
5118 PyObject * obj0 = 0 ;
5119 PyObject * obj1 = 0 ;
5120 char * kwnames[] = {
5121 (char *) "self",(char *) "style", NULL
5122 };
5123
5124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5126 if (!SWIG_IsOK(res1)) {
5127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5128 }
5129 arg1 = reinterpret_cast< wxBrush * >(argp1);
5130 ecode2 = SWIG_AsVal_int(obj1, &val2);
5131 if (!SWIG_IsOK(ecode2)) {
5132 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5133 }
5134 arg2 = static_cast< int >(val2);
5135 {
5136 PyThreadState* __tstate = wxPyBeginAllowThreads();
5137 (arg1)->SetStyle(arg2);
5138 wxPyEndAllowThreads(__tstate);
5139 if (PyErr_Occurred()) SWIG_fail;
5140 }
5141 resultobj = SWIG_Py_Void();
5142 return resultobj;
5143 fail:
5144 return NULL;
5145 }
5146
5147
5148 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5149 PyObject *resultobj = 0;
5150 wxBrush *arg1 = (wxBrush *) 0 ;
5151 wxBitmap *arg2 = 0 ;
5152 void *argp1 = 0 ;
5153 int res1 = 0 ;
5154 void *argp2 = 0 ;
5155 int res2 = 0 ;
5156 PyObject * obj0 = 0 ;
5157 PyObject * obj1 = 0 ;
5158 char * kwnames[] = {
5159 (char *) "self",(char *) "stipple", NULL
5160 };
5161
5162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5163 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5164 if (!SWIG_IsOK(res1)) {
5165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5166 }
5167 arg1 = reinterpret_cast< wxBrush * >(argp1);
5168 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5169 if (!SWIG_IsOK(res2)) {
5170 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5171 }
5172 if (!argp2) {
5173 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5174 }
5175 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5176 {
5177 PyThreadState* __tstate = wxPyBeginAllowThreads();
5178 (arg1)->SetStipple((wxBitmap const &)*arg2);
5179 wxPyEndAllowThreads(__tstate);
5180 if (PyErr_Occurred()) SWIG_fail;
5181 }
5182 resultobj = SWIG_Py_Void();
5183 return resultobj;
5184 fail:
5185 return NULL;
5186 }
5187
5188
5189 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5190 PyObject *resultobj = 0;
5191 wxBrush *arg1 = (wxBrush *) 0 ;
5192 wxColour result;
5193 void *argp1 = 0 ;
5194 int res1 = 0 ;
5195 PyObject *swig_obj[1] ;
5196
5197 if (!args) SWIG_fail;
5198 swig_obj[0] = args;
5199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5200 if (!SWIG_IsOK(res1)) {
5201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5202 }
5203 arg1 = reinterpret_cast< wxBrush * >(argp1);
5204 {
5205 PyThreadState* __tstate = wxPyBeginAllowThreads();
5206 result = ((wxBrush const *)arg1)->GetColour();
5207 wxPyEndAllowThreads(__tstate);
5208 if (PyErr_Occurred()) SWIG_fail;
5209 }
5210 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5211 return resultobj;
5212 fail:
5213 return NULL;
5214 }
5215
5216
5217 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5218 PyObject *resultobj = 0;
5219 wxBrush *arg1 = (wxBrush *) 0 ;
5220 int result;
5221 void *argp1 = 0 ;
5222 int res1 = 0 ;
5223 PyObject *swig_obj[1] ;
5224
5225 if (!args) SWIG_fail;
5226 swig_obj[0] = args;
5227 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5228 if (!SWIG_IsOK(res1)) {
5229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5230 }
5231 arg1 = reinterpret_cast< wxBrush * >(argp1);
5232 {
5233 PyThreadState* __tstate = wxPyBeginAllowThreads();
5234 result = (int)((wxBrush const *)arg1)->GetStyle();
5235 wxPyEndAllowThreads(__tstate);
5236 if (PyErr_Occurred()) SWIG_fail;
5237 }
5238 resultobj = SWIG_From_int(static_cast< int >(result));
5239 return resultobj;
5240 fail:
5241 return NULL;
5242 }
5243
5244
5245 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5246 PyObject *resultobj = 0;
5247 wxBrush *arg1 = (wxBrush *) 0 ;
5248 wxBitmap *result = 0 ;
5249 void *argp1 = 0 ;
5250 int res1 = 0 ;
5251 PyObject *swig_obj[1] ;
5252
5253 if (!args) SWIG_fail;
5254 swig_obj[0] = args;
5255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5256 if (!SWIG_IsOK(res1)) {
5257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5258 }
5259 arg1 = reinterpret_cast< wxBrush * >(argp1);
5260 {
5261 PyThreadState* __tstate = wxPyBeginAllowThreads();
5262 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5263 wxPyEndAllowThreads(__tstate);
5264 if (PyErr_Occurred()) SWIG_fail;
5265 }
5266 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5267 return resultobj;
5268 fail:
5269 return NULL;
5270 }
5271
5272
5273 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5274 PyObject *resultobj = 0;
5275 wxBrush *arg1 = (wxBrush *) 0 ;
5276 bool result;
5277 void *argp1 = 0 ;
5278 int res1 = 0 ;
5279 PyObject *swig_obj[1] ;
5280
5281 if (!args) SWIG_fail;
5282 swig_obj[0] = args;
5283 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5284 if (!SWIG_IsOK(res1)) {
5285 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5286 }
5287 arg1 = reinterpret_cast< wxBrush * >(argp1);
5288 {
5289 PyThreadState* __tstate = wxPyBeginAllowThreads();
5290 result = (bool)((wxBrush const *)arg1)->IsHatch();
5291 wxPyEndAllowThreads(__tstate);
5292 if (PyErr_Occurred()) SWIG_fail;
5293 }
5294 {
5295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5296 }
5297 return resultobj;
5298 fail:
5299 return NULL;
5300 }
5301
5302
5303 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5304 PyObject *resultobj = 0;
5305 wxBrush *arg1 = (wxBrush *) 0 ;
5306 bool result;
5307 void *argp1 = 0 ;
5308 int res1 = 0 ;
5309 PyObject *swig_obj[1] ;
5310
5311 if (!args) SWIG_fail;
5312 swig_obj[0] = args;
5313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5314 if (!SWIG_IsOK(res1)) {
5315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5316 }
5317 arg1 = reinterpret_cast< wxBrush * >(argp1);
5318 {
5319 PyThreadState* __tstate = wxPyBeginAllowThreads();
5320 result = (bool)(arg1)->Ok();
5321 wxPyEndAllowThreads(__tstate);
5322 if (PyErr_Occurred()) SWIG_fail;
5323 }
5324 {
5325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5326 }
5327 return resultobj;
5328 fail:
5329 return NULL;
5330 }
5331
5332
5333 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5334 PyObject *obj;
5335 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5336 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5337 return SWIG_Py_Void();
5338 }
5339
5340 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5341 return SWIG_Python_InitShadowInstance(args);
5342 }
5343
5344 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5345 PyObject *resultobj = 0;
5346 wxString *arg1 = 0 ;
5347 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5348 wxBitmap *result = 0 ;
5349 bool temp1 = false ;
5350 int val2 ;
5351 int ecode2 = 0 ;
5352 PyObject * obj0 = 0 ;
5353 PyObject * obj1 = 0 ;
5354 char * kwnames[] = {
5355 (char *) "name",(char *) "type", NULL
5356 };
5357
5358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5359 {
5360 arg1 = wxString_in_helper(obj0);
5361 if (arg1 == NULL) SWIG_fail;
5362 temp1 = true;
5363 }
5364 if (obj1) {
5365 ecode2 = SWIG_AsVal_int(obj1, &val2);
5366 if (!SWIG_IsOK(ecode2)) {
5367 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5368 }
5369 arg2 = static_cast< wxBitmapType >(val2);
5370 }
5371 {
5372 if (!wxPyCheckForApp()) SWIG_fail;
5373 PyThreadState* __tstate = wxPyBeginAllowThreads();
5374 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5375 wxPyEndAllowThreads(__tstate);
5376 if (PyErr_Occurred()) SWIG_fail;
5377 }
5378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5379 {
5380 if (temp1)
5381 delete arg1;
5382 }
5383 return resultobj;
5384 fail:
5385 {
5386 if (temp1)
5387 delete arg1;
5388 }
5389 return NULL;
5390 }
5391
5392
5393 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5394 PyObject *resultobj = 0;
5395 wxBitmap *arg1 = (wxBitmap *) 0 ;
5396 void *argp1 = 0 ;
5397 int res1 = 0 ;
5398 PyObject *swig_obj[1] ;
5399
5400 if (!args) SWIG_fail;
5401 swig_obj[0] = args;
5402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5403 if (!SWIG_IsOK(res1)) {
5404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5405 }
5406 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5407 {
5408 PyThreadState* __tstate = wxPyBeginAllowThreads();
5409 delete arg1;
5410
5411 wxPyEndAllowThreads(__tstate);
5412 if (PyErr_Occurred()) SWIG_fail;
5413 }
5414 resultobj = SWIG_Py_Void();
5415 return resultobj;
5416 fail:
5417 return NULL;
5418 }
5419
5420
5421 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5422 PyObject *resultobj = 0;
5423 int arg1 ;
5424 int arg2 ;
5425 int arg3 = (int) -1 ;
5426 wxBitmap *result = 0 ;
5427 int val1 ;
5428 int ecode1 = 0 ;
5429 int val2 ;
5430 int ecode2 = 0 ;
5431 int val3 ;
5432 int ecode3 = 0 ;
5433 PyObject * obj0 = 0 ;
5434 PyObject * obj1 = 0 ;
5435 PyObject * obj2 = 0 ;
5436 char * kwnames[] = {
5437 (char *) "width",(char *) "height",(char *) "depth", NULL
5438 };
5439
5440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5441 ecode1 = SWIG_AsVal_int(obj0, &val1);
5442 if (!SWIG_IsOK(ecode1)) {
5443 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5444 }
5445 arg1 = static_cast< int >(val1);
5446 ecode2 = SWIG_AsVal_int(obj1, &val2);
5447 if (!SWIG_IsOK(ecode2)) {
5448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5449 }
5450 arg2 = static_cast< int >(val2);
5451 if (obj2) {
5452 ecode3 = SWIG_AsVal_int(obj2, &val3);
5453 if (!SWIG_IsOK(ecode3)) {
5454 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5455 }
5456 arg3 = static_cast< int >(val3);
5457 }
5458 {
5459 if (!wxPyCheckForApp()) SWIG_fail;
5460 PyThreadState* __tstate = wxPyBeginAllowThreads();
5461 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5462 wxPyEndAllowThreads(__tstate);
5463 if (PyErr_Occurred()) SWIG_fail;
5464 }
5465 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5466 return resultobj;
5467 fail:
5468 return NULL;
5469 }
5470
5471
5472 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5473 PyObject *resultobj = 0;
5474 wxIcon *arg1 = 0 ;
5475 wxBitmap *result = 0 ;
5476 void *argp1 = 0 ;
5477 int res1 = 0 ;
5478 PyObject * obj0 = 0 ;
5479 char * kwnames[] = {
5480 (char *) "icon", NULL
5481 };
5482
5483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5484 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5485 if (!SWIG_IsOK(res1)) {
5486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5487 }
5488 if (!argp1) {
5489 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5490 }
5491 arg1 = reinterpret_cast< wxIcon * >(argp1);
5492 {
5493 if (!wxPyCheckForApp()) SWIG_fail;
5494 PyThreadState* __tstate = wxPyBeginAllowThreads();
5495 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5496 wxPyEndAllowThreads(__tstate);
5497 if (PyErr_Occurred()) SWIG_fail;
5498 }
5499 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5500 return resultobj;
5501 fail:
5502 return NULL;
5503 }
5504
5505
5506 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5507 PyObject *resultobj = 0;
5508 wxImage *arg1 = 0 ;
5509 int arg2 = (int) -1 ;
5510 wxBitmap *result = 0 ;
5511 void *argp1 = 0 ;
5512 int res1 = 0 ;
5513 int val2 ;
5514 int ecode2 = 0 ;
5515 PyObject * obj0 = 0 ;
5516 PyObject * obj1 = 0 ;
5517 char * kwnames[] = {
5518 (char *) "image",(char *) "depth", NULL
5519 };
5520
5521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5522 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5523 if (!SWIG_IsOK(res1)) {
5524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5525 }
5526 if (!argp1) {
5527 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5528 }
5529 arg1 = reinterpret_cast< wxImage * >(argp1);
5530 if (obj1) {
5531 ecode2 = SWIG_AsVal_int(obj1, &val2);
5532 if (!SWIG_IsOK(ecode2)) {
5533 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5534 }
5535 arg2 = static_cast< int >(val2);
5536 }
5537 {
5538 if (!wxPyCheckForApp()) SWIG_fail;
5539 PyThreadState* __tstate = wxPyBeginAllowThreads();
5540 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5545 return resultobj;
5546 fail:
5547 return NULL;
5548 }
5549
5550
5551 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5552 PyObject *resultobj = 0;
5553 PyObject *arg1 = (PyObject *) 0 ;
5554 wxBitmap *result = 0 ;
5555 PyObject * obj0 = 0 ;
5556 char * kwnames[] = {
5557 (char *) "listOfStrings", NULL
5558 };
5559
5560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5561 arg1 = obj0;
5562 {
5563 if (!wxPyCheckForApp()) SWIG_fail;
5564 PyThreadState* __tstate = wxPyBeginAllowThreads();
5565 result = (wxBitmap *)new_wxBitmap(arg1);
5566 wxPyEndAllowThreads(__tstate);
5567 if (PyErr_Occurred()) SWIG_fail;
5568 }
5569 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5570 return resultobj;
5571 fail:
5572 return NULL;
5573 }
5574
5575
5576 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5577 PyObject *resultobj = 0;
5578 PyObject *arg1 = (PyObject *) 0 ;
5579 int arg2 ;
5580 int arg3 ;
5581 int arg4 = (int) 1 ;
5582 wxBitmap *result = 0 ;
5583 int val2 ;
5584 int ecode2 = 0 ;
5585 int val3 ;
5586 int ecode3 = 0 ;
5587 int val4 ;
5588 int ecode4 = 0 ;
5589 PyObject * obj0 = 0 ;
5590 PyObject * obj1 = 0 ;
5591 PyObject * obj2 = 0 ;
5592 PyObject * obj3 = 0 ;
5593 char * kwnames[] = {
5594 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5595 };
5596
5597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5598 arg1 = obj0;
5599 ecode2 = SWIG_AsVal_int(obj1, &val2);
5600 if (!SWIG_IsOK(ecode2)) {
5601 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5602 }
5603 arg2 = static_cast< int >(val2);
5604 ecode3 = SWIG_AsVal_int(obj2, &val3);
5605 if (!SWIG_IsOK(ecode3)) {
5606 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5607 }
5608 arg3 = static_cast< int >(val3);
5609 if (obj3) {
5610 ecode4 = SWIG_AsVal_int(obj3, &val4);
5611 if (!SWIG_IsOK(ecode4)) {
5612 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5613 }
5614 arg4 = static_cast< int >(val4);
5615 }
5616 {
5617 if (!wxPyCheckForApp()) SWIG_fail;
5618 PyThreadState* __tstate = wxPyBeginAllowThreads();
5619 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5620 wxPyEndAllowThreads(__tstate);
5621 if (PyErr_Occurred()) SWIG_fail;
5622 }
5623 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5624 return resultobj;
5625 fail:
5626 return NULL;
5627 }
5628
5629
5630 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5631 PyObject *resultobj = 0;
5632 wxBitmap *arg1 = (wxBitmap *) 0 ;
5633 long result;
5634 void *argp1 = 0 ;
5635 int res1 = 0 ;
5636 PyObject *swig_obj[1] ;
5637
5638 if (!args) SWIG_fail;
5639 swig_obj[0] = args;
5640 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5641 if (!SWIG_IsOK(res1)) {
5642 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5643 }
5644 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5645 {
5646 PyThreadState* __tstate = wxPyBeginAllowThreads();
5647 result = (long)(arg1)->GetHandle();
5648 wxPyEndAllowThreads(__tstate);
5649 if (PyErr_Occurred()) SWIG_fail;
5650 }
5651 resultobj = SWIG_From_long(static_cast< long >(result));
5652 return resultobj;
5653 fail:
5654 return NULL;
5655 }
5656
5657
5658 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5659 PyObject *resultobj = 0;
5660 wxBitmap *arg1 = (wxBitmap *) 0 ;
5661 long arg2 ;
5662 void *argp1 = 0 ;
5663 int res1 = 0 ;
5664 long val2 ;
5665 int ecode2 = 0 ;
5666 PyObject * obj0 = 0 ;
5667 PyObject * obj1 = 0 ;
5668 char * kwnames[] = {
5669 (char *) "self",(char *) "handle", NULL
5670 };
5671
5672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5674 if (!SWIG_IsOK(res1)) {
5675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5676 }
5677 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5678 ecode2 = SWIG_AsVal_long(obj1, &val2);
5679 if (!SWIG_IsOK(ecode2)) {
5680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5681 }
5682 arg2 = static_cast< long >(val2);
5683 {
5684 PyThreadState* __tstate = wxPyBeginAllowThreads();
5685 wxBitmap_SetHandle(arg1,arg2);
5686 wxPyEndAllowThreads(__tstate);
5687 if (PyErr_Occurred()) SWIG_fail;
5688 }
5689 resultobj = SWIG_Py_Void();
5690 return resultobj;
5691 fail:
5692 return NULL;
5693 }
5694
5695
5696 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5697 PyObject *resultobj = 0;
5698 wxBitmap *arg1 = (wxBitmap *) 0 ;
5699 bool result;
5700 void *argp1 = 0 ;
5701 int res1 = 0 ;
5702 PyObject *swig_obj[1] ;
5703
5704 if (!args) SWIG_fail;
5705 swig_obj[0] = args;
5706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5707 if (!SWIG_IsOK(res1)) {
5708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5709 }
5710 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5711 {
5712 PyThreadState* __tstate = wxPyBeginAllowThreads();
5713 result = (bool)(arg1)->Ok();
5714 wxPyEndAllowThreads(__tstate);
5715 if (PyErr_Occurred()) SWIG_fail;
5716 }
5717 {
5718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5719 }
5720 return resultobj;
5721 fail:
5722 return NULL;
5723 }
5724
5725
5726 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5727 PyObject *resultobj = 0;
5728 wxBitmap *arg1 = (wxBitmap *) 0 ;
5729 int result;
5730 void *argp1 = 0 ;
5731 int res1 = 0 ;
5732 PyObject *swig_obj[1] ;
5733
5734 if (!args) SWIG_fail;
5735 swig_obj[0] = args;
5736 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5737 if (!SWIG_IsOK(res1)) {
5738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5739 }
5740 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5741 {
5742 PyThreadState* __tstate = wxPyBeginAllowThreads();
5743 result = (int)(arg1)->GetWidth();
5744 wxPyEndAllowThreads(__tstate);
5745 if (PyErr_Occurred()) SWIG_fail;
5746 }
5747 resultobj = SWIG_From_int(static_cast< int >(result));
5748 return resultobj;
5749 fail:
5750 return NULL;
5751 }
5752
5753
5754 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5755 PyObject *resultobj = 0;
5756 wxBitmap *arg1 = (wxBitmap *) 0 ;
5757 int result;
5758 void *argp1 = 0 ;
5759 int res1 = 0 ;
5760 PyObject *swig_obj[1] ;
5761
5762 if (!args) SWIG_fail;
5763 swig_obj[0] = args;
5764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5765 if (!SWIG_IsOK(res1)) {
5766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5767 }
5768 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5769 {
5770 PyThreadState* __tstate = wxPyBeginAllowThreads();
5771 result = (int)(arg1)->GetHeight();
5772 wxPyEndAllowThreads(__tstate);
5773 if (PyErr_Occurred()) SWIG_fail;
5774 }
5775 resultobj = SWIG_From_int(static_cast< int >(result));
5776 return resultobj;
5777 fail:
5778 return NULL;
5779 }
5780
5781
5782 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5783 PyObject *resultobj = 0;
5784 wxBitmap *arg1 = (wxBitmap *) 0 ;
5785 int result;
5786 void *argp1 = 0 ;
5787 int res1 = 0 ;
5788 PyObject *swig_obj[1] ;
5789
5790 if (!args) SWIG_fail;
5791 swig_obj[0] = args;
5792 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5793 if (!SWIG_IsOK(res1)) {
5794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5795 }
5796 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5797 {
5798 PyThreadState* __tstate = wxPyBeginAllowThreads();
5799 result = (int)(arg1)->GetDepth();
5800 wxPyEndAllowThreads(__tstate);
5801 if (PyErr_Occurred()) SWIG_fail;
5802 }
5803 resultobj = SWIG_From_int(static_cast< int >(result));
5804 return resultobj;
5805 fail:
5806 return NULL;
5807 }
5808
5809
5810 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5811 PyObject *resultobj = 0;
5812 wxBitmap *arg1 = (wxBitmap *) 0 ;
5813 wxSize result;
5814 void *argp1 = 0 ;
5815 int res1 = 0 ;
5816 PyObject *swig_obj[1] ;
5817
5818 if (!args) SWIG_fail;
5819 swig_obj[0] = args;
5820 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5821 if (!SWIG_IsOK(res1)) {
5822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5823 }
5824 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5825 {
5826 PyThreadState* __tstate = wxPyBeginAllowThreads();
5827 result = wxBitmap_GetSize(arg1);
5828 wxPyEndAllowThreads(__tstate);
5829 if (PyErr_Occurred()) SWIG_fail;
5830 }
5831 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5832 return resultobj;
5833 fail:
5834 return NULL;
5835 }
5836
5837
5838 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5839 PyObject *resultobj = 0;
5840 wxBitmap *arg1 = (wxBitmap *) 0 ;
5841 SwigValueWrapper<wxImage > result;
5842 void *argp1 = 0 ;
5843 int res1 = 0 ;
5844 PyObject *swig_obj[1] ;
5845
5846 if (!args) SWIG_fail;
5847 swig_obj[0] = args;
5848 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5849 if (!SWIG_IsOK(res1)) {
5850 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5851 }
5852 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5853 {
5854 PyThreadState* __tstate = wxPyBeginAllowThreads();
5855 result = ((wxBitmap const *)arg1)->ConvertToImage();
5856 wxPyEndAllowThreads(__tstate);
5857 if (PyErr_Occurred()) SWIG_fail;
5858 }
5859 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5860 return resultobj;
5861 fail:
5862 return NULL;
5863 }
5864
5865
5866 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5867 PyObject *resultobj = 0;
5868 wxBitmap *arg1 = (wxBitmap *) 0 ;
5869 wxMask *result = 0 ;
5870 void *argp1 = 0 ;
5871 int res1 = 0 ;
5872 PyObject *swig_obj[1] ;
5873
5874 if (!args) SWIG_fail;
5875 swig_obj[0] = args;
5876 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5877 if (!SWIG_IsOK(res1)) {
5878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5879 }
5880 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5881 {
5882 PyThreadState* __tstate = wxPyBeginAllowThreads();
5883 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5884 wxPyEndAllowThreads(__tstate);
5885 if (PyErr_Occurred()) SWIG_fail;
5886 }
5887 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5888 return resultobj;
5889 fail:
5890 return NULL;
5891 }
5892
5893
5894 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5895 PyObject *resultobj = 0;
5896 wxBitmap *arg1 = (wxBitmap *) 0 ;
5897 wxMask *arg2 = (wxMask *) 0 ;
5898 void *argp1 = 0 ;
5899 int res1 = 0 ;
5900 int res2 = 0 ;
5901 PyObject * obj0 = 0 ;
5902 PyObject * obj1 = 0 ;
5903 char * kwnames[] = {
5904 (char *) "self",(char *) "mask", NULL
5905 };
5906
5907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5909 if (!SWIG_IsOK(res1)) {
5910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5911 }
5912 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5913 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5914 if (!SWIG_IsOK(res2)) {
5915 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5916 }
5917 {
5918 PyThreadState* __tstate = wxPyBeginAllowThreads();
5919 (arg1)->SetMask(arg2);
5920 wxPyEndAllowThreads(__tstate);
5921 if (PyErr_Occurred()) SWIG_fail;
5922 }
5923 resultobj = SWIG_Py_Void();
5924 return resultobj;
5925 fail:
5926 return NULL;
5927 }
5928
5929
5930 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5931 PyObject *resultobj = 0;
5932 wxBitmap *arg1 = (wxBitmap *) 0 ;
5933 wxColour *arg2 = 0 ;
5934 void *argp1 = 0 ;
5935 int res1 = 0 ;
5936 wxColour temp2 ;
5937 PyObject * obj0 = 0 ;
5938 PyObject * obj1 = 0 ;
5939 char * kwnames[] = {
5940 (char *) "self",(char *) "colour", NULL
5941 };
5942
5943 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5944 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5945 if (!SWIG_IsOK(res1)) {
5946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5947 }
5948 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5949 {
5950 arg2 = &temp2;
5951 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5952 }
5953 {
5954 PyThreadState* __tstate = wxPyBeginAllowThreads();
5955 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5956 wxPyEndAllowThreads(__tstate);
5957 if (PyErr_Occurred()) SWIG_fail;
5958 }
5959 resultobj = SWIG_Py_Void();
5960 return resultobj;
5961 fail:
5962 return NULL;
5963 }
5964
5965
5966 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5967 PyObject *resultobj = 0;
5968 wxBitmap *arg1 = (wxBitmap *) 0 ;
5969 wxRect *arg2 = 0 ;
5970 SwigValueWrapper<wxBitmap > result;
5971 void *argp1 = 0 ;
5972 int res1 = 0 ;
5973 wxRect temp2 ;
5974 PyObject * obj0 = 0 ;
5975 PyObject * obj1 = 0 ;
5976 char * kwnames[] = {
5977 (char *) "self",(char *) "rect", NULL
5978 };
5979
5980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5982 if (!SWIG_IsOK(res1)) {
5983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5984 }
5985 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5986 {
5987 arg2 = &temp2;
5988 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5989 }
5990 {
5991 PyThreadState* __tstate = wxPyBeginAllowThreads();
5992 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5993 wxPyEndAllowThreads(__tstate);
5994 if (PyErr_Occurred()) SWIG_fail;
5995 }
5996 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5997 return resultobj;
5998 fail:
5999 return NULL;
6000 }
6001
6002
6003 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6004 PyObject *resultobj = 0;
6005 wxBitmap *arg1 = (wxBitmap *) 0 ;
6006 wxString *arg2 = 0 ;
6007 wxBitmapType arg3 ;
6008 wxPalette *arg4 = (wxPalette *) NULL ;
6009 bool result;
6010 void *argp1 = 0 ;
6011 int res1 = 0 ;
6012 bool temp2 = false ;
6013 int val3 ;
6014 int ecode3 = 0 ;
6015 void *argp4 = 0 ;
6016 int res4 = 0 ;
6017 PyObject * obj0 = 0 ;
6018 PyObject * obj1 = 0 ;
6019 PyObject * obj2 = 0 ;
6020 PyObject * obj3 = 0 ;
6021 char * kwnames[] = {
6022 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6023 };
6024
6025 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6026 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6027 if (!SWIG_IsOK(res1)) {
6028 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6029 }
6030 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6031 {
6032 arg2 = wxString_in_helper(obj1);
6033 if (arg2 == NULL) SWIG_fail;
6034 temp2 = true;
6035 }
6036 ecode3 = SWIG_AsVal_int(obj2, &val3);
6037 if (!SWIG_IsOK(ecode3)) {
6038 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6039 }
6040 arg3 = static_cast< wxBitmapType >(val3);
6041 if (obj3) {
6042 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6043 if (!SWIG_IsOK(res4)) {
6044 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6045 }
6046 arg4 = reinterpret_cast< wxPalette * >(argp4);
6047 }
6048 {
6049 PyThreadState* __tstate = wxPyBeginAllowThreads();
6050 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6051 wxPyEndAllowThreads(__tstate);
6052 if (PyErr_Occurred()) SWIG_fail;
6053 }
6054 {
6055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6056 }
6057 {
6058 if (temp2)
6059 delete arg2;
6060 }
6061 return resultobj;
6062 fail:
6063 {
6064 if (temp2)
6065 delete arg2;
6066 }
6067 return NULL;
6068 }
6069
6070
6071 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6072 PyObject *resultobj = 0;
6073 wxBitmap *arg1 = (wxBitmap *) 0 ;
6074 wxString *arg2 = 0 ;
6075 wxBitmapType arg3 ;
6076 bool result;
6077 void *argp1 = 0 ;
6078 int res1 = 0 ;
6079 bool temp2 = false ;
6080 int val3 ;
6081 int ecode3 = 0 ;
6082 PyObject * obj0 = 0 ;
6083 PyObject * obj1 = 0 ;
6084 PyObject * obj2 = 0 ;
6085 char * kwnames[] = {
6086 (char *) "self",(char *) "name",(char *) "type", NULL
6087 };
6088
6089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6091 if (!SWIG_IsOK(res1)) {
6092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6093 }
6094 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6095 {
6096 arg2 = wxString_in_helper(obj1);
6097 if (arg2 == NULL) SWIG_fail;
6098 temp2 = true;
6099 }
6100 ecode3 = SWIG_AsVal_int(obj2, &val3);
6101 if (!SWIG_IsOK(ecode3)) {
6102 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6103 }
6104 arg3 = static_cast< wxBitmapType >(val3);
6105 {
6106 PyThreadState* __tstate = wxPyBeginAllowThreads();
6107 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6108 wxPyEndAllowThreads(__tstate);
6109 if (PyErr_Occurred()) SWIG_fail;
6110 }
6111 {
6112 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6113 }
6114 {
6115 if (temp2)
6116 delete arg2;
6117 }
6118 return resultobj;
6119 fail:
6120 {
6121 if (temp2)
6122 delete arg2;
6123 }
6124 return NULL;
6125 }
6126
6127
6128 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6129 PyObject *resultobj = 0;
6130 wxBitmap *arg1 = (wxBitmap *) 0 ;
6131 wxPalette *result = 0 ;
6132 void *argp1 = 0 ;
6133 int res1 = 0 ;
6134 PyObject *swig_obj[1] ;
6135
6136 if (!args) SWIG_fail;
6137 swig_obj[0] = args;
6138 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6139 if (!SWIG_IsOK(res1)) {
6140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6141 }
6142 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6143 {
6144 PyThreadState* __tstate = wxPyBeginAllowThreads();
6145 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6146 wxPyEndAllowThreads(__tstate);
6147 if (PyErr_Occurred()) SWIG_fail;
6148 }
6149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6150 return resultobj;
6151 fail:
6152 return NULL;
6153 }
6154
6155
6156 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6157 PyObject *resultobj = 0;
6158 wxBitmap *arg1 = (wxBitmap *) 0 ;
6159 wxPalette *arg2 = 0 ;
6160 void *argp1 = 0 ;
6161 int res1 = 0 ;
6162 void *argp2 = 0 ;
6163 int res2 = 0 ;
6164 PyObject * obj0 = 0 ;
6165 PyObject * obj1 = 0 ;
6166 char * kwnames[] = {
6167 (char *) "self",(char *) "palette", NULL
6168 };
6169
6170 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6171 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6172 if (!SWIG_IsOK(res1)) {
6173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6174 }
6175 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6176 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6177 if (!SWIG_IsOK(res2)) {
6178 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6179 }
6180 if (!argp2) {
6181 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6182 }
6183 arg2 = reinterpret_cast< wxPalette * >(argp2);
6184 {
6185 PyThreadState* __tstate = wxPyBeginAllowThreads();
6186 (arg1)->SetPalette((wxPalette const &)*arg2);
6187 wxPyEndAllowThreads(__tstate);
6188 if (PyErr_Occurred()) SWIG_fail;
6189 }
6190 resultobj = SWIG_Py_Void();
6191 return resultobj;
6192 fail:
6193 return NULL;
6194 }
6195
6196
6197 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6198 PyObject *resultobj = 0;
6199 wxBitmap *arg1 = (wxBitmap *) 0 ;
6200 wxIcon *arg2 = 0 ;
6201 bool result;
6202 void *argp1 = 0 ;
6203 int res1 = 0 ;
6204 void *argp2 = 0 ;
6205 int res2 = 0 ;
6206 PyObject * obj0 = 0 ;
6207 PyObject * obj1 = 0 ;
6208 char * kwnames[] = {
6209 (char *) "self",(char *) "icon", NULL
6210 };
6211
6212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6214 if (!SWIG_IsOK(res1)) {
6215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6216 }
6217 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6219 if (!SWIG_IsOK(res2)) {
6220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6221 }
6222 if (!argp2) {
6223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6224 }
6225 arg2 = reinterpret_cast< wxIcon * >(argp2);
6226 {
6227 PyThreadState* __tstate = wxPyBeginAllowThreads();
6228 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6229 wxPyEndAllowThreads(__tstate);
6230 if (PyErr_Occurred()) SWIG_fail;
6231 }
6232 {
6233 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6234 }
6235 return resultobj;
6236 fail:
6237 return NULL;
6238 }
6239
6240
6241 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6242 PyObject *resultobj = 0;
6243 wxBitmap *arg1 = (wxBitmap *) 0 ;
6244 int arg2 ;
6245 void *argp1 = 0 ;
6246 int res1 = 0 ;
6247 int val2 ;
6248 int ecode2 = 0 ;
6249 PyObject * obj0 = 0 ;
6250 PyObject * obj1 = 0 ;
6251 char * kwnames[] = {
6252 (char *) "self",(char *) "height", NULL
6253 };
6254
6255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6257 if (!SWIG_IsOK(res1)) {
6258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6259 }
6260 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6261 ecode2 = SWIG_AsVal_int(obj1, &val2);
6262 if (!SWIG_IsOK(ecode2)) {
6263 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6264 }
6265 arg2 = static_cast< int >(val2);
6266 {
6267 PyThreadState* __tstate = wxPyBeginAllowThreads();
6268 (arg1)->SetHeight(arg2);
6269 wxPyEndAllowThreads(__tstate);
6270 if (PyErr_Occurred()) SWIG_fail;
6271 }
6272 resultobj = SWIG_Py_Void();
6273 return resultobj;
6274 fail:
6275 return NULL;
6276 }
6277
6278
6279 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6280 PyObject *resultobj = 0;
6281 wxBitmap *arg1 = (wxBitmap *) 0 ;
6282 int arg2 ;
6283 void *argp1 = 0 ;
6284 int res1 = 0 ;
6285 int val2 ;
6286 int ecode2 = 0 ;
6287 PyObject * obj0 = 0 ;
6288 PyObject * obj1 = 0 ;
6289 char * kwnames[] = {
6290 (char *) "self",(char *) "width", NULL
6291 };
6292
6293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6295 if (!SWIG_IsOK(res1)) {
6296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6297 }
6298 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6299 ecode2 = SWIG_AsVal_int(obj1, &val2);
6300 if (!SWIG_IsOK(ecode2)) {
6301 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6302 }
6303 arg2 = static_cast< int >(val2);
6304 {
6305 PyThreadState* __tstate = wxPyBeginAllowThreads();
6306 (arg1)->SetWidth(arg2);
6307 wxPyEndAllowThreads(__tstate);
6308 if (PyErr_Occurred()) SWIG_fail;
6309 }
6310 resultobj = SWIG_Py_Void();
6311 return resultobj;
6312 fail:
6313 return NULL;
6314 }
6315
6316
6317 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6318 PyObject *resultobj = 0;
6319 wxBitmap *arg1 = (wxBitmap *) 0 ;
6320 int arg2 ;
6321 void *argp1 = 0 ;
6322 int res1 = 0 ;
6323 int val2 ;
6324 int ecode2 = 0 ;
6325 PyObject * obj0 = 0 ;
6326 PyObject * obj1 = 0 ;
6327 char * kwnames[] = {
6328 (char *) "self",(char *) "depth", NULL
6329 };
6330
6331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6333 if (!SWIG_IsOK(res1)) {
6334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6335 }
6336 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6337 ecode2 = SWIG_AsVal_int(obj1, &val2);
6338 if (!SWIG_IsOK(ecode2)) {
6339 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6340 }
6341 arg2 = static_cast< int >(val2);
6342 {
6343 PyThreadState* __tstate = wxPyBeginAllowThreads();
6344 (arg1)->SetDepth(arg2);
6345 wxPyEndAllowThreads(__tstate);
6346 if (PyErr_Occurred()) SWIG_fail;
6347 }
6348 resultobj = SWIG_Py_Void();
6349 return resultobj;
6350 fail:
6351 return NULL;
6352 }
6353
6354
6355 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6356 PyObject *resultobj = 0;
6357 wxBitmap *arg1 = (wxBitmap *) 0 ;
6358 wxSize *arg2 = 0 ;
6359 void *argp1 = 0 ;
6360 int res1 = 0 ;
6361 wxSize temp2 ;
6362 PyObject * obj0 = 0 ;
6363 PyObject * obj1 = 0 ;
6364 char * kwnames[] = {
6365 (char *) "self",(char *) "size", NULL
6366 };
6367
6368 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6369 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6370 if (!SWIG_IsOK(res1)) {
6371 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6372 }
6373 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6374 {
6375 arg2 = &temp2;
6376 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6377 }
6378 {
6379 PyThreadState* __tstate = wxPyBeginAllowThreads();
6380 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6381 wxPyEndAllowThreads(__tstate);
6382 if (PyErr_Occurred()) SWIG_fail;
6383 }
6384 resultobj = SWIG_Py_Void();
6385 return resultobj;
6386 fail:
6387 return NULL;
6388 }
6389
6390
6391 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6392 PyObject *resultobj = 0;
6393 wxBitmap *arg1 = (wxBitmap *) 0 ;
6394 wxCursor *arg2 = 0 ;
6395 bool result;
6396 void *argp1 = 0 ;
6397 int res1 = 0 ;
6398 void *argp2 = 0 ;
6399 int res2 = 0 ;
6400 PyObject * obj0 = 0 ;
6401 PyObject * obj1 = 0 ;
6402 char * kwnames[] = {
6403 (char *) "self",(char *) "cursor", NULL
6404 };
6405
6406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6408 if (!SWIG_IsOK(res1)) {
6409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6410 }
6411 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6412 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6413 if (!SWIG_IsOK(res2)) {
6414 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6415 }
6416 if (!argp2) {
6417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6418 }
6419 arg2 = reinterpret_cast< wxCursor * >(argp2);
6420 {
6421 PyThreadState* __tstate = wxPyBeginAllowThreads();
6422 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6423 wxPyEndAllowThreads(__tstate);
6424 if (PyErr_Occurred()) SWIG_fail;
6425 }
6426 {
6427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6428 }
6429 return resultobj;
6430 fail:
6431 return NULL;
6432 }
6433
6434
6435 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6436 PyObject *resultobj = 0;
6437 wxBitmap *arg1 = (wxBitmap *) 0 ;
6438 wxBitmap *arg2 = (wxBitmap *) 0 ;
6439 bool result;
6440 void *argp1 = 0 ;
6441 int res1 = 0 ;
6442 void *argp2 = 0 ;
6443 int res2 = 0 ;
6444 PyObject * obj0 = 0 ;
6445 PyObject * obj1 = 0 ;
6446 char * kwnames[] = {
6447 (char *) "self",(char *) "other", NULL
6448 };
6449
6450 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6451 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6452 if (!SWIG_IsOK(res1)) {
6453 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6454 }
6455 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6456 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6457 if (!SWIG_IsOK(res2)) {
6458 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6459 }
6460 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6461 {
6462 PyThreadState* __tstate = wxPyBeginAllowThreads();
6463 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6464 wxPyEndAllowThreads(__tstate);
6465 if (PyErr_Occurred()) SWIG_fail;
6466 }
6467 {
6468 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6469 }
6470 return resultobj;
6471 fail:
6472 return NULL;
6473 }
6474
6475
6476 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6477 PyObject *resultobj = 0;
6478 wxBitmap *arg1 = (wxBitmap *) 0 ;
6479 wxBitmap *arg2 = (wxBitmap *) 0 ;
6480 bool result;
6481 void *argp1 = 0 ;
6482 int res1 = 0 ;
6483 void *argp2 = 0 ;
6484 int res2 = 0 ;
6485 PyObject * obj0 = 0 ;
6486 PyObject * obj1 = 0 ;
6487 char * kwnames[] = {
6488 (char *) "self",(char *) "other", NULL
6489 };
6490
6491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6493 if (!SWIG_IsOK(res1)) {
6494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6495 }
6496 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6497 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6498 if (!SWIG_IsOK(res2)) {
6499 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6500 }
6501 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6502 {
6503 PyThreadState* __tstate = wxPyBeginAllowThreads();
6504 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6505 wxPyEndAllowThreads(__tstate);
6506 if (PyErr_Occurred()) SWIG_fail;
6507 }
6508 {
6509 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6510 }
6511 return resultobj;
6512 fail:
6513 return NULL;
6514 }
6515
6516
6517 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6518 PyObject *obj;
6519 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6520 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6521 return SWIG_Py_Void();
6522 }
6523
6524 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6525 return SWIG_Python_InitShadowInstance(args);
6526 }
6527
6528 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6529 PyObject *resultobj = 0;
6530 wxBitmap *arg1 = 0 ;
6531 wxColour const &arg2_defvalue = wxNullColour ;
6532 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6533 wxMask *result = 0 ;
6534 void *argp1 = 0 ;
6535 int res1 = 0 ;
6536 wxColour temp2 ;
6537 PyObject * obj0 = 0 ;
6538 PyObject * obj1 = 0 ;
6539 char * kwnames[] = {
6540 (char *) "bitmap",(char *) "colour", NULL
6541 };
6542
6543 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6544 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6545 if (!SWIG_IsOK(res1)) {
6546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6547 }
6548 if (!argp1) {
6549 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6550 }
6551 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6552 if (obj1) {
6553 {
6554 arg2 = &temp2;
6555 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6556 }
6557 }
6558 {
6559 if (!wxPyCheckForApp()) SWIG_fail;
6560 PyThreadState* __tstate = wxPyBeginAllowThreads();
6561 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6562 wxPyEndAllowThreads(__tstate);
6563 if (PyErr_Occurred()) SWIG_fail;
6564 }
6565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6566 return resultobj;
6567 fail:
6568 return NULL;
6569 }
6570
6571
6572 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6573 PyObject *resultobj = 0;
6574 wxMask *arg1 = (wxMask *) 0 ;
6575 void *argp1 = 0 ;
6576 int res1 = 0 ;
6577 PyObject *swig_obj[1] ;
6578
6579 if (!args) SWIG_fail;
6580 swig_obj[0] = args;
6581 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6584 }
6585 arg1 = reinterpret_cast< wxMask * >(argp1);
6586 {
6587 PyThreadState* __tstate = wxPyBeginAllowThreads();
6588 delete arg1;
6589
6590 wxPyEndAllowThreads(__tstate);
6591 if (PyErr_Occurred()) SWIG_fail;
6592 }
6593 resultobj = SWIG_Py_Void();
6594 return resultobj;
6595 fail:
6596 return NULL;
6597 }
6598
6599
6600 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6601 PyObject *obj;
6602 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6603 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6604 return SWIG_Py_Void();
6605 }
6606
6607 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6608 return SWIG_Python_InitShadowInstance(args);
6609 }
6610
6611 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6612 PyObject *resultobj = 0;
6613 wxString *arg1 = 0 ;
6614 wxBitmapType arg2 ;
6615 int arg3 = (int) -1 ;
6616 int arg4 = (int) -1 ;
6617 wxIcon *result = 0 ;
6618 bool temp1 = false ;
6619 int val2 ;
6620 int ecode2 = 0 ;
6621 int val3 ;
6622 int ecode3 = 0 ;
6623 int val4 ;
6624 int ecode4 = 0 ;
6625 PyObject * obj0 = 0 ;
6626 PyObject * obj1 = 0 ;
6627 PyObject * obj2 = 0 ;
6628 PyObject * obj3 = 0 ;
6629 char * kwnames[] = {
6630 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6631 };
6632
6633 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6634 {
6635 arg1 = wxString_in_helper(obj0);
6636 if (arg1 == NULL) SWIG_fail;
6637 temp1 = true;
6638 }
6639 ecode2 = SWIG_AsVal_int(obj1, &val2);
6640 if (!SWIG_IsOK(ecode2)) {
6641 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6642 }
6643 arg2 = static_cast< wxBitmapType >(val2);
6644 if (obj2) {
6645 ecode3 = SWIG_AsVal_int(obj2, &val3);
6646 if (!SWIG_IsOK(ecode3)) {
6647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6648 }
6649 arg3 = static_cast< int >(val3);
6650 }
6651 if (obj3) {
6652 ecode4 = SWIG_AsVal_int(obj3, &val4);
6653 if (!SWIG_IsOK(ecode4)) {
6654 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6655 }
6656 arg4 = static_cast< int >(val4);
6657 }
6658 {
6659 if (!wxPyCheckForApp()) SWIG_fail;
6660 PyThreadState* __tstate = wxPyBeginAllowThreads();
6661 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6662 wxPyEndAllowThreads(__tstate);
6663 if (PyErr_Occurred()) SWIG_fail;
6664 }
6665 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6666 {
6667 if (temp1)
6668 delete arg1;
6669 }
6670 return resultobj;
6671 fail:
6672 {
6673 if (temp1)
6674 delete arg1;
6675 }
6676 return NULL;
6677 }
6678
6679
6680 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6681 PyObject *resultobj = 0;
6682 wxIcon *arg1 = (wxIcon *) 0 ;
6683 void *argp1 = 0 ;
6684 int res1 = 0 ;
6685 PyObject *swig_obj[1] ;
6686
6687 if (!args) SWIG_fail;
6688 swig_obj[0] = args;
6689 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6690 if (!SWIG_IsOK(res1)) {
6691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6692 }
6693 arg1 = reinterpret_cast< wxIcon * >(argp1);
6694 {
6695 PyThreadState* __tstate = wxPyBeginAllowThreads();
6696 delete arg1;
6697
6698 wxPyEndAllowThreads(__tstate);
6699 if (PyErr_Occurred()) SWIG_fail;
6700 }
6701 resultobj = SWIG_Py_Void();
6702 return resultobj;
6703 fail:
6704 return NULL;
6705 }
6706
6707
6708 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6709 PyObject *resultobj = 0;
6710 wxIcon *result = 0 ;
6711
6712 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6713 {
6714 if (!wxPyCheckForApp()) SWIG_fail;
6715 PyThreadState* __tstate = wxPyBeginAllowThreads();
6716 result = (wxIcon *)new wxIcon();
6717 wxPyEndAllowThreads(__tstate);
6718 if (PyErr_Occurred()) SWIG_fail;
6719 }
6720 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6721 return resultobj;
6722 fail:
6723 return NULL;
6724 }
6725
6726
6727 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6728 PyObject *resultobj = 0;
6729 wxIconLocation *arg1 = 0 ;
6730 wxIcon *result = 0 ;
6731 void *argp1 = 0 ;
6732 int res1 = 0 ;
6733 PyObject * obj0 = 0 ;
6734 char * kwnames[] = {
6735 (char *) "loc", NULL
6736 };
6737
6738 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6739 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6740 if (!SWIG_IsOK(res1)) {
6741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6742 }
6743 if (!argp1) {
6744 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6745 }
6746 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6747 {
6748 if (!wxPyCheckForApp()) SWIG_fail;
6749 PyThreadState* __tstate = wxPyBeginAllowThreads();
6750 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6751 wxPyEndAllowThreads(__tstate);
6752 if (PyErr_Occurred()) SWIG_fail;
6753 }
6754 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6755 return resultobj;
6756 fail:
6757 return NULL;
6758 }
6759
6760
6761 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6762 PyObject *resultobj = 0;
6763 wxBitmap *arg1 = 0 ;
6764 wxIcon *result = 0 ;
6765 void *argp1 = 0 ;
6766 int res1 = 0 ;
6767 PyObject * obj0 = 0 ;
6768 char * kwnames[] = {
6769 (char *) "bmp", NULL
6770 };
6771
6772 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6773 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6774 if (!SWIG_IsOK(res1)) {
6775 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6776 }
6777 if (!argp1) {
6778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6779 }
6780 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6781 {
6782 if (!wxPyCheckForApp()) SWIG_fail;
6783 PyThreadState* __tstate = wxPyBeginAllowThreads();
6784 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6785 wxPyEndAllowThreads(__tstate);
6786 if (PyErr_Occurred()) SWIG_fail;
6787 }
6788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6789 return resultobj;
6790 fail:
6791 return NULL;
6792 }
6793
6794
6795 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6796 PyObject *resultobj = 0;
6797 PyObject *arg1 = (PyObject *) 0 ;
6798 wxIcon *result = 0 ;
6799 PyObject * obj0 = 0 ;
6800 char * kwnames[] = {
6801 (char *) "listOfStrings", NULL
6802 };
6803
6804 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6805 arg1 = obj0;
6806 {
6807 if (!wxPyCheckForApp()) SWIG_fail;
6808 PyThreadState* __tstate = wxPyBeginAllowThreads();
6809 result = (wxIcon *)new_wxIcon(arg1);
6810 wxPyEndAllowThreads(__tstate);
6811 if (PyErr_Occurred()) SWIG_fail;
6812 }
6813 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6814 return resultobj;
6815 fail:
6816 return NULL;
6817 }
6818
6819
6820 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6821 PyObject *resultobj = 0;
6822 wxIcon *arg1 = (wxIcon *) 0 ;
6823 wxString *arg2 = 0 ;
6824 wxBitmapType arg3 ;
6825 bool result;
6826 void *argp1 = 0 ;
6827 int res1 = 0 ;
6828 bool temp2 = false ;
6829 int val3 ;
6830 int ecode3 = 0 ;
6831 PyObject * obj0 = 0 ;
6832 PyObject * obj1 = 0 ;
6833 PyObject * obj2 = 0 ;
6834 char * kwnames[] = {
6835 (char *) "self",(char *) "name",(char *) "type", NULL
6836 };
6837
6838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6840 if (!SWIG_IsOK(res1)) {
6841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6842 }
6843 arg1 = reinterpret_cast< wxIcon * >(argp1);
6844 {
6845 arg2 = wxString_in_helper(obj1);
6846 if (arg2 == NULL) SWIG_fail;
6847 temp2 = true;
6848 }
6849 ecode3 = SWIG_AsVal_int(obj2, &val3);
6850 if (!SWIG_IsOK(ecode3)) {
6851 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6852 }
6853 arg3 = static_cast< wxBitmapType >(val3);
6854 {
6855 PyThreadState* __tstate = wxPyBeginAllowThreads();
6856 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6857 wxPyEndAllowThreads(__tstate);
6858 if (PyErr_Occurred()) SWIG_fail;
6859 }
6860 {
6861 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6862 }
6863 {
6864 if (temp2)
6865 delete arg2;
6866 }
6867 return resultobj;
6868 fail:
6869 {
6870 if (temp2)
6871 delete arg2;
6872 }
6873 return NULL;
6874 }
6875
6876
6877 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6878 PyObject *resultobj = 0;
6879 wxIcon *arg1 = (wxIcon *) 0 ;
6880 long result;
6881 void *argp1 = 0 ;
6882 int res1 = 0 ;
6883 PyObject *swig_obj[1] ;
6884
6885 if (!args) SWIG_fail;
6886 swig_obj[0] = args;
6887 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6888 if (!SWIG_IsOK(res1)) {
6889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6890 }
6891 arg1 = reinterpret_cast< wxIcon * >(argp1);
6892 {
6893 PyThreadState* __tstate = wxPyBeginAllowThreads();
6894 result = (long)(arg1)->GetHandle();
6895 wxPyEndAllowThreads(__tstate);
6896 if (PyErr_Occurred()) SWIG_fail;
6897 }
6898 resultobj = SWIG_From_long(static_cast< long >(result));
6899 return resultobj;
6900 fail:
6901 return NULL;
6902 }
6903
6904
6905 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6906 PyObject *resultobj = 0;
6907 wxIcon *arg1 = (wxIcon *) 0 ;
6908 long arg2 ;
6909 void *argp1 = 0 ;
6910 int res1 = 0 ;
6911 long val2 ;
6912 int ecode2 = 0 ;
6913 PyObject * obj0 = 0 ;
6914 PyObject * obj1 = 0 ;
6915 char * kwnames[] = {
6916 (char *) "self",(char *) "handle", NULL
6917 };
6918
6919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6921 if (!SWIG_IsOK(res1)) {
6922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6923 }
6924 arg1 = reinterpret_cast< wxIcon * >(argp1);
6925 ecode2 = SWIG_AsVal_long(obj1, &val2);
6926 if (!SWIG_IsOK(ecode2)) {
6927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6928 }
6929 arg2 = static_cast< long >(val2);
6930 {
6931 PyThreadState* __tstate = wxPyBeginAllowThreads();
6932 wxIcon_SetHandle(arg1,arg2);
6933 wxPyEndAllowThreads(__tstate);
6934 if (PyErr_Occurred()) SWIG_fail;
6935 }
6936 resultobj = SWIG_Py_Void();
6937 return resultobj;
6938 fail:
6939 return NULL;
6940 }
6941
6942
6943 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6944 PyObject *resultobj = 0;
6945 wxIcon *arg1 = (wxIcon *) 0 ;
6946 bool result;
6947 void *argp1 = 0 ;
6948 int res1 = 0 ;
6949 PyObject *swig_obj[1] ;
6950
6951 if (!args) SWIG_fail;
6952 swig_obj[0] = args;
6953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6954 if (!SWIG_IsOK(res1)) {
6955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6956 }
6957 arg1 = reinterpret_cast< wxIcon * >(argp1);
6958 {
6959 PyThreadState* __tstate = wxPyBeginAllowThreads();
6960 result = (bool)(arg1)->Ok();
6961 wxPyEndAllowThreads(__tstate);
6962 if (PyErr_Occurred()) SWIG_fail;
6963 }
6964 {
6965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6966 }
6967 return resultobj;
6968 fail:
6969 return NULL;
6970 }
6971
6972
6973 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6974 PyObject *resultobj = 0;
6975 wxIcon *arg1 = (wxIcon *) 0 ;
6976 int result;
6977 void *argp1 = 0 ;
6978 int res1 = 0 ;
6979 PyObject *swig_obj[1] ;
6980
6981 if (!args) SWIG_fail;
6982 swig_obj[0] = args;
6983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6984 if (!SWIG_IsOK(res1)) {
6985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6986 }
6987 arg1 = reinterpret_cast< wxIcon * >(argp1);
6988 {
6989 PyThreadState* __tstate = wxPyBeginAllowThreads();
6990 result = (int)(arg1)->GetWidth();
6991 wxPyEndAllowThreads(__tstate);
6992 if (PyErr_Occurred()) SWIG_fail;
6993 }
6994 resultobj = SWIG_From_int(static_cast< int >(result));
6995 return resultobj;
6996 fail:
6997 return NULL;
6998 }
6999
7000
7001 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7002 PyObject *resultobj = 0;
7003 wxIcon *arg1 = (wxIcon *) 0 ;
7004 int result;
7005 void *argp1 = 0 ;
7006 int res1 = 0 ;
7007 PyObject *swig_obj[1] ;
7008
7009 if (!args) SWIG_fail;
7010 swig_obj[0] = args;
7011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7012 if (!SWIG_IsOK(res1)) {
7013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7014 }
7015 arg1 = reinterpret_cast< wxIcon * >(argp1);
7016 {
7017 PyThreadState* __tstate = wxPyBeginAllowThreads();
7018 result = (int)(arg1)->GetHeight();
7019 wxPyEndAllowThreads(__tstate);
7020 if (PyErr_Occurred()) SWIG_fail;
7021 }
7022 resultobj = SWIG_From_int(static_cast< int >(result));
7023 return resultobj;
7024 fail:
7025 return NULL;
7026 }
7027
7028
7029 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7030 PyObject *resultobj = 0;
7031 wxIcon *arg1 = (wxIcon *) 0 ;
7032 int result;
7033 void *argp1 = 0 ;
7034 int res1 = 0 ;
7035 PyObject *swig_obj[1] ;
7036
7037 if (!args) SWIG_fail;
7038 swig_obj[0] = args;
7039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7040 if (!SWIG_IsOK(res1)) {
7041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7042 }
7043 arg1 = reinterpret_cast< wxIcon * >(argp1);
7044 {
7045 PyThreadState* __tstate = wxPyBeginAllowThreads();
7046 result = (int)(arg1)->GetDepth();
7047 wxPyEndAllowThreads(__tstate);
7048 if (PyErr_Occurred()) SWIG_fail;
7049 }
7050 resultobj = SWIG_From_int(static_cast< int >(result));
7051 return resultobj;
7052 fail:
7053 return NULL;
7054 }
7055
7056
7057 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7058 PyObject *resultobj = 0;
7059 wxIcon *arg1 = (wxIcon *) 0 ;
7060 int arg2 ;
7061 void *argp1 = 0 ;
7062 int res1 = 0 ;
7063 int val2 ;
7064 int ecode2 = 0 ;
7065 PyObject * obj0 = 0 ;
7066 PyObject * obj1 = 0 ;
7067 char * kwnames[] = {
7068 (char *) "self",(char *) "w", NULL
7069 };
7070
7071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7073 if (!SWIG_IsOK(res1)) {
7074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7075 }
7076 arg1 = reinterpret_cast< wxIcon * >(argp1);
7077 ecode2 = SWIG_AsVal_int(obj1, &val2);
7078 if (!SWIG_IsOK(ecode2)) {
7079 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7080 }
7081 arg2 = static_cast< int >(val2);
7082 {
7083 PyThreadState* __tstate = wxPyBeginAllowThreads();
7084 (arg1)->SetWidth(arg2);
7085 wxPyEndAllowThreads(__tstate);
7086 if (PyErr_Occurred()) SWIG_fail;
7087 }
7088 resultobj = SWIG_Py_Void();
7089 return resultobj;
7090 fail:
7091 return NULL;
7092 }
7093
7094
7095 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7096 PyObject *resultobj = 0;
7097 wxIcon *arg1 = (wxIcon *) 0 ;
7098 int arg2 ;
7099 void *argp1 = 0 ;
7100 int res1 = 0 ;
7101 int val2 ;
7102 int ecode2 = 0 ;
7103 PyObject * obj0 = 0 ;
7104 PyObject * obj1 = 0 ;
7105 char * kwnames[] = {
7106 (char *) "self",(char *) "h", NULL
7107 };
7108
7109 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7110 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7111 if (!SWIG_IsOK(res1)) {
7112 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7113 }
7114 arg1 = reinterpret_cast< wxIcon * >(argp1);
7115 ecode2 = SWIG_AsVal_int(obj1, &val2);
7116 if (!SWIG_IsOK(ecode2)) {
7117 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7118 }
7119 arg2 = static_cast< int >(val2);
7120 {
7121 PyThreadState* __tstate = wxPyBeginAllowThreads();
7122 (arg1)->SetHeight(arg2);
7123 wxPyEndAllowThreads(__tstate);
7124 if (PyErr_Occurred()) SWIG_fail;
7125 }
7126 resultobj = SWIG_Py_Void();
7127 return resultobj;
7128 fail:
7129 return NULL;
7130 }
7131
7132
7133 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7134 PyObject *resultobj = 0;
7135 wxIcon *arg1 = (wxIcon *) 0 ;
7136 int arg2 ;
7137 void *argp1 = 0 ;
7138 int res1 = 0 ;
7139 int val2 ;
7140 int ecode2 = 0 ;
7141 PyObject * obj0 = 0 ;
7142 PyObject * obj1 = 0 ;
7143 char * kwnames[] = {
7144 (char *) "self",(char *) "d", NULL
7145 };
7146
7147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7149 if (!SWIG_IsOK(res1)) {
7150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7151 }
7152 arg1 = reinterpret_cast< wxIcon * >(argp1);
7153 ecode2 = SWIG_AsVal_int(obj1, &val2);
7154 if (!SWIG_IsOK(ecode2)) {
7155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7156 }
7157 arg2 = static_cast< int >(val2);
7158 {
7159 PyThreadState* __tstate = wxPyBeginAllowThreads();
7160 (arg1)->SetDepth(arg2);
7161 wxPyEndAllowThreads(__tstate);
7162 if (PyErr_Occurred()) SWIG_fail;
7163 }
7164 resultobj = SWIG_Py_Void();
7165 return resultobj;
7166 fail:
7167 return NULL;
7168 }
7169
7170
7171 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7172 PyObject *resultobj = 0;
7173 wxIcon *arg1 = (wxIcon *) 0 ;
7174 wxSize *arg2 = 0 ;
7175 void *argp1 = 0 ;
7176 int res1 = 0 ;
7177 wxSize temp2 ;
7178 PyObject * obj0 = 0 ;
7179 PyObject * obj1 = 0 ;
7180 char * kwnames[] = {
7181 (char *) "self",(char *) "size", NULL
7182 };
7183
7184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7186 if (!SWIG_IsOK(res1)) {
7187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7188 }
7189 arg1 = reinterpret_cast< wxIcon * >(argp1);
7190 {
7191 arg2 = &temp2;
7192 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7193 }
7194 {
7195 PyThreadState* __tstate = wxPyBeginAllowThreads();
7196 (arg1)->SetSize((wxSize const &)*arg2);
7197 wxPyEndAllowThreads(__tstate);
7198 if (PyErr_Occurred()) SWIG_fail;
7199 }
7200 resultobj = SWIG_Py_Void();
7201 return resultobj;
7202 fail:
7203 return NULL;
7204 }
7205
7206
7207 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7208 PyObject *resultobj = 0;
7209 wxIcon *arg1 = (wxIcon *) 0 ;
7210 wxBitmap *arg2 = 0 ;
7211 void *argp1 = 0 ;
7212 int res1 = 0 ;
7213 void *argp2 = 0 ;
7214 int res2 = 0 ;
7215 PyObject * obj0 = 0 ;
7216 PyObject * obj1 = 0 ;
7217 char * kwnames[] = {
7218 (char *) "self",(char *) "bmp", NULL
7219 };
7220
7221 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7222 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7223 if (!SWIG_IsOK(res1)) {
7224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7225 }
7226 arg1 = reinterpret_cast< wxIcon * >(argp1);
7227 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7228 if (!SWIG_IsOK(res2)) {
7229 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7230 }
7231 if (!argp2) {
7232 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7233 }
7234 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7235 {
7236 PyThreadState* __tstate = wxPyBeginAllowThreads();
7237 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7238 wxPyEndAllowThreads(__tstate);
7239 if (PyErr_Occurred()) SWIG_fail;
7240 }
7241 resultobj = SWIG_Py_Void();
7242 return resultobj;
7243 fail:
7244 return NULL;
7245 }
7246
7247
7248 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7249 PyObject *obj;
7250 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7251 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7252 return SWIG_Py_Void();
7253 }
7254
7255 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7256 return SWIG_Python_InitShadowInstance(args);
7257 }
7258
7259 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7260 PyObject *resultobj = 0;
7261 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7262 int arg2 = (int) 0 ;
7263 wxIconLocation *result = 0 ;
7264 bool temp1 = false ;
7265 int val2 ;
7266 int ecode2 = 0 ;
7267 PyObject * obj0 = 0 ;
7268 PyObject * obj1 = 0 ;
7269 char * kwnames[] = {
7270 (char *) "filename",(char *) "num", NULL
7271 };
7272
7273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7274 if (obj0) {
7275 {
7276 arg1 = wxString_in_helper(obj0);
7277 if (arg1 == NULL) SWIG_fail;
7278 temp1 = true;
7279 }
7280 }
7281 if (obj1) {
7282 ecode2 = SWIG_AsVal_int(obj1, &val2);
7283 if (!SWIG_IsOK(ecode2)) {
7284 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7285 }
7286 arg2 = static_cast< int >(val2);
7287 }
7288 {
7289 PyThreadState* __tstate = wxPyBeginAllowThreads();
7290 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7291 wxPyEndAllowThreads(__tstate);
7292 if (PyErr_Occurred()) SWIG_fail;
7293 }
7294 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7295 {
7296 if (temp1)
7297 delete arg1;
7298 }
7299 return resultobj;
7300 fail:
7301 {
7302 if (temp1)
7303 delete arg1;
7304 }
7305 return NULL;
7306 }
7307
7308
7309 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7310 PyObject *resultobj = 0;
7311 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7312 void *argp1 = 0 ;
7313 int res1 = 0 ;
7314 PyObject *swig_obj[1] ;
7315
7316 if (!args) SWIG_fail;
7317 swig_obj[0] = args;
7318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7319 if (!SWIG_IsOK(res1)) {
7320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7321 }
7322 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7323 {
7324 PyThreadState* __tstate = wxPyBeginAllowThreads();
7325 delete arg1;
7326
7327 wxPyEndAllowThreads(__tstate);
7328 if (PyErr_Occurred()) SWIG_fail;
7329 }
7330 resultobj = SWIG_Py_Void();
7331 return resultobj;
7332 fail:
7333 return NULL;
7334 }
7335
7336
7337 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7338 PyObject *resultobj = 0;
7339 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7340 bool result;
7341 void *argp1 = 0 ;
7342 int res1 = 0 ;
7343 PyObject *swig_obj[1] ;
7344
7345 if (!args) SWIG_fail;
7346 swig_obj[0] = args;
7347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7348 if (!SWIG_IsOK(res1)) {
7349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7350 }
7351 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7352 {
7353 PyThreadState* __tstate = wxPyBeginAllowThreads();
7354 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7355 wxPyEndAllowThreads(__tstate);
7356 if (PyErr_Occurred()) SWIG_fail;
7357 }
7358 {
7359 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7360 }
7361 return resultobj;
7362 fail:
7363 return NULL;
7364 }
7365
7366
7367 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7368 PyObject *resultobj = 0;
7369 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7370 wxString *arg2 = 0 ;
7371 void *argp1 = 0 ;
7372 int res1 = 0 ;
7373 bool temp2 = false ;
7374 PyObject * obj0 = 0 ;
7375 PyObject * obj1 = 0 ;
7376 char * kwnames[] = {
7377 (char *) "self",(char *) "filename", NULL
7378 };
7379
7380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7382 if (!SWIG_IsOK(res1)) {
7383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7384 }
7385 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7386 {
7387 arg2 = wxString_in_helper(obj1);
7388 if (arg2 == NULL) SWIG_fail;
7389 temp2 = true;
7390 }
7391 {
7392 PyThreadState* __tstate = wxPyBeginAllowThreads();
7393 (arg1)->SetFileName((wxString const &)*arg2);
7394 wxPyEndAllowThreads(__tstate);
7395 if (PyErr_Occurred()) SWIG_fail;
7396 }
7397 resultobj = SWIG_Py_Void();
7398 {
7399 if (temp2)
7400 delete arg2;
7401 }
7402 return resultobj;
7403 fail:
7404 {
7405 if (temp2)
7406 delete arg2;
7407 }
7408 return NULL;
7409 }
7410
7411
7412 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7413 PyObject *resultobj = 0;
7414 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7415 wxString *result = 0 ;
7416 void *argp1 = 0 ;
7417 int res1 = 0 ;
7418 PyObject *swig_obj[1] ;
7419
7420 if (!args) SWIG_fail;
7421 swig_obj[0] = args;
7422 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7423 if (!SWIG_IsOK(res1)) {
7424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7425 }
7426 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7427 {
7428 PyThreadState* __tstate = wxPyBeginAllowThreads();
7429 {
7430 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7431 result = (wxString *) &_result_ref;
7432 }
7433 wxPyEndAllowThreads(__tstate);
7434 if (PyErr_Occurred()) SWIG_fail;
7435 }
7436 {
7437 #if wxUSE_UNICODE
7438 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7439 #else
7440 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7441 #endif
7442 }
7443 return resultobj;
7444 fail:
7445 return NULL;
7446 }
7447
7448
7449 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7450 PyObject *resultobj = 0;
7451 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7452 int arg2 ;
7453 void *argp1 = 0 ;
7454 int res1 = 0 ;
7455 int val2 ;
7456 int ecode2 = 0 ;
7457 PyObject * obj0 = 0 ;
7458 PyObject * obj1 = 0 ;
7459 char * kwnames[] = {
7460 (char *) "self",(char *) "num", NULL
7461 };
7462
7463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7464 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7465 if (!SWIG_IsOK(res1)) {
7466 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7467 }
7468 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7469 ecode2 = SWIG_AsVal_int(obj1, &val2);
7470 if (!SWIG_IsOK(ecode2)) {
7471 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7472 }
7473 arg2 = static_cast< int >(val2);
7474 {
7475 PyThreadState* __tstate = wxPyBeginAllowThreads();
7476 wxIconLocation_SetIndex(arg1,arg2);
7477 wxPyEndAllowThreads(__tstate);
7478 if (PyErr_Occurred()) SWIG_fail;
7479 }
7480 resultobj = SWIG_Py_Void();
7481 return resultobj;
7482 fail:
7483 return NULL;
7484 }
7485
7486
7487 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7488 PyObject *resultobj = 0;
7489 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7490 int result;
7491 void *argp1 = 0 ;
7492 int res1 = 0 ;
7493 PyObject *swig_obj[1] ;
7494
7495 if (!args) SWIG_fail;
7496 swig_obj[0] = args;
7497 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7498 if (!SWIG_IsOK(res1)) {
7499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7500 }
7501 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7502 {
7503 PyThreadState* __tstate = wxPyBeginAllowThreads();
7504 result = (int)wxIconLocation_GetIndex(arg1);
7505 wxPyEndAllowThreads(__tstate);
7506 if (PyErr_Occurred()) SWIG_fail;
7507 }
7508 resultobj = SWIG_From_int(static_cast< int >(result));
7509 return resultobj;
7510 fail:
7511 return NULL;
7512 }
7513
7514
7515 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7516 PyObject *obj;
7517 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7518 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7519 return SWIG_Py_Void();
7520 }
7521
7522 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7523 return SWIG_Python_InitShadowInstance(args);
7524 }
7525
7526 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7527 PyObject *resultobj = 0;
7528 wxIconBundle *result = 0 ;
7529
7530 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7531 {
7532 PyThreadState* __tstate = wxPyBeginAllowThreads();
7533 result = (wxIconBundle *)new wxIconBundle();
7534 wxPyEndAllowThreads(__tstate);
7535 if (PyErr_Occurred()) SWIG_fail;
7536 }
7537 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7538 return resultobj;
7539 fail:
7540 return NULL;
7541 }
7542
7543
7544 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7545 PyObject *resultobj = 0;
7546 wxString *arg1 = 0 ;
7547 long arg2 ;
7548 wxIconBundle *result = 0 ;
7549 bool temp1 = false ;
7550 long val2 ;
7551 int ecode2 = 0 ;
7552 PyObject * obj0 = 0 ;
7553 PyObject * obj1 = 0 ;
7554 char * kwnames[] = {
7555 (char *) "file",(char *) "type", NULL
7556 };
7557
7558 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7559 {
7560 arg1 = wxString_in_helper(obj0);
7561 if (arg1 == NULL) SWIG_fail;
7562 temp1 = true;
7563 }
7564 ecode2 = SWIG_AsVal_long(obj1, &val2);
7565 if (!SWIG_IsOK(ecode2)) {
7566 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7567 }
7568 arg2 = static_cast< long >(val2);
7569 {
7570 PyThreadState* __tstate = wxPyBeginAllowThreads();
7571 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7572 wxPyEndAllowThreads(__tstate);
7573 if (PyErr_Occurred()) SWIG_fail;
7574 }
7575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7576 {
7577 if (temp1)
7578 delete arg1;
7579 }
7580 return resultobj;
7581 fail:
7582 {
7583 if (temp1)
7584 delete arg1;
7585 }
7586 return NULL;
7587 }
7588
7589
7590 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7591 PyObject *resultobj = 0;
7592 wxIcon *arg1 = 0 ;
7593 wxIconBundle *result = 0 ;
7594 void *argp1 = 0 ;
7595 int res1 = 0 ;
7596 PyObject * obj0 = 0 ;
7597 char * kwnames[] = {
7598 (char *) "icon", NULL
7599 };
7600
7601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7602 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7603 if (!SWIG_IsOK(res1)) {
7604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7605 }
7606 if (!argp1) {
7607 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7608 }
7609 arg1 = reinterpret_cast< wxIcon * >(argp1);
7610 {
7611 PyThreadState* __tstate = wxPyBeginAllowThreads();
7612 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7613 wxPyEndAllowThreads(__tstate);
7614 if (PyErr_Occurred()) SWIG_fail;
7615 }
7616 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7617 return resultobj;
7618 fail:
7619 return NULL;
7620 }
7621
7622
7623 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7624 PyObject *resultobj = 0;
7625 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7626 void *argp1 = 0 ;
7627 int res1 = 0 ;
7628 PyObject *swig_obj[1] ;
7629
7630 if (!args) SWIG_fail;
7631 swig_obj[0] = args;
7632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7633 if (!SWIG_IsOK(res1)) {
7634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7635 }
7636 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7637 {
7638 PyThreadState* __tstate = wxPyBeginAllowThreads();
7639 delete arg1;
7640
7641 wxPyEndAllowThreads(__tstate);
7642 if (PyErr_Occurred()) SWIG_fail;
7643 }
7644 resultobj = SWIG_Py_Void();
7645 return resultobj;
7646 fail:
7647 return NULL;
7648 }
7649
7650
7651 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7652 PyObject *resultobj = 0;
7653 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7654 wxIcon *arg2 = 0 ;
7655 void *argp1 = 0 ;
7656 int res1 = 0 ;
7657 void *argp2 = 0 ;
7658 int res2 = 0 ;
7659 PyObject * obj0 = 0 ;
7660 PyObject * obj1 = 0 ;
7661 char * kwnames[] = {
7662 (char *) "self",(char *) "icon", NULL
7663 };
7664
7665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7667 if (!SWIG_IsOK(res1)) {
7668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7669 }
7670 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7672 if (!SWIG_IsOK(res2)) {
7673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7674 }
7675 if (!argp2) {
7676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7677 }
7678 arg2 = reinterpret_cast< wxIcon * >(argp2);
7679 {
7680 PyThreadState* __tstate = wxPyBeginAllowThreads();
7681 (arg1)->AddIcon((wxIcon const &)*arg2);
7682 wxPyEndAllowThreads(__tstate);
7683 if (PyErr_Occurred()) SWIG_fail;
7684 }
7685 resultobj = SWIG_Py_Void();
7686 return resultobj;
7687 fail:
7688 return NULL;
7689 }
7690
7691
7692 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7693 PyObject *resultobj = 0;
7694 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7695 wxString *arg2 = 0 ;
7696 long arg3 ;
7697 void *argp1 = 0 ;
7698 int res1 = 0 ;
7699 bool temp2 = false ;
7700 long val3 ;
7701 int ecode3 = 0 ;
7702 PyObject * obj0 = 0 ;
7703 PyObject * obj1 = 0 ;
7704 PyObject * obj2 = 0 ;
7705 char * kwnames[] = {
7706 (char *) "self",(char *) "file",(char *) "type", NULL
7707 };
7708
7709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7711 if (!SWIG_IsOK(res1)) {
7712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7713 }
7714 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7715 {
7716 arg2 = wxString_in_helper(obj1);
7717 if (arg2 == NULL) SWIG_fail;
7718 temp2 = true;
7719 }
7720 ecode3 = SWIG_AsVal_long(obj2, &val3);
7721 if (!SWIG_IsOK(ecode3)) {
7722 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7723 }
7724 arg3 = static_cast< long >(val3);
7725 {
7726 PyThreadState* __tstate = wxPyBeginAllowThreads();
7727 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7728 wxPyEndAllowThreads(__tstate);
7729 if (PyErr_Occurred()) SWIG_fail;
7730 }
7731 resultobj = SWIG_Py_Void();
7732 {
7733 if (temp2)
7734 delete arg2;
7735 }
7736 return resultobj;
7737 fail:
7738 {
7739 if (temp2)
7740 delete arg2;
7741 }
7742 return NULL;
7743 }
7744
7745
7746 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7747 PyObject *resultobj = 0;
7748 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7749 wxSize *arg2 = 0 ;
7750 wxIcon *result = 0 ;
7751 void *argp1 = 0 ;
7752 int res1 = 0 ;
7753 wxSize temp2 ;
7754 PyObject * obj0 = 0 ;
7755 PyObject * obj1 = 0 ;
7756 char * kwnames[] = {
7757 (char *) "self",(char *) "size", NULL
7758 };
7759
7760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7762 if (!SWIG_IsOK(res1)) {
7763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7764 }
7765 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7766 {
7767 arg2 = &temp2;
7768 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7769 }
7770 {
7771 PyThreadState* __tstate = wxPyBeginAllowThreads();
7772 {
7773 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7774 result = (wxIcon *) &_result_ref;
7775 }
7776 wxPyEndAllowThreads(__tstate);
7777 if (PyErr_Occurred()) SWIG_fail;
7778 }
7779 {
7780 wxIcon* resultptr = new wxIcon(*result);
7781 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7782 }
7783 return resultobj;
7784 fail:
7785 return NULL;
7786 }
7787
7788
7789 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7790 PyObject *obj;
7791 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7792 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7793 return SWIG_Py_Void();
7794 }
7795
7796 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7797 return SWIG_Python_InitShadowInstance(args);
7798 }
7799
7800 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7801 PyObject *resultobj = 0;
7802 wxString *arg1 = 0 ;
7803 long arg2 ;
7804 int arg3 = (int) 0 ;
7805 int arg4 = (int) 0 ;
7806 wxCursor *result = 0 ;
7807 bool temp1 = false ;
7808 long val2 ;
7809 int ecode2 = 0 ;
7810 int val3 ;
7811 int ecode3 = 0 ;
7812 int val4 ;
7813 int ecode4 = 0 ;
7814 PyObject * obj0 = 0 ;
7815 PyObject * obj1 = 0 ;
7816 PyObject * obj2 = 0 ;
7817 PyObject * obj3 = 0 ;
7818 char * kwnames[] = {
7819 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7820 };
7821
7822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7823 {
7824 arg1 = wxString_in_helper(obj0);
7825 if (arg1 == NULL) SWIG_fail;
7826 temp1 = true;
7827 }
7828 ecode2 = SWIG_AsVal_long(obj1, &val2);
7829 if (!SWIG_IsOK(ecode2)) {
7830 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7831 }
7832 arg2 = static_cast< long >(val2);
7833 if (obj2) {
7834 ecode3 = SWIG_AsVal_int(obj2, &val3);
7835 if (!SWIG_IsOK(ecode3)) {
7836 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7837 }
7838 arg3 = static_cast< int >(val3);
7839 }
7840 if (obj3) {
7841 ecode4 = SWIG_AsVal_int(obj3, &val4);
7842 if (!SWIG_IsOK(ecode4)) {
7843 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7844 }
7845 arg4 = static_cast< int >(val4);
7846 }
7847 {
7848 if (!wxPyCheckForApp()) SWIG_fail;
7849 PyThreadState* __tstate = wxPyBeginAllowThreads();
7850 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7851 wxPyEndAllowThreads(__tstate);
7852 if (PyErr_Occurred()) SWIG_fail;
7853 }
7854 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7855 {
7856 if (temp1)
7857 delete arg1;
7858 }
7859 return resultobj;
7860 fail:
7861 {
7862 if (temp1)
7863 delete arg1;
7864 }
7865 return NULL;
7866 }
7867
7868
7869 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7870 PyObject *resultobj = 0;
7871 wxCursor *arg1 = (wxCursor *) 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874 PyObject *swig_obj[1] ;
7875
7876 if (!args) SWIG_fail;
7877 swig_obj[0] = args;
7878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7881 }
7882 arg1 = reinterpret_cast< wxCursor * >(argp1);
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 delete arg1;
7886
7887 wxPyEndAllowThreads(__tstate);
7888 if (PyErr_Occurred()) SWIG_fail;
7889 }
7890 resultobj = SWIG_Py_Void();
7891 return resultobj;
7892 fail:
7893 return NULL;
7894 }
7895
7896
7897 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7898 PyObject *resultobj = 0;
7899 int arg1 ;
7900 wxCursor *result = 0 ;
7901 int val1 ;
7902 int ecode1 = 0 ;
7903 PyObject * obj0 = 0 ;
7904 char * kwnames[] = {
7905 (char *) "id", NULL
7906 };
7907
7908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7909 ecode1 = SWIG_AsVal_int(obj0, &val1);
7910 if (!SWIG_IsOK(ecode1)) {
7911 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7912 }
7913 arg1 = static_cast< int >(val1);
7914 {
7915 if (!wxPyCheckForApp()) SWIG_fail;
7916 PyThreadState* __tstate = wxPyBeginAllowThreads();
7917 result = (wxCursor *)new wxCursor(arg1);
7918 wxPyEndAllowThreads(__tstate);
7919 if (PyErr_Occurred()) SWIG_fail;
7920 }
7921 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7922 return resultobj;
7923 fail:
7924 return NULL;
7925 }
7926
7927
7928 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7929 PyObject *resultobj = 0;
7930 wxImage *arg1 = 0 ;
7931 wxCursor *result = 0 ;
7932 void *argp1 = 0 ;
7933 int res1 = 0 ;
7934 PyObject * obj0 = 0 ;
7935 char * kwnames[] = {
7936 (char *) "image", NULL
7937 };
7938
7939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7940 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7941 if (!SWIG_IsOK(res1)) {
7942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7943 }
7944 if (!argp1) {
7945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7946 }
7947 arg1 = reinterpret_cast< wxImage * >(argp1);
7948 {
7949 if (!wxPyCheckForApp()) SWIG_fail;
7950 PyThreadState* __tstate = wxPyBeginAllowThreads();
7951 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7952 wxPyEndAllowThreads(__tstate);
7953 if (PyErr_Occurred()) SWIG_fail;
7954 }
7955 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7956 return resultobj;
7957 fail:
7958 return NULL;
7959 }
7960
7961
7962 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7963 PyObject *resultobj = 0;
7964 wxCursor *arg1 = (wxCursor *) 0 ;
7965 long result;
7966 void *argp1 = 0 ;
7967 int res1 = 0 ;
7968 PyObject *swig_obj[1] ;
7969
7970 if (!args) SWIG_fail;
7971 swig_obj[0] = args;
7972 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7973 if (!SWIG_IsOK(res1)) {
7974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7975 }
7976 arg1 = reinterpret_cast< wxCursor * >(argp1);
7977 {
7978 PyThreadState* __tstate = wxPyBeginAllowThreads();
7979 result = (long)(arg1)->GetHandle();
7980 wxPyEndAllowThreads(__tstate);
7981 if (PyErr_Occurred()) SWIG_fail;
7982 }
7983 resultobj = SWIG_From_long(static_cast< long >(result));
7984 return resultobj;
7985 fail:
7986 return NULL;
7987 }
7988
7989
7990 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7991 PyObject *resultobj = 0;
7992 wxCursor *arg1 = (wxCursor *) 0 ;
7993 long arg2 ;
7994 void *argp1 = 0 ;
7995 int res1 = 0 ;
7996 long val2 ;
7997 int ecode2 = 0 ;
7998 PyObject * obj0 = 0 ;
7999 PyObject * obj1 = 0 ;
8000 char * kwnames[] = {
8001 (char *) "self",(char *) "handle", NULL
8002 };
8003
8004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
8005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8006 if (!SWIG_IsOK(res1)) {
8007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
8008 }
8009 arg1 = reinterpret_cast< wxCursor * >(argp1);
8010 ecode2 = SWIG_AsVal_long(obj1, &val2);
8011 if (!SWIG_IsOK(ecode2)) {
8012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
8013 }
8014 arg2 = static_cast< long >(val2);
8015 {
8016 PyThreadState* __tstate = wxPyBeginAllowThreads();
8017 wxCursor_SetHandle(arg1,arg2);
8018 wxPyEndAllowThreads(__tstate);
8019 if (PyErr_Occurred()) SWIG_fail;
8020 }
8021 resultobj = SWIG_Py_Void();
8022 return resultobj;
8023 fail:
8024 return NULL;
8025 }
8026
8027
8028 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8029 PyObject *resultobj = 0;
8030 wxCursor *arg1 = (wxCursor *) 0 ;
8031 bool result;
8032 void *argp1 = 0 ;
8033 int res1 = 0 ;
8034 PyObject *swig_obj[1] ;
8035
8036 if (!args) SWIG_fail;
8037 swig_obj[0] = args;
8038 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8039 if (!SWIG_IsOK(res1)) {
8040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8041 }
8042 arg1 = reinterpret_cast< wxCursor * >(argp1);
8043 {
8044 PyThreadState* __tstate = wxPyBeginAllowThreads();
8045 result = (bool)(arg1)->Ok();
8046 wxPyEndAllowThreads(__tstate);
8047 if (PyErr_Occurred()) SWIG_fail;
8048 }
8049 {
8050 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8051 }
8052 return resultobj;
8053 fail:
8054 return NULL;
8055 }
8056
8057
8058 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8059 PyObject *resultobj = 0;
8060 wxCursor *arg1 = (wxCursor *) 0 ;
8061 int result;
8062 void *argp1 = 0 ;
8063 int res1 = 0 ;
8064 PyObject *swig_obj[1] ;
8065
8066 if (!args) SWIG_fail;
8067 swig_obj[0] = args;
8068 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8069 if (!SWIG_IsOK(res1)) {
8070 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8071 }
8072 arg1 = reinterpret_cast< wxCursor * >(argp1);
8073 {
8074 PyThreadState* __tstate = wxPyBeginAllowThreads();
8075 result = (int)(arg1)->GetWidth();
8076 wxPyEndAllowThreads(__tstate);
8077 if (PyErr_Occurred()) SWIG_fail;
8078 }
8079 resultobj = SWIG_From_int(static_cast< int >(result));
8080 return resultobj;
8081 fail:
8082 return NULL;
8083 }
8084
8085
8086 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8087 PyObject *resultobj = 0;
8088 wxCursor *arg1 = (wxCursor *) 0 ;
8089 int result;
8090 void *argp1 = 0 ;
8091 int res1 = 0 ;
8092 PyObject *swig_obj[1] ;
8093
8094 if (!args) SWIG_fail;
8095 swig_obj[0] = args;
8096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8099 }
8100 arg1 = reinterpret_cast< wxCursor * >(argp1);
8101 {
8102 PyThreadState* __tstate = wxPyBeginAllowThreads();
8103 result = (int)(arg1)->GetHeight();
8104 wxPyEndAllowThreads(__tstate);
8105 if (PyErr_Occurred()) SWIG_fail;
8106 }
8107 resultobj = SWIG_From_int(static_cast< int >(result));
8108 return resultobj;
8109 fail:
8110 return NULL;
8111 }
8112
8113
8114 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8115 PyObject *resultobj = 0;
8116 wxCursor *arg1 = (wxCursor *) 0 ;
8117 int result;
8118 void *argp1 = 0 ;
8119 int res1 = 0 ;
8120 PyObject *swig_obj[1] ;
8121
8122 if (!args) SWIG_fail;
8123 swig_obj[0] = args;
8124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8125 if (!SWIG_IsOK(res1)) {
8126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8127 }
8128 arg1 = reinterpret_cast< wxCursor * >(argp1);
8129 {
8130 PyThreadState* __tstate = wxPyBeginAllowThreads();
8131 result = (int)(arg1)->GetDepth();
8132 wxPyEndAllowThreads(__tstate);
8133 if (PyErr_Occurred()) SWIG_fail;
8134 }
8135 resultobj = SWIG_From_int(static_cast< int >(result));
8136 return resultobj;
8137 fail:
8138 return NULL;
8139 }
8140
8141
8142 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8143 PyObject *resultobj = 0;
8144 wxCursor *arg1 = (wxCursor *) 0 ;
8145 int arg2 ;
8146 void *argp1 = 0 ;
8147 int res1 = 0 ;
8148 int val2 ;
8149 int ecode2 = 0 ;
8150 PyObject * obj0 = 0 ;
8151 PyObject * obj1 = 0 ;
8152 char * kwnames[] = {
8153 (char *) "self",(char *) "w", NULL
8154 };
8155
8156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8157 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8158 if (!SWIG_IsOK(res1)) {
8159 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8160 }
8161 arg1 = reinterpret_cast< wxCursor * >(argp1);
8162 ecode2 = SWIG_AsVal_int(obj1, &val2);
8163 if (!SWIG_IsOK(ecode2)) {
8164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8165 }
8166 arg2 = static_cast< int >(val2);
8167 {
8168 PyThreadState* __tstate = wxPyBeginAllowThreads();
8169 (arg1)->SetWidth(arg2);
8170 wxPyEndAllowThreads(__tstate);
8171 if (PyErr_Occurred()) SWIG_fail;
8172 }
8173 resultobj = SWIG_Py_Void();
8174 return resultobj;
8175 fail:
8176 return NULL;
8177 }
8178
8179
8180 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8181 PyObject *resultobj = 0;
8182 wxCursor *arg1 = (wxCursor *) 0 ;
8183 int arg2 ;
8184 void *argp1 = 0 ;
8185 int res1 = 0 ;
8186 int val2 ;
8187 int ecode2 = 0 ;
8188 PyObject * obj0 = 0 ;
8189 PyObject * obj1 = 0 ;
8190 char * kwnames[] = {
8191 (char *) "self",(char *) "h", NULL
8192 };
8193
8194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8196 if (!SWIG_IsOK(res1)) {
8197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8198 }
8199 arg1 = reinterpret_cast< wxCursor * >(argp1);
8200 ecode2 = SWIG_AsVal_int(obj1, &val2);
8201 if (!SWIG_IsOK(ecode2)) {
8202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8203 }
8204 arg2 = static_cast< int >(val2);
8205 {
8206 PyThreadState* __tstate = wxPyBeginAllowThreads();
8207 (arg1)->SetHeight(arg2);
8208 wxPyEndAllowThreads(__tstate);
8209 if (PyErr_Occurred()) SWIG_fail;
8210 }
8211 resultobj = SWIG_Py_Void();
8212 return resultobj;
8213 fail:
8214 return NULL;
8215 }
8216
8217
8218 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8219 PyObject *resultobj = 0;
8220 wxCursor *arg1 = (wxCursor *) 0 ;
8221 int arg2 ;
8222 void *argp1 = 0 ;
8223 int res1 = 0 ;
8224 int val2 ;
8225 int ecode2 = 0 ;
8226 PyObject * obj0 = 0 ;
8227 PyObject * obj1 = 0 ;
8228 char * kwnames[] = {
8229 (char *) "self",(char *) "d", NULL
8230 };
8231
8232 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8233 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8234 if (!SWIG_IsOK(res1)) {
8235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8236 }
8237 arg1 = reinterpret_cast< wxCursor * >(argp1);
8238 ecode2 = SWIG_AsVal_int(obj1, &val2);
8239 if (!SWIG_IsOK(ecode2)) {
8240 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8241 }
8242 arg2 = static_cast< int >(val2);
8243 {
8244 PyThreadState* __tstate = wxPyBeginAllowThreads();
8245 (arg1)->SetDepth(arg2);
8246 wxPyEndAllowThreads(__tstate);
8247 if (PyErr_Occurred()) SWIG_fail;
8248 }
8249 resultobj = SWIG_Py_Void();
8250 return resultobj;
8251 fail:
8252 return NULL;
8253 }
8254
8255
8256 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8257 PyObject *resultobj = 0;
8258 wxCursor *arg1 = (wxCursor *) 0 ;
8259 wxSize *arg2 = 0 ;
8260 void *argp1 = 0 ;
8261 int res1 = 0 ;
8262 wxSize temp2 ;
8263 PyObject * obj0 = 0 ;
8264 PyObject * obj1 = 0 ;
8265 char * kwnames[] = {
8266 (char *) "self",(char *) "size", NULL
8267 };
8268
8269 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8270 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8271 if (!SWIG_IsOK(res1)) {
8272 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8273 }
8274 arg1 = reinterpret_cast< wxCursor * >(argp1);
8275 {
8276 arg2 = &temp2;
8277 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8278 }
8279 {
8280 PyThreadState* __tstate = wxPyBeginAllowThreads();
8281 (arg1)->SetSize((wxSize const &)*arg2);
8282 wxPyEndAllowThreads(__tstate);
8283 if (PyErr_Occurred()) SWIG_fail;
8284 }
8285 resultobj = SWIG_Py_Void();
8286 return resultobj;
8287 fail:
8288 return NULL;
8289 }
8290
8291
8292 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8293 PyObject *obj;
8294 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8295 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8296 return SWIG_Py_Void();
8297 }
8298
8299 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8300 return SWIG_Python_InitShadowInstance(args);
8301 }
8302
8303 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8304 PyObject *resultobj = 0;
8305 int arg1 = (int) 0 ;
8306 int arg2 = (int) 0 ;
8307 int arg3 = (int) 0 ;
8308 int arg4 = (int) 0 ;
8309 wxRegion *result = 0 ;
8310 int val1 ;
8311 int ecode1 = 0 ;
8312 int val2 ;
8313 int ecode2 = 0 ;
8314 int val3 ;
8315 int ecode3 = 0 ;
8316 int val4 ;
8317 int ecode4 = 0 ;
8318 PyObject * obj0 = 0 ;
8319 PyObject * obj1 = 0 ;
8320 PyObject * obj2 = 0 ;
8321 PyObject * obj3 = 0 ;
8322 char * kwnames[] = {
8323 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8324 };
8325
8326 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8327 if (obj0) {
8328 ecode1 = SWIG_AsVal_int(obj0, &val1);
8329 if (!SWIG_IsOK(ecode1)) {
8330 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8331 }
8332 arg1 = static_cast< int >(val1);
8333 }
8334 if (obj1) {
8335 ecode2 = SWIG_AsVal_int(obj1, &val2);
8336 if (!SWIG_IsOK(ecode2)) {
8337 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8338 }
8339 arg2 = static_cast< int >(val2);
8340 }
8341 if (obj2) {
8342 ecode3 = SWIG_AsVal_int(obj2, &val3);
8343 if (!SWIG_IsOK(ecode3)) {
8344 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8345 }
8346 arg3 = static_cast< int >(val3);
8347 }
8348 if (obj3) {
8349 ecode4 = SWIG_AsVal_int(obj3, &val4);
8350 if (!SWIG_IsOK(ecode4)) {
8351 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8352 }
8353 arg4 = static_cast< int >(val4);
8354 }
8355 {
8356 if (!wxPyCheckForApp()) SWIG_fail;
8357 PyThreadState* __tstate = wxPyBeginAllowThreads();
8358 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8359 wxPyEndAllowThreads(__tstate);
8360 if (PyErr_Occurred()) SWIG_fail;
8361 }
8362 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8363 return resultobj;
8364 fail:
8365 return NULL;
8366 }
8367
8368
8369 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8370 PyObject *resultobj = 0;
8371 wxBitmap *arg1 = 0 ;
8372 wxRegion *result = 0 ;
8373 void *argp1 = 0 ;
8374 int res1 = 0 ;
8375 PyObject * obj0 = 0 ;
8376 char * kwnames[] = {
8377 (char *) "bmp", NULL
8378 };
8379
8380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8381 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8382 if (!SWIG_IsOK(res1)) {
8383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8384 }
8385 if (!argp1) {
8386 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8387 }
8388 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8389 {
8390 if (!wxPyCheckForApp()) SWIG_fail;
8391 PyThreadState* __tstate = wxPyBeginAllowThreads();
8392 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8393 wxPyEndAllowThreads(__tstate);
8394 if (PyErr_Occurred()) SWIG_fail;
8395 }
8396 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8397 return resultobj;
8398 fail:
8399 return NULL;
8400 }
8401
8402
8403 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8404 PyObject *resultobj = 0;
8405 wxBitmap *arg1 = 0 ;
8406 wxColour *arg2 = 0 ;
8407 int arg3 = (int) 0 ;
8408 wxRegion *result = 0 ;
8409 void *argp1 = 0 ;
8410 int res1 = 0 ;
8411 wxColour temp2 ;
8412 int val3 ;
8413 int ecode3 = 0 ;
8414 PyObject * obj0 = 0 ;
8415 PyObject * obj1 = 0 ;
8416 PyObject * obj2 = 0 ;
8417 char * kwnames[] = {
8418 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8419 };
8420
8421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8422 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8423 if (!SWIG_IsOK(res1)) {
8424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8425 }
8426 if (!argp1) {
8427 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8428 }
8429 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8430 {
8431 arg2 = &temp2;
8432 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8433 }
8434 if (obj2) {
8435 ecode3 = SWIG_AsVal_int(obj2, &val3);
8436 if (!SWIG_IsOK(ecode3)) {
8437 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8438 }
8439 arg3 = static_cast< int >(val3);
8440 }
8441 {
8442 if (!wxPyCheckForApp()) SWIG_fail;
8443 PyThreadState* __tstate = wxPyBeginAllowThreads();
8444 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8445 wxPyEndAllowThreads(__tstate);
8446 if (PyErr_Occurred()) SWIG_fail;
8447 }
8448 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8449 return resultobj;
8450 fail:
8451 return NULL;
8452 }
8453
8454
8455 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8456 PyObject *resultobj = 0;
8457 int arg1 ;
8458 wxPoint *arg2 = (wxPoint *) 0 ;
8459 int arg3 = (int) wxWINDING_RULE ;
8460 wxRegion *result = 0 ;
8461 int val3 ;
8462 int ecode3 = 0 ;
8463 PyObject * obj0 = 0 ;
8464 PyObject * obj1 = 0 ;
8465 char * kwnames[] = {
8466 (char *) "points",(char *) "fillStyle", NULL
8467 };
8468
8469 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8470 {
8471 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8472 if (arg2 == NULL) SWIG_fail;
8473 }
8474 if (obj1) {
8475 ecode3 = SWIG_AsVal_int(obj1, &val3);
8476 if (!SWIG_IsOK(ecode3)) {
8477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8478 }
8479 arg3 = static_cast< int >(val3);
8480 }
8481 {
8482 if (!wxPyCheckForApp()) SWIG_fail;
8483 PyThreadState* __tstate = wxPyBeginAllowThreads();
8484 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8485 wxPyEndAllowThreads(__tstate);
8486 if (PyErr_Occurred()) SWIG_fail;
8487 }
8488 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8489 {
8490 if (arg2) delete [] arg2;
8491 }
8492 return resultobj;
8493 fail:
8494 {
8495 if (arg2) delete [] arg2;
8496 }
8497 return NULL;
8498 }
8499
8500
8501 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8502 PyObject *resultobj = 0;
8503 wxRegion *arg1 = (wxRegion *) 0 ;
8504 void *argp1 = 0 ;
8505 int res1 = 0 ;
8506 PyObject *swig_obj[1] ;
8507
8508 if (!args) SWIG_fail;
8509 swig_obj[0] = args;
8510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8511 if (!SWIG_IsOK(res1)) {
8512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8513 }
8514 arg1 = reinterpret_cast< wxRegion * >(argp1);
8515 {
8516 PyThreadState* __tstate = wxPyBeginAllowThreads();
8517 delete arg1;
8518
8519 wxPyEndAllowThreads(__tstate);
8520 if (PyErr_Occurred()) SWIG_fail;
8521 }
8522 resultobj = SWIG_Py_Void();
8523 return resultobj;
8524 fail:
8525 return NULL;
8526 }
8527
8528
8529 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8530 PyObject *resultobj = 0;
8531 wxRegion *arg1 = (wxRegion *) 0 ;
8532 void *argp1 = 0 ;
8533 int res1 = 0 ;
8534 PyObject *swig_obj[1] ;
8535
8536 if (!args) SWIG_fail;
8537 swig_obj[0] = args;
8538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8539 if (!SWIG_IsOK(res1)) {
8540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8541 }
8542 arg1 = reinterpret_cast< wxRegion * >(argp1);
8543 {
8544 PyThreadState* __tstate = wxPyBeginAllowThreads();
8545 (arg1)->Clear();
8546 wxPyEndAllowThreads(__tstate);
8547 if (PyErr_Occurred()) SWIG_fail;
8548 }
8549 resultobj = SWIG_Py_Void();
8550 return resultobj;
8551 fail:
8552 return NULL;
8553 }
8554
8555
8556 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8557 PyObject *resultobj = 0;
8558 wxRegion *arg1 = (wxRegion *) 0 ;
8559 int arg2 ;
8560 int arg3 ;
8561 bool result;
8562 void *argp1 = 0 ;
8563 int res1 = 0 ;
8564 int val2 ;
8565 int ecode2 = 0 ;
8566 int val3 ;
8567 int ecode3 = 0 ;
8568 PyObject * obj0 = 0 ;
8569 PyObject * obj1 = 0 ;
8570 PyObject * obj2 = 0 ;
8571 char * kwnames[] = {
8572 (char *) "self",(char *) "x",(char *) "y", NULL
8573 };
8574
8575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8577 if (!SWIG_IsOK(res1)) {
8578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8579 }
8580 arg1 = reinterpret_cast< wxRegion * >(argp1);
8581 ecode2 = SWIG_AsVal_int(obj1, &val2);
8582 if (!SWIG_IsOK(ecode2)) {
8583 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8584 }
8585 arg2 = static_cast< int >(val2);
8586 ecode3 = SWIG_AsVal_int(obj2, &val3);
8587 if (!SWIG_IsOK(ecode3)) {
8588 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8589 }
8590 arg3 = static_cast< int >(val3);
8591 {
8592 PyThreadState* __tstate = wxPyBeginAllowThreads();
8593 result = (bool)(arg1)->Offset(arg2,arg3);
8594 wxPyEndAllowThreads(__tstate);
8595 if (PyErr_Occurred()) SWIG_fail;
8596 }
8597 {
8598 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8599 }
8600 return resultobj;
8601 fail:
8602 return NULL;
8603 }
8604
8605
8606 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8607 PyObject *resultobj = 0;
8608 wxRegion *arg1 = (wxRegion *) 0 ;
8609 int arg2 ;
8610 int arg3 ;
8611 wxRegionContain result;
8612 void *argp1 = 0 ;
8613 int res1 = 0 ;
8614 int val2 ;
8615 int ecode2 = 0 ;
8616 int val3 ;
8617 int ecode3 = 0 ;
8618 PyObject * obj0 = 0 ;
8619 PyObject * obj1 = 0 ;
8620 PyObject * obj2 = 0 ;
8621 char * kwnames[] = {
8622 (char *) "self",(char *) "x",(char *) "y", NULL
8623 };
8624
8625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8627 if (!SWIG_IsOK(res1)) {
8628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8629 }
8630 arg1 = reinterpret_cast< wxRegion * >(argp1);
8631 ecode2 = SWIG_AsVal_int(obj1, &val2);
8632 if (!SWIG_IsOK(ecode2)) {
8633 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8634 }
8635 arg2 = static_cast< int >(val2);
8636 ecode3 = SWIG_AsVal_int(obj2, &val3);
8637 if (!SWIG_IsOK(ecode3)) {
8638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8639 }
8640 arg3 = static_cast< int >(val3);
8641 {
8642 PyThreadState* __tstate = wxPyBeginAllowThreads();
8643 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8644 wxPyEndAllowThreads(__tstate);
8645 if (PyErr_Occurred()) SWIG_fail;
8646 }
8647 resultobj = SWIG_From_int(static_cast< int >(result));
8648 return resultobj;
8649 fail:
8650 return NULL;
8651 }
8652
8653
8654 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8655 PyObject *resultobj = 0;
8656 wxRegion *arg1 = (wxRegion *) 0 ;
8657 wxPoint *arg2 = 0 ;
8658 wxRegionContain result;
8659 void *argp1 = 0 ;
8660 int res1 = 0 ;
8661 wxPoint temp2 ;
8662 PyObject * obj0 = 0 ;
8663 PyObject * obj1 = 0 ;
8664 char * kwnames[] = {
8665 (char *) "self",(char *) "pt", NULL
8666 };
8667
8668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8670 if (!SWIG_IsOK(res1)) {
8671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8672 }
8673 arg1 = reinterpret_cast< wxRegion * >(argp1);
8674 {
8675 arg2 = &temp2;
8676 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8677 }
8678 {
8679 PyThreadState* __tstate = wxPyBeginAllowThreads();
8680 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8681 wxPyEndAllowThreads(__tstate);
8682 if (PyErr_Occurred()) SWIG_fail;
8683 }
8684 resultobj = SWIG_From_int(static_cast< int >(result));
8685 return resultobj;
8686 fail:
8687 return NULL;
8688 }
8689
8690
8691 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8692 PyObject *resultobj = 0;
8693 wxRegion *arg1 = (wxRegion *) 0 ;
8694 wxRect *arg2 = 0 ;
8695 wxRegionContain result;
8696 void *argp1 = 0 ;
8697 int res1 = 0 ;
8698 wxRect temp2 ;
8699 PyObject * obj0 = 0 ;
8700 PyObject * obj1 = 0 ;
8701 char * kwnames[] = {
8702 (char *) "self",(char *) "rect", NULL
8703 };
8704
8705 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8706 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8707 if (!SWIG_IsOK(res1)) {
8708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8709 }
8710 arg1 = reinterpret_cast< wxRegion * >(argp1);
8711 {
8712 arg2 = &temp2;
8713 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8714 }
8715 {
8716 PyThreadState* __tstate = wxPyBeginAllowThreads();
8717 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8718 wxPyEndAllowThreads(__tstate);
8719 if (PyErr_Occurred()) SWIG_fail;
8720 }
8721 resultobj = SWIG_From_int(static_cast< int >(result));
8722 return resultobj;
8723 fail:
8724 return NULL;
8725 }
8726
8727
8728 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8729 PyObject *resultobj = 0;
8730 wxRegion *arg1 = (wxRegion *) 0 ;
8731 int arg2 ;
8732 int arg3 ;
8733 int arg4 ;
8734 int arg5 ;
8735 wxRegionContain result;
8736 void *argp1 = 0 ;
8737 int res1 = 0 ;
8738 int val2 ;
8739 int ecode2 = 0 ;
8740 int val3 ;
8741 int ecode3 = 0 ;
8742 int val4 ;
8743 int ecode4 = 0 ;
8744 int val5 ;
8745 int ecode5 = 0 ;
8746 PyObject * obj0 = 0 ;
8747 PyObject * obj1 = 0 ;
8748 PyObject * obj2 = 0 ;
8749 PyObject * obj3 = 0 ;
8750 PyObject * obj4 = 0 ;
8751 char * kwnames[] = {
8752 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8753 };
8754
8755 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8756 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8757 if (!SWIG_IsOK(res1)) {
8758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8759 }
8760 arg1 = reinterpret_cast< wxRegion * >(argp1);
8761 ecode2 = SWIG_AsVal_int(obj1, &val2);
8762 if (!SWIG_IsOK(ecode2)) {
8763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8764 }
8765 arg2 = static_cast< int >(val2);
8766 ecode3 = SWIG_AsVal_int(obj2, &val3);
8767 if (!SWIG_IsOK(ecode3)) {
8768 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8769 }
8770 arg3 = static_cast< int >(val3);
8771 ecode4 = SWIG_AsVal_int(obj3, &val4);
8772 if (!SWIG_IsOK(ecode4)) {
8773 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8774 }
8775 arg4 = static_cast< int >(val4);
8776 ecode5 = SWIG_AsVal_int(obj4, &val5);
8777 if (!SWIG_IsOK(ecode5)) {
8778 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8779 }
8780 arg5 = static_cast< int >(val5);
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 resultobj = SWIG_From_int(static_cast< int >(result));
8788 return resultobj;
8789 fail:
8790 return NULL;
8791 }
8792
8793
8794 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8795 PyObject *resultobj = 0;
8796 wxRegion *arg1 = (wxRegion *) 0 ;
8797 wxRect result;
8798 void *argp1 = 0 ;
8799 int res1 = 0 ;
8800 PyObject *swig_obj[1] ;
8801
8802 if (!args) SWIG_fail;
8803 swig_obj[0] = args;
8804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8805 if (!SWIG_IsOK(res1)) {
8806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8807 }
8808 arg1 = reinterpret_cast< wxRegion * >(argp1);
8809 {
8810 PyThreadState* __tstate = wxPyBeginAllowThreads();
8811 result = (arg1)->GetBox();
8812 wxPyEndAllowThreads(__tstate);
8813 if (PyErr_Occurred()) SWIG_fail;
8814 }
8815 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8816 return resultobj;
8817 fail:
8818 return NULL;
8819 }
8820
8821
8822 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8823 PyObject *resultobj = 0;
8824 wxRegion *arg1 = (wxRegion *) 0 ;
8825 int arg2 ;
8826 int arg3 ;
8827 int arg4 ;
8828 int arg5 ;
8829 bool result;
8830 void *argp1 = 0 ;
8831 int res1 = 0 ;
8832 int val2 ;
8833 int ecode2 = 0 ;
8834 int val3 ;
8835 int ecode3 = 0 ;
8836 int val4 ;
8837 int ecode4 = 0 ;
8838 int val5 ;
8839 int ecode5 = 0 ;
8840 PyObject * obj0 = 0 ;
8841 PyObject * obj1 = 0 ;
8842 PyObject * obj2 = 0 ;
8843 PyObject * obj3 = 0 ;
8844 PyObject * obj4 = 0 ;
8845 char * kwnames[] = {
8846 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8847 };
8848
8849 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8850 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8851 if (!SWIG_IsOK(res1)) {
8852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8853 }
8854 arg1 = reinterpret_cast< wxRegion * >(argp1);
8855 ecode2 = SWIG_AsVal_int(obj1, &val2);
8856 if (!SWIG_IsOK(ecode2)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8858 }
8859 arg2 = static_cast< int >(val2);
8860 ecode3 = SWIG_AsVal_int(obj2, &val3);
8861 if (!SWIG_IsOK(ecode3)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8863 }
8864 arg3 = static_cast< int >(val3);
8865 ecode4 = SWIG_AsVal_int(obj3, &val4);
8866 if (!SWIG_IsOK(ecode4)) {
8867 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8868 }
8869 arg4 = static_cast< int >(val4);
8870 ecode5 = SWIG_AsVal_int(obj4, &val5);
8871 if (!SWIG_IsOK(ecode5)) {
8872 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8873 }
8874 arg5 = static_cast< int >(val5);
8875 {
8876 PyThreadState* __tstate = wxPyBeginAllowThreads();
8877 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8878 wxPyEndAllowThreads(__tstate);
8879 if (PyErr_Occurred()) SWIG_fail;
8880 }
8881 {
8882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8883 }
8884 return resultobj;
8885 fail:
8886 return NULL;
8887 }
8888
8889
8890 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8891 PyObject *resultobj = 0;
8892 wxRegion *arg1 = (wxRegion *) 0 ;
8893 wxRect *arg2 = 0 ;
8894 bool result;
8895 void *argp1 = 0 ;
8896 int res1 = 0 ;
8897 wxRect temp2 ;
8898 PyObject * obj0 = 0 ;
8899 PyObject * obj1 = 0 ;
8900 char * kwnames[] = {
8901 (char *) "self",(char *) "rect", NULL
8902 };
8903
8904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8906 if (!SWIG_IsOK(res1)) {
8907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8908 }
8909 arg1 = reinterpret_cast< wxRegion * >(argp1);
8910 {
8911 arg2 = &temp2;
8912 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8913 }
8914 {
8915 PyThreadState* __tstate = wxPyBeginAllowThreads();
8916 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8917 wxPyEndAllowThreads(__tstate);
8918 if (PyErr_Occurred()) SWIG_fail;
8919 }
8920 {
8921 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8922 }
8923 return resultobj;
8924 fail:
8925 return NULL;
8926 }
8927
8928
8929 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8930 PyObject *resultobj = 0;
8931 wxRegion *arg1 = (wxRegion *) 0 ;
8932 wxRegion *arg2 = 0 ;
8933 bool result;
8934 void *argp1 = 0 ;
8935 int res1 = 0 ;
8936 void *argp2 = 0 ;
8937 int res2 = 0 ;
8938 PyObject * obj0 = 0 ;
8939 PyObject * obj1 = 0 ;
8940 char * kwnames[] = {
8941 (char *) "self",(char *) "region", NULL
8942 };
8943
8944 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8945 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8946 if (!SWIG_IsOK(res1)) {
8947 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8948 }
8949 arg1 = reinterpret_cast< wxRegion * >(argp1);
8950 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8951 if (!SWIG_IsOK(res2)) {
8952 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8953 }
8954 if (!argp2) {
8955 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8956 }
8957 arg2 = reinterpret_cast< wxRegion * >(argp2);
8958 {
8959 PyThreadState* __tstate = wxPyBeginAllowThreads();
8960 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8961 wxPyEndAllowThreads(__tstate);
8962 if (PyErr_Occurred()) SWIG_fail;
8963 }
8964 {
8965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8966 }
8967 return resultobj;
8968 fail:
8969 return NULL;
8970 }
8971
8972
8973 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8974 PyObject *resultobj = 0;
8975 wxRegion *arg1 = (wxRegion *) 0 ;
8976 bool result;
8977 void *argp1 = 0 ;
8978 int res1 = 0 ;
8979 PyObject *swig_obj[1] ;
8980
8981 if (!args) SWIG_fail;
8982 swig_obj[0] = args;
8983 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8984 if (!SWIG_IsOK(res1)) {
8985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8986 }
8987 arg1 = reinterpret_cast< wxRegion * >(argp1);
8988 {
8989 PyThreadState* __tstate = wxPyBeginAllowThreads();
8990 result = (bool)(arg1)->IsEmpty();
8991 wxPyEndAllowThreads(__tstate);
8992 if (PyErr_Occurred()) SWIG_fail;
8993 }
8994 {
8995 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8996 }
8997 return resultobj;
8998 fail:
8999 return NULL;
9000 }
9001
9002
9003 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9004 PyObject *resultobj = 0;
9005 wxRegion *arg1 = (wxRegion *) 0 ;
9006 int arg2 ;
9007 int arg3 ;
9008 int arg4 ;
9009 int arg5 ;
9010 bool result;
9011 void *argp1 = 0 ;
9012 int res1 = 0 ;
9013 int val2 ;
9014 int ecode2 = 0 ;
9015 int val3 ;
9016 int ecode3 = 0 ;
9017 int val4 ;
9018 int ecode4 = 0 ;
9019 int val5 ;
9020 int ecode5 = 0 ;
9021 PyObject * obj0 = 0 ;
9022 PyObject * obj1 = 0 ;
9023 PyObject * obj2 = 0 ;
9024 PyObject * obj3 = 0 ;
9025 PyObject * obj4 = 0 ;
9026 char * kwnames[] = {
9027 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9028 };
9029
9030 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9031 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9032 if (!SWIG_IsOK(res1)) {
9033 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9034 }
9035 arg1 = reinterpret_cast< wxRegion * >(argp1);
9036 ecode2 = SWIG_AsVal_int(obj1, &val2);
9037 if (!SWIG_IsOK(ecode2)) {
9038 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9039 }
9040 arg2 = static_cast< int >(val2);
9041 ecode3 = SWIG_AsVal_int(obj2, &val3);
9042 if (!SWIG_IsOK(ecode3)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9044 }
9045 arg3 = static_cast< int >(val3);
9046 ecode4 = SWIG_AsVal_int(obj3, &val4);
9047 if (!SWIG_IsOK(ecode4)) {
9048 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9049 }
9050 arg4 = static_cast< int >(val4);
9051 ecode5 = SWIG_AsVal_int(obj4, &val5);
9052 if (!SWIG_IsOK(ecode5)) {
9053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9054 }
9055 arg5 = static_cast< int >(val5);
9056 {
9057 PyThreadState* __tstate = wxPyBeginAllowThreads();
9058 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9059 wxPyEndAllowThreads(__tstate);
9060 if (PyErr_Occurred()) SWIG_fail;
9061 }
9062 {
9063 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9064 }
9065 return resultobj;
9066 fail:
9067 return NULL;
9068 }
9069
9070
9071 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9072 PyObject *resultobj = 0;
9073 wxRegion *arg1 = (wxRegion *) 0 ;
9074 wxRect *arg2 = 0 ;
9075 bool result;
9076 void *argp1 = 0 ;
9077 int res1 = 0 ;
9078 wxRect temp2 ;
9079 PyObject * obj0 = 0 ;
9080 PyObject * obj1 = 0 ;
9081 char * kwnames[] = {
9082 (char *) "self",(char *) "rect", NULL
9083 };
9084
9085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9087 if (!SWIG_IsOK(res1)) {
9088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9089 }
9090 arg1 = reinterpret_cast< wxRegion * >(argp1);
9091 {
9092 arg2 = &temp2;
9093 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9094 }
9095 {
9096 PyThreadState* __tstate = wxPyBeginAllowThreads();
9097 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9098 wxPyEndAllowThreads(__tstate);
9099 if (PyErr_Occurred()) SWIG_fail;
9100 }
9101 {
9102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9103 }
9104 return resultobj;
9105 fail:
9106 return NULL;
9107 }
9108
9109
9110 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9111 PyObject *resultobj = 0;
9112 wxRegion *arg1 = (wxRegion *) 0 ;
9113 wxRegion *arg2 = 0 ;
9114 bool result;
9115 void *argp1 = 0 ;
9116 int res1 = 0 ;
9117 void *argp2 = 0 ;
9118 int res2 = 0 ;
9119 PyObject * obj0 = 0 ;
9120 PyObject * obj1 = 0 ;
9121 char * kwnames[] = {
9122 (char *) "self",(char *) "region", NULL
9123 };
9124
9125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9127 if (!SWIG_IsOK(res1)) {
9128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9129 }
9130 arg1 = reinterpret_cast< wxRegion * >(argp1);
9131 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9132 if (!SWIG_IsOK(res2)) {
9133 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9134 }
9135 if (!argp2) {
9136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9137 }
9138 arg2 = reinterpret_cast< wxRegion * >(argp2);
9139 {
9140 PyThreadState* __tstate = wxPyBeginAllowThreads();
9141 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9142 wxPyEndAllowThreads(__tstate);
9143 if (PyErr_Occurred()) SWIG_fail;
9144 }
9145 {
9146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9147 }
9148 return resultobj;
9149 fail:
9150 return NULL;
9151 }
9152
9153
9154 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9155 PyObject *resultobj = 0;
9156 wxRegion *arg1 = (wxRegion *) 0 ;
9157 int arg2 ;
9158 int arg3 ;
9159 int arg4 ;
9160 int arg5 ;
9161 bool result;
9162 void *argp1 = 0 ;
9163 int res1 = 0 ;
9164 int val2 ;
9165 int ecode2 = 0 ;
9166 int val3 ;
9167 int ecode3 = 0 ;
9168 int val4 ;
9169 int ecode4 = 0 ;
9170 int val5 ;
9171 int ecode5 = 0 ;
9172 PyObject * obj0 = 0 ;
9173 PyObject * obj1 = 0 ;
9174 PyObject * obj2 = 0 ;
9175 PyObject * obj3 = 0 ;
9176 PyObject * obj4 = 0 ;
9177 char * kwnames[] = {
9178 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9179 };
9180
9181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9183 if (!SWIG_IsOK(res1)) {
9184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9185 }
9186 arg1 = reinterpret_cast< wxRegion * >(argp1);
9187 ecode2 = SWIG_AsVal_int(obj1, &val2);
9188 if (!SWIG_IsOK(ecode2)) {
9189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9190 }
9191 arg2 = static_cast< int >(val2);
9192 ecode3 = SWIG_AsVal_int(obj2, &val3);
9193 if (!SWIG_IsOK(ecode3)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9195 }
9196 arg3 = static_cast< int >(val3);
9197 ecode4 = SWIG_AsVal_int(obj3, &val4);
9198 if (!SWIG_IsOK(ecode4)) {
9199 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9200 }
9201 arg4 = static_cast< int >(val4);
9202 ecode5 = SWIG_AsVal_int(obj4, &val5);
9203 if (!SWIG_IsOK(ecode5)) {
9204 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9205 }
9206 arg5 = static_cast< int >(val5);
9207 {
9208 PyThreadState* __tstate = wxPyBeginAllowThreads();
9209 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9210 wxPyEndAllowThreads(__tstate);
9211 if (PyErr_Occurred()) SWIG_fail;
9212 }
9213 {
9214 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9215 }
9216 return resultobj;
9217 fail:
9218 return NULL;
9219 }
9220
9221
9222 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9223 PyObject *resultobj = 0;
9224 wxRegion *arg1 = (wxRegion *) 0 ;
9225 wxRect *arg2 = 0 ;
9226 bool result;
9227 void *argp1 = 0 ;
9228 int res1 = 0 ;
9229 wxRect temp2 ;
9230 PyObject * obj0 = 0 ;
9231 PyObject * obj1 = 0 ;
9232 char * kwnames[] = {
9233 (char *) "self",(char *) "rect", NULL
9234 };
9235
9236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9238 if (!SWIG_IsOK(res1)) {
9239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9240 }
9241 arg1 = reinterpret_cast< wxRegion * >(argp1);
9242 {
9243 arg2 = &temp2;
9244 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9245 }
9246 {
9247 PyThreadState* __tstate = wxPyBeginAllowThreads();
9248 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9249 wxPyEndAllowThreads(__tstate);
9250 if (PyErr_Occurred()) SWIG_fail;
9251 }
9252 {
9253 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9254 }
9255 return resultobj;
9256 fail:
9257 return NULL;
9258 }
9259
9260
9261 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9262 PyObject *resultobj = 0;
9263 wxRegion *arg1 = (wxRegion *) 0 ;
9264 wxRegion *arg2 = 0 ;
9265 bool result;
9266 void *argp1 = 0 ;
9267 int res1 = 0 ;
9268 void *argp2 = 0 ;
9269 int res2 = 0 ;
9270 PyObject * obj0 = 0 ;
9271 PyObject * obj1 = 0 ;
9272 char * kwnames[] = {
9273 (char *) "self",(char *) "region", NULL
9274 };
9275
9276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9278 if (!SWIG_IsOK(res1)) {
9279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9280 }
9281 arg1 = reinterpret_cast< wxRegion * >(argp1);
9282 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9283 if (!SWIG_IsOK(res2)) {
9284 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9285 }
9286 if (!argp2) {
9287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9288 }
9289 arg2 = reinterpret_cast< wxRegion * >(argp2);
9290 {
9291 PyThreadState* __tstate = wxPyBeginAllowThreads();
9292 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9293 wxPyEndAllowThreads(__tstate);
9294 if (PyErr_Occurred()) SWIG_fail;
9295 }
9296 {
9297 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9298 }
9299 return resultobj;
9300 fail:
9301 return NULL;
9302 }
9303
9304
9305 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9306 PyObject *resultobj = 0;
9307 wxRegion *arg1 = (wxRegion *) 0 ;
9308 int arg2 ;
9309 int arg3 ;
9310 int arg4 ;
9311 int arg5 ;
9312 bool result;
9313 void *argp1 = 0 ;
9314 int res1 = 0 ;
9315 int val2 ;
9316 int ecode2 = 0 ;
9317 int val3 ;
9318 int ecode3 = 0 ;
9319 int val4 ;
9320 int ecode4 = 0 ;
9321 int val5 ;
9322 int ecode5 = 0 ;
9323 PyObject * obj0 = 0 ;
9324 PyObject * obj1 = 0 ;
9325 PyObject * obj2 = 0 ;
9326 PyObject * obj3 = 0 ;
9327 PyObject * obj4 = 0 ;
9328 char * kwnames[] = {
9329 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9330 };
9331
9332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9334 if (!SWIG_IsOK(res1)) {
9335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9336 }
9337 arg1 = reinterpret_cast< wxRegion * >(argp1);
9338 ecode2 = SWIG_AsVal_int(obj1, &val2);
9339 if (!SWIG_IsOK(ecode2)) {
9340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9341 }
9342 arg2 = static_cast< int >(val2);
9343 ecode3 = SWIG_AsVal_int(obj2, &val3);
9344 if (!SWIG_IsOK(ecode3)) {
9345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9346 }
9347 arg3 = static_cast< int >(val3);
9348 ecode4 = SWIG_AsVal_int(obj3, &val4);
9349 if (!SWIG_IsOK(ecode4)) {
9350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9351 }
9352 arg4 = static_cast< int >(val4);
9353 ecode5 = SWIG_AsVal_int(obj4, &val5);
9354 if (!SWIG_IsOK(ecode5)) {
9355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9356 }
9357 arg5 = static_cast< int >(val5);
9358 {
9359 PyThreadState* __tstate = wxPyBeginAllowThreads();
9360 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9361 wxPyEndAllowThreads(__tstate);
9362 if (PyErr_Occurred()) SWIG_fail;
9363 }
9364 {
9365 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9366 }
9367 return resultobj;
9368 fail:
9369 return NULL;
9370 }
9371
9372
9373 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9374 PyObject *resultobj = 0;
9375 wxRegion *arg1 = (wxRegion *) 0 ;
9376 wxRect *arg2 = 0 ;
9377 bool result;
9378 void *argp1 = 0 ;
9379 int res1 = 0 ;
9380 wxRect temp2 ;
9381 PyObject * obj0 = 0 ;
9382 PyObject * obj1 = 0 ;
9383 char * kwnames[] = {
9384 (char *) "self",(char *) "rect", NULL
9385 };
9386
9387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9389 if (!SWIG_IsOK(res1)) {
9390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9391 }
9392 arg1 = reinterpret_cast< wxRegion * >(argp1);
9393 {
9394 arg2 = &temp2;
9395 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9396 }
9397 {
9398 PyThreadState* __tstate = wxPyBeginAllowThreads();
9399 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9400 wxPyEndAllowThreads(__tstate);
9401 if (PyErr_Occurred()) SWIG_fail;
9402 }
9403 {
9404 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9405 }
9406 return resultobj;
9407 fail:
9408 return NULL;
9409 }
9410
9411
9412 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9413 PyObject *resultobj = 0;
9414 wxRegion *arg1 = (wxRegion *) 0 ;
9415 wxRegion *arg2 = 0 ;
9416 bool result;
9417 void *argp1 = 0 ;
9418 int res1 = 0 ;
9419 void *argp2 = 0 ;
9420 int res2 = 0 ;
9421 PyObject * obj0 = 0 ;
9422 PyObject * obj1 = 0 ;
9423 char * kwnames[] = {
9424 (char *) "self",(char *) "region", NULL
9425 };
9426
9427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9429 if (!SWIG_IsOK(res1)) {
9430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9431 }
9432 arg1 = reinterpret_cast< wxRegion * >(argp1);
9433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9434 if (!SWIG_IsOK(res2)) {
9435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9436 }
9437 if (!argp2) {
9438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9439 }
9440 arg2 = reinterpret_cast< wxRegion * >(argp2);
9441 {
9442 PyThreadState* __tstate = wxPyBeginAllowThreads();
9443 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9444 wxPyEndAllowThreads(__tstate);
9445 if (PyErr_Occurred()) SWIG_fail;
9446 }
9447 {
9448 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9449 }
9450 return resultobj;
9451 fail:
9452 return NULL;
9453 }
9454
9455
9456 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9457 PyObject *resultobj = 0;
9458 wxRegion *arg1 = (wxRegion *) 0 ;
9459 SwigValueWrapper<wxBitmap > result;
9460 void *argp1 = 0 ;
9461 int res1 = 0 ;
9462 PyObject *swig_obj[1] ;
9463
9464 if (!args) SWIG_fail;
9465 swig_obj[0] = args;
9466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9467 if (!SWIG_IsOK(res1)) {
9468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9469 }
9470 arg1 = reinterpret_cast< wxRegion * >(argp1);
9471 {
9472 PyThreadState* __tstate = wxPyBeginAllowThreads();
9473 result = (arg1)->ConvertToBitmap();
9474 wxPyEndAllowThreads(__tstate);
9475 if (PyErr_Occurred()) SWIG_fail;
9476 }
9477 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9478 return resultobj;
9479 fail:
9480 return NULL;
9481 }
9482
9483
9484 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9485 PyObject *resultobj = 0;
9486 wxRegion *arg1 = (wxRegion *) 0 ;
9487 wxBitmap *arg2 = 0 ;
9488 bool result;
9489 void *argp1 = 0 ;
9490 int res1 = 0 ;
9491 void *argp2 = 0 ;
9492 int res2 = 0 ;
9493 PyObject * obj0 = 0 ;
9494 PyObject * obj1 = 0 ;
9495 char * kwnames[] = {
9496 (char *) "self",(char *) "bmp", NULL
9497 };
9498
9499 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9500 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9501 if (!SWIG_IsOK(res1)) {
9502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9503 }
9504 arg1 = reinterpret_cast< wxRegion * >(argp1);
9505 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9506 if (!SWIG_IsOK(res2)) {
9507 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9508 }
9509 if (!argp2) {
9510 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9511 }
9512 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9513 {
9514 PyThreadState* __tstate = wxPyBeginAllowThreads();
9515 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9516 wxPyEndAllowThreads(__tstate);
9517 if (PyErr_Occurred()) SWIG_fail;
9518 }
9519 {
9520 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9521 }
9522 return resultobj;
9523 fail:
9524 return NULL;
9525 }
9526
9527
9528 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9529 PyObject *resultobj = 0;
9530 wxRegion *arg1 = (wxRegion *) 0 ;
9531 wxBitmap *arg2 = 0 ;
9532 wxColour *arg3 = 0 ;
9533 int arg4 = (int) 0 ;
9534 bool result;
9535 void *argp1 = 0 ;
9536 int res1 = 0 ;
9537 void *argp2 = 0 ;
9538 int res2 = 0 ;
9539 wxColour temp3 ;
9540 int val4 ;
9541 int ecode4 = 0 ;
9542 PyObject * obj0 = 0 ;
9543 PyObject * obj1 = 0 ;
9544 PyObject * obj2 = 0 ;
9545 PyObject * obj3 = 0 ;
9546 char * kwnames[] = {
9547 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9548 };
9549
9550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9552 if (!SWIG_IsOK(res1)) {
9553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9554 }
9555 arg1 = reinterpret_cast< wxRegion * >(argp1);
9556 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9557 if (!SWIG_IsOK(res2)) {
9558 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9559 }
9560 if (!argp2) {
9561 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9562 }
9563 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9564 {
9565 arg3 = &temp3;
9566 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9567 }
9568 if (obj3) {
9569 ecode4 = SWIG_AsVal_int(obj3, &val4);
9570 if (!SWIG_IsOK(ecode4)) {
9571 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9572 }
9573 arg4 = static_cast< int >(val4);
9574 }
9575 {
9576 PyThreadState* __tstate = wxPyBeginAllowThreads();
9577 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9578 wxPyEndAllowThreads(__tstate);
9579 if (PyErr_Occurred()) SWIG_fail;
9580 }
9581 {
9582 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9583 }
9584 return resultobj;
9585 fail:
9586 return NULL;
9587 }
9588
9589
9590 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9591 PyObject *obj;
9592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9593 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9594 return SWIG_Py_Void();
9595 }
9596
9597 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9598 return SWIG_Python_InitShadowInstance(args);
9599 }
9600
9601 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9602 PyObject *resultobj = 0;
9603 wxRegion *arg1 = 0 ;
9604 wxRegionIterator *result = 0 ;
9605 void *argp1 = 0 ;
9606 int res1 = 0 ;
9607 PyObject * obj0 = 0 ;
9608 char * kwnames[] = {
9609 (char *) "region", NULL
9610 };
9611
9612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9613 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9614 if (!SWIG_IsOK(res1)) {
9615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9616 }
9617 if (!argp1) {
9618 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9619 }
9620 arg1 = reinterpret_cast< wxRegion * >(argp1);
9621 {
9622 if (!wxPyCheckForApp()) SWIG_fail;
9623 PyThreadState* __tstate = wxPyBeginAllowThreads();
9624 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9625 wxPyEndAllowThreads(__tstate);
9626 if (PyErr_Occurred()) SWIG_fail;
9627 }
9628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9629 return resultobj;
9630 fail:
9631 return NULL;
9632 }
9633
9634
9635 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9636 PyObject *resultobj = 0;
9637 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9638 void *argp1 = 0 ;
9639 int res1 = 0 ;
9640 PyObject *swig_obj[1] ;
9641
9642 if (!args) SWIG_fail;
9643 swig_obj[0] = args;
9644 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9645 if (!SWIG_IsOK(res1)) {
9646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9647 }
9648 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9649 {
9650 PyThreadState* __tstate = wxPyBeginAllowThreads();
9651 delete arg1;
9652
9653 wxPyEndAllowThreads(__tstate);
9654 if (PyErr_Occurred()) SWIG_fail;
9655 }
9656 resultobj = SWIG_Py_Void();
9657 return resultobj;
9658 fail:
9659 return NULL;
9660 }
9661
9662
9663 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9664 PyObject *resultobj = 0;
9665 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9666 int result;
9667 void *argp1 = 0 ;
9668 int res1 = 0 ;
9669 PyObject *swig_obj[1] ;
9670
9671 if (!args) SWIG_fail;
9672 swig_obj[0] = args;
9673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9674 if (!SWIG_IsOK(res1)) {
9675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9676 }
9677 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9678 {
9679 PyThreadState* __tstate = wxPyBeginAllowThreads();
9680 result = (int)(arg1)->GetX();
9681 wxPyEndAllowThreads(__tstate);
9682 if (PyErr_Occurred()) SWIG_fail;
9683 }
9684 resultobj = SWIG_From_int(static_cast< int >(result));
9685 return resultobj;
9686 fail:
9687 return NULL;
9688 }
9689
9690
9691 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9692 PyObject *resultobj = 0;
9693 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9694 int result;
9695 void *argp1 = 0 ;
9696 int res1 = 0 ;
9697 PyObject *swig_obj[1] ;
9698
9699 if (!args) SWIG_fail;
9700 swig_obj[0] = args;
9701 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9702 if (!SWIG_IsOK(res1)) {
9703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9704 }
9705 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9706 {
9707 PyThreadState* __tstate = wxPyBeginAllowThreads();
9708 result = (int)(arg1)->GetY();
9709 wxPyEndAllowThreads(__tstate);
9710 if (PyErr_Occurred()) SWIG_fail;
9711 }
9712 resultobj = SWIG_From_int(static_cast< int >(result));
9713 return resultobj;
9714 fail:
9715 return NULL;
9716 }
9717
9718
9719 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9720 PyObject *resultobj = 0;
9721 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9722 int result;
9723 void *argp1 = 0 ;
9724 int res1 = 0 ;
9725 PyObject *swig_obj[1] ;
9726
9727 if (!args) SWIG_fail;
9728 swig_obj[0] = args;
9729 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9730 if (!SWIG_IsOK(res1)) {
9731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9732 }
9733 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9734 {
9735 PyThreadState* __tstate = wxPyBeginAllowThreads();
9736 result = (int)(arg1)->GetW();
9737 wxPyEndAllowThreads(__tstate);
9738 if (PyErr_Occurred()) SWIG_fail;
9739 }
9740 resultobj = SWIG_From_int(static_cast< int >(result));
9741 return resultobj;
9742 fail:
9743 return NULL;
9744 }
9745
9746
9747 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9748 PyObject *resultobj = 0;
9749 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9750 int result;
9751 void *argp1 = 0 ;
9752 int res1 = 0 ;
9753 PyObject *swig_obj[1] ;
9754
9755 if (!args) SWIG_fail;
9756 swig_obj[0] = args;
9757 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9758 if (!SWIG_IsOK(res1)) {
9759 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9760 }
9761 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9762 {
9763 PyThreadState* __tstate = wxPyBeginAllowThreads();
9764 result = (int)(arg1)->GetWidth();
9765 wxPyEndAllowThreads(__tstate);
9766 if (PyErr_Occurred()) SWIG_fail;
9767 }
9768 resultobj = SWIG_From_int(static_cast< int >(result));
9769 return resultobj;
9770 fail:
9771 return NULL;
9772 }
9773
9774
9775 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9776 PyObject *resultobj = 0;
9777 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9778 int result;
9779 void *argp1 = 0 ;
9780 int res1 = 0 ;
9781 PyObject *swig_obj[1] ;
9782
9783 if (!args) SWIG_fail;
9784 swig_obj[0] = args;
9785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9786 if (!SWIG_IsOK(res1)) {
9787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9788 }
9789 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9790 {
9791 PyThreadState* __tstate = wxPyBeginAllowThreads();
9792 result = (int)(arg1)->GetH();
9793 wxPyEndAllowThreads(__tstate);
9794 if (PyErr_Occurred()) SWIG_fail;
9795 }
9796 resultobj = SWIG_From_int(static_cast< int >(result));
9797 return resultobj;
9798 fail:
9799 return NULL;
9800 }
9801
9802
9803 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9804 PyObject *resultobj = 0;
9805 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9806 int result;
9807 void *argp1 = 0 ;
9808 int res1 = 0 ;
9809 PyObject *swig_obj[1] ;
9810
9811 if (!args) SWIG_fail;
9812 swig_obj[0] = args;
9813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9814 if (!SWIG_IsOK(res1)) {
9815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9816 }
9817 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 result = (int)(arg1)->GetHeight();
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_From_int(static_cast< int >(result));
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9832 PyObject *resultobj = 0;
9833 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9834 wxRect result;
9835 void *argp1 = 0 ;
9836 int res1 = 0 ;
9837 PyObject *swig_obj[1] ;
9838
9839 if (!args) SWIG_fail;
9840 swig_obj[0] = args;
9841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9842 if (!SWIG_IsOK(res1)) {
9843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9844 }
9845 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9846 {
9847 PyThreadState* __tstate = wxPyBeginAllowThreads();
9848 result = (arg1)->GetRect();
9849 wxPyEndAllowThreads(__tstate);
9850 if (PyErr_Occurred()) SWIG_fail;
9851 }
9852 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9853 return resultobj;
9854 fail:
9855 return NULL;
9856 }
9857
9858
9859 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9860 PyObject *resultobj = 0;
9861 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9862 bool result;
9863 void *argp1 = 0 ;
9864 int res1 = 0 ;
9865 PyObject *swig_obj[1] ;
9866
9867 if (!args) SWIG_fail;
9868 swig_obj[0] = args;
9869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9870 if (!SWIG_IsOK(res1)) {
9871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9872 }
9873 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9874 {
9875 PyThreadState* __tstate = wxPyBeginAllowThreads();
9876 result = (bool)(arg1)->HaveRects();
9877 wxPyEndAllowThreads(__tstate);
9878 if (PyErr_Occurred()) SWIG_fail;
9879 }
9880 {
9881 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9882 }
9883 return resultobj;
9884 fail:
9885 return NULL;
9886 }
9887
9888
9889 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9890 PyObject *resultobj = 0;
9891 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9892 void *argp1 = 0 ;
9893 int res1 = 0 ;
9894 PyObject *swig_obj[1] ;
9895
9896 if (!args) SWIG_fail;
9897 swig_obj[0] = args;
9898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9899 if (!SWIG_IsOK(res1)) {
9900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9901 }
9902 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9903 {
9904 PyThreadState* __tstate = wxPyBeginAllowThreads();
9905 (arg1)->Reset();
9906 wxPyEndAllowThreads(__tstate);
9907 if (PyErr_Occurred()) SWIG_fail;
9908 }
9909 resultobj = SWIG_Py_Void();
9910 return resultobj;
9911 fail:
9912 return NULL;
9913 }
9914
9915
9916 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9917 PyObject *resultobj = 0;
9918 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9919 void *argp1 = 0 ;
9920 int res1 = 0 ;
9921 PyObject *swig_obj[1] ;
9922
9923 if (!args) SWIG_fail;
9924 swig_obj[0] = args;
9925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9926 if (!SWIG_IsOK(res1)) {
9927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9928 }
9929 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9930 {
9931 PyThreadState* __tstate = wxPyBeginAllowThreads();
9932 wxRegionIterator_Next(arg1);
9933 wxPyEndAllowThreads(__tstate);
9934 if (PyErr_Occurred()) SWIG_fail;
9935 }
9936 resultobj = SWIG_Py_Void();
9937 return resultobj;
9938 fail:
9939 return NULL;
9940 }
9941
9942
9943 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9944 PyObject *resultobj = 0;
9945 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9946 bool result;
9947 void *argp1 = 0 ;
9948 int res1 = 0 ;
9949 PyObject *swig_obj[1] ;
9950
9951 if (!args) SWIG_fail;
9952 swig_obj[0] = args;
9953 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9954 if (!SWIG_IsOK(res1)) {
9955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9956 }
9957 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9958 {
9959 PyThreadState* __tstate = wxPyBeginAllowThreads();
9960 result = (bool)wxRegionIterator___nonzero__(arg1);
9961 wxPyEndAllowThreads(__tstate);
9962 if (PyErr_Occurred()) SWIG_fail;
9963 }
9964 {
9965 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9966 }
9967 return resultobj;
9968 fail:
9969 return NULL;
9970 }
9971
9972
9973 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9974 PyObject *obj;
9975 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9976 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9977 return SWIG_Py_Void();
9978 }
9979
9980 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9981 return SWIG_Python_InitShadowInstance(args);
9982 }
9983
9984 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9985 PyObject *resultobj = 0;
9986 wxNativeFontInfo *result = 0 ;
9987
9988 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9989 {
9990 PyThreadState* __tstate = wxPyBeginAllowThreads();
9991 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9992 wxPyEndAllowThreads(__tstate);
9993 if (PyErr_Occurred()) SWIG_fail;
9994 }
9995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9996 return resultobj;
9997 fail:
9998 return NULL;
9999 }
10000
10001
10002 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10003 PyObject *resultobj = 0;
10004 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10005 void *argp1 = 0 ;
10006 int res1 = 0 ;
10007 PyObject *swig_obj[1] ;
10008
10009 if (!args) SWIG_fail;
10010 swig_obj[0] = args;
10011 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
10012 if (!SWIG_IsOK(res1)) {
10013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10014 }
10015 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10016 {
10017 PyThreadState* __tstate = wxPyBeginAllowThreads();
10018 delete arg1;
10019
10020 wxPyEndAllowThreads(__tstate);
10021 if (PyErr_Occurred()) SWIG_fail;
10022 }
10023 resultobj = SWIG_Py_Void();
10024 return resultobj;
10025 fail:
10026 return NULL;
10027 }
10028
10029
10030 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10031 PyObject *resultobj = 0;
10032 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10033 void *argp1 = 0 ;
10034 int res1 = 0 ;
10035 PyObject *swig_obj[1] ;
10036
10037 if (!args) SWIG_fail;
10038 swig_obj[0] = args;
10039 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10040 if (!SWIG_IsOK(res1)) {
10041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10042 }
10043 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10044 {
10045 PyThreadState* __tstate = wxPyBeginAllowThreads();
10046 (arg1)->Init();
10047 wxPyEndAllowThreads(__tstate);
10048 if (PyErr_Occurred()) SWIG_fail;
10049 }
10050 resultobj = SWIG_Py_Void();
10051 return resultobj;
10052 fail:
10053 return NULL;
10054 }
10055
10056
10057 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10058 PyObject *resultobj = 0;
10059 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10060 wxFont *arg2 = 0 ;
10061 void *argp1 = 0 ;
10062 int res1 = 0 ;
10063 void *argp2 = 0 ;
10064 int res2 = 0 ;
10065 PyObject * obj0 = 0 ;
10066 PyObject * obj1 = 0 ;
10067 char * kwnames[] = {
10068 (char *) "self",(char *) "font", NULL
10069 };
10070
10071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10073 if (!SWIG_IsOK(res1)) {
10074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10075 }
10076 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10078 if (!SWIG_IsOK(res2)) {
10079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10080 }
10081 if (!argp2) {
10082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10083 }
10084 arg2 = reinterpret_cast< wxFont * >(argp2);
10085 {
10086 PyThreadState* __tstate = wxPyBeginAllowThreads();
10087 (arg1)->InitFromFont((wxFont const &)*arg2);
10088 wxPyEndAllowThreads(__tstate);
10089 if (PyErr_Occurred()) SWIG_fail;
10090 }
10091 resultobj = SWIG_Py_Void();
10092 return resultobj;
10093 fail:
10094 return NULL;
10095 }
10096
10097
10098 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10099 PyObject *resultobj = 0;
10100 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10101 int result;
10102 void *argp1 = 0 ;
10103 int res1 = 0 ;
10104 PyObject *swig_obj[1] ;
10105
10106 if (!args) SWIG_fail;
10107 swig_obj[0] = args;
10108 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10109 if (!SWIG_IsOK(res1)) {
10110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10111 }
10112 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10113 {
10114 PyThreadState* __tstate = wxPyBeginAllowThreads();
10115 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10116 wxPyEndAllowThreads(__tstate);
10117 if (PyErr_Occurred()) SWIG_fail;
10118 }
10119 resultobj = SWIG_From_int(static_cast< int >(result));
10120 return resultobj;
10121 fail:
10122 return NULL;
10123 }
10124
10125
10126 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10127 PyObject *resultobj = 0;
10128 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10129 wxSize result;
10130 void *argp1 = 0 ;
10131 int res1 = 0 ;
10132 PyObject *swig_obj[1] ;
10133
10134 if (!args) SWIG_fail;
10135 swig_obj[0] = args;
10136 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10137 if (!SWIG_IsOK(res1)) {
10138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10139 }
10140 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10141 {
10142 PyThreadState* __tstate = wxPyBeginAllowThreads();
10143 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10144 wxPyEndAllowThreads(__tstate);
10145 if (PyErr_Occurred()) SWIG_fail;
10146 }
10147 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10148 return resultobj;
10149 fail:
10150 return NULL;
10151 }
10152
10153
10154 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10155 PyObject *resultobj = 0;
10156 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10157 wxFontStyle result;
10158 void *argp1 = 0 ;
10159 int res1 = 0 ;
10160 PyObject *swig_obj[1] ;
10161
10162 if (!args) SWIG_fail;
10163 swig_obj[0] = args;
10164 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10165 if (!SWIG_IsOK(res1)) {
10166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10167 }
10168 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10169 {
10170 PyThreadState* __tstate = wxPyBeginAllowThreads();
10171 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10172 wxPyEndAllowThreads(__tstate);
10173 if (PyErr_Occurred()) SWIG_fail;
10174 }
10175 resultobj = SWIG_From_int(static_cast< int >(result));
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10185 wxFontWeight result;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 PyObject *swig_obj[1] ;
10189
10190 if (!args) SWIG_fail;
10191 swig_obj[0] = args;
10192 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10193 if (!SWIG_IsOK(res1)) {
10194 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10195 }
10196 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10197 {
10198 PyThreadState* __tstate = wxPyBeginAllowThreads();
10199 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10200 wxPyEndAllowThreads(__tstate);
10201 if (PyErr_Occurred()) SWIG_fail;
10202 }
10203 resultobj = SWIG_From_int(static_cast< int >(result));
10204 return resultobj;
10205 fail:
10206 return NULL;
10207 }
10208
10209
10210 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10211 PyObject *resultobj = 0;
10212 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10213 bool result;
10214 void *argp1 = 0 ;
10215 int res1 = 0 ;
10216 PyObject *swig_obj[1] ;
10217
10218 if (!args) SWIG_fail;
10219 swig_obj[0] = args;
10220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10221 if (!SWIG_IsOK(res1)) {
10222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10223 }
10224 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10225 {
10226 PyThreadState* __tstate = wxPyBeginAllowThreads();
10227 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10228 wxPyEndAllowThreads(__tstate);
10229 if (PyErr_Occurred()) SWIG_fail;
10230 }
10231 {
10232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10233 }
10234 return resultobj;
10235 fail:
10236 return NULL;
10237 }
10238
10239
10240 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10241 PyObject *resultobj = 0;
10242 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10243 wxString result;
10244 void *argp1 = 0 ;
10245 int res1 = 0 ;
10246 PyObject *swig_obj[1] ;
10247
10248 if (!args) SWIG_fail;
10249 swig_obj[0] = args;
10250 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10251 if (!SWIG_IsOK(res1)) {
10252 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10253 }
10254 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10255 {
10256 PyThreadState* __tstate = wxPyBeginAllowThreads();
10257 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10258 wxPyEndAllowThreads(__tstate);
10259 if (PyErr_Occurred()) SWIG_fail;
10260 }
10261 {
10262 #if wxUSE_UNICODE
10263 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10264 #else
10265 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10266 #endif
10267 }
10268 return resultobj;
10269 fail:
10270 return NULL;
10271 }
10272
10273
10274 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10275 PyObject *resultobj = 0;
10276 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10277 wxFontFamily result;
10278 void *argp1 = 0 ;
10279 int res1 = 0 ;
10280 PyObject *swig_obj[1] ;
10281
10282 if (!args) SWIG_fail;
10283 swig_obj[0] = args;
10284 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10285 if (!SWIG_IsOK(res1)) {
10286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10287 }
10288 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10289 {
10290 PyThreadState* __tstate = wxPyBeginAllowThreads();
10291 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10292 wxPyEndAllowThreads(__tstate);
10293 if (PyErr_Occurred()) SWIG_fail;
10294 }
10295 resultobj = SWIG_From_int(static_cast< int >(result));
10296 return resultobj;
10297 fail:
10298 return NULL;
10299 }
10300
10301
10302 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10303 PyObject *resultobj = 0;
10304 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10305 wxFontEncoding result;
10306 void *argp1 = 0 ;
10307 int res1 = 0 ;
10308 PyObject *swig_obj[1] ;
10309
10310 if (!args) SWIG_fail;
10311 swig_obj[0] = args;
10312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10313 if (!SWIG_IsOK(res1)) {
10314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10315 }
10316 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10317 {
10318 PyThreadState* __tstate = wxPyBeginAllowThreads();
10319 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10320 wxPyEndAllowThreads(__tstate);
10321 if (PyErr_Occurred()) SWIG_fail;
10322 }
10323 resultobj = SWIG_From_int(static_cast< int >(result));
10324 return resultobj;
10325 fail:
10326 return NULL;
10327 }
10328
10329
10330 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10331 PyObject *resultobj = 0;
10332 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10333 int arg2 ;
10334 void *argp1 = 0 ;
10335 int res1 = 0 ;
10336 int val2 ;
10337 int ecode2 = 0 ;
10338 PyObject * obj0 = 0 ;
10339 PyObject * obj1 = 0 ;
10340 char * kwnames[] = {
10341 (char *) "self",(char *) "pointsize", NULL
10342 };
10343
10344 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10345 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10346 if (!SWIG_IsOK(res1)) {
10347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10348 }
10349 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10350 ecode2 = SWIG_AsVal_int(obj1, &val2);
10351 if (!SWIG_IsOK(ecode2)) {
10352 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10353 }
10354 arg2 = static_cast< int >(val2);
10355 {
10356 PyThreadState* __tstate = wxPyBeginAllowThreads();
10357 (arg1)->SetPointSize(arg2);
10358 wxPyEndAllowThreads(__tstate);
10359 if (PyErr_Occurred()) SWIG_fail;
10360 }
10361 resultobj = SWIG_Py_Void();
10362 return resultobj;
10363 fail:
10364 return NULL;
10365 }
10366
10367
10368 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10369 PyObject *resultobj = 0;
10370 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10371 wxSize *arg2 = 0 ;
10372 void *argp1 = 0 ;
10373 int res1 = 0 ;
10374 wxSize temp2 ;
10375 PyObject * obj0 = 0 ;
10376 PyObject * obj1 = 0 ;
10377 char * kwnames[] = {
10378 (char *) "self",(char *) "pixelSize", NULL
10379 };
10380
10381 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10382 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10383 if (!SWIG_IsOK(res1)) {
10384 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10385 }
10386 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10387 {
10388 arg2 = &temp2;
10389 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10390 }
10391 {
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 (arg1)->SetPixelSize((wxSize const &)*arg2);
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 resultobj = SWIG_Py_Void();
10398 return resultobj;
10399 fail:
10400 return NULL;
10401 }
10402
10403
10404 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj = 0;
10406 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10407 wxFontStyle arg2 ;
10408 void *argp1 = 0 ;
10409 int res1 = 0 ;
10410 int val2 ;
10411 int ecode2 = 0 ;
10412 PyObject * obj0 = 0 ;
10413 PyObject * obj1 = 0 ;
10414 char * kwnames[] = {
10415 (char *) "self",(char *) "style", NULL
10416 };
10417
10418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10420 if (!SWIG_IsOK(res1)) {
10421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10422 }
10423 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10424 ecode2 = SWIG_AsVal_int(obj1, &val2);
10425 if (!SWIG_IsOK(ecode2)) {
10426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10427 }
10428 arg2 = static_cast< wxFontStyle >(val2);
10429 {
10430 PyThreadState* __tstate = wxPyBeginAllowThreads();
10431 (arg1)->SetStyle(arg2);
10432 wxPyEndAllowThreads(__tstate);
10433 if (PyErr_Occurred()) SWIG_fail;
10434 }
10435 resultobj = SWIG_Py_Void();
10436 return resultobj;
10437 fail:
10438 return NULL;
10439 }
10440
10441
10442 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10443 PyObject *resultobj = 0;
10444 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10445 wxFontWeight arg2 ;
10446 void *argp1 = 0 ;
10447 int res1 = 0 ;
10448 int val2 ;
10449 int ecode2 = 0 ;
10450 PyObject * obj0 = 0 ;
10451 PyObject * obj1 = 0 ;
10452 char * kwnames[] = {
10453 (char *) "self",(char *) "weight", NULL
10454 };
10455
10456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10458 if (!SWIG_IsOK(res1)) {
10459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10460 }
10461 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10462 ecode2 = SWIG_AsVal_int(obj1, &val2);
10463 if (!SWIG_IsOK(ecode2)) {
10464 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10465 }
10466 arg2 = static_cast< wxFontWeight >(val2);
10467 {
10468 PyThreadState* __tstate = wxPyBeginAllowThreads();
10469 (arg1)->SetWeight(arg2);
10470 wxPyEndAllowThreads(__tstate);
10471 if (PyErr_Occurred()) SWIG_fail;
10472 }
10473 resultobj = SWIG_Py_Void();
10474 return resultobj;
10475 fail:
10476 return NULL;
10477 }
10478
10479
10480 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10481 PyObject *resultobj = 0;
10482 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10483 bool arg2 ;
10484 void *argp1 = 0 ;
10485 int res1 = 0 ;
10486 bool val2 ;
10487 int ecode2 = 0 ;
10488 PyObject * obj0 = 0 ;
10489 PyObject * obj1 = 0 ;
10490 char * kwnames[] = {
10491 (char *) "self",(char *) "underlined", NULL
10492 };
10493
10494 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10495 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10496 if (!SWIG_IsOK(res1)) {
10497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10498 }
10499 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10500 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10501 if (!SWIG_IsOK(ecode2)) {
10502 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10503 }
10504 arg2 = static_cast< bool >(val2);
10505 {
10506 PyThreadState* __tstate = wxPyBeginAllowThreads();
10507 (arg1)->SetUnderlined(arg2);
10508 wxPyEndAllowThreads(__tstate);
10509 if (PyErr_Occurred()) SWIG_fail;
10510 }
10511 resultobj = SWIG_Py_Void();
10512 return resultobj;
10513 fail:
10514 return NULL;
10515 }
10516
10517
10518 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10519 PyObject *resultobj = 0;
10520 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10521 wxString arg2 ;
10522 bool result;
10523 void *argp1 = 0 ;
10524 int res1 = 0 ;
10525 PyObject * obj0 = 0 ;
10526 PyObject * obj1 = 0 ;
10527 char * kwnames[] = {
10528 (char *) "self",(char *) "facename", NULL
10529 };
10530
10531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10533 if (!SWIG_IsOK(res1)) {
10534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10535 }
10536 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10537 {
10538 wxString* sptr = wxString_in_helper(obj1);
10539 if (sptr == NULL) SWIG_fail;
10540 arg2 = *sptr;
10541 delete sptr;
10542 }
10543 {
10544 PyThreadState* __tstate = wxPyBeginAllowThreads();
10545 result = (bool)(arg1)->SetFaceName(arg2);
10546 wxPyEndAllowThreads(__tstate);
10547 if (PyErr_Occurred()) SWIG_fail;
10548 }
10549 {
10550 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10551 }
10552 return resultobj;
10553 fail:
10554 return NULL;
10555 }
10556
10557
10558 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10559 PyObject *resultobj = 0;
10560 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10561 wxFontFamily arg2 ;
10562 void *argp1 = 0 ;
10563 int res1 = 0 ;
10564 int val2 ;
10565 int ecode2 = 0 ;
10566 PyObject * obj0 = 0 ;
10567 PyObject * obj1 = 0 ;
10568 char * kwnames[] = {
10569 (char *) "self",(char *) "family", NULL
10570 };
10571
10572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10574 if (!SWIG_IsOK(res1)) {
10575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10576 }
10577 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10578 ecode2 = SWIG_AsVal_int(obj1, &val2);
10579 if (!SWIG_IsOK(ecode2)) {
10580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10581 }
10582 arg2 = static_cast< wxFontFamily >(val2);
10583 {
10584 PyThreadState* __tstate = wxPyBeginAllowThreads();
10585 (arg1)->SetFamily(arg2);
10586 wxPyEndAllowThreads(__tstate);
10587 if (PyErr_Occurred()) SWIG_fail;
10588 }
10589 resultobj = SWIG_Py_Void();
10590 return resultobj;
10591 fail:
10592 return NULL;
10593 }
10594
10595
10596 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10597 PyObject *resultobj = 0;
10598 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10599 wxFontEncoding arg2 ;
10600 void *argp1 = 0 ;
10601 int res1 = 0 ;
10602 int val2 ;
10603 int ecode2 = 0 ;
10604 PyObject * obj0 = 0 ;
10605 PyObject * obj1 = 0 ;
10606 char * kwnames[] = {
10607 (char *) "self",(char *) "encoding", NULL
10608 };
10609
10610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10612 if (!SWIG_IsOK(res1)) {
10613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10614 }
10615 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10616 ecode2 = SWIG_AsVal_int(obj1, &val2);
10617 if (!SWIG_IsOK(ecode2)) {
10618 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10619 }
10620 arg2 = static_cast< wxFontEncoding >(val2);
10621 {
10622 PyThreadState* __tstate = wxPyBeginAllowThreads();
10623 (arg1)->SetEncoding(arg2);
10624 wxPyEndAllowThreads(__tstate);
10625 if (PyErr_Occurred()) SWIG_fail;
10626 }
10627 resultobj = SWIG_Py_Void();
10628 return resultobj;
10629 fail:
10630 return NULL;
10631 }
10632
10633
10634 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10635 PyObject *resultobj = 0;
10636 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10637 wxString *arg2 = 0 ;
10638 bool result;
10639 void *argp1 = 0 ;
10640 int res1 = 0 ;
10641 bool temp2 = false ;
10642 PyObject * obj0 = 0 ;
10643 PyObject * obj1 = 0 ;
10644 char * kwnames[] = {
10645 (char *) "self",(char *) "s", NULL
10646 };
10647
10648 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10649 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10650 if (!SWIG_IsOK(res1)) {
10651 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10652 }
10653 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10654 {
10655 arg2 = wxString_in_helper(obj1);
10656 if (arg2 == NULL) SWIG_fail;
10657 temp2 = true;
10658 }
10659 {
10660 PyThreadState* __tstate = wxPyBeginAllowThreads();
10661 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10662 wxPyEndAllowThreads(__tstate);
10663 if (PyErr_Occurred()) SWIG_fail;
10664 }
10665 {
10666 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10667 }
10668 {
10669 if (temp2)
10670 delete arg2;
10671 }
10672 return resultobj;
10673 fail:
10674 {
10675 if (temp2)
10676 delete arg2;
10677 }
10678 return NULL;
10679 }
10680
10681
10682 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10683 PyObject *resultobj = 0;
10684 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10685 wxString result;
10686 void *argp1 = 0 ;
10687 int res1 = 0 ;
10688 PyObject *swig_obj[1] ;
10689
10690 if (!args) SWIG_fail;
10691 swig_obj[0] = args;
10692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10693 if (!SWIG_IsOK(res1)) {
10694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10695 }
10696 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10697 {
10698 PyThreadState* __tstate = wxPyBeginAllowThreads();
10699 result = ((wxNativeFontInfo const *)arg1)->ToString();
10700 wxPyEndAllowThreads(__tstate);
10701 if (PyErr_Occurred()) SWIG_fail;
10702 }
10703 {
10704 #if wxUSE_UNICODE
10705 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10706 #else
10707 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10708 #endif
10709 }
10710 return resultobj;
10711 fail:
10712 return NULL;
10713 }
10714
10715
10716 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10717 PyObject *resultobj = 0;
10718 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10719 wxString result;
10720 void *argp1 = 0 ;
10721 int res1 = 0 ;
10722 PyObject *swig_obj[1] ;
10723
10724 if (!args) SWIG_fail;
10725 swig_obj[0] = args;
10726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10727 if (!SWIG_IsOK(res1)) {
10728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10729 }
10730 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10731 {
10732 PyThreadState* __tstate = wxPyBeginAllowThreads();
10733 result = wxNativeFontInfo___str__(arg1);
10734 wxPyEndAllowThreads(__tstate);
10735 if (PyErr_Occurred()) SWIG_fail;
10736 }
10737 {
10738 #if wxUSE_UNICODE
10739 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10740 #else
10741 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10742 #endif
10743 }
10744 return resultobj;
10745 fail:
10746 return NULL;
10747 }
10748
10749
10750 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10751 PyObject *resultobj = 0;
10752 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10753 wxString *arg2 = 0 ;
10754 bool result;
10755 void *argp1 = 0 ;
10756 int res1 = 0 ;
10757 bool temp2 = false ;
10758 PyObject * obj0 = 0 ;
10759 PyObject * obj1 = 0 ;
10760 char * kwnames[] = {
10761 (char *) "self",(char *) "s", NULL
10762 };
10763
10764 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10765 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10766 if (!SWIG_IsOK(res1)) {
10767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10768 }
10769 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10770 {
10771 arg2 = wxString_in_helper(obj1);
10772 if (arg2 == NULL) SWIG_fail;
10773 temp2 = true;
10774 }
10775 {
10776 PyThreadState* __tstate = wxPyBeginAllowThreads();
10777 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10778 wxPyEndAllowThreads(__tstate);
10779 if (PyErr_Occurred()) SWIG_fail;
10780 }
10781 {
10782 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10783 }
10784 {
10785 if (temp2)
10786 delete arg2;
10787 }
10788 return resultobj;
10789 fail:
10790 {
10791 if (temp2)
10792 delete arg2;
10793 }
10794 return NULL;
10795 }
10796
10797
10798 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10799 PyObject *resultobj = 0;
10800 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10801 wxString result;
10802 void *argp1 = 0 ;
10803 int res1 = 0 ;
10804 PyObject *swig_obj[1] ;
10805
10806 if (!args) SWIG_fail;
10807 swig_obj[0] = args;
10808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10809 if (!SWIG_IsOK(res1)) {
10810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10811 }
10812 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10813 {
10814 PyThreadState* __tstate = wxPyBeginAllowThreads();
10815 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10816 wxPyEndAllowThreads(__tstate);
10817 if (PyErr_Occurred()) SWIG_fail;
10818 }
10819 {
10820 #if wxUSE_UNICODE
10821 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10822 #else
10823 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10824 #endif
10825 }
10826 return resultobj;
10827 fail:
10828 return NULL;
10829 }
10830
10831
10832 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10833 PyObject *obj;
10834 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10835 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10836 return SWIG_Py_Void();
10837 }
10838
10839 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10840 return SWIG_Python_InitShadowInstance(args);
10841 }
10842
10843 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10844 PyObject *resultobj = 0;
10845 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10846 wxString *arg2 = (wxString *) 0 ;
10847 void *argp1 = 0 ;
10848 int res1 = 0 ;
10849 bool temp2 = false ;
10850 PyObject *swig_obj[2] ;
10851
10852 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10853 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10854 if (!SWIG_IsOK(res1)) {
10855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10856 }
10857 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10858 {
10859 arg2 = wxString_in_helper(swig_obj[1]);
10860 if (arg2 == NULL) SWIG_fail;
10861 temp2 = true;
10862 }
10863 if (arg1) (arg1)->facename = *arg2;
10864
10865 resultobj = SWIG_Py_Void();
10866 {
10867 if (temp2)
10868 delete arg2;
10869 }
10870 return resultobj;
10871 fail:
10872 {
10873 if (temp2)
10874 delete arg2;
10875 }
10876 return NULL;
10877 }
10878
10879
10880 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10881 PyObject *resultobj = 0;
10882 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10883 wxString *result = 0 ;
10884 void *argp1 = 0 ;
10885 int res1 = 0 ;
10886 PyObject *swig_obj[1] ;
10887
10888 if (!args) SWIG_fail;
10889 swig_obj[0] = args;
10890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10891 if (!SWIG_IsOK(res1)) {
10892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10893 }
10894 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10895 result = (wxString *)& ((arg1)->facename);
10896 {
10897 #if wxUSE_UNICODE
10898 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10899 #else
10900 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10901 #endif
10902 }
10903 return resultobj;
10904 fail:
10905 return NULL;
10906 }
10907
10908
10909 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10910 PyObject *resultobj = 0;
10911 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10912 wxFontEncoding arg2 ;
10913 void *argp1 = 0 ;
10914 int res1 = 0 ;
10915 int val2 ;
10916 int ecode2 = 0 ;
10917 PyObject *swig_obj[2] ;
10918
10919 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10921 if (!SWIG_IsOK(res1)) {
10922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10923 }
10924 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10925 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10926 if (!SWIG_IsOK(ecode2)) {
10927 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10928 }
10929 arg2 = static_cast< wxFontEncoding >(val2);
10930 if (arg1) (arg1)->encoding = arg2;
10931
10932 resultobj = SWIG_Py_Void();
10933 return resultobj;
10934 fail:
10935 return NULL;
10936 }
10937
10938
10939 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10940 PyObject *resultobj = 0;
10941 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10942 wxFontEncoding result;
10943 void *argp1 = 0 ;
10944 int res1 = 0 ;
10945 PyObject *swig_obj[1] ;
10946
10947 if (!args) SWIG_fail;
10948 swig_obj[0] = args;
10949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10950 if (!SWIG_IsOK(res1)) {
10951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10952 }
10953 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10954 result = (wxFontEncoding) ((arg1)->encoding);
10955 resultobj = SWIG_From_int(static_cast< int >(result));
10956 return resultobj;
10957 fail:
10958 return NULL;
10959 }
10960
10961
10962 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10963 PyObject *resultobj = 0;
10964 wxNativeEncodingInfo *result = 0 ;
10965
10966 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10967 {
10968 PyThreadState* __tstate = wxPyBeginAllowThreads();
10969 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10970 wxPyEndAllowThreads(__tstate);
10971 if (PyErr_Occurred()) SWIG_fail;
10972 }
10973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10974 return resultobj;
10975 fail:
10976 return NULL;
10977 }
10978
10979
10980 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10981 PyObject *resultobj = 0;
10982 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10983 void *argp1 = 0 ;
10984 int res1 = 0 ;
10985 PyObject *swig_obj[1] ;
10986
10987 if (!args) SWIG_fail;
10988 swig_obj[0] = args;
10989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10990 if (!SWIG_IsOK(res1)) {
10991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10992 }
10993 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10994 {
10995 PyThreadState* __tstate = wxPyBeginAllowThreads();
10996 delete arg1;
10997
10998 wxPyEndAllowThreads(__tstate);
10999 if (PyErr_Occurred()) SWIG_fail;
11000 }
11001 resultobj = SWIG_Py_Void();
11002 return resultobj;
11003 fail:
11004 return NULL;
11005 }
11006
11007
11008 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11009 PyObject *resultobj = 0;
11010 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11011 wxString *arg2 = 0 ;
11012 bool result;
11013 void *argp1 = 0 ;
11014 int res1 = 0 ;
11015 bool temp2 = false ;
11016 PyObject * obj0 = 0 ;
11017 PyObject * obj1 = 0 ;
11018 char * kwnames[] = {
11019 (char *) "self",(char *) "s", NULL
11020 };
11021
11022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11024 if (!SWIG_IsOK(res1)) {
11025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11026 }
11027 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11028 {
11029 arg2 = wxString_in_helper(obj1);
11030 if (arg2 == NULL) SWIG_fail;
11031 temp2 = true;
11032 }
11033 {
11034 PyThreadState* __tstate = wxPyBeginAllowThreads();
11035 result = (bool)(arg1)->FromString((wxString const &)*arg2);
11036 wxPyEndAllowThreads(__tstate);
11037 if (PyErr_Occurred()) SWIG_fail;
11038 }
11039 {
11040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11041 }
11042 {
11043 if (temp2)
11044 delete arg2;
11045 }
11046 return resultobj;
11047 fail:
11048 {
11049 if (temp2)
11050 delete arg2;
11051 }
11052 return NULL;
11053 }
11054
11055
11056 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11057 PyObject *resultobj = 0;
11058 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11059 wxString result;
11060 void *argp1 = 0 ;
11061 int res1 = 0 ;
11062 PyObject *swig_obj[1] ;
11063
11064 if (!args) SWIG_fail;
11065 swig_obj[0] = args;
11066 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11067 if (!SWIG_IsOK(res1)) {
11068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11069 }
11070 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11071 {
11072 PyThreadState* __tstate = wxPyBeginAllowThreads();
11073 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11074 wxPyEndAllowThreads(__tstate);
11075 if (PyErr_Occurred()) SWIG_fail;
11076 }
11077 {
11078 #if wxUSE_UNICODE
11079 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11080 #else
11081 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11082 #endif
11083 }
11084 return resultobj;
11085 fail:
11086 return NULL;
11087 }
11088
11089
11090 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11091 PyObject *obj;
11092 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11093 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11094 return SWIG_Py_Void();
11095 }
11096
11097 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11098 return SWIG_Python_InitShadowInstance(args);
11099 }
11100
11101 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11102 PyObject *resultobj = 0;
11103 wxFontEncoding arg1 ;
11104 wxNativeEncodingInfo *result = 0 ;
11105 int val1 ;
11106 int ecode1 = 0 ;
11107 PyObject * obj0 = 0 ;
11108 char * kwnames[] = {
11109 (char *) "encoding", NULL
11110 };
11111
11112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11113 ecode1 = SWIG_AsVal_int(obj0, &val1);
11114 if (!SWIG_IsOK(ecode1)) {
11115 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11116 }
11117 arg1 = static_cast< wxFontEncoding >(val1);
11118 {
11119 PyThreadState* __tstate = wxPyBeginAllowThreads();
11120 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11121 wxPyEndAllowThreads(__tstate);
11122 if (PyErr_Occurred()) SWIG_fail;
11123 }
11124 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11125 return resultobj;
11126 fail:
11127 return NULL;
11128 }
11129
11130
11131 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11132 PyObject *resultobj = 0;
11133 wxNativeEncodingInfo *arg1 = 0 ;
11134 bool result;
11135 void *argp1 = 0 ;
11136 int res1 = 0 ;
11137 PyObject * obj0 = 0 ;
11138 char * kwnames[] = {
11139 (char *) "info", NULL
11140 };
11141
11142 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11143 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11144 if (!SWIG_IsOK(res1)) {
11145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11146 }
11147 if (!argp1) {
11148 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11149 }
11150 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11151 {
11152 PyThreadState* __tstate = wxPyBeginAllowThreads();
11153 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11154 wxPyEndAllowThreads(__tstate);
11155 if (PyErr_Occurred()) SWIG_fail;
11156 }
11157 {
11158 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11159 }
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11167 PyObject *resultobj = 0;
11168 wxFontMapper *result = 0 ;
11169
11170 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11171 {
11172 PyThreadState* __tstate = wxPyBeginAllowThreads();
11173 result = (wxFontMapper *)new wxFontMapper();
11174 wxPyEndAllowThreads(__tstate);
11175 if (PyErr_Occurred()) SWIG_fail;
11176 }
11177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11178 return resultobj;
11179 fail:
11180 return NULL;
11181 }
11182
11183
11184 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11185 PyObject *resultobj = 0;
11186 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11187 void *argp1 = 0 ;
11188 int res1 = 0 ;
11189 PyObject *swig_obj[1] ;
11190
11191 if (!args) SWIG_fail;
11192 swig_obj[0] = args;
11193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11194 if (!SWIG_IsOK(res1)) {
11195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11196 }
11197 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11198 {
11199 PyThreadState* __tstate = wxPyBeginAllowThreads();
11200 delete arg1;
11201
11202 wxPyEndAllowThreads(__tstate);
11203 if (PyErr_Occurred()) SWIG_fail;
11204 }
11205 resultobj = SWIG_Py_Void();
11206 return resultobj;
11207 fail:
11208 return NULL;
11209 }
11210
11211
11212 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11213 PyObject *resultobj = 0;
11214 wxFontMapper *result = 0 ;
11215
11216 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11217 {
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 result = (wxFontMapper *)wxFontMapper::Get();
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11224 return resultobj;
11225 fail:
11226 return NULL;
11227 }
11228
11229
11230 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11231 PyObject *resultobj = 0;
11232 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11233 wxFontMapper *result = 0 ;
11234 void *argp1 = 0 ;
11235 int res1 = 0 ;
11236 PyObject * obj0 = 0 ;
11237 char * kwnames[] = {
11238 (char *) "mapper", NULL
11239 };
11240
11241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11243 if (!SWIG_IsOK(res1)) {
11244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11245 }
11246 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11247 {
11248 PyThreadState* __tstate = wxPyBeginAllowThreads();
11249 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11250 wxPyEndAllowThreads(__tstate);
11251 if (PyErr_Occurred()) SWIG_fail;
11252 }
11253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11254 return resultobj;
11255 fail:
11256 return NULL;
11257 }
11258
11259
11260 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11261 PyObject *resultobj = 0;
11262 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11263 wxString *arg2 = 0 ;
11264 bool arg3 = (bool) true ;
11265 wxFontEncoding result;
11266 void *argp1 = 0 ;
11267 int res1 = 0 ;
11268 bool temp2 = false ;
11269 bool val3 ;
11270 int ecode3 = 0 ;
11271 PyObject * obj0 = 0 ;
11272 PyObject * obj1 = 0 ;
11273 PyObject * obj2 = 0 ;
11274 char * kwnames[] = {
11275 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11276 };
11277
11278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11280 if (!SWIG_IsOK(res1)) {
11281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11282 }
11283 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11284 {
11285 arg2 = wxString_in_helper(obj1);
11286 if (arg2 == NULL) SWIG_fail;
11287 temp2 = true;
11288 }
11289 if (obj2) {
11290 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11291 if (!SWIG_IsOK(ecode3)) {
11292 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11293 }
11294 arg3 = static_cast< bool >(val3);
11295 }
11296 {
11297 PyThreadState* __tstate = wxPyBeginAllowThreads();
11298 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11299 wxPyEndAllowThreads(__tstate);
11300 if (PyErr_Occurred()) SWIG_fail;
11301 }
11302 resultobj = SWIG_From_int(static_cast< int >(result));
11303 {
11304 if (temp2)
11305 delete arg2;
11306 }
11307 return resultobj;
11308 fail:
11309 {
11310 if (temp2)
11311 delete arg2;
11312 }
11313 return NULL;
11314 }
11315
11316
11317 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11318 PyObject *resultobj = 0;
11319 size_t result;
11320
11321 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11322 {
11323 PyThreadState* __tstate = wxPyBeginAllowThreads();
11324 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11325 wxPyEndAllowThreads(__tstate);
11326 if (PyErr_Occurred()) SWIG_fail;
11327 }
11328 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11329 return resultobj;
11330 fail:
11331 return NULL;
11332 }
11333
11334
11335 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11336 PyObject *resultobj = 0;
11337 size_t arg1 ;
11338 wxFontEncoding result;
11339 size_t val1 ;
11340 int ecode1 = 0 ;
11341 PyObject * obj0 = 0 ;
11342 char * kwnames[] = {
11343 (char *) "n", NULL
11344 };
11345
11346 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11347 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11348 if (!SWIG_IsOK(ecode1)) {
11349 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11350 }
11351 arg1 = static_cast< size_t >(val1);
11352 {
11353 PyThreadState* __tstate = wxPyBeginAllowThreads();
11354 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11355 wxPyEndAllowThreads(__tstate);
11356 if (PyErr_Occurred()) SWIG_fail;
11357 }
11358 resultobj = SWIG_From_int(static_cast< int >(result));
11359 return resultobj;
11360 fail:
11361 return NULL;
11362 }
11363
11364
11365 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11366 PyObject *resultobj = 0;
11367 wxFontEncoding arg1 ;
11368 wxString result;
11369 int val1 ;
11370 int ecode1 = 0 ;
11371 PyObject * obj0 = 0 ;
11372 char * kwnames[] = {
11373 (char *) "encoding", NULL
11374 };
11375
11376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11377 ecode1 = SWIG_AsVal_int(obj0, &val1);
11378 if (!SWIG_IsOK(ecode1)) {
11379 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11380 }
11381 arg1 = static_cast< wxFontEncoding >(val1);
11382 {
11383 PyThreadState* __tstate = wxPyBeginAllowThreads();
11384 result = wxFontMapper::GetEncodingName(arg1);
11385 wxPyEndAllowThreads(__tstate);
11386 if (PyErr_Occurred()) SWIG_fail;
11387 }
11388 {
11389 #if wxUSE_UNICODE
11390 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11391 #else
11392 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11393 #endif
11394 }
11395 return resultobj;
11396 fail:
11397 return NULL;
11398 }
11399
11400
11401 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11402 PyObject *resultobj = 0;
11403 wxFontEncoding arg1 ;
11404 wxString result;
11405 int val1 ;
11406 int ecode1 = 0 ;
11407 PyObject * obj0 = 0 ;
11408 char * kwnames[] = {
11409 (char *) "encoding", NULL
11410 };
11411
11412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11413 ecode1 = SWIG_AsVal_int(obj0, &val1);
11414 if (!SWIG_IsOK(ecode1)) {
11415 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11416 }
11417 arg1 = static_cast< wxFontEncoding >(val1);
11418 {
11419 PyThreadState* __tstate = wxPyBeginAllowThreads();
11420 result = wxFontMapper::GetEncodingDescription(arg1);
11421 wxPyEndAllowThreads(__tstate);
11422 if (PyErr_Occurred()) SWIG_fail;
11423 }
11424 {
11425 #if wxUSE_UNICODE
11426 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11427 #else
11428 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11429 #endif
11430 }
11431 return resultobj;
11432 fail:
11433 return NULL;
11434 }
11435
11436
11437 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11438 PyObject *resultobj = 0;
11439 wxString *arg1 = 0 ;
11440 wxFontEncoding result;
11441 bool temp1 = false ;
11442 PyObject * obj0 = 0 ;
11443 char * kwnames[] = {
11444 (char *) "name", NULL
11445 };
11446
11447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11448 {
11449 arg1 = wxString_in_helper(obj0);
11450 if (arg1 == NULL) SWIG_fail;
11451 temp1 = true;
11452 }
11453 {
11454 PyThreadState* __tstate = wxPyBeginAllowThreads();
11455 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11456 wxPyEndAllowThreads(__tstate);
11457 if (PyErr_Occurred()) SWIG_fail;
11458 }
11459 resultobj = SWIG_From_int(static_cast< int >(result));
11460 {
11461 if (temp1)
11462 delete arg1;
11463 }
11464 return resultobj;
11465 fail:
11466 {
11467 if (temp1)
11468 delete arg1;
11469 }
11470 return NULL;
11471 }
11472
11473
11474 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11475 PyObject *resultobj = 0;
11476 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11477 wxString *arg2 = 0 ;
11478 void *argp1 = 0 ;
11479 int res1 = 0 ;
11480 bool temp2 = false ;
11481 PyObject * obj0 = 0 ;
11482 PyObject * obj1 = 0 ;
11483 char * kwnames[] = {
11484 (char *) "self",(char *) "prefix", NULL
11485 };
11486
11487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11489 if (!SWIG_IsOK(res1)) {
11490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11491 }
11492 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11493 {
11494 arg2 = wxString_in_helper(obj1);
11495 if (arg2 == NULL) SWIG_fail;
11496 temp2 = true;
11497 }
11498 {
11499 PyThreadState* __tstate = wxPyBeginAllowThreads();
11500 (arg1)->SetConfigPath((wxString const &)*arg2);
11501 wxPyEndAllowThreads(__tstate);
11502 if (PyErr_Occurred()) SWIG_fail;
11503 }
11504 resultobj = SWIG_Py_Void();
11505 {
11506 if (temp2)
11507 delete arg2;
11508 }
11509 return resultobj;
11510 fail:
11511 {
11512 if (temp2)
11513 delete arg2;
11514 }
11515 return NULL;
11516 }
11517
11518
11519 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11520 PyObject *resultobj = 0;
11521 wxString result;
11522
11523 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11524 {
11525 PyThreadState* __tstate = wxPyBeginAllowThreads();
11526 result = wxFontMapper::GetDefaultConfigPath();
11527 wxPyEndAllowThreads(__tstate);
11528 if (PyErr_Occurred()) SWIG_fail;
11529 }
11530 {
11531 #if wxUSE_UNICODE
11532 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11533 #else
11534 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11535 #endif
11536 }
11537 return resultobj;
11538 fail:
11539 return NULL;
11540 }
11541
11542
11543 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11544 PyObject *resultobj = 0;
11545 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11546 wxFontEncoding arg2 ;
11547 wxString const &arg3_defvalue = wxPyEmptyString ;
11548 wxString *arg3 = (wxString *) &arg3_defvalue ;
11549 bool arg4 = (bool) true ;
11550 PyObject *result = 0 ;
11551 void *argp1 = 0 ;
11552 int res1 = 0 ;
11553 int val2 ;
11554 int ecode2 = 0 ;
11555 bool temp3 = false ;
11556 bool val4 ;
11557 int ecode4 = 0 ;
11558 PyObject * obj0 = 0 ;
11559 PyObject * obj1 = 0 ;
11560 PyObject * obj2 = 0 ;
11561 PyObject * obj3 = 0 ;
11562 char * kwnames[] = {
11563 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11564 };
11565
11566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11568 if (!SWIG_IsOK(res1)) {
11569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11570 }
11571 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11572 ecode2 = SWIG_AsVal_int(obj1, &val2);
11573 if (!SWIG_IsOK(ecode2)) {
11574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11575 }
11576 arg2 = static_cast< wxFontEncoding >(val2);
11577 if (obj2) {
11578 {
11579 arg3 = wxString_in_helper(obj2);
11580 if (arg3 == NULL) SWIG_fail;
11581 temp3 = true;
11582 }
11583 }
11584 if (obj3) {
11585 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11586 if (!SWIG_IsOK(ecode4)) {
11587 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11588 }
11589 arg4 = static_cast< bool >(val4);
11590 }
11591 {
11592 PyThreadState* __tstate = wxPyBeginAllowThreads();
11593 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11594 wxPyEndAllowThreads(__tstate);
11595 if (PyErr_Occurred()) SWIG_fail;
11596 }
11597 resultobj = result;
11598 {
11599 if (temp3)
11600 delete arg3;
11601 }
11602 return resultobj;
11603 fail:
11604 {
11605 if (temp3)
11606 delete arg3;
11607 }
11608 return NULL;
11609 }
11610
11611
11612 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11613 PyObject *resultobj = 0;
11614 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11615 wxFontEncoding arg2 ;
11616 wxString const &arg3_defvalue = wxPyEmptyString ;
11617 wxString *arg3 = (wxString *) &arg3_defvalue ;
11618 bool result;
11619 void *argp1 = 0 ;
11620 int res1 = 0 ;
11621 int val2 ;
11622 int ecode2 = 0 ;
11623 bool temp3 = false ;
11624 PyObject * obj0 = 0 ;
11625 PyObject * obj1 = 0 ;
11626 PyObject * obj2 = 0 ;
11627 char * kwnames[] = {
11628 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11629 };
11630
11631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11633 if (!SWIG_IsOK(res1)) {
11634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11635 }
11636 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11637 ecode2 = SWIG_AsVal_int(obj1, &val2);
11638 if (!SWIG_IsOK(ecode2)) {
11639 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11640 }
11641 arg2 = static_cast< wxFontEncoding >(val2);
11642 if (obj2) {
11643 {
11644 arg3 = wxString_in_helper(obj2);
11645 if (arg3 == NULL) SWIG_fail;
11646 temp3 = true;
11647 }
11648 }
11649 {
11650 PyThreadState* __tstate = wxPyBeginAllowThreads();
11651 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11652 wxPyEndAllowThreads(__tstate);
11653 if (PyErr_Occurred()) SWIG_fail;
11654 }
11655 {
11656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11657 }
11658 {
11659 if (temp3)
11660 delete arg3;
11661 }
11662 return resultobj;
11663 fail:
11664 {
11665 if (temp3)
11666 delete arg3;
11667 }
11668 return NULL;
11669 }
11670
11671
11672 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11673 PyObject *resultobj = 0;
11674 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11675 wxWindow *arg2 = (wxWindow *) 0 ;
11676 void *argp1 = 0 ;
11677 int res1 = 0 ;
11678 void *argp2 = 0 ;
11679 int res2 = 0 ;
11680 PyObject * obj0 = 0 ;
11681 PyObject * obj1 = 0 ;
11682 char * kwnames[] = {
11683 (char *) "self",(char *) "parent", NULL
11684 };
11685
11686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11688 if (!SWIG_IsOK(res1)) {
11689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11690 }
11691 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11692 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11693 if (!SWIG_IsOK(res2)) {
11694 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11695 }
11696 arg2 = reinterpret_cast< wxWindow * >(argp2);
11697 {
11698 PyThreadState* __tstate = wxPyBeginAllowThreads();
11699 (arg1)->SetDialogParent(arg2);
11700 wxPyEndAllowThreads(__tstate);
11701 if (PyErr_Occurred()) SWIG_fail;
11702 }
11703 resultobj = SWIG_Py_Void();
11704 return resultobj;
11705 fail:
11706 return NULL;
11707 }
11708
11709
11710 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11711 PyObject *resultobj = 0;
11712 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11713 wxString *arg2 = 0 ;
11714 void *argp1 = 0 ;
11715 int res1 = 0 ;
11716 bool temp2 = false ;
11717 PyObject * obj0 = 0 ;
11718 PyObject * obj1 = 0 ;
11719 char * kwnames[] = {
11720 (char *) "self",(char *) "title", NULL
11721 };
11722
11723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11725 if (!SWIG_IsOK(res1)) {
11726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11727 }
11728 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11729 {
11730 arg2 = wxString_in_helper(obj1);
11731 if (arg2 == NULL) SWIG_fail;
11732 temp2 = true;
11733 }
11734 {
11735 PyThreadState* __tstate = wxPyBeginAllowThreads();
11736 (arg1)->SetDialogTitle((wxString const &)*arg2);
11737 wxPyEndAllowThreads(__tstate);
11738 if (PyErr_Occurred()) SWIG_fail;
11739 }
11740 resultobj = SWIG_Py_Void();
11741 {
11742 if (temp2)
11743 delete arg2;
11744 }
11745 return resultobj;
11746 fail:
11747 {
11748 if (temp2)
11749 delete arg2;
11750 }
11751 return NULL;
11752 }
11753
11754
11755 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11756 PyObject *obj;
11757 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11758 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11759 return SWIG_Py_Void();
11760 }
11761
11762 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11763 return SWIG_Python_InitShadowInstance(args);
11764 }
11765
11766 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11767 PyObject *resultobj = 0;
11768 int arg1 ;
11769 int arg2 ;
11770 int arg3 ;
11771 int arg4 ;
11772 bool arg5 = (bool) false ;
11773 wxString const &arg6_defvalue = wxPyEmptyString ;
11774 wxString *arg6 = (wxString *) &arg6_defvalue ;
11775 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11776 wxFont *result = 0 ;
11777 int val1 ;
11778 int ecode1 = 0 ;
11779 int val2 ;
11780 int ecode2 = 0 ;
11781 int val3 ;
11782 int ecode3 = 0 ;
11783 int val4 ;
11784 int ecode4 = 0 ;
11785 bool val5 ;
11786 int ecode5 = 0 ;
11787 bool temp6 = false ;
11788 int val7 ;
11789 int ecode7 = 0 ;
11790 PyObject * obj0 = 0 ;
11791 PyObject * obj1 = 0 ;
11792 PyObject * obj2 = 0 ;
11793 PyObject * obj3 = 0 ;
11794 PyObject * obj4 = 0 ;
11795 PyObject * obj5 = 0 ;
11796 PyObject * obj6 = 0 ;
11797 char * kwnames[] = {
11798 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11799 };
11800
11801 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11802 ecode1 = SWIG_AsVal_int(obj0, &val1);
11803 if (!SWIG_IsOK(ecode1)) {
11804 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11805 }
11806 arg1 = static_cast< int >(val1);
11807 ecode2 = SWIG_AsVal_int(obj1, &val2);
11808 if (!SWIG_IsOK(ecode2)) {
11809 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11810 }
11811 arg2 = static_cast< int >(val2);
11812 ecode3 = SWIG_AsVal_int(obj2, &val3);
11813 if (!SWIG_IsOK(ecode3)) {
11814 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11815 }
11816 arg3 = static_cast< int >(val3);
11817 ecode4 = SWIG_AsVal_int(obj3, &val4);
11818 if (!SWIG_IsOK(ecode4)) {
11819 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11820 }
11821 arg4 = static_cast< int >(val4);
11822 if (obj4) {
11823 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11824 if (!SWIG_IsOK(ecode5)) {
11825 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11826 }
11827 arg5 = static_cast< bool >(val5);
11828 }
11829 if (obj5) {
11830 {
11831 arg6 = wxString_in_helper(obj5);
11832 if (arg6 == NULL) SWIG_fail;
11833 temp6 = true;
11834 }
11835 }
11836 if (obj6) {
11837 ecode7 = SWIG_AsVal_int(obj6, &val7);
11838 if (!SWIG_IsOK(ecode7)) {
11839 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11840 }
11841 arg7 = static_cast< wxFontEncoding >(val7);
11842 }
11843 {
11844 if (!wxPyCheckForApp()) SWIG_fail;
11845 PyThreadState* __tstate = wxPyBeginAllowThreads();
11846 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11847 wxPyEndAllowThreads(__tstate);
11848 if (PyErr_Occurred()) SWIG_fail;
11849 }
11850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11851 {
11852 if (temp6)
11853 delete arg6;
11854 }
11855 return resultobj;
11856 fail:
11857 {
11858 if (temp6)
11859 delete arg6;
11860 }
11861 return NULL;
11862 }
11863
11864
11865 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11866 PyObject *resultobj = 0;
11867 wxFont *arg1 = (wxFont *) 0 ;
11868 void *argp1 = 0 ;
11869 int res1 = 0 ;
11870 PyObject *swig_obj[1] ;
11871
11872 if (!args) SWIG_fail;
11873 swig_obj[0] = args;
11874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11875 if (!SWIG_IsOK(res1)) {
11876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11877 }
11878 arg1 = reinterpret_cast< wxFont * >(argp1);
11879 {
11880 PyThreadState* __tstate = wxPyBeginAllowThreads();
11881 delete arg1;
11882
11883 wxPyEndAllowThreads(__tstate);
11884 if (PyErr_Occurred()) SWIG_fail;
11885 }
11886 resultobj = SWIG_Py_Void();
11887 return resultobj;
11888 fail:
11889 return NULL;
11890 }
11891
11892
11893 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11894 PyObject *resultobj = 0;
11895 wxNativeFontInfo *arg1 = 0 ;
11896 wxFont *result = 0 ;
11897 void *argp1 = 0 ;
11898 int res1 = 0 ;
11899 PyObject * obj0 = 0 ;
11900 char * kwnames[] = {
11901 (char *) "info", NULL
11902 };
11903
11904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11905 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11906 if (!SWIG_IsOK(res1)) {
11907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11908 }
11909 if (!argp1) {
11910 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11911 }
11912 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11913 {
11914 if (!wxPyCheckForApp()) SWIG_fail;
11915 PyThreadState* __tstate = wxPyBeginAllowThreads();
11916 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11917 wxPyEndAllowThreads(__tstate);
11918 if (PyErr_Occurred()) SWIG_fail;
11919 }
11920 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11921 return resultobj;
11922 fail:
11923 return NULL;
11924 }
11925
11926
11927 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11928 PyObject *resultobj = 0;
11929 wxString *arg1 = 0 ;
11930 wxFont *result = 0 ;
11931 bool temp1 = false ;
11932 PyObject * obj0 = 0 ;
11933 char * kwnames[] = {
11934 (char *) "info", NULL
11935 };
11936
11937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11938 {
11939 arg1 = wxString_in_helper(obj0);
11940 if (arg1 == NULL) SWIG_fail;
11941 temp1 = true;
11942 }
11943 {
11944 if (!wxPyCheckForApp()) SWIG_fail;
11945 PyThreadState* __tstate = wxPyBeginAllowThreads();
11946 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11947 wxPyEndAllowThreads(__tstate);
11948 if (PyErr_Occurred()) SWIG_fail;
11949 }
11950 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11951 {
11952 if (temp1)
11953 delete arg1;
11954 }
11955 return resultobj;
11956 fail:
11957 {
11958 if (temp1)
11959 delete arg1;
11960 }
11961 return NULL;
11962 }
11963
11964
11965 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11966 PyObject *resultobj = 0;
11967 int arg1 ;
11968 wxFontFamily arg2 ;
11969 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11970 wxString const &arg4_defvalue = wxPyEmptyString ;
11971 wxString *arg4 = (wxString *) &arg4_defvalue ;
11972 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11973 wxFont *result = 0 ;
11974 int val1 ;
11975 int ecode1 = 0 ;
11976 int val2 ;
11977 int ecode2 = 0 ;
11978 int val3 ;
11979 int ecode3 = 0 ;
11980 bool temp4 = false ;
11981 int val5 ;
11982 int ecode5 = 0 ;
11983 PyObject * obj0 = 0 ;
11984 PyObject * obj1 = 0 ;
11985 PyObject * obj2 = 0 ;
11986 PyObject * obj3 = 0 ;
11987 PyObject * obj4 = 0 ;
11988 char * kwnames[] = {
11989 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11990 };
11991
11992 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11993 ecode1 = SWIG_AsVal_int(obj0, &val1);
11994 if (!SWIG_IsOK(ecode1)) {
11995 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11996 }
11997 arg1 = static_cast< int >(val1);
11998 ecode2 = SWIG_AsVal_int(obj1, &val2);
11999 if (!SWIG_IsOK(ecode2)) {
12000 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
12001 }
12002 arg2 = static_cast< wxFontFamily >(val2);
12003 if (obj2) {
12004 ecode3 = SWIG_AsVal_int(obj2, &val3);
12005 if (!SWIG_IsOK(ecode3)) {
12006 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
12007 }
12008 arg3 = static_cast< int >(val3);
12009 }
12010 if (obj3) {
12011 {
12012 arg4 = wxString_in_helper(obj3);
12013 if (arg4 == NULL) SWIG_fail;
12014 temp4 = true;
12015 }
12016 }
12017 if (obj4) {
12018 ecode5 = SWIG_AsVal_int(obj4, &val5);
12019 if (!SWIG_IsOK(ecode5)) {
12020 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12021 }
12022 arg5 = static_cast< wxFontEncoding >(val5);
12023 }
12024 {
12025 if (!wxPyCheckForApp()) SWIG_fail;
12026 PyThreadState* __tstate = wxPyBeginAllowThreads();
12027 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12028 wxPyEndAllowThreads(__tstate);
12029 if (PyErr_Occurred()) SWIG_fail;
12030 }
12031 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12032 {
12033 if (temp4)
12034 delete arg4;
12035 }
12036 return resultobj;
12037 fail:
12038 {
12039 if (temp4)
12040 delete arg4;
12041 }
12042 return NULL;
12043 }
12044
12045
12046 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12047 PyObject *resultobj = 0;
12048 wxSize *arg1 = 0 ;
12049 int arg2 ;
12050 int arg3 ;
12051 int arg4 ;
12052 bool arg5 = (bool) false ;
12053 wxString const &arg6_defvalue = wxEmptyString ;
12054 wxString *arg6 = (wxString *) &arg6_defvalue ;
12055 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12056 wxFont *result = 0 ;
12057 wxSize temp1 ;
12058 int val2 ;
12059 int ecode2 = 0 ;
12060 int val3 ;
12061 int ecode3 = 0 ;
12062 int val4 ;
12063 int ecode4 = 0 ;
12064 bool val5 ;
12065 int ecode5 = 0 ;
12066 bool temp6 = false ;
12067 int val7 ;
12068 int ecode7 = 0 ;
12069 PyObject * obj0 = 0 ;
12070 PyObject * obj1 = 0 ;
12071 PyObject * obj2 = 0 ;
12072 PyObject * obj3 = 0 ;
12073 PyObject * obj4 = 0 ;
12074 PyObject * obj5 = 0 ;
12075 PyObject * obj6 = 0 ;
12076 char * kwnames[] = {
12077 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12078 };
12079
12080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12081 {
12082 arg1 = &temp1;
12083 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12084 }
12085 ecode2 = SWIG_AsVal_int(obj1, &val2);
12086 if (!SWIG_IsOK(ecode2)) {
12087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12088 }
12089 arg2 = static_cast< int >(val2);
12090 ecode3 = SWIG_AsVal_int(obj2, &val3);
12091 if (!SWIG_IsOK(ecode3)) {
12092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12093 }
12094 arg3 = static_cast< int >(val3);
12095 ecode4 = SWIG_AsVal_int(obj3, &val4);
12096 if (!SWIG_IsOK(ecode4)) {
12097 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12098 }
12099 arg4 = static_cast< int >(val4);
12100 if (obj4) {
12101 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12102 if (!SWIG_IsOK(ecode5)) {
12103 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12104 }
12105 arg5 = static_cast< bool >(val5);
12106 }
12107 if (obj5) {
12108 {
12109 arg6 = wxString_in_helper(obj5);
12110 if (arg6 == NULL) SWIG_fail;
12111 temp6 = true;
12112 }
12113 }
12114 if (obj6) {
12115 ecode7 = SWIG_AsVal_int(obj6, &val7);
12116 if (!SWIG_IsOK(ecode7)) {
12117 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12118 }
12119 arg7 = static_cast< wxFontEncoding >(val7);
12120 }
12121 {
12122 if (!wxPyCheckForApp()) SWIG_fail;
12123 PyThreadState* __tstate = wxPyBeginAllowThreads();
12124 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12125 wxPyEndAllowThreads(__tstate);
12126 if (PyErr_Occurred()) SWIG_fail;
12127 }
12128 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12129 {
12130 if (temp6)
12131 delete arg6;
12132 }
12133 return resultobj;
12134 fail:
12135 {
12136 if (temp6)
12137 delete arg6;
12138 }
12139 return NULL;
12140 }
12141
12142
12143 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12144 PyObject *resultobj = 0;
12145 wxSize *arg1 = 0 ;
12146 wxFontFamily arg2 ;
12147 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12148 wxString const &arg4_defvalue = wxEmptyString ;
12149 wxString *arg4 = (wxString *) &arg4_defvalue ;
12150 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12151 wxFont *result = 0 ;
12152 wxSize temp1 ;
12153 int val2 ;
12154 int ecode2 = 0 ;
12155 int val3 ;
12156 int ecode3 = 0 ;
12157 bool temp4 = false ;
12158 int val5 ;
12159 int ecode5 = 0 ;
12160 PyObject * obj0 = 0 ;
12161 PyObject * obj1 = 0 ;
12162 PyObject * obj2 = 0 ;
12163 PyObject * obj3 = 0 ;
12164 PyObject * obj4 = 0 ;
12165 char * kwnames[] = {
12166 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12167 };
12168
12169 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12170 {
12171 arg1 = &temp1;
12172 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12173 }
12174 ecode2 = SWIG_AsVal_int(obj1, &val2);
12175 if (!SWIG_IsOK(ecode2)) {
12176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12177 }
12178 arg2 = static_cast< wxFontFamily >(val2);
12179 if (obj2) {
12180 ecode3 = SWIG_AsVal_int(obj2, &val3);
12181 if (!SWIG_IsOK(ecode3)) {
12182 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12183 }
12184 arg3 = static_cast< int >(val3);
12185 }
12186 if (obj3) {
12187 {
12188 arg4 = wxString_in_helper(obj3);
12189 if (arg4 == NULL) SWIG_fail;
12190 temp4 = true;
12191 }
12192 }
12193 if (obj4) {
12194 ecode5 = SWIG_AsVal_int(obj4, &val5);
12195 if (!SWIG_IsOK(ecode5)) {
12196 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12197 }
12198 arg5 = static_cast< wxFontEncoding >(val5);
12199 }
12200 {
12201 if (!wxPyCheckForApp()) SWIG_fail;
12202 PyThreadState* __tstate = wxPyBeginAllowThreads();
12203 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12204 wxPyEndAllowThreads(__tstate);
12205 if (PyErr_Occurred()) SWIG_fail;
12206 }
12207 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12208 {
12209 if (temp4)
12210 delete arg4;
12211 }
12212 return resultobj;
12213 fail:
12214 {
12215 if (temp4)
12216 delete arg4;
12217 }
12218 return NULL;
12219 }
12220
12221
12222 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12223 PyObject *resultobj = 0;
12224 wxFont *arg1 = (wxFont *) 0 ;
12225 bool result;
12226 void *argp1 = 0 ;
12227 int res1 = 0 ;
12228 PyObject *swig_obj[1] ;
12229
12230 if (!args) SWIG_fail;
12231 swig_obj[0] = args;
12232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12233 if (!SWIG_IsOK(res1)) {
12234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12235 }
12236 arg1 = reinterpret_cast< wxFont * >(argp1);
12237 {
12238 PyThreadState* __tstate = wxPyBeginAllowThreads();
12239 result = (bool)((wxFont const *)arg1)->Ok();
12240 wxPyEndAllowThreads(__tstate);
12241 if (PyErr_Occurred()) SWIG_fail;
12242 }
12243 {
12244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12245 }
12246 return resultobj;
12247 fail:
12248 return NULL;
12249 }
12250
12251
12252 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12253 PyObject *resultobj = 0;
12254 wxFont *arg1 = (wxFont *) 0 ;
12255 wxFont *arg2 = (wxFont *) 0 ;
12256 bool result;
12257 void *argp1 = 0 ;
12258 int res1 = 0 ;
12259 void *argp2 = 0 ;
12260 int res2 = 0 ;
12261 PyObject * obj0 = 0 ;
12262 PyObject * obj1 = 0 ;
12263 char * kwnames[] = {
12264 (char *) "self",(char *) "other", NULL
12265 };
12266
12267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12269 if (!SWIG_IsOK(res1)) {
12270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12271 }
12272 arg1 = reinterpret_cast< wxFont * >(argp1);
12273 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12274 if (!SWIG_IsOK(res2)) {
12275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12276 }
12277 arg2 = reinterpret_cast< wxFont * >(argp2);
12278 {
12279 PyThreadState* __tstate = wxPyBeginAllowThreads();
12280 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12281 wxPyEndAllowThreads(__tstate);
12282 if (PyErr_Occurred()) SWIG_fail;
12283 }
12284 {
12285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12286 }
12287 return resultobj;
12288 fail:
12289 return NULL;
12290 }
12291
12292
12293 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12294 PyObject *resultobj = 0;
12295 wxFont *arg1 = (wxFont *) 0 ;
12296 wxFont *arg2 = (wxFont *) 0 ;
12297 bool result;
12298 void *argp1 = 0 ;
12299 int res1 = 0 ;
12300 void *argp2 = 0 ;
12301 int res2 = 0 ;
12302 PyObject * obj0 = 0 ;
12303 PyObject * obj1 = 0 ;
12304 char * kwnames[] = {
12305 (char *) "self",(char *) "other", NULL
12306 };
12307
12308 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12309 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12310 if (!SWIG_IsOK(res1)) {
12311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12312 }
12313 arg1 = reinterpret_cast< wxFont * >(argp1);
12314 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12315 if (!SWIG_IsOK(res2)) {
12316 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12317 }
12318 arg2 = reinterpret_cast< wxFont * >(argp2);
12319 {
12320 PyThreadState* __tstate = wxPyBeginAllowThreads();
12321 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12322 wxPyEndAllowThreads(__tstate);
12323 if (PyErr_Occurred()) SWIG_fail;
12324 }
12325 {
12326 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12327 }
12328 return resultobj;
12329 fail:
12330 return NULL;
12331 }
12332
12333
12334 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12335 PyObject *resultobj = 0;
12336 wxFont *arg1 = (wxFont *) 0 ;
12337 int result;
12338 void *argp1 = 0 ;
12339 int res1 = 0 ;
12340 PyObject *swig_obj[1] ;
12341
12342 if (!args) SWIG_fail;
12343 swig_obj[0] = args;
12344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12345 if (!SWIG_IsOK(res1)) {
12346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12347 }
12348 arg1 = reinterpret_cast< wxFont * >(argp1);
12349 {
12350 PyThreadState* __tstate = wxPyBeginAllowThreads();
12351 result = (int)((wxFont const *)arg1)->GetPointSize();
12352 wxPyEndAllowThreads(__tstate);
12353 if (PyErr_Occurred()) SWIG_fail;
12354 }
12355 resultobj = SWIG_From_int(static_cast< int >(result));
12356 return resultobj;
12357 fail:
12358 return NULL;
12359 }
12360
12361
12362 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12363 PyObject *resultobj = 0;
12364 wxFont *arg1 = (wxFont *) 0 ;
12365 wxSize result;
12366 void *argp1 = 0 ;
12367 int res1 = 0 ;
12368 PyObject *swig_obj[1] ;
12369
12370 if (!args) SWIG_fail;
12371 swig_obj[0] = args;
12372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12373 if (!SWIG_IsOK(res1)) {
12374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12375 }
12376 arg1 = reinterpret_cast< wxFont * >(argp1);
12377 {
12378 PyThreadState* __tstate = wxPyBeginAllowThreads();
12379 result = ((wxFont const *)arg1)->GetPixelSize();
12380 wxPyEndAllowThreads(__tstate);
12381 if (PyErr_Occurred()) SWIG_fail;
12382 }
12383 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12384 return resultobj;
12385 fail:
12386 return NULL;
12387 }
12388
12389
12390 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12391 PyObject *resultobj = 0;
12392 wxFont *arg1 = (wxFont *) 0 ;
12393 bool result;
12394 void *argp1 = 0 ;
12395 int res1 = 0 ;
12396 PyObject *swig_obj[1] ;
12397
12398 if (!args) SWIG_fail;
12399 swig_obj[0] = args;
12400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12401 if (!SWIG_IsOK(res1)) {
12402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12403 }
12404 arg1 = reinterpret_cast< wxFont * >(argp1);
12405 {
12406 PyThreadState* __tstate = wxPyBeginAllowThreads();
12407 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12408 wxPyEndAllowThreads(__tstate);
12409 if (PyErr_Occurred()) SWIG_fail;
12410 }
12411 {
12412 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12413 }
12414 return resultobj;
12415 fail:
12416 return NULL;
12417 }
12418
12419
12420 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12421 PyObject *resultobj = 0;
12422 wxFont *arg1 = (wxFont *) 0 ;
12423 int result;
12424 void *argp1 = 0 ;
12425 int res1 = 0 ;
12426 PyObject *swig_obj[1] ;
12427
12428 if (!args) SWIG_fail;
12429 swig_obj[0] = args;
12430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12431 if (!SWIG_IsOK(res1)) {
12432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12433 }
12434 arg1 = reinterpret_cast< wxFont * >(argp1);
12435 {
12436 PyThreadState* __tstate = wxPyBeginAllowThreads();
12437 result = (int)((wxFont const *)arg1)->GetFamily();
12438 wxPyEndAllowThreads(__tstate);
12439 if (PyErr_Occurred()) SWIG_fail;
12440 }
12441 resultobj = SWIG_From_int(static_cast< int >(result));
12442 return resultobj;
12443 fail:
12444 return NULL;
12445 }
12446
12447
12448 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12449 PyObject *resultobj = 0;
12450 wxFont *arg1 = (wxFont *) 0 ;
12451 int result;
12452 void *argp1 = 0 ;
12453 int res1 = 0 ;
12454 PyObject *swig_obj[1] ;
12455
12456 if (!args) SWIG_fail;
12457 swig_obj[0] = args;
12458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12459 if (!SWIG_IsOK(res1)) {
12460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12461 }
12462 arg1 = reinterpret_cast< wxFont * >(argp1);
12463 {
12464 PyThreadState* __tstate = wxPyBeginAllowThreads();
12465 result = (int)((wxFont const *)arg1)->GetStyle();
12466 wxPyEndAllowThreads(__tstate);
12467 if (PyErr_Occurred()) SWIG_fail;
12468 }
12469 resultobj = SWIG_From_int(static_cast< int >(result));
12470 return resultobj;
12471 fail:
12472 return NULL;
12473 }
12474
12475
12476 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12477 PyObject *resultobj = 0;
12478 wxFont *arg1 = (wxFont *) 0 ;
12479 int result;
12480 void *argp1 = 0 ;
12481 int res1 = 0 ;
12482 PyObject *swig_obj[1] ;
12483
12484 if (!args) SWIG_fail;
12485 swig_obj[0] = args;
12486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12487 if (!SWIG_IsOK(res1)) {
12488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12489 }
12490 arg1 = reinterpret_cast< wxFont * >(argp1);
12491 {
12492 PyThreadState* __tstate = wxPyBeginAllowThreads();
12493 result = (int)((wxFont const *)arg1)->GetWeight();
12494 wxPyEndAllowThreads(__tstate);
12495 if (PyErr_Occurred()) SWIG_fail;
12496 }
12497 resultobj = SWIG_From_int(static_cast< int >(result));
12498 return resultobj;
12499 fail:
12500 return NULL;
12501 }
12502
12503
12504 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12505 PyObject *resultobj = 0;
12506 wxFont *arg1 = (wxFont *) 0 ;
12507 bool result;
12508 void *argp1 = 0 ;
12509 int res1 = 0 ;
12510 PyObject *swig_obj[1] ;
12511
12512 if (!args) SWIG_fail;
12513 swig_obj[0] = args;
12514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12515 if (!SWIG_IsOK(res1)) {
12516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12517 }
12518 arg1 = reinterpret_cast< wxFont * >(argp1);
12519 {
12520 PyThreadState* __tstate = wxPyBeginAllowThreads();
12521 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12522 wxPyEndAllowThreads(__tstate);
12523 if (PyErr_Occurred()) SWIG_fail;
12524 }
12525 {
12526 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12527 }
12528 return resultobj;
12529 fail:
12530 return NULL;
12531 }
12532
12533
12534 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12535 PyObject *resultobj = 0;
12536 wxFont *arg1 = (wxFont *) 0 ;
12537 wxString result;
12538 void *argp1 = 0 ;
12539 int res1 = 0 ;
12540 PyObject *swig_obj[1] ;
12541
12542 if (!args) SWIG_fail;
12543 swig_obj[0] = args;
12544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12545 if (!SWIG_IsOK(res1)) {
12546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12547 }
12548 arg1 = reinterpret_cast< wxFont * >(argp1);
12549 {
12550 PyThreadState* __tstate = wxPyBeginAllowThreads();
12551 result = ((wxFont const *)arg1)->GetFaceName();
12552 wxPyEndAllowThreads(__tstate);
12553 if (PyErr_Occurred()) SWIG_fail;
12554 }
12555 {
12556 #if wxUSE_UNICODE
12557 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12558 #else
12559 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12560 #endif
12561 }
12562 return resultobj;
12563 fail:
12564 return NULL;
12565 }
12566
12567
12568 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12569 PyObject *resultobj = 0;
12570 wxFont *arg1 = (wxFont *) 0 ;
12571 wxFontEncoding result;
12572 void *argp1 = 0 ;
12573 int res1 = 0 ;
12574 PyObject *swig_obj[1] ;
12575
12576 if (!args) SWIG_fail;
12577 swig_obj[0] = args;
12578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12579 if (!SWIG_IsOK(res1)) {
12580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12581 }
12582 arg1 = reinterpret_cast< wxFont * >(argp1);
12583 {
12584 PyThreadState* __tstate = wxPyBeginAllowThreads();
12585 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12586 wxPyEndAllowThreads(__tstate);
12587 if (PyErr_Occurred()) SWIG_fail;
12588 }
12589 resultobj = SWIG_From_int(static_cast< int >(result));
12590 return resultobj;
12591 fail:
12592 return NULL;
12593 }
12594
12595
12596 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12597 PyObject *resultobj = 0;
12598 wxFont *arg1 = (wxFont *) 0 ;
12599 wxNativeFontInfo *result = 0 ;
12600 void *argp1 = 0 ;
12601 int res1 = 0 ;
12602 PyObject *swig_obj[1] ;
12603
12604 if (!args) SWIG_fail;
12605 swig_obj[0] = args;
12606 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12607 if (!SWIG_IsOK(res1)) {
12608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12609 }
12610 arg1 = reinterpret_cast< wxFont * >(argp1);
12611 {
12612 PyThreadState* __tstate = wxPyBeginAllowThreads();
12613 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12614 wxPyEndAllowThreads(__tstate);
12615 if (PyErr_Occurred()) SWIG_fail;
12616 }
12617 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12618 return resultobj;
12619 fail:
12620 return NULL;
12621 }
12622
12623
12624 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12625 PyObject *resultobj = 0;
12626 wxFont *arg1 = (wxFont *) 0 ;
12627 bool result;
12628 void *argp1 = 0 ;
12629 int res1 = 0 ;
12630 PyObject *swig_obj[1] ;
12631
12632 if (!args) SWIG_fail;
12633 swig_obj[0] = args;
12634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12635 if (!SWIG_IsOK(res1)) {
12636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12637 }
12638 arg1 = reinterpret_cast< wxFont * >(argp1);
12639 {
12640 PyThreadState* __tstate = wxPyBeginAllowThreads();
12641 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12642 wxPyEndAllowThreads(__tstate);
12643 if (PyErr_Occurred()) SWIG_fail;
12644 }
12645 {
12646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12647 }
12648 return resultobj;
12649 fail:
12650 return NULL;
12651 }
12652
12653
12654 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12655 PyObject *resultobj = 0;
12656 wxFont *arg1 = (wxFont *) 0 ;
12657 wxString result;
12658 void *argp1 = 0 ;
12659 int res1 = 0 ;
12660 PyObject *swig_obj[1] ;
12661
12662 if (!args) SWIG_fail;
12663 swig_obj[0] = args;
12664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12665 if (!SWIG_IsOK(res1)) {
12666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12667 }
12668 arg1 = reinterpret_cast< wxFont * >(argp1);
12669 {
12670 PyThreadState* __tstate = wxPyBeginAllowThreads();
12671 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12672 wxPyEndAllowThreads(__tstate);
12673 if (PyErr_Occurred()) SWIG_fail;
12674 }
12675 {
12676 #if wxUSE_UNICODE
12677 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12678 #else
12679 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12680 #endif
12681 }
12682 return resultobj;
12683 fail:
12684 return NULL;
12685 }
12686
12687
12688 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12689 PyObject *resultobj = 0;
12690 wxFont *arg1 = (wxFont *) 0 ;
12691 wxString result;
12692 void *argp1 = 0 ;
12693 int res1 = 0 ;
12694 PyObject *swig_obj[1] ;
12695
12696 if (!args) SWIG_fail;
12697 swig_obj[0] = args;
12698 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12699 if (!SWIG_IsOK(res1)) {
12700 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12701 }
12702 arg1 = reinterpret_cast< wxFont * >(argp1);
12703 {
12704 PyThreadState* __tstate = wxPyBeginAllowThreads();
12705 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12706 wxPyEndAllowThreads(__tstate);
12707 if (PyErr_Occurred()) SWIG_fail;
12708 }
12709 {
12710 #if wxUSE_UNICODE
12711 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12712 #else
12713 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12714 #endif
12715 }
12716 return resultobj;
12717 fail:
12718 return NULL;
12719 }
12720
12721
12722 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12723 PyObject *resultobj = 0;
12724 wxFont *arg1 = (wxFont *) 0 ;
12725 int arg2 ;
12726 void *argp1 = 0 ;
12727 int res1 = 0 ;
12728 int val2 ;
12729 int ecode2 = 0 ;
12730 PyObject * obj0 = 0 ;
12731 PyObject * obj1 = 0 ;
12732 char * kwnames[] = {
12733 (char *) "self",(char *) "pointSize", NULL
12734 };
12735
12736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12738 if (!SWIG_IsOK(res1)) {
12739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12740 }
12741 arg1 = reinterpret_cast< wxFont * >(argp1);
12742 ecode2 = SWIG_AsVal_int(obj1, &val2);
12743 if (!SWIG_IsOK(ecode2)) {
12744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12745 }
12746 arg2 = static_cast< int >(val2);
12747 {
12748 PyThreadState* __tstate = wxPyBeginAllowThreads();
12749 (arg1)->SetPointSize(arg2);
12750 wxPyEndAllowThreads(__tstate);
12751 if (PyErr_Occurred()) SWIG_fail;
12752 }
12753 resultobj = SWIG_Py_Void();
12754 return resultobj;
12755 fail:
12756 return NULL;
12757 }
12758
12759
12760 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12761 PyObject *resultobj = 0;
12762 wxFont *arg1 = (wxFont *) 0 ;
12763 wxSize *arg2 = 0 ;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 wxSize temp2 ;
12767 PyObject * obj0 = 0 ;
12768 PyObject * obj1 = 0 ;
12769 char * kwnames[] = {
12770 (char *) "self",(char *) "pixelSize", NULL
12771 };
12772
12773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12775 if (!SWIG_IsOK(res1)) {
12776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12777 }
12778 arg1 = reinterpret_cast< wxFont * >(argp1);
12779 {
12780 arg2 = &temp2;
12781 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12782 }
12783 {
12784 PyThreadState* __tstate = wxPyBeginAllowThreads();
12785 (arg1)->SetPixelSize((wxSize const &)*arg2);
12786 wxPyEndAllowThreads(__tstate);
12787 if (PyErr_Occurred()) SWIG_fail;
12788 }
12789 resultobj = SWIG_Py_Void();
12790 return resultobj;
12791 fail:
12792 return NULL;
12793 }
12794
12795
12796 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12797 PyObject *resultobj = 0;
12798 wxFont *arg1 = (wxFont *) 0 ;
12799 int arg2 ;
12800 void *argp1 = 0 ;
12801 int res1 = 0 ;
12802 int val2 ;
12803 int ecode2 = 0 ;
12804 PyObject * obj0 = 0 ;
12805 PyObject * obj1 = 0 ;
12806 char * kwnames[] = {
12807 (char *) "self",(char *) "family", NULL
12808 };
12809
12810 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12811 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12812 if (!SWIG_IsOK(res1)) {
12813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12814 }
12815 arg1 = reinterpret_cast< wxFont * >(argp1);
12816 ecode2 = SWIG_AsVal_int(obj1, &val2);
12817 if (!SWIG_IsOK(ecode2)) {
12818 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12819 }
12820 arg2 = static_cast< int >(val2);
12821 {
12822 PyThreadState* __tstate = wxPyBeginAllowThreads();
12823 (arg1)->SetFamily(arg2);
12824 wxPyEndAllowThreads(__tstate);
12825 if (PyErr_Occurred()) SWIG_fail;
12826 }
12827 resultobj = SWIG_Py_Void();
12828 return resultobj;
12829 fail:
12830 return NULL;
12831 }
12832
12833
12834 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12835 PyObject *resultobj = 0;
12836 wxFont *arg1 = (wxFont *) 0 ;
12837 int arg2 ;
12838 void *argp1 = 0 ;
12839 int res1 = 0 ;
12840 int val2 ;
12841 int ecode2 = 0 ;
12842 PyObject * obj0 = 0 ;
12843 PyObject * obj1 = 0 ;
12844 char * kwnames[] = {
12845 (char *) "self",(char *) "style", NULL
12846 };
12847
12848 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12849 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12850 if (!SWIG_IsOK(res1)) {
12851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12852 }
12853 arg1 = reinterpret_cast< wxFont * >(argp1);
12854 ecode2 = SWIG_AsVal_int(obj1, &val2);
12855 if (!SWIG_IsOK(ecode2)) {
12856 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12857 }
12858 arg2 = static_cast< int >(val2);
12859 {
12860 PyThreadState* __tstate = wxPyBeginAllowThreads();
12861 (arg1)->SetStyle(arg2);
12862 wxPyEndAllowThreads(__tstate);
12863 if (PyErr_Occurred()) SWIG_fail;
12864 }
12865 resultobj = SWIG_Py_Void();
12866 return resultobj;
12867 fail:
12868 return NULL;
12869 }
12870
12871
12872 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12873 PyObject *resultobj = 0;
12874 wxFont *arg1 = (wxFont *) 0 ;
12875 int arg2 ;
12876 void *argp1 = 0 ;
12877 int res1 = 0 ;
12878 int val2 ;
12879 int ecode2 = 0 ;
12880 PyObject * obj0 = 0 ;
12881 PyObject * obj1 = 0 ;
12882 char * kwnames[] = {
12883 (char *) "self",(char *) "weight", NULL
12884 };
12885
12886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12888 if (!SWIG_IsOK(res1)) {
12889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12890 }
12891 arg1 = reinterpret_cast< wxFont * >(argp1);
12892 ecode2 = SWIG_AsVal_int(obj1, &val2);
12893 if (!SWIG_IsOK(ecode2)) {
12894 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12895 }
12896 arg2 = static_cast< int >(val2);
12897 {
12898 PyThreadState* __tstate = wxPyBeginAllowThreads();
12899 (arg1)->SetWeight(arg2);
12900 wxPyEndAllowThreads(__tstate);
12901 if (PyErr_Occurred()) SWIG_fail;
12902 }
12903 resultobj = SWIG_Py_Void();
12904 return resultobj;
12905 fail:
12906 return NULL;
12907 }
12908
12909
12910 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12911 PyObject *resultobj = 0;
12912 wxFont *arg1 = (wxFont *) 0 ;
12913 wxString *arg2 = 0 ;
12914 bool result;
12915 void *argp1 = 0 ;
12916 int res1 = 0 ;
12917 bool temp2 = false ;
12918 PyObject * obj0 = 0 ;
12919 PyObject * obj1 = 0 ;
12920 char * kwnames[] = {
12921 (char *) "self",(char *) "faceName", NULL
12922 };
12923
12924 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12925 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12926 if (!SWIG_IsOK(res1)) {
12927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12928 }
12929 arg1 = reinterpret_cast< wxFont * >(argp1);
12930 {
12931 arg2 = wxString_in_helper(obj1);
12932 if (arg2 == NULL) SWIG_fail;
12933 temp2 = true;
12934 }
12935 {
12936 PyThreadState* __tstate = wxPyBeginAllowThreads();
12937 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12938 wxPyEndAllowThreads(__tstate);
12939 if (PyErr_Occurred()) SWIG_fail;
12940 }
12941 {
12942 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12943 }
12944 {
12945 if (temp2)
12946 delete arg2;
12947 }
12948 return resultobj;
12949 fail:
12950 {
12951 if (temp2)
12952 delete arg2;
12953 }
12954 return NULL;
12955 }
12956
12957
12958 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12959 PyObject *resultobj = 0;
12960 wxFont *arg1 = (wxFont *) 0 ;
12961 bool arg2 ;
12962 void *argp1 = 0 ;
12963 int res1 = 0 ;
12964 bool val2 ;
12965 int ecode2 = 0 ;
12966 PyObject * obj0 = 0 ;
12967 PyObject * obj1 = 0 ;
12968 char * kwnames[] = {
12969 (char *) "self",(char *) "underlined", NULL
12970 };
12971
12972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12974 if (!SWIG_IsOK(res1)) {
12975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12976 }
12977 arg1 = reinterpret_cast< wxFont * >(argp1);
12978 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12979 if (!SWIG_IsOK(ecode2)) {
12980 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12981 }
12982 arg2 = static_cast< bool >(val2);
12983 {
12984 PyThreadState* __tstate = wxPyBeginAllowThreads();
12985 (arg1)->SetUnderlined(arg2);
12986 wxPyEndAllowThreads(__tstate);
12987 if (PyErr_Occurred()) SWIG_fail;
12988 }
12989 resultobj = SWIG_Py_Void();
12990 return resultobj;
12991 fail:
12992 return NULL;
12993 }
12994
12995
12996 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12997 PyObject *resultobj = 0;
12998 wxFont *arg1 = (wxFont *) 0 ;
12999 wxFontEncoding arg2 ;
13000 void *argp1 = 0 ;
13001 int res1 = 0 ;
13002 int val2 ;
13003 int ecode2 = 0 ;
13004 PyObject * obj0 = 0 ;
13005 PyObject * obj1 = 0 ;
13006 char * kwnames[] = {
13007 (char *) "self",(char *) "encoding", NULL
13008 };
13009
13010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13012 if (!SWIG_IsOK(res1)) {
13013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
13014 }
13015 arg1 = reinterpret_cast< wxFont * >(argp1);
13016 ecode2 = SWIG_AsVal_int(obj1, &val2);
13017 if (!SWIG_IsOK(ecode2)) {
13018 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13019 }
13020 arg2 = static_cast< wxFontEncoding >(val2);
13021 {
13022 PyThreadState* __tstate = wxPyBeginAllowThreads();
13023 (arg1)->SetEncoding(arg2);
13024 wxPyEndAllowThreads(__tstate);
13025 if (PyErr_Occurred()) SWIG_fail;
13026 }
13027 resultobj = SWIG_Py_Void();
13028 return resultobj;
13029 fail:
13030 return NULL;
13031 }
13032
13033
13034 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13035 PyObject *resultobj = 0;
13036 wxFont *arg1 = (wxFont *) 0 ;
13037 wxNativeFontInfo *arg2 = 0 ;
13038 void *argp1 = 0 ;
13039 int res1 = 0 ;
13040 void *argp2 = 0 ;
13041 int res2 = 0 ;
13042 PyObject * obj0 = 0 ;
13043 PyObject * obj1 = 0 ;
13044 char * kwnames[] = {
13045 (char *) "self",(char *) "info", NULL
13046 };
13047
13048 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13049 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13050 if (!SWIG_IsOK(res1)) {
13051 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13052 }
13053 arg1 = reinterpret_cast< wxFont * >(argp1);
13054 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13055 if (!SWIG_IsOK(res2)) {
13056 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13057 }
13058 if (!argp2) {
13059 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13060 }
13061 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13062 {
13063 PyThreadState* __tstate = wxPyBeginAllowThreads();
13064 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13065 wxPyEndAllowThreads(__tstate);
13066 if (PyErr_Occurred()) SWIG_fail;
13067 }
13068 resultobj = SWIG_Py_Void();
13069 return resultobj;
13070 fail:
13071 return NULL;
13072 }
13073
13074
13075 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13076 PyObject *resultobj = 0;
13077 wxFont *arg1 = (wxFont *) 0 ;
13078 wxString *arg2 = 0 ;
13079 bool result;
13080 void *argp1 = 0 ;
13081 int res1 = 0 ;
13082 bool temp2 = false ;
13083 PyObject * obj0 = 0 ;
13084 PyObject * obj1 = 0 ;
13085 char * kwnames[] = {
13086 (char *) "self",(char *) "info", NULL
13087 };
13088
13089 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13090 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13091 if (!SWIG_IsOK(res1)) {
13092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13093 }
13094 arg1 = reinterpret_cast< wxFont * >(argp1);
13095 {
13096 arg2 = wxString_in_helper(obj1);
13097 if (arg2 == NULL) SWIG_fail;
13098 temp2 = true;
13099 }
13100 {
13101 PyThreadState* __tstate = wxPyBeginAllowThreads();
13102 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
13103 wxPyEndAllowThreads(__tstate);
13104 if (PyErr_Occurred()) SWIG_fail;
13105 }
13106 {
13107 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13108 }
13109 {
13110 if (temp2)
13111 delete arg2;
13112 }
13113 return resultobj;
13114 fail:
13115 {
13116 if (temp2)
13117 delete arg2;
13118 }
13119 return NULL;
13120 }
13121
13122
13123 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13124 PyObject *resultobj = 0;
13125 wxFont *arg1 = (wxFont *) 0 ;
13126 wxString *arg2 = 0 ;
13127 bool result;
13128 void *argp1 = 0 ;
13129 int res1 = 0 ;
13130 bool temp2 = false ;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "self",(char *) "info", NULL
13135 };
13136
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13139 if (!SWIG_IsOK(res1)) {
13140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13141 }
13142 arg1 = reinterpret_cast< wxFont * >(argp1);
13143 {
13144 arg2 = wxString_in_helper(obj1);
13145 if (arg2 == NULL) SWIG_fail;
13146 temp2 = true;
13147 }
13148 {
13149 PyThreadState* __tstate = wxPyBeginAllowThreads();
13150 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13151 wxPyEndAllowThreads(__tstate);
13152 if (PyErr_Occurred()) SWIG_fail;
13153 }
13154 {
13155 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13156 }
13157 {
13158 if (temp2)
13159 delete arg2;
13160 }
13161 return resultobj;
13162 fail:
13163 {
13164 if (temp2)
13165 delete arg2;
13166 }
13167 return NULL;
13168 }
13169
13170
13171 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13172 PyObject *resultobj = 0;
13173 wxFont *arg1 = (wxFont *) 0 ;
13174 wxString result;
13175 void *argp1 = 0 ;
13176 int res1 = 0 ;
13177 PyObject *swig_obj[1] ;
13178
13179 if (!args) SWIG_fail;
13180 swig_obj[0] = args;
13181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13182 if (!SWIG_IsOK(res1)) {
13183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13184 }
13185 arg1 = reinterpret_cast< wxFont * >(argp1);
13186 {
13187 PyThreadState* __tstate = wxPyBeginAllowThreads();
13188 result = ((wxFont const *)arg1)->GetFamilyString();
13189 wxPyEndAllowThreads(__tstate);
13190 if (PyErr_Occurred()) SWIG_fail;
13191 }
13192 {
13193 #if wxUSE_UNICODE
13194 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13195 #else
13196 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13197 #endif
13198 }
13199 return resultobj;
13200 fail:
13201 return NULL;
13202 }
13203
13204
13205 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13206 PyObject *resultobj = 0;
13207 wxFont *arg1 = (wxFont *) 0 ;
13208 wxString result;
13209 void *argp1 = 0 ;
13210 int res1 = 0 ;
13211 PyObject *swig_obj[1] ;
13212
13213 if (!args) SWIG_fail;
13214 swig_obj[0] = args;
13215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13216 if (!SWIG_IsOK(res1)) {
13217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13218 }
13219 arg1 = reinterpret_cast< wxFont * >(argp1);
13220 {
13221 PyThreadState* __tstate = wxPyBeginAllowThreads();
13222 result = ((wxFont const *)arg1)->GetStyleString();
13223 wxPyEndAllowThreads(__tstate);
13224 if (PyErr_Occurred()) SWIG_fail;
13225 }
13226 {
13227 #if wxUSE_UNICODE
13228 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13229 #else
13230 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13231 #endif
13232 }
13233 return resultobj;
13234 fail:
13235 return NULL;
13236 }
13237
13238
13239 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13240 PyObject *resultobj = 0;
13241 wxFont *arg1 = (wxFont *) 0 ;
13242 wxString result;
13243 void *argp1 = 0 ;
13244 int res1 = 0 ;
13245 PyObject *swig_obj[1] ;
13246
13247 if (!args) SWIG_fail;
13248 swig_obj[0] = args;
13249 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13250 if (!SWIG_IsOK(res1)) {
13251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13252 }
13253 arg1 = reinterpret_cast< wxFont * >(argp1);
13254 {
13255 PyThreadState* __tstate = wxPyBeginAllowThreads();
13256 result = ((wxFont const *)arg1)->GetWeightString();
13257 wxPyEndAllowThreads(__tstate);
13258 if (PyErr_Occurred()) SWIG_fail;
13259 }
13260 {
13261 #if wxUSE_UNICODE
13262 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13263 #else
13264 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13265 #endif
13266 }
13267 return resultobj;
13268 fail:
13269 return NULL;
13270 }
13271
13272
13273 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13274 PyObject *resultobj = 0;
13275 wxFont *arg1 = (wxFont *) 0 ;
13276 bool arg2 = (bool) true ;
13277 void *argp1 = 0 ;
13278 int res1 = 0 ;
13279 bool val2 ;
13280 int ecode2 = 0 ;
13281 PyObject * obj0 = 0 ;
13282 PyObject * obj1 = 0 ;
13283 char * kwnames[] = {
13284 (char *) "self",(char *) "no", NULL
13285 };
13286
13287 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13288 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13289 if (!SWIG_IsOK(res1)) {
13290 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13291 }
13292 arg1 = reinterpret_cast< wxFont * >(argp1);
13293 if (obj1) {
13294 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13295 if (!SWIG_IsOK(ecode2)) {
13296 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13297 }
13298 arg2 = static_cast< bool >(val2);
13299 }
13300 {
13301 PyThreadState* __tstate = wxPyBeginAllowThreads();
13302 (arg1)->SetNoAntiAliasing(arg2);
13303 wxPyEndAllowThreads(__tstate);
13304 if (PyErr_Occurred()) SWIG_fail;
13305 }
13306 resultobj = SWIG_Py_Void();
13307 return resultobj;
13308 fail:
13309 return NULL;
13310 }
13311
13312
13313 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13314 PyObject *resultobj = 0;
13315 wxFont *arg1 = (wxFont *) 0 ;
13316 bool result;
13317 void *argp1 = 0 ;
13318 int res1 = 0 ;
13319 PyObject *swig_obj[1] ;
13320
13321 if (!args) SWIG_fail;
13322 swig_obj[0] = args;
13323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13324 if (!SWIG_IsOK(res1)) {
13325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13326 }
13327 arg1 = reinterpret_cast< wxFont * >(argp1);
13328 {
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 {
13335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13336 }
13337 return resultobj;
13338 fail:
13339 return NULL;
13340 }
13341
13342
13343 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13344 PyObject *resultobj = 0;
13345 wxFontEncoding result;
13346
13347 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13348 {
13349 if (!wxPyCheckForApp()) SWIG_fail;
13350 PyThreadState* __tstate = wxPyBeginAllowThreads();
13351 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13352 wxPyEndAllowThreads(__tstate);
13353 if (PyErr_Occurred()) SWIG_fail;
13354 }
13355 resultobj = SWIG_From_int(static_cast< int >(result));
13356 return resultobj;
13357 fail:
13358 return NULL;
13359 }
13360
13361
13362 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13363 PyObject *resultobj = 0;
13364 wxFontEncoding arg1 ;
13365 int val1 ;
13366 int ecode1 = 0 ;
13367 PyObject * obj0 = 0 ;
13368 char * kwnames[] = {
13369 (char *) "encoding", NULL
13370 };
13371
13372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13373 ecode1 = SWIG_AsVal_int(obj0, &val1);
13374 if (!SWIG_IsOK(ecode1)) {
13375 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13376 }
13377 arg1 = static_cast< wxFontEncoding >(val1);
13378 {
13379 if (!wxPyCheckForApp()) SWIG_fail;
13380 PyThreadState* __tstate = wxPyBeginAllowThreads();
13381 wxFont::SetDefaultEncoding(arg1);
13382 wxPyEndAllowThreads(__tstate);
13383 if (PyErr_Occurred()) SWIG_fail;
13384 }
13385 resultobj = SWIG_Py_Void();
13386 return resultobj;
13387 fail:
13388 return NULL;
13389 }
13390
13391
13392 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13393 PyObject *obj;
13394 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13395 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13396 return SWIG_Py_Void();
13397 }
13398
13399 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13400 return SWIG_Python_InitShadowInstance(args);
13401 }
13402
13403 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13404 PyObject *resultobj = 0;
13405 wxPyFontEnumerator *result = 0 ;
13406
13407 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13408 {
13409 if (!wxPyCheckForApp()) SWIG_fail;
13410 PyThreadState* __tstate = wxPyBeginAllowThreads();
13411 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13412 wxPyEndAllowThreads(__tstate);
13413 if (PyErr_Occurred()) SWIG_fail;
13414 }
13415 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13416 return resultobj;
13417 fail:
13418 return NULL;
13419 }
13420
13421
13422 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13423 PyObject *resultobj = 0;
13424 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13425 void *argp1 = 0 ;
13426 int res1 = 0 ;
13427 PyObject *swig_obj[1] ;
13428
13429 if (!args) SWIG_fail;
13430 swig_obj[0] = args;
13431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13432 if (!SWIG_IsOK(res1)) {
13433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13434 }
13435 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13436 {
13437 PyThreadState* __tstate = wxPyBeginAllowThreads();
13438 delete arg1;
13439
13440 wxPyEndAllowThreads(__tstate);
13441 if (PyErr_Occurred()) SWIG_fail;
13442 }
13443 resultobj = SWIG_Py_Void();
13444 return resultobj;
13445 fail:
13446 return NULL;
13447 }
13448
13449
13450 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13451 PyObject *resultobj = 0;
13452 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13453 PyObject *arg2 = (PyObject *) 0 ;
13454 PyObject *arg3 = (PyObject *) 0 ;
13455 bool arg4 ;
13456 void *argp1 = 0 ;
13457 int res1 = 0 ;
13458 bool val4 ;
13459 int ecode4 = 0 ;
13460 PyObject * obj0 = 0 ;
13461 PyObject * obj1 = 0 ;
13462 PyObject * obj2 = 0 ;
13463 PyObject * obj3 = 0 ;
13464 char * kwnames[] = {
13465 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13466 };
13467
13468 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13469 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13470 if (!SWIG_IsOK(res1)) {
13471 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13472 }
13473 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13474 arg2 = obj1;
13475 arg3 = obj2;
13476 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13477 if (!SWIG_IsOK(ecode4)) {
13478 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13479 }
13480 arg4 = static_cast< bool >(val4);
13481 {
13482 PyThreadState* __tstate = wxPyBeginAllowThreads();
13483 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13484 wxPyEndAllowThreads(__tstate);
13485 if (PyErr_Occurred()) SWIG_fail;
13486 }
13487 resultobj = SWIG_Py_Void();
13488 return resultobj;
13489 fail:
13490 return NULL;
13491 }
13492
13493
13494 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13495 PyObject *resultobj = 0;
13496 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13497 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13498 bool arg3 = (bool) false ;
13499 bool result;
13500 void *argp1 = 0 ;
13501 int res1 = 0 ;
13502 int val2 ;
13503 int ecode2 = 0 ;
13504 bool val3 ;
13505 int ecode3 = 0 ;
13506 PyObject * obj0 = 0 ;
13507 PyObject * obj1 = 0 ;
13508 PyObject * obj2 = 0 ;
13509 char * kwnames[] = {
13510 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13511 };
13512
13513 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13514 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13515 if (!SWIG_IsOK(res1)) {
13516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13517 }
13518 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13519 if (obj1) {
13520 ecode2 = SWIG_AsVal_int(obj1, &val2);
13521 if (!SWIG_IsOK(ecode2)) {
13522 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13523 }
13524 arg2 = static_cast< wxFontEncoding >(val2);
13525 }
13526 if (obj2) {
13527 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13528 if (!SWIG_IsOK(ecode3)) {
13529 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13530 }
13531 arg3 = static_cast< bool >(val3);
13532 }
13533 {
13534 PyThreadState* __tstate = wxPyBeginAllowThreads();
13535 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13536 wxPyEndAllowThreads(__tstate);
13537 if (PyErr_Occurred()) SWIG_fail;
13538 }
13539 {
13540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13541 }
13542 return resultobj;
13543 fail:
13544 return NULL;
13545 }
13546
13547
13548 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13549 PyObject *resultobj = 0;
13550 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13551 wxString const &arg2_defvalue = wxPyEmptyString ;
13552 wxString *arg2 = (wxString *) &arg2_defvalue ;
13553 bool result;
13554 void *argp1 = 0 ;
13555 int res1 = 0 ;
13556 bool temp2 = false ;
13557 PyObject * obj0 = 0 ;
13558 PyObject * obj1 = 0 ;
13559 char * kwnames[] = {
13560 (char *) "self",(char *) "facename", NULL
13561 };
13562
13563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13565 if (!SWIG_IsOK(res1)) {
13566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13567 }
13568 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13569 if (obj1) {
13570 {
13571 arg2 = wxString_in_helper(obj1);
13572 if (arg2 == NULL) SWIG_fail;
13573 temp2 = true;
13574 }
13575 }
13576 {
13577 PyThreadState* __tstate = wxPyBeginAllowThreads();
13578 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13579 wxPyEndAllowThreads(__tstate);
13580 if (PyErr_Occurred()) SWIG_fail;
13581 }
13582 {
13583 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13584 }
13585 {
13586 if (temp2)
13587 delete arg2;
13588 }
13589 return resultobj;
13590 fail:
13591 {
13592 if (temp2)
13593 delete arg2;
13594 }
13595 return NULL;
13596 }
13597
13598
13599 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13600 PyObject *resultobj = 0;
13601 PyObject *result = 0 ;
13602
13603 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
13604 {
13605 PyThreadState* __tstate = wxPyBeginAllowThreads();
13606 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
13607 wxPyEndAllowThreads(__tstate);
13608 if (PyErr_Occurred()) SWIG_fail;
13609 }
13610 resultobj = result;
13611 return resultobj;
13612 fail:
13613 return NULL;
13614 }
13615
13616
13617 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13618 PyObject *resultobj = 0;
13619 PyObject *result = 0 ;
13620
13621 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
13622 {
13623 PyThreadState* __tstate = wxPyBeginAllowThreads();
13624 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
13625 wxPyEndAllowThreads(__tstate);
13626 if (PyErr_Occurred()) SWIG_fail;
13627 }
13628 resultobj = result;
13629 return resultobj;
13630 fail:
13631 return NULL;
13632 }
13633
13634
13635 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13636 PyObject *resultobj = 0;
13637 wxString *arg1 = 0 ;
13638 bool result;
13639 bool temp1 = false ;
13640 PyObject * obj0 = 0 ;
13641 char * kwnames[] = {
13642 (char *) "str", NULL
13643 };
13644
13645 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
13646 {
13647 arg1 = wxString_in_helper(obj0);
13648 if (arg1 == NULL) SWIG_fail;
13649 temp1 = true;
13650 }
13651 {
13652 PyThreadState* __tstate = wxPyBeginAllowThreads();
13653 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
13654 wxPyEndAllowThreads(__tstate);
13655 if (PyErr_Occurred()) SWIG_fail;
13656 }
13657 {
13658 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13659 }
13660 {
13661 if (temp1)
13662 delete arg1;
13663 }
13664 return resultobj;
13665 fail:
13666 {
13667 if (temp1)
13668 delete arg1;
13669 }
13670 return NULL;
13671 }
13672
13673
13674 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13675 PyObject *obj;
13676 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13677 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13678 return SWIG_Py_Void();
13679 }
13680
13681 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13682 return SWIG_Python_InitShadowInstance(args);
13683 }
13684
13685 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13686 PyObject *resultobj = 0;
13687 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13688 int arg2 ;
13689 void *argp1 = 0 ;
13690 int res1 = 0 ;
13691 int val2 ;
13692 int ecode2 = 0 ;
13693 PyObject *swig_obj[2] ;
13694
13695 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13697 if (!SWIG_IsOK(res1)) {
13698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13699 }
13700 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13701 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13702 if (!SWIG_IsOK(ecode2)) {
13703 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13704 }
13705 arg2 = static_cast< int >(val2);
13706 if (arg1) (arg1)->Language = arg2;
13707
13708 resultobj = SWIG_Py_Void();
13709 return resultobj;
13710 fail:
13711 return NULL;
13712 }
13713
13714
13715 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13716 PyObject *resultobj = 0;
13717 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13718 int result;
13719 void *argp1 = 0 ;
13720 int res1 = 0 ;
13721 PyObject *swig_obj[1] ;
13722
13723 if (!args) SWIG_fail;
13724 swig_obj[0] = args;
13725 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13726 if (!SWIG_IsOK(res1)) {
13727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13728 }
13729 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13730 result = (int) ((arg1)->Language);
13731 resultobj = SWIG_From_int(static_cast< int >(result));
13732 return resultobj;
13733 fail:
13734 return NULL;
13735 }
13736
13737
13738 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13739 PyObject *resultobj = 0;
13740 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13741 wxString *arg2 = (wxString *) 0 ;
13742 void *argp1 = 0 ;
13743 int res1 = 0 ;
13744 bool temp2 = false ;
13745 PyObject *swig_obj[2] ;
13746
13747 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13749 if (!SWIG_IsOK(res1)) {
13750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13751 }
13752 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13753 {
13754 arg2 = wxString_in_helper(swig_obj[1]);
13755 if (arg2 == NULL) SWIG_fail;
13756 temp2 = true;
13757 }
13758 if (arg1) (arg1)->CanonicalName = *arg2;
13759
13760 resultobj = SWIG_Py_Void();
13761 {
13762 if (temp2)
13763 delete arg2;
13764 }
13765 return resultobj;
13766 fail:
13767 {
13768 if (temp2)
13769 delete arg2;
13770 }
13771 return NULL;
13772 }
13773
13774
13775 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13776 PyObject *resultobj = 0;
13777 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13778 wxString *result = 0 ;
13779 void *argp1 = 0 ;
13780 int res1 = 0 ;
13781 PyObject *swig_obj[1] ;
13782
13783 if (!args) SWIG_fail;
13784 swig_obj[0] = args;
13785 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13786 if (!SWIG_IsOK(res1)) {
13787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13788 }
13789 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13790 result = (wxString *)& ((arg1)->CanonicalName);
13791 {
13792 #if wxUSE_UNICODE
13793 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13794 #else
13795 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13796 #endif
13797 }
13798 return resultobj;
13799 fail:
13800 return NULL;
13801 }
13802
13803
13804 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13805 PyObject *resultobj = 0;
13806 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13807 wxString *arg2 = (wxString *) 0 ;
13808 void *argp1 = 0 ;
13809 int res1 = 0 ;
13810 bool temp2 = false ;
13811 PyObject *swig_obj[2] ;
13812
13813 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13815 if (!SWIG_IsOK(res1)) {
13816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13817 }
13818 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13819 {
13820 arg2 = wxString_in_helper(swig_obj[1]);
13821 if (arg2 == NULL) SWIG_fail;
13822 temp2 = true;
13823 }
13824 if (arg1) (arg1)->Description = *arg2;
13825
13826 resultobj = SWIG_Py_Void();
13827 {
13828 if (temp2)
13829 delete arg2;
13830 }
13831 return resultobj;
13832 fail:
13833 {
13834 if (temp2)
13835 delete arg2;
13836 }
13837 return NULL;
13838 }
13839
13840
13841 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13842 PyObject *resultobj = 0;
13843 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13844 wxString *result = 0 ;
13845 void *argp1 = 0 ;
13846 int res1 = 0 ;
13847 PyObject *swig_obj[1] ;
13848
13849 if (!args) SWIG_fail;
13850 swig_obj[0] = args;
13851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13852 if (!SWIG_IsOK(res1)) {
13853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13854 }
13855 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13856 result = (wxString *)& ((arg1)->Description);
13857 {
13858 #if wxUSE_UNICODE
13859 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13860 #else
13861 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13862 #endif
13863 }
13864 return resultobj;
13865 fail:
13866 return NULL;
13867 }
13868
13869
13870 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13871 PyObject *obj;
13872 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13873 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13874 return SWIG_Py_Void();
13875 }
13876
13877 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13878 PyObject *resultobj = 0;
13879 int arg1 = (int) -1 ;
13880 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13881 wxLocale *result = 0 ;
13882 int val1 ;
13883 int ecode1 = 0 ;
13884 int val2 ;
13885 int ecode2 = 0 ;
13886 PyObject * obj0 = 0 ;
13887 PyObject * obj1 = 0 ;
13888 char * kwnames[] = {
13889 (char *) "language",(char *) "flags", NULL
13890 };
13891
13892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13893 if (obj0) {
13894 ecode1 = SWIG_AsVal_int(obj0, &val1);
13895 if (!SWIG_IsOK(ecode1)) {
13896 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13897 }
13898 arg1 = static_cast< int >(val1);
13899 }
13900 if (obj1) {
13901 ecode2 = SWIG_AsVal_int(obj1, &val2);
13902 if (!SWIG_IsOK(ecode2)) {
13903 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13904 }
13905 arg2 = static_cast< int >(val2);
13906 }
13907 {
13908 PyThreadState* __tstate = wxPyBeginAllowThreads();
13909 result = (wxLocale *)new_wxLocale(arg1,arg2);
13910 wxPyEndAllowThreads(__tstate);
13911 if (PyErr_Occurred()) SWIG_fail;
13912 }
13913 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13914 return resultobj;
13915 fail:
13916 return NULL;
13917 }
13918
13919
13920 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13921 PyObject *resultobj = 0;
13922 wxLocale *arg1 = (wxLocale *) 0 ;
13923 void *argp1 = 0 ;
13924 int res1 = 0 ;
13925 PyObject *swig_obj[1] ;
13926
13927 if (!args) SWIG_fail;
13928 swig_obj[0] = args;
13929 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13930 if (!SWIG_IsOK(res1)) {
13931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13932 }
13933 arg1 = reinterpret_cast< wxLocale * >(argp1);
13934 {
13935 PyThreadState* __tstate = wxPyBeginAllowThreads();
13936 delete arg1;
13937
13938 wxPyEndAllowThreads(__tstate);
13939 if (PyErr_Occurred()) SWIG_fail;
13940 }
13941 resultobj = SWIG_Py_Void();
13942 return resultobj;
13943 fail:
13944 return NULL;
13945 }
13946
13947
13948 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13949 PyObject *resultobj = 0;
13950 wxLocale *arg1 = (wxLocale *) 0 ;
13951 wxString *arg2 = 0 ;
13952 wxString const &arg3_defvalue = wxPyEmptyString ;
13953 wxString *arg3 = (wxString *) &arg3_defvalue ;
13954 wxString const &arg4_defvalue = wxPyEmptyString ;
13955 wxString *arg4 = (wxString *) &arg4_defvalue ;
13956 bool arg5 = (bool) true ;
13957 bool arg6 = (bool) false ;
13958 bool result;
13959 void *argp1 = 0 ;
13960 int res1 = 0 ;
13961 bool temp2 = false ;
13962 bool temp3 = false ;
13963 bool temp4 = false ;
13964 bool val5 ;
13965 int ecode5 = 0 ;
13966 bool val6 ;
13967 int ecode6 = 0 ;
13968 PyObject * obj0 = 0 ;
13969 PyObject * obj1 = 0 ;
13970 PyObject * obj2 = 0 ;
13971 PyObject * obj3 = 0 ;
13972 PyObject * obj4 = 0 ;
13973 PyObject * obj5 = 0 ;
13974 char * kwnames[] = {
13975 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13976 };
13977
13978 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13979 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13980 if (!SWIG_IsOK(res1)) {
13981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13982 }
13983 arg1 = reinterpret_cast< wxLocale * >(argp1);
13984 {
13985 arg2 = wxString_in_helper(obj1);
13986 if (arg2 == NULL) SWIG_fail;
13987 temp2 = true;
13988 }
13989 if (obj2) {
13990 {
13991 arg3 = wxString_in_helper(obj2);
13992 if (arg3 == NULL) SWIG_fail;
13993 temp3 = true;
13994 }
13995 }
13996 if (obj3) {
13997 {
13998 arg4 = wxString_in_helper(obj3);
13999 if (arg4 == NULL) SWIG_fail;
14000 temp4 = true;
14001 }
14002 }
14003 if (obj4) {
14004 ecode5 = SWIG_AsVal_bool(obj4, &val5);
14005 if (!SWIG_IsOK(ecode5)) {
14006 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
14007 }
14008 arg5 = static_cast< bool >(val5);
14009 }
14010 if (obj5) {
14011 ecode6 = SWIG_AsVal_bool(obj5, &val6);
14012 if (!SWIG_IsOK(ecode6)) {
14013 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
14014 }
14015 arg6 = static_cast< bool >(val6);
14016 }
14017 {
14018 PyThreadState* __tstate = wxPyBeginAllowThreads();
14019 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
14020 wxPyEndAllowThreads(__tstate);
14021 if (PyErr_Occurred()) SWIG_fail;
14022 }
14023 {
14024 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14025 }
14026 {
14027 if (temp2)
14028 delete arg2;
14029 }
14030 {
14031 if (temp3)
14032 delete arg3;
14033 }
14034 {
14035 if (temp4)
14036 delete arg4;
14037 }
14038 return resultobj;
14039 fail:
14040 {
14041 if (temp2)
14042 delete arg2;
14043 }
14044 {
14045 if (temp3)
14046 delete arg3;
14047 }
14048 {
14049 if (temp4)
14050 delete arg4;
14051 }
14052 return NULL;
14053 }
14054
14055
14056 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14057 PyObject *resultobj = 0;
14058 wxLocale *arg1 = (wxLocale *) 0 ;
14059 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14060 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14061 bool result;
14062 void *argp1 = 0 ;
14063 int res1 = 0 ;
14064 int val2 ;
14065 int ecode2 = 0 ;
14066 int val3 ;
14067 int ecode3 = 0 ;
14068 PyObject * obj0 = 0 ;
14069 PyObject * obj1 = 0 ;
14070 PyObject * obj2 = 0 ;
14071 char * kwnames[] = {
14072 (char *) "self",(char *) "language",(char *) "flags", NULL
14073 };
14074
14075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14077 if (!SWIG_IsOK(res1)) {
14078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14079 }
14080 arg1 = reinterpret_cast< wxLocale * >(argp1);
14081 if (obj1) {
14082 ecode2 = SWIG_AsVal_int(obj1, &val2);
14083 if (!SWIG_IsOK(ecode2)) {
14084 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14085 }
14086 arg2 = static_cast< int >(val2);
14087 }
14088 if (obj2) {
14089 ecode3 = SWIG_AsVal_int(obj2, &val3);
14090 if (!SWIG_IsOK(ecode3)) {
14091 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14092 }
14093 arg3 = static_cast< int >(val3);
14094 }
14095 {
14096 PyThreadState* __tstate = wxPyBeginAllowThreads();
14097 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14098 wxPyEndAllowThreads(__tstate);
14099 if (PyErr_Occurred()) SWIG_fail;
14100 }
14101 {
14102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14103 }
14104 return resultobj;
14105 fail:
14106 return NULL;
14107 }
14108
14109
14110 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14111 PyObject *resultobj = 0;
14112 int result;
14113
14114 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14115 {
14116 PyThreadState* __tstate = wxPyBeginAllowThreads();
14117 result = (int)wxLocale::GetSystemLanguage();
14118 wxPyEndAllowThreads(__tstate);
14119 if (PyErr_Occurred()) SWIG_fail;
14120 }
14121 resultobj = SWIG_From_int(static_cast< int >(result));
14122 return resultobj;
14123 fail:
14124 return NULL;
14125 }
14126
14127
14128 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14129 PyObject *resultobj = 0;
14130 wxFontEncoding result;
14131
14132 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14133 {
14134 PyThreadState* __tstate = wxPyBeginAllowThreads();
14135 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14136 wxPyEndAllowThreads(__tstate);
14137 if (PyErr_Occurred()) SWIG_fail;
14138 }
14139 resultobj = SWIG_From_int(static_cast< int >(result));
14140 return resultobj;
14141 fail:
14142 return NULL;
14143 }
14144
14145
14146 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14147 PyObject *resultobj = 0;
14148 wxString result;
14149
14150 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14151 {
14152 PyThreadState* __tstate = wxPyBeginAllowThreads();
14153 result = wxLocale::GetSystemEncodingName();
14154 wxPyEndAllowThreads(__tstate);
14155 if (PyErr_Occurred()) SWIG_fail;
14156 }
14157 {
14158 #if wxUSE_UNICODE
14159 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14160 #else
14161 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14162 #endif
14163 }
14164 return resultobj;
14165 fail:
14166 return NULL;
14167 }
14168
14169
14170 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14171 PyObject *resultobj = 0;
14172 wxLocale *arg1 = (wxLocale *) 0 ;
14173 bool result;
14174 void *argp1 = 0 ;
14175 int res1 = 0 ;
14176 PyObject *swig_obj[1] ;
14177
14178 if (!args) SWIG_fail;
14179 swig_obj[0] = args;
14180 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14181 if (!SWIG_IsOK(res1)) {
14182 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14183 }
14184 arg1 = reinterpret_cast< wxLocale * >(argp1);
14185 {
14186 PyThreadState* __tstate = wxPyBeginAllowThreads();
14187 result = (bool)((wxLocale const *)arg1)->IsOk();
14188 wxPyEndAllowThreads(__tstate);
14189 if (PyErr_Occurred()) SWIG_fail;
14190 }
14191 {
14192 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14193 }
14194 return resultobj;
14195 fail:
14196 return NULL;
14197 }
14198
14199
14200 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14201 PyObject *resultobj = 0;
14202 wxLocale *arg1 = (wxLocale *) 0 ;
14203 wxString result;
14204 void *argp1 = 0 ;
14205 int res1 = 0 ;
14206 PyObject *swig_obj[1] ;
14207
14208 if (!args) SWIG_fail;
14209 swig_obj[0] = args;
14210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14211 if (!SWIG_IsOK(res1)) {
14212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14213 }
14214 arg1 = reinterpret_cast< wxLocale * >(argp1);
14215 {
14216 PyThreadState* __tstate = wxPyBeginAllowThreads();
14217 result = ((wxLocale const *)arg1)->GetLocale();
14218 wxPyEndAllowThreads(__tstate);
14219 if (PyErr_Occurred()) SWIG_fail;
14220 }
14221 {
14222 #if wxUSE_UNICODE
14223 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14224 #else
14225 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14226 #endif
14227 }
14228 return resultobj;
14229 fail:
14230 return NULL;
14231 }
14232
14233
14234 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14235 PyObject *resultobj = 0;
14236 wxLocale *arg1 = (wxLocale *) 0 ;
14237 int result;
14238 void *argp1 = 0 ;
14239 int res1 = 0 ;
14240 PyObject *swig_obj[1] ;
14241
14242 if (!args) SWIG_fail;
14243 swig_obj[0] = args;
14244 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14245 if (!SWIG_IsOK(res1)) {
14246 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14247 }
14248 arg1 = reinterpret_cast< wxLocale * >(argp1);
14249 {
14250 PyThreadState* __tstate = wxPyBeginAllowThreads();
14251 result = (int)((wxLocale const *)arg1)->GetLanguage();
14252 wxPyEndAllowThreads(__tstate);
14253 if (PyErr_Occurred()) SWIG_fail;
14254 }
14255 resultobj = SWIG_From_int(static_cast< int >(result));
14256 return resultobj;
14257 fail:
14258 return NULL;
14259 }
14260
14261
14262 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14263 PyObject *resultobj = 0;
14264 wxLocale *arg1 = (wxLocale *) 0 ;
14265 wxString result;
14266 void *argp1 = 0 ;
14267 int res1 = 0 ;
14268 PyObject *swig_obj[1] ;
14269
14270 if (!args) SWIG_fail;
14271 swig_obj[0] = args;
14272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14273 if (!SWIG_IsOK(res1)) {
14274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14275 }
14276 arg1 = reinterpret_cast< wxLocale * >(argp1);
14277 {
14278 PyThreadState* __tstate = wxPyBeginAllowThreads();
14279 result = ((wxLocale const *)arg1)->GetSysName();
14280 wxPyEndAllowThreads(__tstate);
14281 if (PyErr_Occurred()) SWIG_fail;
14282 }
14283 {
14284 #if wxUSE_UNICODE
14285 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14286 #else
14287 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14288 #endif
14289 }
14290 return resultobj;
14291 fail:
14292 return NULL;
14293 }
14294
14295
14296 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14297 PyObject *resultobj = 0;
14298 wxLocale *arg1 = (wxLocale *) 0 ;
14299 wxString result;
14300 void *argp1 = 0 ;
14301 int res1 = 0 ;
14302 PyObject *swig_obj[1] ;
14303
14304 if (!args) SWIG_fail;
14305 swig_obj[0] = args;
14306 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14307 if (!SWIG_IsOK(res1)) {
14308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14309 }
14310 arg1 = reinterpret_cast< wxLocale * >(argp1);
14311 {
14312 PyThreadState* __tstate = wxPyBeginAllowThreads();
14313 result = ((wxLocale const *)arg1)->GetCanonicalName();
14314 wxPyEndAllowThreads(__tstate);
14315 if (PyErr_Occurred()) SWIG_fail;
14316 }
14317 {
14318 #if wxUSE_UNICODE
14319 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14320 #else
14321 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14322 #endif
14323 }
14324 return resultobj;
14325 fail:
14326 return NULL;
14327 }
14328
14329
14330 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14331 PyObject *resultobj = 0;
14332 wxString *arg1 = 0 ;
14333 bool temp1 = false ;
14334 PyObject * obj0 = 0 ;
14335 char * kwnames[] = {
14336 (char *) "prefix", NULL
14337 };
14338
14339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14340 {
14341 arg1 = wxString_in_helper(obj0);
14342 if (arg1 == NULL) SWIG_fail;
14343 temp1 = true;
14344 }
14345 {
14346 PyThreadState* __tstate = wxPyBeginAllowThreads();
14347 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14348 wxPyEndAllowThreads(__tstate);
14349 if (PyErr_Occurred()) SWIG_fail;
14350 }
14351 resultobj = SWIG_Py_Void();
14352 {
14353 if (temp1)
14354 delete arg1;
14355 }
14356 return resultobj;
14357 fail:
14358 {
14359 if (temp1)
14360 delete arg1;
14361 }
14362 return NULL;
14363 }
14364
14365
14366 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14367 PyObject *resultobj = 0;
14368 wxLocale *arg1 = (wxLocale *) 0 ;
14369 wxString *arg2 = 0 ;
14370 bool result;
14371 void *argp1 = 0 ;
14372 int res1 = 0 ;
14373 bool temp2 = false ;
14374 PyObject * obj0 = 0 ;
14375 PyObject * obj1 = 0 ;
14376 char * kwnames[] = {
14377 (char *) "self",(char *) "szDomain", NULL
14378 };
14379
14380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14382 if (!SWIG_IsOK(res1)) {
14383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14384 }
14385 arg1 = reinterpret_cast< wxLocale * >(argp1);
14386 {
14387 arg2 = wxString_in_helper(obj1);
14388 if (arg2 == NULL) SWIG_fail;
14389 temp2 = true;
14390 }
14391 {
14392 PyThreadState* __tstate = wxPyBeginAllowThreads();
14393 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14394 wxPyEndAllowThreads(__tstate);
14395 if (PyErr_Occurred()) SWIG_fail;
14396 }
14397 {
14398 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14399 }
14400 {
14401 if (temp2)
14402 delete arg2;
14403 }
14404 return resultobj;
14405 fail:
14406 {
14407 if (temp2)
14408 delete arg2;
14409 }
14410 return NULL;
14411 }
14412
14413
14414 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14415 PyObject *resultobj = 0;
14416 wxLocale *arg1 = (wxLocale *) 0 ;
14417 wxString *arg2 = 0 ;
14418 bool result;
14419 void *argp1 = 0 ;
14420 int res1 = 0 ;
14421 bool temp2 = false ;
14422 PyObject * obj0 = 0 ;
14423 PyObject * obj1 = 0 ;
14424 char * kwnames[] = {
14425 (char *) "self",(char *) "szDomain", NULL
14426 };
14427
14428 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14429 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14430 if (!SWIG_IsOK(res1)) {
14431 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14432 }
14433 arg1 = reinterpret_cast< wxLocale * >(argp1);
14434 {
14435 arg2 = wxString_in_helper(obj1);
14436 if (arg2 == NULL) SWIG_fail;
14437 temp2 = true;
14438 }
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 {
14446 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14447 }
14448 {
14449 if (temp2)
14450 delete arg2;
14451 }
14452 return resultobj;
14453 fail:
14454 {
14455 if (temp2)
14456 delete arg2;
14457 }
14458 return NULL;
14459 }
14460
14461
14462 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14463 PyObject *resultobj = 0;
14464 int arg1 ;
14465 wxLanguageInfo *result = 0 ;
14466 int val1 ;
14467 int ecode1 = 0 ;
14468 PyObject * obj0 = 0 ;
14469 char * kwnames[] = {
14470 (char *) "lang", NULL
14471 };
14472
14473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14474 ecode1 = SWIG_AsVal_int(obj0, &val1);
14475 if (!SWIG_IsOK(ecode1)) {
14476 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14477 }
14478 arg1 = static_cast< int >(val1);
14479 {
14480 PyThreadState* __tstate = wxPyBeginAllowThreads();
14481 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14482 wxPyEndAllowThreads(__tstate);
14483 if (PyErr_Occurred()) SWIG_fail;
14484 }
14485 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14486 return resultobj;
14487 fail:
14488 return NULL;
14489 }
14490
14491
14492 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14493 PyObject *resultobj = 0;
14494 int arg1 ;
14495 wxString result;
14496 int val1 ;
14497 int ecode1 = 0 ;
14498 PyObject * obj0 = 0 ;
14499 char * kwnames[] = {
14500 (char *) "lang", NULL
14501 };
14502
14503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14504 ecode1 = SWIG_AsVal_int(obj0, &val1);
14505 if (!SWIG_IsOK(ecode1)) {
14506 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14507 }
14508 arg1 = static_cast< int >(val1);
14509 {
14510 PyThreadState* __tstate = wxPyBeginAllowThreads();
14511 result = wxLocale::GetLanguageName(arg1);
14512 wxPyEndAllowThreads(__tstate);
14513 if (PyErr_Occurred()) SWIG_fail;
14514 }
14515 {
14516 #if wxUSE_UNICODE
14517 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14518 #else
14519 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14520 #endif
14521 }
14522 return resultobj;
14523 fail:
14524 return NULL;
14525 }
14526
14527
14528 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14529 PyObject *resultobj = 0;
14530 wxString *arg1 = 0 ;
14531 wxLanguageInfo *result = 0 ;
14532 bool temp1 = false ;
14533 PyObject * obj0 = 0 ;
14534 char * kwnames[] = {
14535 (char *) "locale", NULL
14536 };
14537
14538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14539 {
14540 arg1 = wxString_in_helper(obj0);
14541 if (arg1 == NULL) SWIG_fail;
14542 temp1 = true;
14543 }
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14551 {
14552 if (temp1)
14553 delete arg1;
14554 }
14555 return resultobj;
14556 fail:
14557 {
14558 if (temp1)
14559 delete arg1;
14560 }
14561 return NULL;
14562 }
14563
14564
14565 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14566 PyObject *resultobj = 0;
14567 wxLanguageInfo *arg1 = 0 ;
14568 void *argp1 = 0 ;
14569 int res1 = 0 ;
14570 PyObject * obj0 = 0 ;
14571 char * kwnames[] = {
14572 (char *) "info", NULL
14573 };
14574
14575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14576 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14577 if (!SWIG_IsOK(res1)) {
14578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14579 }
14580 if (!argp1) {
14581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14582 }
14583 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14584 {
14585 PyThreadState* __tstate = wxPyBeginAllowThreads();
14586 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14587 wxPyEndAllowThreads(__tstate);
14588 if (PyErr_Occurred()) SWIG_fail;
14589 }
14590 resultobj = SWIG_Py_Void();
14591 return resultobj;
14592 fail:
14593 return NULL;
14594 }
14595
14596
14597 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14598 PyObject *resultobj = 0;
14599 wxLocale *arg1 = (wxLocale *) 0 ;
14600 wxString *arg2 = 0 ;
14601 wxString const &arg3_defvalue = wxPyEmptyString ;
14602 wxString *arg3 = (wxString *) &arg3_defvalue ;
14603 wxString result;
14604 void *argp1 = 0 ;
14605 int res1 = 0 ;
14606 bool temp2 = false ;
14607 bool temp3 = false ;
14608 PyObject * obj0 = 0 ;
14609 PyObject * obj1 = 0 ;
14610 PyObject * obj2 = 0 ;
14611 char * kwnames[] = {
14612 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14613 };
14614
14615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14617 if (!SWIG_IsOK(res1)) {
14618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14619 }
14620 arg1 = reinterpret_cast< wxLocale * >(argp1);
14621 {
14622 arg2 = wxString_in_helper(obj1);
14623 if (arg2 == NULL) SWIG_fail;
14624 temp2 = true;
14625 }
14626 if (obj2) {
14627 {
14628 arg3 = wxString_in_helper(obj2);
14629 if (arg3 == NULL) SWIG_fail;
14630 temp3 = true;
14631 }
14632 }
14633 {
14634 PyThreadState* __tstate = wxPyBeginAllowThreads();
14635 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14636 wxPyEndAllowThreads(__tstate);
14637 if (PyErr_Occurred()) SWIG_fail;
14638 }
14639 {
14640 #if wxUSE_UNICODE
14641 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14642 #else
14643 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14644 #endif
14645 }
14646 {
14647 if (temp2)
14648 delete arg2;
14649 }
14650 {
14651 if (temp3)
14652 delete arg3;
14653 }
14654 return resultobj;
14655 fail:
14656 {
14657 if (temp2)
14658 delete arg2;
14659 }
14660 {
14661 if (temp3)
14662 delete arg3;
14663 }
14664 return NULL;
14665 }
14666
14667
14668 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14669 PyObject *resultobj = 0;
14670 wxLocale *arg1 = (wxLocale *) 0 ;
14671 wxString *result = 0 ;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 PyObject *swig_obj[1] ;
14675
14676 if (!args) SWIG_fail;
14677 swig_obj[0] = args;
14678 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14679 if (!SWIG_IsOK(res1)) {
14680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14681 }
14682 arg1 = reinterpret_cast< wxLocale * >(argp1);
14683 {
14684 PyThreadState* __tstate = wxPyBeginAllowThreads();
14685 {
14686 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14687 result = (wxString *) &_result_ref;
14688 }
14689 wxPyEndAllowThreads(__tstate);
14690 if (PyErr_Occurred()) SWIG_fail;
14691 }
14692 {
14693 #if wxUSE_UNICODE
14694 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14695 #else
14696 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14697 #endif
14698 }
14699 return resultobj;
14700 fail:
14701 return NULL;
14702 }
14703
14704
14705 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14706 PyObject *obj;
14707 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14708 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14709 return SWIG_Py_Void();
14710 }
14711
14712 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14713 return SWIG_Python_InitShadowInstance(args);
14714 }
14715
14716 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14717 PyObject *resultobj = 0;
14718 wxLocale *result = 0 ;
14719
14720 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14721 {
14722 PyThreadState* __tstate = wxPyBeginAllowThreads();
14723 result = (wxLocale *)wxGetLocale();
14724 wxPyEndAllowThreads(__tstate);
14725 if (PyErr_Occurred()) SWIG_fail;
14726 }
14727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14728 return resultobj;
14729 fail:
14730 return NULL;
14731 }
14732
14733
14734 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14735 PyObject *resultobj = 0;
14736 wxString *arg1 = 0 ;
14737 wxString result;
14738 bool temp1 = false ;
14739
14740 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14741 {
14742 arg1 = wxString_in_helper(swig_obj[0]);
14743 if (arg1 == NULL) SWIG_fail;
14744 temp1 = true;
14745 }
14746 {
14747 PyThreadState* __tstate = wxPyBeginAllowThreads();
14748 result = wxGetTranslation((wxString const &)*arg1);
14749 wxPyEndAllowThreads(__tstate);
14750 if (PyErr_Occurred()) SWIG_fail;
14751 }
14752 {
14753 #if wxUSE_UNICODE
14754 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14755 #else
14756 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14757 #endif
14758 }
14759 {
14760 if (temp1)
14761 delete arg1;
14762 }
14763 return resultobj;
14764 fail:
14765 {
14766 if (temp1)
14767 delete arg1;
14768 }
14769 return NULL;
14770 }
14771
14772
14773 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14774 PyObject *resultobj = 0;
14775 wxString *arg1 = 0 ;
14776 wxString *arg2 = 0 ;
14777 size_t arg3 ;
14778 wxString result;
14779 bool temp1 = false ;
14780 bool temp2 = false ;
14781 size_t val3 ;
14782 int ecode3 = 0 ;
14783
14784 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14785 {
14786 arg1 = wxString_in_helper(swig_obj[0]);
14787 if (arg1 == NULL) SWIG_fail;
14788 temp1 = true;
14789 }
14790 {
14791 arg2 = wxString_in_helper(swig_obj[1]);
14792 if (arg2 == NULL) SWIG_fail;
14793 temp2 = true;
14794 }
14795 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14796 if (!SWIG_IsOK(ecode3)) {
14797 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14798 }
14799 arg3 = static_cast< size_t >(val3);
14800 {
14801 PyThreadState* __tstate = wxPyBeginAllowThreads();
14802 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14803 wxPyEndAllowThreads(__tstate);
14804 if (PyErr_Occurred()) SWIG_fail;
14805 }
14806 {
14807 #if wxUSE_UNICODE
14808 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14809 #else
14810 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14811 #endif
14812 }
14813 {
14814 if (temp1)
14815 delete arg1;
14816 }
14817 {
14818 if (temp2)
14819 delete arg2;
14820 }
14821 return resultobj;
14822 fail:
14823 {
14824 if (temp1)
14825 delete arg1;
14826 }
14827 {
14828 if (temp2)
14829 delete arg2;
14830 }
14831 return NULL;
14832 }
14833
14834
14835 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14836 int argc;
14837 PyObject *argv[4];
14838
14839 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14840 --argc;
14841 if (argc == 1) {
14842 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14843 }
14844 if (argc == 3) {
14845 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14846 }
14847
14848 fail:
14849 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14850 return NULL;
14851 }
14852
14853
14854 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14855 PyObject *resultobj = 0;
14856 wxEncodingConverter *result = 0 ;
14857
14858 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14859 {
14860 PyThreadState* __tstate = wxPyBeginAllowThreads();
14861 result = (wxEncodingConverter *)new wxEncodingConverter();
14862 wxPyEndAllowThreads(__tstate);
14863 if (PyErr_Occurred()) SWIG_fail;
14864 }
14865 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14866 return resultobj;
14867 fail:
14868 return NULL;
14869 }
14870
14871
14872 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14873 PyObject *resultobj = 0;
14874 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14875 void *argp1 = 0 ;
14876 int res1 = 0 ;
14877 PyObject *swig_obj[1] ;
14878
14879 if (!args) SWIG_fail;
14880 swig_obj[0] = args;
14881 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14882 if (!SWIG_IsOK(res1)) {
14883 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14884 }
14885 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14886 {
14887 PyThreadState* __tstate = wxPyBeginAllowThreads();
14888 delete arg1;
14889
14890 wxPyEndAllowThreads(__tstate);
14891 if (PyErr_Occurred()) SWIG_fail;
14892 }
14893 resultobj = SWIG_Py_Void();
14894 return resultobj;
14895 fail:
14896 return NULL;
14897 }
14898
14899
14900 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14901 PyObject *resultobj = 0;
14902 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14903 wxFontEncoding arg2 ;
14904 wxFontEncoding arg3 ;
14905 int arg4 = (int) wxCONVERT_STRICT ;
14906 bool result;
14907 void *argp1 = 0 ;
14908 int res1 = 0 ;
14909 int val2 ;
14910 int ecode2 = 0 ;
14911 int val3 ;
14912 int ecode3 = 0 ;
14913 int val4 ;
14914 int ecode4 = 0 ;
14915 PyObject * obj0 = 0 ;
14916 PyObject * obj1 = 0 ;
14917 PyObject * obj2 = 0 ;
14918 PyObject * obj3 = 0 ;
14919 char * kwnames[] = {
14920 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14921 };
14922
14923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14925 if (!SWIG_IsOK(res1)) {
14926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14927 }
14928 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14929 ecode2 = SWIG_AsVal_int(obj1, &val2);
14930 if (!SWIG_IsOK(ecode2)) {
14931 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14932 }
14933 arg2 = static_cast< wxFontEncoding >(val2);
14934 ecode3 = SWIG_AsVal_int(obj2, &val3);
14935 if (!SWIG_IsOK(ecode3)) {
14936 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14937 }
14938 arg3 = static_cast< wxFontEncoding >(val3);
14939 if (obj3) {
14940 ecode4 = SWIG_AsVal_int(obj3, &val4);
14941 if (!SWIG_IsOK(ecode4)) {
14942 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14943 }
14944 arg4 = static_cast< int >(val4);
14945 }
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14949 wxPyEndAllowThreads(__tstate);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
14952 {
14953 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14954 }
14955 return resultobj;
14956 fail:
14957 return NULL;
14958 }
14959
14960
14961 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14962 PyObject *resultobj = 0;
14963 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14964 wxString *arg2 = 0 ;
14965 wxString result;
14966 void *argp1 = 0 ;
14967 int res1 = 0 ;
14968 bool temp2 = false ;
14969 PyObject * obj0 = 0 ;
14970 PyObject * obj1 = 0 ;
14971 char * kwnames[] = {
14972 (char *) "self",(char *) "input", NULL
14973 };
14974
14975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14977 if (!SWIG_IsOK(res1)) {
14978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14979 }
14980 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14981 {
14982 arg2 = wxString_in_helper(obj1);
14983 if (arg2 == NULL) SWIG_fail;
14984 temp2 = true;
14985 }
14986 {
14987 PyThreadState* __tstate = wxPyBeginAllowThreads();
14988 result = (arg1)->Convert((wxString const &)*arg2);
14989 wxPyEndAllowThreads(__tstate);
14990 if (PyErr_Occurred()) SWIG_fail;
14991 }
14992 {
14993 #if wxUSE_UNICODE
14994 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14995 #else
14996 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14997 #endif
14998 }
14999 {
15000 if (temp2)
15001 delete arg2;
15002 }
15003 return resultobj;
15004 fail:
15005 {
15006 if (temp2)
15007 delete arg2;
15008 }
15009 return NULL;
15010 }
15011
15012
15013 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15014 PyObject *resultobj = 0;
15015 wxFontEncoding arg1 ;
15016 int arg2 = (int) wxPLATFORM_CURRENT ;
15017 wxFontEncodingArray result;
15018 int val1 ;
15019 int ecode1 = 0 ;
15020 int val2 ;
15021 int ecode2 = 0 ;
15022 PyObject * obj0 = 0 ;
15023 PyObject * obj1 = 0 ;
15024 char * kwnames[] = {
15025 (char *) "enc",(char *) "platform", NULL
15026 };
15027
15028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
15029 ecode1 = SWIG_AsVal_int(obj0, &val1);
15030 if (!SWIG_IsOK(ecode1)) {
15031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15032 }
15033 arg1 = static_cast< wxFontEncoding >(val1);
15034 if (obj1) {
15035 ecode2 = SWIG_AsVal_int(obj1, &val2);
15036 if (!SWIG_IsOK(ecode2)) {
15037 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
15038 }
15039 arg2 = static_cast< int >(val2);
15040 }
15041 {
15042 PyThreadState* __tstate = wxPyBeginAllowThreads();
15043 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15044 wxPyEndAllowThreads(__tstate);
15045 if (PyErr_Occurred()) SWIG_fail;
15046 }
15047 {
15048 resultobj = PyList_New(0);
15049 for (size_t i=0; i < (&result)->GetCount(); i++) {
15050 PyObject* number = PyInt_FromLong((&result)->Item(i));
15051 PyList_Append(resultobj, number);
15052 Py_DECREF(number);
15053 }
15054 }
15055 return resultobj;
15056 fail:
15057 return NULL;
15058 }
15059
15060
15061 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15062 PyObject *resultobj = 0;
15063 wxFontEncoding arg1 ;
15064 wxFontEncodingArray result;
15065 int val1 ;
15066 int ecode1 = 0 ;
15067 PyObject * obj0 = 0 ;
15068 char * kwnames[] = {
15069 (char *) "enc", NULL
15070 };
15071
15072 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15073 ecode1 = SWIG_AsVal_int(obj0, &val1);
15074 if (!SWIG_IsOK(ecode1)) {
15075 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15076 }
15077 arg1 = static_cast< wxFontEncoding >(val1);
15078 {
15079 PyThreadState* __tstate = wxPyBeginAllowThreads();
15080 result = wxEncodingConverter::GetAllEquivalents(arg1);
15081 wxPyEndAllowThreads(__tstate);
15082 if (PyErr_Occurred()) SWIG_fail;
15083 }
15084 {
15085 resultobj = PyList_New(0);
15086 for (size_t i=0; i < (&result)->GetCount(); i++) {
15087 PyObject* number = PyInt_FromLong((&result)->Item(i));
15088 PyList_Append(resultobj, number);
15089 Py_DECREF(number);
15090 }
15091 }
15092 return resultobj;
15093 fail:
15094 return NULL;
15095 }
15096
15097
15098 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15099 PyObject *resultobj = 0;
15100 wxFontEncoding arg1 ;
15101 wxFontEncoding arg2 ;
15102 bool result;
15103 int val1 ;
15104 int ecode1 = 0 ;
15105 int val2 ;
15106 int ecode2 = 0 ;
15107 PyObject * obj0 = 0 ;
15108 PyObject * obj1 = 0 ;
15109 char * kwnames[] = {
15110 (char *) "encIn",(char *) "encOut", NULL
15111 };
15112
15113 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15114 ecode1 = SWIG_AsVal_int(obj0, &val1);
15115 if (!SWIG_IsOK(ecode1)) {
15116 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15117 }
15118 arg1 = static_cast< wxFontEncoding >(val1);
15119 ecode2 = SWIG_AsVal_int(obj1, &val2);
15120 if (!SWIG_IsOK(ecode2)) {
15121 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15122 }
15123 arg2 = static_cast< wxFontEncoding >(val2);
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15127 wxPyEndAllowThreads(__tstate);
15128 if (PyErr_Occurred()) SWIG_fail;
15129 }
15130 {
15131 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15132 }
15133 return resultobj;
15134 fail:
15135 return NULL;
15136 }
15137
15138
15139 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15140 PyObject *obj;
15141 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15142 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15143 return SWIG_Py_Void();
15144 }
15145
15146 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15147 return SWIG_Python_InitShadowInstance(args);
15148 }
15149
15150 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15151 PyObject *resultobj = 0;
15152 wxDC *arg1 = (wxDC *) 0 ;
15153 void *argp1 = 0 ;
15154 int res1 = 0 ;
15155 PyObject *swig_obj[1] ;
15156
15157 if (!args) SWIG_fail;
15158 swig_obj[0] = args;
15159 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15160 if (!SWIG_IsOK(res1)) {
15161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15162 }
15163 arg1 = reinterpret_cast< wxDC * >(argp1);
15164 {
15165 PyThreadState* __tstate = wxPyBeginAllowThreads();
15166 delete arg1;
15167
15168 wxPyEndAllowThreads(__tstate);
15169 if (PyErr_Occurred()) SWIG_fail;
15170 }
15171 resultobj = SWIG_Py_Void();
15172 return resultobj;
15173 fail:
15174 return NULL;
15175 }
15176
15177
15178 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15179 PyObject *resultobj = 0;
15180 wxDC *arg1 = (wxDC *) 0 ;
15181 int arg2 ;
15182 int arg3 ;
15183 wxColour *arg4 = 0 ;
15184 int arg5 = (int) wxFLOOD_SURFACE ;
15185 bool result;
15186 void *argp1 = 0 ;
15187 int res1 = 0 ;
15188 int val2 ;
15189 int ecode2 = 0 ;
15190 int val3 ;
15191 int ecode3 = 0 ;
15192 wxColour temp4 ;
15193 int val5 ;
15194 int ecode5 = 0 ;
15195 PyObject * obj0 = 0 ;
15196 PyObject * obj1 = 0 ;
15197 PyObject * obj2 = 0 ;
15198 PyObject * obj3 = 0 ;
15199 PyObject * obj4 = 0 ;
15200 char * kwnames[] = {
15201 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15202 };
15203
15204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15206 if (!SWIG_IsOK(res1)) {
15207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15208 }
15209 arg1 = reinterpret_cast< wxDC * >(argp1);
15210 ecode2 = SWIG_AsVal_int(obj1, &val2);
15211 if (!SWIG_IsOK(ecode2)) {
15212 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15213 }
15214 arg2 = static_cast< int >(val2);
15215 ecode3 = SWIG_AsVal_int(obj2, &val3);
15216 if (!SWIG_IsOK(ecode3)) {
15217 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15218 }
15219 arg3 = static_cast< int >(val3);
15220 {
15221 arg4 = &temp4;
15222 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15223 }
15224 if (obj4) {
15225 ecode5 = SWIG_AsVal_int(obj4, &val5);
15226 if (!SWIG_IsOK(ecode5)) {
15227 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15228 }
15229 arg5 = static_cast< int >(val5);
15230 }
15231 {
15232 PyThreadState* __tstate = wxPyBeginAllowThreads();
15233 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15234 wxPyEndAllowThreads(__tstate);
15235 if (PyErr_Occurred()) SWIG_fail;
15236 }
15237 {
15238 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15239 }
15240 return resultobj;
15241 fail:
15242 return NULL;
15243 }
15244
15245
15246 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15247 PyObject *resultobj = 0;
15248 wxDC *arg1 = (wxDC *) 0 ;
15249 wxPoint *arg2 = 0 ;
15250 wxColour *arg3 = 0 ;
15251 int arg4 = (int) wxFLOOD_SURFACE ;
15252 bool result;
15253 void *argp1 = 0 ;
15254 int res1 = 0 ;
15255 wxPoint temp2 ;
15256 wxColour temp3 ;
15257 int val4 ;
15258 int ecode4 = 0 ;
15259 PyObject * obj0 = 0 ;
15260 PyObject * obj1 = 0 ;
15261 PyObject * obj2 = 0 ;
15262 PyObject * obj3 = 0 ;
15263 char * kwnames[] = {
15264 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15265 };
15266
15267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15269 if (!SWIG_IsOK(res1)) {
15270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15271 }
15272 arg1 = reinterpret_cast< wxDC * >(argp1);
15273 {
15274 arg2 = &temp2;
15275 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15276 }
15277 {
15278 arg3 = &temp3;
15279 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15280 }
15281 if (obj3) {
15282 ecode4 = SWIG_AsVal_int(obj3, &val4);
15283 if (!SWIG_IsOK(ecode4)) {
15284 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15285 }
15286 arg4 = static_cast< int >(val4);
15287 }
15288 {
15289 PyThreadState* __tstate = wxPyBeginAllowThreads();
15290 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15291 wxPyEndAllowThreads(__tstate);
15292 if (PyErr_Occurred()) SWIG_fail;
15293 }
15294 {
15295 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15296 }
15297 return resultobj;
15298 fail:
15299 return NULL;
15300 }
15301
15302
15303 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15304 PyObject *resultobj = 0;
15305 wxDC *arg1 = (wxDC *) 0 ;
15306 wxRect *arg2 = 0 ;
15307 wxColour *arg3 = 0 ;
15308 wxColour *arg4 = 0 ;
15309 wxPoint *arg5 = 0 ;
15310 void *argp1 = 0 ;
15311 int res1 = 0 ;
15312 wxRect temp2 ;
15313 wxColour temp3 ;
15314 wxColour temp4 ;
15315 wxPoint temp5 ;
15316 PyObject * obj0 = 0 ;
15317 PyObject * obj1 = 0 ;
15318 PyObject * obj2 = 0 ;
15319 PyObject * obj3 = 0 ;
15320 PyObject * obj4 = 0 ;
15321 char * kwnames[] = {
15322 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15323 };
15324
15325 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15326 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15327 if (!SWIG_IsOK(res1)) {
15328 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15329 }
15330 arg1 = reinterpret_cast< wxDC * >(argp1);
15331 {
15332 arg2 = &temp2;
15333 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15334 }
15335 {
15336 arg3 = &temp3;
15337 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15338 }
15339 {
15340 arg4 = &temp4;
15341 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15342 }
15343 {
15344 arg5 = &temp5;
15345 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15346 }
15347 {
15348 PyThreadState* __tstate = wxPyBeginAllowThreads();
15349 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15350 wxPyEndAllowThreads(__tstate);
15351 if (PyErr_Occurred()) SWIG_fail;
15352 }
15353 resultobj = SWIG_Py_Void();
15354 return resultobj;
15355 fail:
15356 return NULL;
15357 }
15358
15359
15360 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15361 PyObject *resultobj = 0;
15362 wxDC *arg1 = (wxDC *) 0 ;
15363 wxRect *arg2 = 0 ;
15364 wxColour *arg3 = 0 ;
15365 wxColour *arg4 = 0 ;
15366 wxDirection arg5 = (wxDirection) wxEAST ;
15367 void *argp1 = 0 ;
15368 int res1 = 0 ;
15369 wxRect temp2 ;
15370 wxColour temp3 ;
15371 wxColour temp4 ;
15372 int val5 ;
15373 int ecode5 = 0 ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 PyObject * obj2 = 0 ;
15377 PyObject * obj3 = 0 ;
15378 PyObject * obj4 = 0 ;
15379 char * kwnames[] = {
15380 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15381 };
15382
15383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15385 if (!SWIG_IsOK(res1)) {
15386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15387 }
15388 arg1 = reinterpret_cast< wxDC * >(argp1);
15389 {
15390 arg2 = &temp2;
15391 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15392 }
15393 {
15394 arg3 = &temp3;
15395 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15396 }
15397 {
15398 arg4 = &temp4;
15399 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15400 }
15401 if (obj4) {
15402 ecode5 = SWIG_AsVal_int(obj4, &val5);
15403 if (!SWIG_IsOK(ecode5)) {
15404 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15405 }
15406 arg5 = static_cast< wxDirection >(val5);
15407 }
15408 {
15409 PyThreadState* __tstate = wxPyBeginAllowThreads();
15410 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15411 wxPyEndAllowThreads(__tstate);
15412 if (PyErr_Occurred()) SWIG_fail;
15413 }
15414 resultobj = SWIG_Py_Void();
15415 return resultobj;
15416 fail:
15417 return NULL;
15418 }
15419
15420
15421 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15422 PyObject *resultobj = 0;
15423 wxDC *arg1 = (wxDC *) 0 ;
15424 int arg2 ;
15425 int arg3 ;
15426 wxColour result;
15427 void *argp1 = 0 ;
15428 int res1 = 0 ;
15429 int val2 ;
15430 int ecode2 = 0 ;
15431 int val3 ;
15432 int ecode3 = 0 ;
15433 PyObject * obj0 = 0 ;
15434 PyObject * obj1 = 0 ;
15435 PyObject * obj2 = 0 ;
15436 char * kwnames[] = {
15437 (char *) "self",(char *) "x",(char *) "y", NULL
15438 };
15439
15440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15442 if (!SWIG_IsOK(res1)) {
15443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15444 }
15445 arg1 = reinterpret_cast< wxDC * >(argp1);
15446 ecode2 = SWIG_AsVal_int(obj1, &val2);
15447 if (!SWIG_IsOK(ecode2)) {
15448 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15449 }
15450 arg2 = static_cast< int >(val2);
15451 ecode3 = SWIG_AsVal_int(obj2, &val3);
15452 if (!SWIG_IsOK(ecode3)) {
15453 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15454 }
15455 arg3 = static_cast< int >(val3);
15456 {
15457 PyThreadState* __tstate = wxPyBeginAllowThreads();
15458 result = wxDC_GetPixel(arg1,arg2,arg3);
15459 wxPyEndAllowThreads(__tstate);
15460 if (PyErr_Occurred()) SWIG_fail;
15461 }
15462 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15463 return resultobj;
15464 fail:
15465 return NULL;
15466 }
15467
15468
15469 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15470 PyObject *resultobj = 0;
15471 wxDC *arg1 = (wxDC *) 0 ;
15472 wxPoint *arg2 = 0 ;
15473 wxColour result;
15474 void *argp1 = 0 ;
15475 int res1 = 0 ;
15476 wxPoint temp2 ;
15477 PyObject * obj0 = 0 ;
15478 PyObject * obj1 = 0 ;
15479 char * kwnames[] = {
15480 (char *) "self",(char *) "pt", NULL
15481 };
15482
15483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15485 if (!SWIG_IsOK(res1)) {
15486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15487 }
15488 arg1 = reinterpret_cast< wxDC * >(argp1);
15489 {
15490 arg2 = &temp2;
15491 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15492 }
15493 {
15494 PyThreadState* __tstate = wxPyBeginAllowThreads();
15495 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15496 wxPyEndAllowThreads(__tstate);
15497 if (PyErr_Occurred()) SWIG_fail;
15498 }
15499 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15500 return resultobj;
15501 fail:
15502 return NULL;
15503 }
15504
15505
15506 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15507 PyObject *resultobj = 0;
15508 wxDC *arg1 = (wxDC *) 0 ;
15509 int arg2 ;
15510 int arg3 ;
15511 int arg4 ;
15512 int arg5 ;
15513 void *argp1 = 0 ;
15514 int res1 = 0 ;
15515 int val2 ;
15516 int ecode2 = 0 ;
15517 int val3 ;
15518 int ecode3 = 0 ;
15519 int val4 ;
15520 int ecode4 = 0 ;
15521 int val5 ;
15522 int ecode5 = 0 ;
15523 PyObject * obj0 = 0 ;
15524 PyObject * obj1 = 0 ;
15525 PyObject * obj2 = 0 ;
15526 PyObject * obj3 = 0 ;
15527 PyObject * obj4 = 0 ;
15528 char * kwnames[] = {
15529 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15530 };
15531
15532 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15533 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15534 if (!SWIG_IsOK(res1)) {
15535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15536 }
15537 arg1 = reinterpret_cast< wxDC * >(argp1);
15538 ecode2 = SWIG_AsVal_int(obj1, &val2);
15539 if (!SWIG_IsOK(ecode2)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15541 }
15542 arg2 = static_cast< int >(val2);
15543 ecode3 = SWIG_AsVal_int(obj2, &val3);
15544 if (!SWIG_IsOK(ecode3)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15546 }
15547 arg3 = static_cast< int >(val3);
15548 ecode4 = SWIG_AsVal_int(obj3, &val4);
15549 if (!SWIG_IsOK(ecode4)) {
15550 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15551 }
15552 arg4 = static_cast< int >(val4);
15553 ecode5 = SWIG_AsVal_int(obj4, &val5);
15554 if (!SWIG_IsOK(ecode5)) {
15555 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15556 }
15557 arg5 = static_cast< int >(val5);
15558 {
15559 PyThreadState* __tstate = wxPyBeginAllowThreads();
15560 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15561 wxPyEndAllowThreads(__tstate);
15562 if (PyErr_Occurred()) SWIG_fail;
15563 }
15564 resultobj = SWIG_Py_Void();
15565 return resultobj;
15566 fail:
15567 return NULL;
15568 }
15569
15570
15571 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15572 PyObject *resultobj = 0;
15573 wxDC *arg1 = (wxDC *) 0 ;
15574 wxPoint *arg2 = 0 ;
15575 wxPoint *arg3 = 0 ;
15576 void *argp1 = 0 ;
15577 int res1 = 0 ;
15578 wxPoint temp2 ;
15579 wxPoint temp3 ;
15580 PyObject * obj0 = 0 ;
15581 PyObject * obj1 = 0 ;
15582 PyObject * obj2 = 0 ;
15583 char * kwnames[] = {
15584 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15585 };
15586
15587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15589 if (!SWIG_IsOK(res1)) {
15590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15591 }
15592 arg1 = reinterpret_cast< wxDC * >(argp1);
15593 {
15594 arg2 = &temp2;
15595 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15596 }
15597 {
15598 arg3 = &temp3;
15599 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15600 }
15601 {
15602 PyThreadState* __tstate = wxPyBeginAllowThreads();
15603 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15604 wxPyEndAllowThreads(__tstate);
15605 if (PyErr_Occurred()) SWIG_fail;
15606 }
15607 resultobj = SWIG_Py_Void();
15608 return resultobj;
15609 fail:
15610 return NULL;
15611 }
15612
15613
15614 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15615 PyObject *resultobj = 0;
15616 wxDC *arg1 = (wxDC *) 0 ;
15617 int arg2 ;
15618 int arg3 ;
15619 void *argp1 = 0 ;
15620 int res1 = 0 ;
15621 int val2 ;
15622 int ecode2 = 0 ;
15623 int val3 ;
15624 int ecode3 = 0 ;
15625 PyObject * obj0 = 0 ;
15626 PyObject * obj1 = 0 ;
15627 PyObject * obj2 = 0 ;
15628 char * kwnames[] = {
15629 (char *) "self",(char *) "x",(char *) "y", NULL
15630 };
15631
15632 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15633 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15634 if (!SWIG_IsOK(res1)) {
15635 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15636 }
15637 arg1 = reinterpret_cast< wxDC * >(argp1);
15638 ecode2 = SWIG_AsVal_int(obj1, &val2);
15639 if (!SWIG_IsOK(ecode2)) {
15640 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15641 }
15642 arg2 = static_cast< int >(val2);
15643 ecode3 = SWIG_AsVal_int(obj2, &val3);
15644 if (!SWIG_IsOK(ecode3)) {
15645 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15646 }
15647 arg3 = static_cast< int >(val3);
15648 {
15649 PyThreadState* __tstate = wxPyBeginAllowThreads();
15650 (arg1)->CrossHair(arg2,arg3);
15651 wxPyEndAllowThreads(__tstate);
15652 if (PyErr_Occurred()) SWIG_fail;
15653 }
15654 resultobj = SWIG_Py_Void();
15655 return resultobj;
15656 fail:
15657 return NULL;
15658 }
15659
15660
15661 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15662 PyObject *resultobj = 0;
15663 wxDC *arg1 = (wxDC *) 0 ;
15664 wxPoint *arg2 = 0 ;
15665 void *argp1 = 0 ;
15666 int res1 = 0 ;
15667 wxPoint temp2 ;
15668 PyObject * obj0 = 0 ;
15669 PyObject * obj1 = 0 ;
15670 char * kwnames[] = {
15671 (char *) "self",(char *) "pt", NULL
15672 };
15673
15674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15676 if (!SWIG_IsOK(res1)) {
15677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15678 }
15679 arg1 = reinterpret_cast< wxDC * >(argp1);
15680 {
15681 arg2 = &temp2;
15682 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15683 }
15684 {
15685 PyThreadState* __tstate = wxPyBeginAllowThreads();
15686 (arg1)->CrossHair((wxPoint const &)*arg2);
15687 wxPyEndAllowThreads(__tstate);
15688 if (PyErr_Occurred()) SWIG_fail;
15689 }
15690 resultobj = SWIG_Py_Void();
15691 return resultobj;
15692 fail:
15693 return NULL;
15694 }
15695
15696
15697 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15698 PyObject *resultobj = 0;
15699 wxDC *arg1 = (wxDC *) 0 ;
15700 int arg2 ;
15701 int arg3 ;
15702 int arg4 ;
15703 int arg5 ;
15704 int arg6 ;
15705 int arg7 ;
15706 void *argp1 = 0 ;
15707 int res1 = 0 ;
15708 int val2 ;
15709 int ecode2 = 0 ;
15710 int val3 ;
15711 int ecode3 = 0 ;
15712 int val4 ;
15713 int ecode4 = 0 ;
15714 int val5 ;
15715 int ecode5 = 0 ;
15716 int val6 ;
15717 int ecode6 = 0 ;
15718 int val7 ;
15719 int ecode7 = 0 ;
15720 PyObject * obj0 = 0 ;
15721 PyObject * obj1 = 0 ;
15722 PyObject * obj2 = 0 ;
15723 PyObject * obj3 = 0 ;
15724 PyObject * obj4 = 0 ;
15725 PyObject * obj5 = 0 ;
15726 PyObject * obj6 = 0 ;
15727 char * kwnames[] = {
15728 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15729 };
15730
15731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15733 if (!SWIG_IsOK(res1)) {
15734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15735 }
15736 arg1 = reinterpret_cast< wxDC * >(argp1);
15737 ecode2 = SWIG_AsVal_int(obj1, &val2);
15738 if (!SWIG_IsOK(ecode2)) {
15739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15740 }
15741 arg2 = static_cast< int >(val2);
15742 ecode3 = SWIG_AsVal_int(obj2, &val3);
15743 if (!SWIG_IsOK(ecode3)) {
15744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15745 }
15746 arg3 = static_cast< int >(val3);
15747 ecode4 = SWIG_AsVal_int(obj3, &val4);
15748 if (!SWIG_IsOK(ecode4)) {
15749 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15750 }
15751 arg4 = static_cast< int >(val4);
15752 ecode5 = SWIG_AsVal_int(obj4, &val5);
15753 if (!SWIG_IsOK(ecode5)) {
15754 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15755 }
15756 arg5 = static_cast< int >(val5);
15757 ecode6 = SWIG_AsVal_int(obj5, &val6);
15758 if (!SWIG_IsOK(ecode6)) {
15759 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15760 }
15761 arg6 = static_cast< int >(val6);
15762 ecode7 = SWIG_AsVal_int(obj6, &val7);
15763 if (!SWIG_IsOK(ecode7)) {
15764 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15765 }
15766 arg7 = static_cast< int >(val7);
15767 {
15768 PyThreadState* __tstate = wxPyBeginAllowThreads();
15769 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15770 wxPyEndAllowThreads(__tstate);
15771 if (PyErr_Occurred()) SWIG_fail;
15772 }
15773 resultobj = SWIG_Py_Void();
15774 return resultobj;
15775 fail:
15776 return NULL;
15777 }
15778
15779
15780 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15781 PyObject *resultobj = 0;
15782 wxDC *arg1 = (wxDC *) 0 ;
15783 wxPoint *arg2 = 0 ;
15784 wxPoint *arg3 = 0 ;
15785 wxPoint *arg4 = 0 ;
15786 void *argp1 = 0 ;
15787 int res1 = 0 ;
15788 wxPoint temp2 ;
15789 wxPoint temp3 ;
15790 wxPoint temp4 ;
15791 PyObject * obj0 = 0 ;
15792 PyObject * obj1 = 0 ;
15793 PyObject * obj2 = 0 ;
15794 PyObject * obj3 = 0 ;
15795 char * kwnames[] = {
15796 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15797 };
15798
15799 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15800 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15801 if (!SWIG_IsOK(res1)) {
15802 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15803 }
15804 arg1 = reinterpret_cast< wxDC * >(argp1);
15805 {
15806 arg2 = &temp2;
15807 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15808 }
15809 {
15810 arg3 = &temp3;
15811 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15812 }
15813 {
15814 arg4 = &temp4;
15815 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15816 }
15817 {
15818 PyThreadState* __tstate = wxPyBeginAllowThreads();
15819 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15820 wxPyEndAllowThreads(__tstate);
15821 if (PyErr_Occurred()) SWIG_fail;
15822 }
15823 resultobj = SWIG_Py_Void();
15824 return resultobj;
15825 fail:
15826 return NULL;
15827 }
15828
15829
15830 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15831 PyObject *resultobj = 0;
15832 wxDC *arg1 = (wxDC *) 0 ;
15833 int arg2 ;
15834 int arg3 ;
15835 int arg4 ;
15836 int arg5 ;
15837 void *argp1 = 0 ;
15838 int res1 = 0 ;
15839 int val2 ;
15840 int ecode2 = 0 ;
15841 int val3 ;
15842 int ecode3 = 0 ;
15843 int val4 ;
15844 int ecode4 = 0 ;
15845 int val5 ;
15846 int ecode5 = 0 ;
15847 PyObject * obj0 = 0 ;
15848 PyObject * obj1 = 0 ;
15849 PyObject * obj2 = 0 ;
15850 PyObject * obj3 = 0 ;
15851 PyObject * obj4 = 0 ;
15852 char * kwnames[] = {
15853 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15854 };
15855
15856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15858 if (!SWIG_IsOK(res1)) {
15859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15860 }
15861 arg1 = reinterpret_cast< wxDC * >(argp1);
15862 ecode2 = SWIG_AsVal_int(obj1, &val2);
15863 if (!SWIG_IsOK(ecode2)) {
15864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15865 }
15866 arg2 = static_cast< int >(val2);
15867 ecode3 = SWIG_AsVal_int(obj2, &val3);
15868 if (!SWIG_IsOK(ecode3)) {
15869 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15870 }
15871 arg3 = static_cast< int >(val3);
15872 ecode4 = SWIG_AsVal_int(obj3, &val4);
15873 if (!SWIG_IsOK(ecode4)) {
15874 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15875 }
15876 arg4 = static_cast< int >(val4);
15877 ecode5 = SWIG_AsVal_int(obj4, &val5);
15878 if (!SWIG_IsOK(ecode5)) {
15879 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15880 }
15881 arg5 = static_cast< int >(val5);
15882 {
15883 PyThreadState* __tstate = wxPyBeginAllowThreads();
15884 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15885 wxPyEndAllowThreads(__tstate);
15886 if (PyErr_Occurred()) SWIG_fail;
15887 }
15888 resultobj = SWIG_Py_Void();
15889 return resultobj;
15890 fail:
15891 return NULL;
15892 }
15893
15894
15895 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15896 PyObject *resultobj = 0;
15897 wxDC *arg1 = (wxDC *) 0 ;
15898 wxRect *arg2 = 0 ;
15899 void *argp1 = 0 ;
15900 int res1 = 0 ;
15901 wxRect temp2 ;
15902 PyObject * obj0 = 0 ;
15903 PyObject * obj1 = 0 ;
15904 char * kwnames[] = {
15905 (char *) "self",(char *) "rect", NULL
15906 };
15907
15908 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15909 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15910 if (!SWIG_IsOK(res1)) {
15911 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15912 }
15913 arg1 = reinterpret_cast< wxDC * >(argp1);
15914 {
15915 arg2 = &temp2;
15916 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15917 }
15918 {
15919 PyThreadState* __tstate = wxPyBeginAllowThreads();
15920 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15921 wxPyEndAllowThreads(__tstate);
15922 if (PyErr_Occurred()) SWIG_fail;
15923 }
15924 resultobj = SWIG_Py_Void();
15925 return resultobj;
15926 fail:
15927 return NULL;
15928 }
15929
15930
15931 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15932 PyObject *resultobj = 0;
15933 wxDC *arg1 = (wxDC *) 0 ;
15934 int arg2 ;
15935 int arg3 ;
15936 int arg4 ;
15937 int arg5 ;
15938 double arg6 ;
15939 double arg7 ;
15940 void *argp1 = 0 ;
15941 int res1 = 0 ;
15942 int val2 ;
15943 int ecode2 = 0 ;
15944 int val3 ;
15945 int ecode3 = 0 ;
15946 int val4 ;
15947 int ecode4 = 0 ;
15948 int val5 ;
15949 int ecode5 = 0 ;
15950 double val6 ;
15951 int ecode6 = 0 ;
15952 double val7 ;
15953 int ecode7 = 0 ;
15954 PyObject * obj0 = 0 ;
15955 PyObject * obj1 = 0 ;
15956 PyObject * obj2 = 0 ;
15957 PyObject * obj3 = 0 ;
15958 PyObject * obj4 = 0 ;
15959 PyObject * obj5 = 0 ;
15960 PyObject * obj6 = 0 ;
15961 char * kwnames[] = {
15962 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15963 };
15964
15965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15967 if (!SWIG_IsOK(res1)) {
15968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15969 }
15970 arg1 = reinterpret_cast< wxDC * >(argp1);
15971 ecode2 = SWIG_AsVal_int(obj1, &val2);
15972 if (!SWIG_IsOK(ecode2)) {
15973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15974 }
15975 arg2 = static_cast< int >(val2);
15976 ecode3 = SWIG_AsVal_int(obj2, &val3);
15977 if (!SWIG_IsOK(ecode3)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15979 }
15980 arg3 = static_cast< int >(val3);
15981 ecode4 = SWIG_AsVal_int(obj3, &val4);
15982 if (!SWIG_IsOK(ecode4)) {
15983 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15984 }
15985 arg4 = static_cast< int >(val4);
15986 ecode5 = SWIG_AsVal_int(obj4, &val5);
15987 if (!SWIG_IsOK(ecode5)) {
15988 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15989 }
15990 arg5 = static_cast< int >(val5);
15991 ecode6 = SWIG_AsVal_double(obj5, &val6);
15992 if (!SWIG_IsOK(ecode6)) {
15993 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15994 }
15995 arg6 = static_cast< double >(val6);
15996 ecode7 = SWIG_AsVal_double(obj6, &val7);
15997 if (!SWIG_IsOK(ecode7)) {
15998 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15999 }
16000 arg7 = static_cast< double >(val7);
16001 {
16002 PyThreadState* __tstate = wxPyBeginAllowThreads();
16003 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
16004 wxPyEndAllowThreads(__tstate);
16005 if (PyErr_Occurred()) SWIG_fail;
16006 }
16007 resultobj = SWIG_Py_Void();
16008 return resultobj;
16009 fail:
16010 return NULL;
16011 }
16012
16013
16014 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16015 PyObject *resultobj = 0;
16016 wxDC *arg1 = (wxDC *) 0 ;
16017 wxPoint *arg2 = 0 ;
16018 wxSize *arg3 = 0 ;
16019 double arg4 ;
16020 double arg5 ;
16021 void *argp1 = 0 ;
16022 int res1 = 0 ;
16023 wxPoint temp2 ;
16024 wxSize temp3 ;
16025 double val4 ;
16026 int ecode4 = 0 ;
16027 double val5 ;
16028 int ecode5 = 0 ;
16029 PyObject * obj0 = 0 ;
16030 PyObject * obj1 = 0 ;
16031 PyObject * obj2 = 0 ;
16032 PyObject * obj3 = 0 ;
16033 PyObject * obj4 = 0 ;
16034 char * kwnames[] = {
16035 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
16036 };
16037
16038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16040 if (!SWIG_IsOK(res1)) {
16041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16042 }
16043 arg1 = reinterpret_cast< wxDC * >(argp1);
16044 {
16045 arg2 = &temp2;
16046 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16047 }
16048 {
16049 arg3 = &temp3;
16050 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16051 }
16052 ecode4 = SWIG_AsVal_double(obj3, &val4);
16053 if (!SWIG_IsOK(ecode4)) {
16054 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16055 }
16056 arg4 = static_cast< double >(val4);
16057 ecode5 = SWIG_AsVal_double(obj4, &val5);
16058 if (!SWIG_IsOK(ecode5)) {
16059 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16060 }
16061 arg5 = static_cast< double >(val5);
16062 {
16063 PyThreadState* __tstate = wxPyBeginAllowThreads();
16064 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16065 wxPyEndAllowThreads(__tstate);
16066 if (PyErr_Occurred()) SWIG_fail;
16067 }
16068 resultobj = SWIG_Py_Void();
16069 return resultobj;
16070 fail:
16071 return NULL;
16072 }
16073
16074
16075 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16076 PyObject *resultobj = 0;
16077 wxDC *arg1 = (wxDC *) 0 ;
16078 int arg2 ;
16079 int arg3 ;
16080 void *argp1 = 0 ;
16081 int res1 = 0 ;
16082 int val2 ;
16083 int ecode2 = 0 ;
16084 int val3 ;
16085 int ecode3 = 0 ;
16086 PyObject * obj0 = 0 ;
16087 PyObject * obj1 = 0 ;
16088 PyObject * obj2 = 0 ;
16089 char * kwnames[] = {
16090 (char *) "self",(char *) "x",(char *) "y", NULL
16091 };
16092
16093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16095 if (!SWIG_IsOK(res1)) {
16096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16097 }
16098 arg1 = reinterpret_cast< wxDC * >(argp1);
16099 ecode2 = SWIG_AsVal_int(obj1, &val2);
16100 if (!SWIG_IsOK(ecode2)) {
16101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16102 }
16103 arg2 = static_cast< int >(val2);
16104 ecode3 = SWIG_AsVal_int(obj2, &val3);
16105 if (!SWIG_IsOK(ecode3)) {
16106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16107 }
16108 arg3 = static_cast< int >(val3);
16109 {
16110 PyThreadState* __tstate = wxPyBeginAllowThreads();
16111 (arg1)->DrawPoint(arg2,arg3);
16112 wxPyEndAllowThreads(__tstate);
16113 if (PyErr_Occurred()) SWIG_fail;
16114 }
16115 resultobj = SWIG_Py_Void();
16116 return resultobj;
16117 fail:
16118 return NULL;
16119 }
16120
16121
16122 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16123 PyObject *resultobj = 0;
16124 wxDC *arg1 = (wxDC *) 0 ;
16125 wxPoint *arg2 = 0 ;
16126 void *argp1 = 0 ;
16127 int res1 = 0 ;
16128 wxPoint temp2 ;
16129 PyObject * obj0 = 0 ;
16130 PyObject * obj1 = 0 ;
16131 char * kwnames[] = {
16132 (char *) "self",(char *) "pt", NULL
16133 };
16134
16135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16137 if (!SWIG_IsOK(res1)) {
16138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16139 }
16140 arg1 = reinterpret_cast< wxDC * >(argp1);
16141 {
16142 arg2 = &temp2;
16143 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16144 }
16145 {
16146 PyThreadState* __tstate = wxPyBeginAllowThreads();
16147 (arg1)->DrawPoint((wxPoint const &)*arg2);
16148 wxPyEndAllowThreads(__tstate);
16149 if (PyErr_Occurred()) SWIG_fail;
16150 }
16151 resultobj = SWIG_Py_Void();
16152 return resultobj;
16153 fail:
16154 return NULL;
16155 }
16156
16157
16158 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16159 PyObject *resultobj = 0;
16160 wxDC *arg1 = (wxDC *) 0 ;
16161 int arg2 ;
16162 int arg3 ;
16163 int arg4 ;
16164 int arg5 ;
16165 void *argp1 = 0 ;
16166 int res1 = 0 ;
16167 int val2 ;
16168 int ecode2 = 0 ;
16169 int val3 ;
16170 int ecode3 = 0 ;
16171 int val4 ;
16172 int ecode4 = 0 ;
16173 int val5 ;
16174 int ecode5 = 0 ;
16175 PyObject * obj0 = 0 ;
16176 PyObject * obj1 = 0 ;
16177 PyObject * obj2 = 0 ;
16178 PyObject * obj3 = 0 ;
16179 PyObject * obj4 = 0 ;
16180 char * kwnames[] = {
16181 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16182 };
16183
16184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16186 if (!SWIG_IsOK(res1)) {
16187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16188 }
16189 arg1 = reinterpret_cast< wxDC * >(argp1);
16190 ecode2 = SWIG_AsVal_int(obj1, &val2);
16191 if (!SWIG_IsOK(ecode2)) {
16192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16193 }
16194 arg2 = static_cast< int >(val2);
16195 ecode3 = SWIG_AsVal_int(obj2, &val3);
16196 if (!SWIG_IsOK(ecode3)) {
16197 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16198 }
16199 arg3 = static_cast< int >(val3);
16200 ecode4 = SWIG_AsVal_int(obj3, &val4);
16201 if (!SWIG_IsOK(ecode4)) {
16202 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16203 }
16204 arg4 = static_cast< int >(val4);
16205 ecode5 = SWIG_AsVal_int(obj4, &val5);
16206 if (!SWIG_IsOK(ecode5)) {
16207 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16208 }
16209 arg5 = static_cast< int >(val5);
16210 {
16211 PyThreadState* __tstate = wxPyBeginAllowThreads();
16212 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16213 wxPyEndAllowThreads(__tstate);
16214 if (PyErr_Occurred()) SWIG_fail;
16215 }
16216 resultobj = SWIG_Py_Void();
16217 return resultobj;
16218 fail:
16219 return NULL;
16220 }
16221
16222
16223 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16224 PyObject *resultobj = 0;
16225 wxDC *arg1 = (wxDC *) 0 ;
16226 wxRect *arg2 = 0 ;
16227 void *argp1 = 0 ;
16228 int res1 = 0 ;
16229 wxRect temp2 ;
16230 PyObject * obj0 = 0 ;
16231 PyObject * obj1 = 0 ;
16232 char * kwnames[] = {
16233 (char *) "self",(char *) "rect", NULL
16234 };
16235
16236 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16237 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16238 if (!SWIG_IsOK(res1)) {
16239 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16240 }
16241 arg1 = reinterpret_cast< wxDC * >(argp1);
16242 {
16243 arg2 = &temp2;
16244 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16245 }
16246 {
16247 PyThreadState* __tstate = wxPyBeginAllowThreads();
16248 (arg1)->DrawRectangle((wxRect const &)*arg2);
16249 wxPyEndAllowThreads(__tstate);
16250 if (PyErr_Occurred()) SWIG_fail;
16251 }
16252 resultobj = SWIG_Py_Void();
16253 return resultobj;
16254 fail:
16255 return NULL;
16256 }
16257
16258
16259 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16260 PyObject *resultobj = 0;
16261 wxDC *arg1 = (wxDC *) 0 ;
16262 wxPoint *arg2 = 0 ;
16263 wxSize *arg3 = 0 ;
16264 void *argp1 = 0 ;
16265 int res1 = 0 ;
16266 wxPoint temp2 ;
16267 wxSize temp3 ;
16268 PyObject * obj0 = 0 ;
16269 PyObject * obj1 = 0 ;
16270 PyObject * obj2 = 0 ;
16271 char * kwnames[] = {
16272 (char *) "self",(char *) "pt",(char *) "sz", NULL
16273 };
16274
16275 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16276 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16277 if (!SWIG_IsOK(res1)) {
16278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16279 }
16280 arg1 = reinterpret_cast< wxDC * >(argp1);
16281 {
16282 arg2 = &temp2;
16283 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16284 }
16285 {
16286 arg3 = &temp3;
16287 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16288 }
16289 {
16290 PyThreadState* __tstate = wxPyBeginAllowThreads();
16291 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16292 wxPyEndAllowThreads(__tstate);
16293 if (PyErr_Occurred()) SWIG_fail;
16294 }
16295 resultobj = SWIG_Py_Void();
16296 return resultobj;
16297 fail:
16298 return NULL;
16299 }
16300
16301
16302 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16303 PyObject *resultobj = 0;
16304 wxDC *arg1 = (wxDC *) 0 ;
16305 int arg2 ;
16306 int arg3 ;
16307 int arg4 ;
16308 int arg5 ;
16309 double arg6 ;
16310 void *argp1 = 0 ;
16311 int res1 = 0 ;
16312 int val2 ;
16313 int ecode2 = 0 ;
16314 int val3 ;
16315 int ecode3 = 0 ;
16316 int val4 ;
16317 int ecode4 = 0 ;
16318 int val5 ;
16319 int ecode5 = 0 ;
16320 double val6 ;
16321 int ecode6 = 0 ;
16322 PyObject * obj0 = 0 ;
16323 PyObject * obj1 = 0 ;
16324 PyObject * obj2 = 0 ;
16325 PyObject * obj3 = 0 ;
16326 PyObject * obj4 = 0 ;
16327 PyObject * obj5 = 0 ;
16328 char * kwnames[] = {
16329 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16330 };
16331
16332 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16333 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16334 if (!SWIG_IsOK(res1)) {
16335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16336 }
16337 arg1 = reinterpret_cast< wxDC * >(argp1);
16338 ecode2 = SWIG_AsVal_int(obj1, &val2);
16339 if (!SWIG_IsOK(ecode2)) {
16340 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16341 }
16342 arg2 = static_cast< int >(val2);
16343 ecode3 = SWIG_AsVal_int(obj2, &val3);
16344 if (!SWIG_IsOK(ecode3)) {
16345 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16346 }
16347 arg3 = static_cast< int >(val3);
16348 ecode4 = SWIG_AsVal_int(obj3, &val4);
16349 if (!SWIG_IsOK(ecode4)) {
16350 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16351 }
16352 arg4 = static_cast< int >(val4);
16353 ecode5 = SWIG_AsVal_int(obj4, &val5);
16354 if (!SWIG_IsOK(ecode5)) {
16355 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16356 }
16357 arg5 = static_cast< int >(val5);
16358 ecode6 = SWIG_AsVal_double(obj5, &val6);
16359 if (!SWIG_IsOK(ecode6)) {
16360 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16361 }
16362 arg6 = static_cast< double >(val6);
16363 {
16364 PyThreadState* __tstate = wxPyBeginAllowThreads();
16365 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16366 wxPyEndAllowThreads(__tstate);
16367 if (PyErr_Occurred()) SWIG_fail;
16368 }
16369 resultobj = SWIG_Py_Void();
16370 return resultobj;
16371 fail:
16372 return NULL;
16373 }
16374
16375
16376 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16377 PyObject *resultobj = 0;
16378 wxDC *arg1 = (wxDC *) 0 ;
16379 wxRect *arg2 = 0 ;
16380 double arg3 ;
16381 void *argp1 = 0 ;
16382 int res1 = 0 ;
16383 wxRect temp2 ;
16384 double val3 ;
16385 int ecode3 = 0 ;
16386 PyObject * obj0 = 0 ;
16387 PyObject * obj1 = 0 ;
16388 PyObject * obj2 = 0 ;
16389 char * kwnames[] = {
16390 (char *) "self",(char *) "r",(char *) "radius", NULL
16391 };
16392
16393 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16394 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16395 if (!SWIG_IsOK(res1)) {
16396 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16397 }
16398 arg1 = reinterpret_cast< wxDC * >(argp1);
16399 {
16400 arg2 = &temp2;
16401 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16402 }
16403 ecode3 = SWIG_AsVal_double(obj2, &val3);
16404 if (!SWIG_IsOK(ecode3)) {
16405 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16406 }
16407 arg3 = static_cast< double >(val3);
16408 {
16409 PyThreadState* __tstate = wxPyBeginAllowThreads();
16410 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16411 wxPyEndAllowThreads(__tstate);
16412 if (PyErr_Occurred()) SWIG_fail;
16413 }
16414 resultobj = SWIG_Py_Void();
16415 return resultobj;
16416 fail:
16417 return NULL;
16418 }
16419
16420
16421 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16422 PyObject *resultobj = 0;
16423 wxDC *arg1 = (wxDC *) 0 ;
16424 wxPoint *arg2 = 0 ;
16425 wxSize *arg3 = 0 ;
16426 double arg4 ;
16427 void *argp1 = 0 ;
16428 int res1 = 0 ;
16429 wxPoint temp2 ;
16430 wxSize temp3 ;
16431 double val4 ;
16432 int ecode4 = 0 ;
16433 PyObject * obj0 = 0 ;
16434 PyObject * obj1 = 0 ;
16435 PyObject * obj2 = 0 ;
16436 PyObject * obj3 = 0 ;
16437 char * kwnames[] = {
16438 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16439 };
16440
16441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16443 if (!SWIG_IsOK(res1)) {
16444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16445 }
16446 arg1 = reinterpret_cast< wxDC * >(argp1);
16447 {
16448 arg2 = &temp2;
16449 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16450 }
16451 {
16452 arg3 = &temp3;
16453 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16454 }
16455 ecode4 = SWIG_AsVal_double(obj3, &val4);
16456 if (!SWIG_IsOK(ecode4)) {
16457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16458 }
16459 arg4 = static_cast< double >(val4);
16460 {
16461 PyThreadState* __tstate = wxPyBeginAllowThreads();
16462 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16463 wxPyEndAllowThreads(__tstate);
16464 if (PyErr_Occurred()) SWIG_fail;
16465 }
16466 resultobj = SWIG_Py_Void();
16467 return resultobj;
16468 fail:
16469 return NULL;
16470 }
16471
16472
16473 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16474 PyObject *resultobj = 0;
16475 wxDC *arg1 = (wxDC *) 0 ;
16476 int arg2 ;
16477 int arg3 ;
16478 int arg4 ;
16479 void *argp1 = 0 ;
16480 int res1 = 0 ;
16481 int val2 ;
16482 int ecode2 = 0 ;
16483 int val3 ;
16484 int ecode3 = 0 ;
16485 int val4 ;
16486 int ecode4 = 0 ;
16487 PyObject * obj0 = 0 ;
16488 PyObject * obj1 = 0 ;
16489 PyObject * obj2 = 0 ;
16490 PyObject * obj3 = 0 ;
16491 char * kwnames[] = {
16492 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16493 };
16494
16495 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16496 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16497 if (!SWIG_IsOK(res1)) {
16498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16499 }
16500 arg1 = reinterpret_cast< wxDC * >(argp1);
16501 ecode2 = SWIG_AsVal_int(obj1, &val2);
16502 if (!SWIG_IsOK(ecode2)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16504 }
16505 arg2 = static_cast< int >(val2);
16506 ecode3 = SWIG_AsVal_int(obj2, &val3);
16507 if (!SWIG_IsOK(ecode3)) {
16508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16509 }
16510 arg3 = static_cast< int >(val3);
16511 ecode4 = SWIG_AsVal_int(obj3, &val4);
16512 if (!SWIG_IsOK(ecode4)) {
16513 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16514 }
16515 arg4 = static_cast< int >(val4);
16516 {
16517 PyThreadState* __tstate = wxPyBeginAllowThreads();
16518 (arg1)->DrawCircle(arg2,arg3,arg4);
16519 wxPyEndAllowThreads(__tstate);
16520 if (PyErr_Occurred()) SWIG_fail;
16521 }
16522 resultobj = SWIG_Py_Void();
16523 return resultobj;
16524 fail:
16525 return NULL;
16526 }
16527
16528
16529 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16530 PyObject *resultobj = 0;
16531 wxDC *arg1 = (wxDC *) 0 ;
16532 wxPoint *arg2 = 0 ;
16533 int arg3 ;
16534 void *argp1 = 0 ;
16535 int res1 = 0 ;
16536 wxPoint temp2 ;
16537 int val3 ;
16538 int ecode3 = 0 ;
16539 PyObject * obj0 = 0 ;
16540 PyObject * obj1 = 0 ;
16541 PyObject * obj2 = 0 ;
16542 char * kwnames[] = {
16543 (char *) "self",(char *) "pt",(char *) "radius", NULL
16544 };
16545
16546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16548 if (!SWIG_IsOK(res1)) {
16549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16550 }
16551 arg1 = reinterpret_cast< wxDC * >(argp1);
16552 {
16553 arg2 = &temp2;
16554 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16555 }
16556 ecode3 = SWIG_AsVal_int(obj2, &val3);
16557 if (!SWIG_IsOK(ecode3)) {
16558 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16559 }
16560 arg3 = static_cast< int >(val3);
16561 {
16562 PyThreadState* __tstate = wxPyBeginAllowThreads();
16563 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16564 wxPyEndAllowThreads(__tstate);
16565 if (PyErr_Occurred()) SWIG_fail;
16566 }
16567 resultobj = SWIG_Py_Void();
16568 return resultobj;
16569 fail:
16570 return NULL;
16571 }
16572
16573
16574 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16575 PyObject *resultobj = 0;
16576 wxDC *arg1 = (wxDC *) 0 ;
16577 int arg2 ;
16578 int arg3 ;
16579 int arg4 ;
16580 int arg5 ;
16581 void *argp1 = 0 ;
16582 int res1 = 0 ;
16583 int val2 ;
16584 int ecode2 = 0 ;
16585 int val3 ;
16586 int ecode3 = 0 ;
16587 int val4 ;
16588 int ecode4 = 0 ;
16589 int val5 ;
16590 int ecode5 = 0 ;
16591 PyObject * obj0 = 0 ;
16592 PyObject * obj1 = 0 ;
16593 PyObject * obj2 = 0 ;
16594 PyObject * obj3 = 0 ;
16595 PyObject * obj4 = 0 ;
16596 char * kwnames[] = {
16597 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16598 };
16599
16600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16602 if (!SWIG_IsOK(res1)) {
16603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16604 }
16605 arg1 = reinterpret_cast< wxDC * >(argp1);
16606 ecode2 = SWIG_AsVal_int(obj1, &val2);
16607 if (!SWIG_IsOK(ecode2)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16609 }
16610 arg2 = static_cast< int >(val2);
16611 ecode3 = SWIG_AsVal_int(obj2, &val3);
16612 if (!SWIG_IsOK(ecode3)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16614 }
16615 arg3 = static_cast< int >(val3);
16616 ecode4 = SWIG_AsVal_int(obj3, &val4);
16617 if (!SWIG_IsOK(ecode4)) {
16618 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16619 }
16620 arg4 = static_cast< int >(val4);
16621 ecode5 = SWIG_AsVal_int(obj4, &val5);
16622 if (!SWIG_IsOK(ecode5)) {
16623 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16624 }
16625 arg5 = static_cast< int >(val5);
16626 {
16627 PyThreadState* __tstate = wxPyBeginAllowThreads();
16628 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16629 wxPyEndAllowThreads(__tstate);
16630 if (PyErr_Occurred()) SWIG_fail;
16631 }
16632 resultobj = SWIG_Py_Void();
16633 return resultobj;
16634 fail:
16635 return NULL;
16636 }
16637
16638
16639 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16640 PyObject *resultobj = 0;
16641 wxDC *arg1 = (wxDC *) 0 ;
16642 wxRect *arg2 = 0 ;
16643 void *argp1 = 0 ;
16644 int res1 = 0 ;
16645 wxRect temp2 ;
16646 PyObject * obj0 = 0 ;
16647 PyObject * obj1 = 0 ;
16648 char * kwnames[] = {
16649 (char *) "self",(char *) "rect", NULL
16650 };
16651
16652 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16653 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16654 if (!SWIG_IsOK(res1)) {
16655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16656 }
16657 arg1 = reinterpret_cast< wxDC * >(argp1);
16658 {
16659 arg2 = &temp2;
16660 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16661 }
16662 {
16663 PyThreadState* __tstate = wxPyBeginAllowThreads();
16664 (arg1)->DrawEllipse((wxRect const &)*arg2);
16665 wxPyEndAllowThreads(__tstate);
16666 if (PyErr_Occurred()) SWIG_fail;
16667 }
16668 resultobj = SWIG_Py_Void();
16669 return resultobj;
16670 fail:
16671 return NULL;
16672 }
16673
16674
16675 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16676 PyObject *resultobj = 0;
16677 wxDC *arg1 = (wxDC *) 0 ;
16678 wxPoint *arg2 = 0 ;
16679 wxSize *arg3 = 0 ;
16680 void *argp1 = 0 ;
16681 int res1 = 0 ;
16682 wxPoint temp2 ;
16683 wxSize temp3 ;
16684 PyObject * obj0 = 0 ;
16685 PyObject * obj1 = 0 ;
16686 PyObject * obj2 = 0 ;
16687 char * kwnames[] = {
16688 (char *) "self",(char *) "pt",(char *) "sz", NULL
16689 };
16690
16691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16693 if (!SWIG_IsOK(res1)) {
16694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16695 }
16696 arg1 = reinterpret_cast< wxDC * >(argp1);
16697 {
16698 arg2 = &temp2;
16699 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16700 }
16701 {
16702 arg3 = &temp3;
16703 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16704 }
16705 {
16706 PyThreadState* __tstate = wxPyBeginAllowThreads();
16707 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16708 wxPyEndAllowThreads(__tstate);
16709 if (PyErr_Occurred()) SWIG_fail;
16710 }
16711 resultobj = SWIG_Py_Void();
16712 return resultobj;
16713 fail:
16714 return NULL;
16715 }
16716
16717
16718 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16719 PyObject *resultobj = 0;
16720 wxDC *arg1 = (wxDC *) 0 ;
16721 wxIcon *arg2 = 0 ;
16722 int arg3 ;
16723 int arg4 ;
16724 void *argp1 = 0 ;
16725 int res1 = 0 ;
16726 void *argp2 = 0 ;
16727 int res2 = 0 ;
16728 int val3 ;
16729 int ecode3 = 0 ;
16730 int val4 ;
16731 int ecode4 = 0 ;
16732 PyObject * obj0 = 0 ;
16733 PyObject * obj1 = 0 ;
16734 PyObject * obj2 = 0 ;
16735 PyObject * obj3 = 0 ;
16736 char * kwnames[] = {
16737 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16738 };
16739
16740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16742 if (!SWIG_IsOK(res1)) {
16743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16744 }
16745 arg1 = reinterpret_cast< wxDC * >(argp1);
16746 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16747 if (!SWIG_IsOK(res2)) {
16748 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16749 }
16750 if (!argp2) {
16751 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16752 }
16753 arg2 = reinterpret_cast< wxIcon * >(argp2);
16754 ecode3 = SWIG_AsVal_int(obj2, &val3);
16755 if (!SWIG_IsOK(ecode3)) {
16756 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16757 }
16758 arg3 = static_cast< int >(val3);
16759 ecode4 = SWIG_AsVal_int(obj3, &val4);
16760 if (!SWIG_IsOK(ecode4)) {
16761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16762 }
16763 arg4 = static_cast< int >(val4);
16764 {
16765 PyThreadState* __tstate = wxPyBeginAllowThreads();
16766 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16767 wxPyEndAllowThreads(__tstate);
16768 if (PyErr_Occurred()) SWIG_fail;
16769 }
16770 resultobj = SWIG_Py_Void();
16771 return resultobj;
16772 fail:
16773 return NULL;
16774 }
16775
16776
16777 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16778 PyObject *resultobj = 0;
16779 wxDC *arg1 = (wxDC *) 0 ;
16780 wxIcon *arg2 = 0 ;
16781 wxPoint *arg3 = 0 ;
16782 void *argp1 = 0 ;
16783 int res1 = 0 ;
16784 void *argp2 = 0 ;
16785 int res2 = 0 ;
16786 wxPoint temp3 ;
16787 PyObject * obj0 = 0 ;
16788 PyObject * obj1 = 0 ;
16789 PyObject * obj2 = 0 ;
16790 char * kwnames[] = {
16791 (char *) "self",(char *) "icon",(char *) "pt", NULL
16792 };
16793
16794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16795 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16796 if (!SWIG_IsOK(res1)) {
16797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16798 }
16799 arg1 = reinterpret_cast< wxDC * >(argp1);
16800 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16801 if (!SWIG_IsOK(res2)) {
16802 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16803 }
16804 if (!argp2) {
16805 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16806 }
16807 arg2 = reinterpret_cast< wxIcon * >(argp2);
16808 {
16809 arg3 = &temp3;
16810 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16811 }
16812 {
16813 PyThreadState* __tstate = wxPyBeginAllowThreads();
16814 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16815 wxPyEndAllowThreads(__tstate);
16816 if (PyErr_Occurred()) SWIG_fail;
16817 }
16818 resultobj = SWIG_Py_Void();
16819 return resultobj;
16820 fail:
16821 return NULL;
16822 }
16823
16824
16825 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16826 PyObject *resultobj = 0;
16827 wxDC *arg1 = (wxDC *) 0 ;
16828 wxBitmap *arg2 = 0 ;
16829 int arg3 ;
16830 int arg4 ;
16831 bool arg5 = (bool) false ;
16832 void *argp1 = 0 ;
16833 int res1 = 0 ;
16834 void *argp2 = 0 ;
16835 int res2 = 0 ;
16836 int val3 ;
16837 int ecode3 = 0 ;
16838 int val4 ;
16839 int ecode4 = 0 ;
16840 bool val5 ;
16841 int ecode5 = 0 ;
16842 PyObject * obj0 = 0 ;
16843 PyObject * obj1 = 0 ;
16844 PyObject * obj2 = 0 ;
16845 PyObject * obj3 = 0 ;
16846 PyObject * obj4 = 0 ;
16847 char * kwnames[] = {
16848 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16849 };
16850
16851 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16852 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16853 if (!SWIG_IsOK(res1)) {
16854 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16855 }
16856 arg1 = reinterpret_cast< wxDC * >(argp1);
16857 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16858 if (!SWIG_IsOK(res2)) {
16859 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16860 }
16861 if (!argp2) {
16862 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16863 }
16864 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16865 ecode3 = SWIG_AsVal_int(obj2, &val3);
16866 if (!SWIG_IsOK(ecode3)) {
16867 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16868 }
16869 arg3 = static_cast< int >(val3);
16870 ecode4 = SWIG_AsVal_int(obj3, &val4);
16871 if (!SWIG_IsOK(ecode4)) {
16872 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16873 }
16874 arg4 = static_cast< int >(val4);
16875 if (obj4) {
16876 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16877 if (!SWIG_IsOK(ecode5)) {
16878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16879 }
16880 arg5 = static_cast< bool >(val5);
16881 }
16882 {
16883 PyThreadState* __tstate = wxPyBeginAllowThreads();
16884 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16885 wxPyEndAllowThreads(__tstate);
16886 if (PyErr_Occurred()) SWIG_fail;
16887 }
16888 resultobj = SWIG_Py_Void();
16889 return resultobj;
16890 fail:
16891 return NULL;
16892 }
16893
16894
16895 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16896 PyObject *resultobj = 0;
16897 wxDC *arg1 = (wxDC *) 0 ;
16898 wxBitmap *arg2 = 0 ;
16899 wxPoint *arg3 = 0 ;
16900 bool arg4 = (bool) false ;
16901 void *argp1 = 0 ;
16902 int res1 = 0 ;
16903 void *argp2 = 0 ;
16904 int res2 = 0 ;
16905 wxPoint temp3 ;
16906 bool val4 ;
16907 int ecode4 = 0 ;
16908 PyObject * obj0 = 0 ;
16909 PyObject * obj1 = 0 ;
16910 PyObject * obj2 = 0 ;
16911 PyObject * obj3 = 0 ;
16912 char * kwnames[] = {
16913 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16914 };
16915
16916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16918 if (!SWIG_IsOK(res1)) {
16919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16920 }
16921 arg1 = reinterpret_cast< wxDC * >(argp1);
16922 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16923 if (!SWIG_IsOK(res2)) {
16924 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16925 }
16926 if (!argp2) {
16927 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16928 }
16929 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16930 {
16931 arg3 = &temp3;
16932 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16933 }
16934 if (obj3) {
16935 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16936 if (!SWIG_IsOK(ecode4)) {
16937 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16938 }
16939 arg4 = static_cast< bool >(val4);
16940 }
16941 {
16942 PyThreadState* __tstate = wxPyBeginAllowThreads();
16943 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16944 wxPyEndAllowThreads(__tstate);
16945 if (PyErr_Occurred()) SWIG_fail;
16946 }
16947 resultobj = SWIG_Py_Void();
16948 return resultobj;
16949 fail:
16950 return NULL;
16951 }
16952
16953
16954 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16955 PyObject *resultobj = 0;
16956 wxDC *arg1 = (wxDC *) 0 ;
16957 wxString *arg2 = 0 ;
16958 int arg3 ;
16959 int arg4 ;
16960 void *argp1 = 0 ;
16961 int res1 = 0 ;
16962 bool temp2 = false ;
16963 int val3 ;
16964 int ecode3 = 0 ;
16965 int val4 ;
16966 int ecode4 = 0 ;
16967 PyObject * obj0 = 0 ;
16968 PyObject * obj1 = 0 ;
16969 PyObject * obj2 = 0 ;
16970 PyObject * obj3 = 0 ;
16971 char * kwnames[] = {
16972 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16973 };
16974
16975 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16976 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16977 if (!SWIG_IsOK(res1)) {
16978 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16979 }
16980 arg1 = reinterpret_cast< wxDC * >(argp1);
16981 {
16982 arg2 = wxString_in_helper(obj1);
16983 if (arg2 == NULL) SWIG_fail;
16984 temp2 = true;
16985 }
16986 ecode3 = SWIG_AsVal_int(obj2, &val3);
16987 if (!SWIG_IsOK(ecode3)) {
16988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16989 }
16990 arg3 = static_cast< int >(val3);
16991 ecode4 = SWIG_AsVal_int(obj3, &val4);
16992 if (!SWIG_IsOK(ecode4)) {
16993 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16994 }
16995 arg4 = static_cast< int >(val4);
16996 {
16997 PyThreadState* __tstate = wxPyBeginAllowThreads();
16998 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16999 wxPyEndAllowThreads(__tstate);
17000 if (PyErr_Occurred()) SWIG_fail;
17001 }
17002 resultobj = SWIG_Py_Void();
17003 {
17004 if (temp2)
17005 delete arg2;
17006 }
17007 return resultobj;
17008 fail:
17009 {
17010 if (temp2)
17011 delete arg2;
17012 }
17013 return NULL;
17014 }
17015
17016
17017 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17018 PyObject *resultobj = 0;
17019 wxDC *arg1 = (wxDC *) 0 ;
17020 wxString *arg2 = 0 ;
17021 wxPoint *arg3 = 0 ;
17022 void *argp1 = 0 ;
17023 int res1 = 0 ;
17024 bool temp2 = false ;
17025 wxPoint temp3 ;
17026 PyObject * obj0 = 0 ;
17027 PyObject * obj1 = 0 ;
17028 PyObject * obj2 = 0 ;
17029 char * kwnames[] = {
17030 (char *) "self",(char *) "text",(char *) "pt", NULL
17031 };
17032
17033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17035 if (!SWIG_IsOK(res1)) {
17036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17037 }
17038 arg1 = reinterpret_cast< wxDC * >(argp1);
17039 {
17040 arg2 = wxString_in_helper(obj1);
17041 if (arg2 == NULL) SWIG_fail;
17042 temp2 = true;
17043 }
17044 {
17045 arg3 = &temp3;
17046 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17047 }
17048 {
17049 PyThreadState* __tstate = wxPyBeginAllowThreads();
17050 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17051 wxPyEndAllowThreads(__tstate);
17052 if (PyErr_Occurred()) SWIG_fail;
17053 }
17054 resultobj = SWIG_Py_Void();
17055 {
17056 if (temp2)
17057 delete arg2;
17058 }
17059 return resultobj;
17060 fail:
17061 {
17062 if (temp2)
17063 delete arg2;
17064 }
17065 return NULL;
17066 }
17067
17068
17069 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17070 PyObject *resultobj = 0;
17071 wxDC *arg1 = (wxDC *) 0 ;
17072 wxString *arg2 = 0 ;
17073 int arg3 ;
17074 int arg4 ;
17075 double arg5 ;
17076 void *argp1 = 0 ;
17077 int res1 = 0 ;
17078 bool temp2 = false ;
17079 int val3 ;
17080 int ecode3 = 0 ;
17081 int val4 ;
17082 int ecode4 = 0 ;
17083 double val5 ;
17084 int ecode5 = 0 ;
17085 PyObject * obj0 = 0 ;
17086 PyObject * obj1 = 0 ;
17087 PyObject * obj2 = 0 ;
17088 PyObject * obj3 = 0 ;
17089 PyObject * obj4 = 0 ;
17090 char * kwnames[] = {
17091 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17092 };
17093
17094 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17095 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17096 if (!SWIG_IsOK(res1)) {
17097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17098 }
17099 arg1 = reinterpret_cast< wxDC * >(argp1);
17100 {
17101 arg2 = wxString_in_helper(obj1);
17102 if (arg2 == NULL) SWIG_fail;
17103 temp2 = true;
17104 }
17105 ecode3 = SWIG_AsVal_int(obj2, &val3);
17106 if (!SWIG_IsOK(ecode3)) {
17107 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17108 }
17109 arg3 = static_cast< int >(val3);
17110 ecode4 = SWIG_AsVal_int(obj3, &val4);
17111 if (!SWIG_IsOK(ecode4)) {
17112 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17113 }
17114 arg4 = static_cast< int >(val4);
17115 ecode5 = SWIG_AsVal_double(obj4, &val5);
17116 if (!SWIG_IsOK(ecode5)) {
17117 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17118 }
17119 arg5 = static_cast< double >(val5);
17120 {
17121 PyThreadState* __tstate = wxPyBeginAllowThreads();
17122 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17123 wxPyEndAllowThreads(__tstate);
17124 if (PyErr_Occurred()) SWIG_fail;
17125 }
17126 resultobj = SWIG_Py_Void();
17127 {
17128 if (temp2)
17129 delete arg2;
17130 }
17131 return resultobj;
17132 fail:
17133 {
17134 if (temp2)
17135 delete arg2;
17136 }
17137 return NULL;
17138 }
17139
17140
17141 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17142 PyObject *resultobj = 0;
17143 wxDC *arg1 = (wxDC *) 0 ;
17144 wxString *arg2 = 0 ;
17145 wxPoint *arg3 = 0 ;
17146 double arg4 ;
17147 void *argp1 = 0 ;
17148 int res1 = 0 ;
17149 bool temp2 = false ;
17150 wxPoint temp3 ;
17151 double val4 ;
17152 int ecode4 = 0 ;
17153 PyObject * obj0 = 0 ;
17154 PyObject * obj1 = 0 ;
17155 PyObject * obj2 = 0 ;
17156 PyObject * obj3 = 0 ;
17157 char * kwnames[] = {
17158 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17159 };
17160
17161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17163 if (!SWIG_IsOK(res1)) {
17164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17165 }
17166 arg1 = reinterpret_cast< wxDC * >(argp1);
17167 {
17168 arg2 = wxString_in_helper(obj1);
17169 if (arg2 == NULL) SWIG_fail;
17170 temp2 = true;
17171 }
17172 {
17173 arg3 = &temp3;
17174 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17175 }
17176 ecode4 = SWIG_AsVal_double(obj3, &val4);
17177 if (!SWIG_IsOK(ecode4)) {
17178 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17179 }
17180 arg4 = static_cast< double >(val4);
17181 {
17182 PyThreadState* __tstate = wxPyBeginAllowThreads();
17183 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17184 wxPyEndAllowThreads(__tstate);
17185 if (PyErr_Occurred()) SWIG_fail;
17186 }
17187 resultobj = SWIG_Py_Void();
17188 {
17189 if (temp2)
17190 delete arg2;
17191 }
17192 return resultobj;
17193 fail:
17194 {
17195 if (temp2)
17196 delete arg2;
17197 }
17198 return NULL;
17199 }
17200
17201
17202 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17203 PyObject *resultobj = 0;
17204 wxDC *arg1 = (wxDC *) 0 ;
17205 int arg2 ;
17206 int arg3 ;
17207 int arg4 ;
17208 int arg5 ;
17209 wxDC *arg6 = (wxDC *) 0 ;
17210 int arg7 ;
17211 int arg8 ;
17212 int arg9 = (int) wxCOPY ;
17213 bool arg10 = (bool) false ;
17214 int arg11 = (int) -1 ;
17215 int arg12 = (int) -1 ;
17216 bool result;
17217 void *argp1 = 0 ;
17218 int res1 = 0 ;
17219 int val2 ;
17220 int ecode2 = 0 ;
17221 int val3 ;
17222 int ecode3 = 0 ;
17223 int val4 ;
17224 int ecode4 = 0 ;
17225 int val5 ;
17226 int ecode5 = 0 ;
17227 void *argp6 = 0 ;
17228 int res6 = 0 ;
17229 int val7 ;
17230 int ecode7 = 0 ;
17231 int val8 ;
17232 int ecode8 = 0 ;
17233 int val9 ;
17234 int ecode9 = 0 ;
17235 bool val10 ;
17236 int ecode10 = 0 ;
17237 int val11 ;
17238 int ecode11 = 0 ;
17239 int val12 ;
17240 int ecode12 = 0 ;
17241 PyObject * obj0 = 0 ;
17242 PyObject * obj1 = 0 ;
17243 PyObject * obj2 = 0 ;
17244 PyObject * obj3 = 0 ;
17245 PyObject * obj4 = 0 ;
17246 PyObject * obj5 = 0 ;
17247 PyObject * obj6 = 0 ;
17248 PyObject * obj7 = 0 ;
17249 PyObject * obj8 = 0 ;
17250 PyObject * obj9 = 0 ;
17251 PyObject * obj10 = 0 ;
17252 PyObject * obj11 = 0 ;
17253 char * kwnames[] = {
17254 (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
17255 };
17256
17257 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;
17258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17259 if (!SWIG_IsOK(res1)) {
17260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17261 }
17262 arg1 = reinterpret_cast< wxDC * >(argp1);
17263 ecode2 = SWIG_AsVal_int(obj1, &val2);
17264 if (!SWIG_IsOK(ecode2)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17266 }
17267 arg2 = static_cast< int >(val2);
17268 ecode3 = SWIG_AsVal_int(obj2, &val3);
17269 if (!SWIG_IsOK(ecode3)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17271 }
17272 arg3 = static_cast< int >(val3);
17273 ecode4 = SWIG_AsVal_int(obj3, &val4);
17274 if (!SWIG_IsOK(ecode4)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17276 }
17277 arg4 = static_cast< int >(val4);
17278 ecode5 = SWIG_AsVal_int(obj4, &val5);
17279 if (!SWIG_IsOK(ecode5)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17281 }
17282 arg5 = static_cast< int >(val5);
17283 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17284 if (!SWIG_IsOK(res6)) {
17285 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17286 }
17287 arg6 = reinterpret_cast< wxDC * >(argp6);
17288 ecode7 = SWIG_AsVal_int(obj6, &val7);
17289 if (!SWIG_IsOK(ecode7)) {
17290 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17291 }
17292 arg7 = static_cast< int >(val7);
17293 ecode8 = SWIG_AsVal_int(obj7, &val8);
17294 if (!SWIG_IsOK(ecode8)) {
17295 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17296 }
17297 arg8 = static_cast< int >(val8);
17298 if (obj8) {
17299 ecode9 = SWIG_AsVal_int(obj8, &val9);
17300 if (!SWIG_IsOK(ecode9)) {
17301 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17302 }
17303 arg9 = static_cast< int >(val9);
17304 }
17305 if (obj9) {
17306 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17307 if (!SWIG_IsOK(ecode10)) {
17308 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17309 }
17310 arg10 = static_cast< bool >(val10);
17311 }
17312 if (obj10) {
17313 ecode11 = SWIG_AsVal_int(obj10, &val11);
17314 if (!SWIG_IsOK(ecode11)) {
17315 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17316 }
17317 arg11 = static_cast< int >(val11);
17318 }
17319 if (obj11) {
17320 ecode12 = SWIG_AsVal_int(obj11, &val12);
17321 if (!SWIG_IsOK(ecode12)) {
17322 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17323 }
17324 arg12 = static_cast< int >(val12);
17325 }
17326 {
17327 PyThreadState* __tstate = wxPyBeginAllowThreads();
17328 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17329 wxPyEndAllowThreads(__tstate);
17330 if (PyErr_Occurred()) SWIG_fail;
17331 }
17332 {
17333 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17334 }
17335 return resultobj;
17336 fail:
17337 return NULL;
17338 }
17339
17340
17341 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17342 PyObject *resultobj = 0;
17343 wxDC *arg1 = (wxDC *) 0 ;
17344 wxPoint *arg2 = 0 ;
17345 wxSize *arg3 = 0 ;
17346 wxDC *arg4 = (wxDC *) 0 ;
17347 wxPoint *arg5 = 0 ;
17348 int arg6 = (int) wxCOPY ;
17349 bool arg7 = (bool) false ;
17350 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17351 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17352 bool result;
17353 void *argp1 = 0 ;
17354 int res1 = 0 ;
17355 wxPoint temp2 ;
17356 wxSize temp3 ;
17357 void *argp4 = 0 ;
17358 int res4 = 0 ;
17359 wxPoint temp5 ;
17360 int val6 ;
17361 int ecode6 = 0 ;
17362 bool val7 ;
17363 int ecode7 = 0 ;
17364 wxPoint temp8 ;
17365 PyObject * obj0 = 0 ;
17366 PyObject * obj1 = 0 ;
17367 PyObject * obj2 = 0 ;
17368 PyObject * obj3 = 0 ;
17369 PyObject * obj4 = 0 ;
17370 PyObject * obj5 = 0 ;
17371 PyObject * obj6 = 0 ;
17372 PyObject * obj7 = 0 ;
17373 char * kwnames[] = {
17374 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17375 };
17376
17377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17381 }
17382 arg1 = reinterpret_cast< wxDC * >(argp1);
17383 {
17384 arg2 = &temp2;
17385 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17386 }
17387 {
17388 arg3 = &temp3;
17389 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17390 }
17391 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17392 if (!SWIG_IsOK(res4)) {
17393 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17394 }
17395 arg4 = reinterpret_cast< wxDC * >(argp4);
17396 {
17397 arg5 = &temp5;
17398 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17399 }
17400 if (obj5) {
17401 ecode6 = SWIG_AsVal_int(obj5, &val6);
17402 if (!SWIG_IsOK(ecode6)) {
17403 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17404 }
17405 arg6 = static_cast< int >(val6);
17406 }
17407 if (obj6) {
17408 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17409 if (!SWIG_IsOK(ecode7)) {
17410 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17411 }
17412 arg7 = static_cast< bool >(val7);
17413 }
17414 if (obj7) {
17415 {
17416 arg8 = &temp8;
17417 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17418 }
17419 }
17420 {
17421 PyThreadState* __tstate = wxPyBeginAllowThreads();
17422 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17423 wxPyEndAllowThreads(__tstate);
17424 if (PyErr_Occurred()) SWIG_fail;
17425 }
17426 {
17427 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17428 }
17429 return resultobj;
17430 fail:
17431 return NULL;
17432 }
17433
17434
17435 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17436 PyObject *resultobj = 0;
17437 wxDC *arg1 = (wxDC *) 0 ;
17438 int arg2 ;
17439 int arg3 ;
17440 int arg4 ;
17441 int arg5 ;
17442 void *argp1 = 0 ;
17443 int res1 = 0 ;
17444 int val2 ;
17445 int ecode2 = 0 ;
17446 int val3 ;
17447 int ecode3 = 0 ;
17448 int val4 ;
17449 int ecode4 = 0 ;
17450 int val5 ;
17451 int ecode5 = 0 ;
17452 PyObject * obj0 = 0 ;
17453 PyObject * obj1 = 0 ;
17454 PyObject * obj2 = 0 ;
17455 PyObject * obj3 = 0 ;
17456 PyObject * obj4 = 0 ;
17457 char * kwnames[] = {
17458 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17459 };
17460
17461 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17462 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17463 if (!SWIG_IsOK(res1)) {
17464 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17465 }
17466 arg1 = reinterpret_cast< wxDC * >(argp1);
17467 ecode2 = SWIG_AsVal_int(obj1, &val2);
17468 if (!SWIG_IsOK(ecode2)) {
17469 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17470 }
17471 arg2 = static_cast< int >(val2);
17472 ecode3 = SWIG_AsVal_int(obj2, &val3);
17473 if (!SWIG_IsOK(ecode3)) {
17474 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17475 }
17476 arg3 = static_cast< int >(val3);
17477 ecode4 = SWIG_AsVal_int(obj3, &val4);
17478 if (!SWIG_IsOK(ecode4)) {
17479 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17480 }
17481 arg4 = static_cast< int >(val4);
17482 ecode5 = SWIG_AsVal_int(obj4, &val5);
17483 if (!SWIG_IsOK(ecode5)) {
17484 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17485 }
17486 arg5 = static_cast< int >(val5);
17487 {
17488 PyThreadState* __tstate = wxPyBeginAllowThreads();
17489 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17490 wxPyEndAllowThreads(__tstate);
17491 if (PyErr_Occurred()) SWIG_fail;
17492 }
17493 resultobj = SWIG_Py_Void();
17494 return resultobj;
17495 fail:
17496 return NULL;
17497 }
17498
17499
17500 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17501 PyObject *resultobj = 0;
17502 wxDC *arg1 = (wxDC *) 0 ;
17503 wxPoint *arg2 = 0 ;
17504 wxSize *arg3 = 0 ;
17505 void *argp1 = 0 ;
17506 int res1 = 0 ;
17507 wxPoint temp2 ;
17508 wxSize temp3 ;
17509 PyObject * obj0 = 0 ;
17510 PyObject * obj1 = 0 ;
17511 PyObject * obj2 = 0 ;
17512 char * kwnames[] = {
17513 (char *) "self",(char *) "pt",(char *) "sz", NULL
17514 };
17515
17516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17518 if (!SWIG_IsOK(res1)) {
17519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17520 }
17521 arg1 = reinterpret_cast< wxDC * >(argp1);
17522 {
17523 arg2 = &temp2;
17524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17525 }
17526 {
17527 arg3 = &temp3;
17528 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17529 }
17530 {
17531 PyThreadState* __tstate = wxPyBeginAllowThreads();
17532 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17533 wxPyEndAllowThreads(__tstate);
17534 if (PyErr_Occurred()) SWIG_fail;
17535 }
17536 resultobj = SWIG_Py_Void();
17537 return resultobj;
17538 fail:
17539 return NULL;
17540 }
17541
17542
17543 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17544 PyObject *resultobj = 0;
17545 wxDC *arg1 = (wxDC *) 0 ;
17546 wxRegion *arg2 = 0 ;
17547 void *argp1 = 0 ;
17548 int res1 = 0 ;
17549 void *argp2 = 0 ;
17550 int res2 = 0 ;
17551 PyObject * obj0 = 0 ;
17552 PyObject * obj1 = 0 ;
17553 char * kwnames[] = {
17554 (char *) "self",(char *) "region", NULL
17555 };
17556
17557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17559 if (!SWIG_IsOK(res1)) {
17560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17561 }
17562 arg1 = reinterpret_cast< wxDC * >(argp1);
17563 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17564 if (!SWIG_IsOK(res2)) {
17565 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17566 }
17567 if (!argp2) {
17568 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17569 }
17570 arg2 = reinterpret_cast< wxRegion * >(argp2);
17571 {
17572 PyThreadState* __tstate = wxPyBeginAllowThreads();
17573 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17574 wxPyEndAllowThreads(__tstate);
17575 if (PyErr_Occurred()) SWIG_fail;
17576 }
17577 resultobj = SWIG_Py_Void();
17578 return resultobj;
17579 fail:
17580 return NULL;
17581 }
17582
17583
17584 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17585 PyObject *resultobj = 0;
17586 wxDC *arg1 = (wxDC *) 0 ;
17587 wxRect *arg2 = 0 ;
17588 void *argp1 = 0 ;
17589 int res1 = 0 ;
17590 wxRect temp2 ;
17591 PyObject * obj0 = 0 ;
17592 PyObject * obj1 = 0 ;
17593 char * kwnames[] = {
17594 (char *) "self",(char *) "rect", NULL
17595 };
17596
17597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17599 if (!SWIG_IsOK(res1)) {
17600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17601 }
17602 arg1 = reinterpret_cast< wxDC * >(argp1);
17603 {
17604 arg2 = &temp2;
17605 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17606 }
17607 {
17608 PyThreadState* __tstate = wxPyBeginAllowThreads();
17609 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17610 wxPyEndAllowThreads(__tstate);
17611 if (PyErr_Occurred()) SWIG_fail;
17612 }
17613 resultobj = SWIG_Py_Void();
17614 return resultobj;
17615 fail:
17616 return NULL;
17617 }
17618
17619
17620 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17621 PyObject *resultobj = 0;
17622 wxDC *arg1 = (wxDC *) 0 ;
17623 int arg2 ;
17624 wxPoint *arg3 = (wxPoint *) 0 ;
17625 int arg4 = (int) 0 ;
17626 int arg5 = (int) 0 ;
17627 void *argp1 = 0 ;
17628 int res1 = 0 ;
17629 int val4 ;
17630 int ecode4 = 0 ;
17631 int val5 ;
17632 int ecode5 = 0 ;
17633 PyObject * obj0 = 0 ;
17634 PyObject * obj1 = 0 ;
17635 PyObject * obj2 = 0 ;
17636 PyObject * obj3 = 0 ;
17637 char * kwnames[] = {
17638 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17639 };
17640
17641 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17642 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17643 if (!SWIG_IsOK(res1)) {
17644 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17645 }
17646 arg1 = reinterpret_cast< wxDC * >(argp1);
17647 {
17648 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17649 if (arg3 == NULL) SWIG_fail;
17650 }
17651 if (obj2) {
17652 ecode4 = SWIG_AsVal_int(obj2, &val4);
17653 if (!SWIG_IsOK(ecode4)) {
17654 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17655 }
17656 arg4 = static_cast< int >(val4);
17657 }
17658 if (obj3) {
17659 ecode5 = SWIG_AsVal_int(obj3, &val5);
17660 if (!SWIG_IsOK(ecode5)) {
17661 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17662 }
17663 arg5 = static_cast< int >(val5);
17664 }
17665 {
17666 PyThreadState* __tstate = wxPyBeginAllowThreads();
17667 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17668 wxPyEndAllowThreads(__tstate);
17669 if (PyErr_Occurred()) SWIG_fail;
17670 }
17671 resultobj = SWIG_Py_Void();
17672 {
17673 if (arg3) delete [] arg3;
17674 }
17675 return resultobj;
17676 fail:
17677 {
17678 if (arg3) delete [] arg3;
17679 }
17680 return NULL;
17681 }
17682
17683
17684 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17685 PyObject *resultobj = 0;
17686 wxDC *arg1 = (wxDC *) 0 ;
17687 int arg2 ;
17688 wxPoint *arg3 = (wxPoint *) 0 ;
17689 int arg4 = (int) 0 ;
17690 int arg5 = (int) 0 ;
17691 int arg6 = (int) wxODDEVEN_RULE ;
17692 void *argp1 = 0 ;
17693 int res1 = 0 ;
17694 int val4 ;
17695 int ecode4 = 0 ;
17696 int val5 ;
17697 int ecode5 = 0 ;
17698 int val6 ;
17699 int ecode6 = 0 ;
17700 PyObject * obj0 = 0 ;
17701 PyObject * obj1 = 0 ;
17702 PyObject * obj2 = 0 ;
17703 PyObject * obj3 = 0 ;
17704 PyObject * obj4 = 0 ;
17705 char * kwnames[] = {
17706 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17707 };
17708
17709 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17710 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17713 }
17714 arg1 = reinterpret_cast< wxDC * >(argp1);
17715 {
17716 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17717 if (arg3 == NULL) SWIG_fail;
17718 }
17719 if (obj2) {
17720 ecode4 = SWIG_AsVal_int(obj2, &val4);
17721 if (!SWIG_IsOK(ecode4)) {
17722 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17723 }
17724 arg4 = static_cast< int >(val4);
17725 }
17726 if (obj3) {
17727 ecode5 = SWIG_AsVal_int(obj3, &val5);
17728 if (!SWIG_IsOK(ecode5)) {
17729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17730 }
17731 arg5 = static_cast< int >(val5);
17732 }
17733 if (obj4) {
17734 ecode6 = SWIG_AsVal_int(obj4, &val6);
17735 if (!SWIG_IsOK(ecode6)) {
17736 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17737 }
17738 arg6 = static_cast< int >(val6);
17739 }
17740 {
17741 PyThreadState* __tstate = wxPyBeginAllowThreads();
17742 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17743 wxPyEndAllowThreads(__tstate);
17744 if (PyErr_Occurred()) SWIG_fail;
17745 }
17746 resultobj = SWIG_Py_Void();
17747 {
17748 if (arg3) delete [] arg3;
17749 }
17750 return resultobj;
17751 fail:
17752 {
17753 if (arg3) delete [] arg3;
17754 }
17755 return NULL;
17756 }
17757
17758
17759 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17760 PyObject *resultobj = 0;
17761 wxDC *arg1 = (wxDC *) 0 ;
17762 wxString *arg2 = 0 ;
17763 wxRect *arg3 = 0 ;
17764 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17765 int arg5 = (int) -1 ;
17766 void *argp1 = 0 ;
17767 int res1 = 0 ;
17768 bool temp2 = false ;
17769 wxRect temp3 ;
17770 int val4 ;
17771 int ecode4 = 0 ;
17772 int val5 ;
17773 int ecode5 = 0 ;
17774 PyObject * obj0 = 0 ;
17775 PyObject * obj1 = 0 ;
17776 PyObject * obj2 = 0 ;
17777 PyObject * obj3 = 0 ;
17778 PyObject * obj4 = 0 ;
17779 char * kwnames[] = {
17780 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17781 };
17782
17783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17785 if (!SWIG_IsOK(res1)) {
17786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17787 }
17788 arg1 = reinterpret_cast< wxDC * >(argp1);
17789 {
17790 arg2 = wxString_in_helper(obj1);
17791 if (arg2 == NULL) SWIG_fail;
17792 temp2 = true;
17793 }
17794 {
17795 arg3 = &temp3;
17796 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17797 }
17798 if (obj3) {
17799 ecode4 = SWIG_AsVal_int(obj3, &val4);
17800 if (!SWIG_IsOK(ecode4)) {
17801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17802 }
17803 arg4 = static_cast< int >(val4);
17804 }
17805 if (obj4) {
17806 ecode5 = SWIG_AsVal_int(obj4, &val5);
17807 if (!SWIG_IsOK(ecode5)) {
17808 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17809 }
17810 arg5 = static_cast< int >(val5);
17811 }
17812 {
17813 PyThreadState* __tstate = wxPyBeginAllowThreads();
17814 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17815 wxPyEndAllowThreads(__tstate);
17816 if (PyErr_Occurred()) SWIG_fail;
17817 }
17818 resultobj = SWIG_Py_Void();
17819 {
17820 if (temp2)
17821 delete arg2;
17822 }
17823 return resultobj;
17824 fail:
17825 {
17826 if (temp2)
17827 delete arg2;
17828 }
17829 return NULL;
17830 }
17831
17832
17833 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17834 PyObject *resultobj = 0;
17835 wxDC *arg1 = (wxDC *) 0 ;
17836 wxString *arg2 = 0 ;
17837 wxBitmap *arg3 = 0 ;
17838 wxRect *arg4 = 0 ;
17839 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17840 int arg6 = (int) -1 ;
17841 wxRect result;
17842 void *argp1 = 0 ;
17843 int res1 = 0 ;
17844 bool temp2 = false ;
17845 void *argp3 = 0 ;
17846 int res3 = 0 ;
17847 wxRect temp4 ;
17848 int val5 ;
17849 int ecode5 = 0 ;
17850 int val6 ;
17851 int ecode6 = 0 ;
17852 PyObject * obj0 = 0 ;
17853 PyObject * obj1 = 0 ;
17854 PyObject * obj2 = 0 ;
17855 PyObject * obj3 = 0 ;
17856 PyObject * obj4 = 0 ;
17857 PyObject * obj5 = 0 ;
17858 char * kwnames[] = {
17859 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17860 };
17861
17862 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17863 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17864 if (!SWIG_IsOK(res1)) {
17865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17866 }
17867 arg1 = reinterpret_cast< wxDC * >(argp1);
17868 {
17869 arg2 = wxString_in_helper(obj1);
17870 if (arg2 == NULL) SWIG_fail;
17871 temp2 = true;
17872 }
17873 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17874 if (!SWIG_IsOK(res3)) {
17875 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17876 }
17877 if (!argp3) {
17878 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17879 }
17880 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17881 {
17882 arg4 = &temp4;
17883 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17884 }
17885 if (obj4) {
17886 ecode5 = SWIG_AsVal_int(obj4, &val5);
17887 if (!SWIG_IsOK(ecode5)) {
17888 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17889 }
17890 arg5 = static_cast< int >(val5);
17891 }
17892 if (obj5) {
17893 ecode6 = SWIG_AsVal_int(obj5, &val6);
17894 if (!SWIG_IsOK(ecode6)) {
17895 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17896 }
17897 arg6 = static_cast< int >(val6);
17898 }
17899 {
17900 PyThreadState* __tstate = wxPyBeginAllowThreads();
17901 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17902 wxPyEndAllowThreads(__tstate);
17903 if (PyErr_Occurred()) SWIG_fail;
17904 }
17905 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17906 {
17907 if (temp2)
17908 delete arg2;
17909 }
17910 return resultobj;
17911 fail:
17912 {
17913 if (temp2)
17914 delete arg2;
17915 }
17916 return NULL;
17917 }
17918
17919
17920 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17921 PyObject *resultobj = 0;
17922 wxDC *arg1 = (wxDC *) 0 ;
17923 int arg2 ;
17924 wxPoint *arg3 = (wxPoint *) 0 ;
17925 void *argp1 = 0 ;
17926 int res1 = 0 ;
17927 PyObject * obj0 = 0 ;
17928 PyObject * obj1 = 0 ;
17929 char * kwnames[] = {
17930 (char *) "self",(char *) "points", NULL
17931 };
17932
17933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17935 if (!SWIG_IsOK(res1)) {
17936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17937 }
17938 arg1 = reinterpret_cast< wxDC * >(argp1);
17939 {
17940 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17941 if (arg3 == NULL) SWIG_fail;
17942 }
17943 {
17944 PyThreadState* __tstate = wxPyBeginAllowThreads();
17945 (arg1)->DrawSpline(arg2,arg3);
17946 wxPyEndAllowThreads(__tstate);
17947 if (PyErr_Occurred()) SWIG_fail;
17948 }
17949 resultobj = SWIG_Py_Void();
17950 {
17951 if (arg3) delete [] arg3;
17952 }
17953 return resultobj;
17954 fail:
17955 {
17956 if (arg3) delete [] arg3;
17957 }
17958 return NULL;
17959 }
17960
17961
17962 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17963 PyObject *resultobj = 0;
17964 wxDC *arg1 = (wxDC *) 0 ;
17965 void *argp1 = 0 ;
17966 int res1 = 0 ;
17967 PyObject *swig_obj[1] ;
17968
17969 if (!args) SWIG_fail;
17970 swig_obj[0] = args;
17971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17972 if (!SWIG_IsOK(res1)) {
17973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17974 }
17975 arg1 = reinterpret_cast< wxDC * >(argp1);
17976 {
17977 PyThreadState* __tstate = wxPyBeginAllowThreads();
17978 (arg1)->Clear();
17979 wxPyEndAllowThreads(__tstate);
17980 if (PyErr_Occurred()) SWIG_fail;
17981 }
17982 resultobj = SWIG_Py_Void();
17983 return resultobj;
17984 fail:
17985 return NULL;
17986 }
17987
17988
17989 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17990 PyObject *resultobj = 0;
17991 wxDC *arg1 = (wxDC *) 0 ;
17992 wxString *arg2 = 0 ;
17993 bool result;
17994 void *argp1 = 0 ;
17995 int res1 = 0 ;
17996 bool temp2 = false ;
17997 PyObject * obj0 = 0 ;
17998 PyObject * obj1 = 0 ;
17999 char * kwnames[] = {
18000 (char *) "self",(char *) "message", NULL
18001 };
18002
18003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
18004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18005 if (!SWIG_IsOK(res1)) {
18006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18007 }
18008 arg1 = reinterpret_cast< wxDC * >(argp1);
18009 {
18010 arg2 = wxString_in_helper(obj1);
18011 if (arg2 == NULL) SWIG_fail;
18012 temp2 = true;
18013 }
18014 {
18015 PyThreadState* __tstate = wxPyBeginAllowThreads();
18016 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
18017 wxPyEndAllowThreads(__tstate);
18018 if (PyErr_Occurred()) SWIG_fail;
18019 }
18020 {
18021 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18022 }
18023 {
18024 if (temp2)
18025 delete arg2;
18026 }
18027 return resultobj;
18028 fail:
18029 {
18030 if (temp2)
18031 delete arg2;
18032 }
18033 return NULL;
18034 }
18035
18036
18037 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18038 PyObject *resultobj = 0;
18039 wxDC *arg1 = (wxDC *) 0 ;
18040 void *argp1 = 0 ;
18041 int res1 = 0 ;
18042 PyObject *swig_obj[1] ;
18043
18044 if (!args) SWIG_fail;
18045 swig_obj[0] = args;
18046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18049 }
18050 arg1 = reinterpret_cast< wxDC * >(argp1);
18051 {
18052 PyThreadState* __tstate = wxPyBeginAllowThreads();
18053 (arg1)->EndDoc();
18054 wxPyEndAllowThreads(__tstate);
18055 if (PyErr_Occurred()) SWIG_fail;
18056 }
18057 resultobj = SWIG_Py_Void();
18058 return resultobj;
18059 fail:
18060 return NULL;
18061 }
18062
18063
18064 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18065 PyObject *resultobj = 0;
18066 wxDC *arg1 = (wxDC *) 0 ;
18067 void *argp1 = 0 ;
18068 int res1 = 0 ;
18069 PyObject *swig_obj[1] ;
18070
18071 if (!args) SWIG_fail;
18072 swig_obj[0] = args;
18073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18074 if (!SWIG_IsOK(res1)) {
18075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18076 }
18077 arg1 = reinterpret_cast< wxDC * >(argp1);
18078 {
18079 PyThreadState* __tstate = wxPyBeginAllowThreads();
18080 (arg1)->StartPage();
18081 wxPyEndAllowThreads(__tstate);
18082 if (PyErr_Occurred()) SWIG_fail;
18083 }
18084 resultobj = SWIG_Py_Void();
18085 return resultobj;
18086 fail:
18087 return NULL;
18088 }
18089
18090
18091 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18092 PyObject *resultobj = 0;
18093 wxDC *arg1 = (wxDC *) 0 ;
18094 void *argp1 = 0 ;
18095 int res1 = 0 ;
18096 PyObject *swig_obj[1] ;
18097
18098 if (!args) SWIG_fail;
18099 swig_obj[0] = args;
18100 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18101 if (!SWIG_IsOK(res1)) {
18102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18103 }
18104 arg1 = reinterpret_cast< wxDC * >(argp1);
18105 {
18106 PyThreadState* __tstate = wxPyBeginAllowThreads();
18107 (arg1)->EndPage();
18108 wxPyEndAllowThreads(__tstate);
18109 if (PyErr_Occurred()) SWIG_fail;
18110 }
18111 resultobj = SWIG_Py_Void();
18112 return resultobj;
18113 fail:
18114 return NULL;
18115 }
18116
18117
18118 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18119 PyObject *resultobj = 0;
18120 wxDC *arg1 = (wxDC *) 0 ;
18121 wxFont *arg2 = 0 ;
18122 void *argp1 = 0 ;
18123 int res1 = 0 ;
18124 void *argp2 = 0 ;
18125 int res2 = 0 ;
18126 PyObject * obj0 = 0 ;
18127 PyObject * obj1 = 0 ;
18128 char * kwnames[] = {
18129 (char *) "self",(char *) "font", NULL
18130 };
18131
18132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18133 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18134 if (!SWIG_IsOK(res1)) {
18135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18136 }
18137 arg1 = reinterpret_cast< wxDC * >(argp1);
18138 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18139 if (!SWIG_IsOK(res2)) {
18140 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18141 }
18142 if (!argp2) {
18143 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18144 }
18145 arg2 = reinterpret_cast< wxFont * >(argp2);
18146 {
18147 PyThreadState* __tstate = wxPyBeginAllowThreads();
18148 (arg1)->SetFont((wxFont const &)*arg2);
18149 wxPyEndAllowThreads(__tstate);
18150 if (PyErr_Occurred()) SWIG_fail;
18151 }
18152 resultobj = SWIG_Py_Void();
18153 return resultobj;
18154 fail:
18155 return NULL;
18156 }
18157
18158
18159 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18160 PyObject *resultobj = 0;
18161 wxDC *arg1 = (wxDC *) 0 ;
18162 wxPen *arg2 = 0 ;
18163 void *argp1 = 0 ;
18164 int res1 = 0 ;
18165 void *argp2 = 0 ;
18166 int res2 = 0 ;
18167 PyObject * obj0 = 0 ;
18168 PyObject * obj1 = 0 ;
18169 char * kwnames[] = {
18170 (char *) "self",(char *) "pen", NULL
18171 };
18172
18173 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18174 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18175 if (!SWIG_IsOK(res1)) {
18176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18177 }
18178 arg1 = reinterpret_cast< wxDC * >(argp1);
18179 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18180 if (!SWIG_IsOK(res2)) {
18181 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18182 }
18183 if (!argp2) {
18184 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18185 }
18186 arg2 = reinterpret_cast< wxPen * >(argp2);
18187 {
18188 PyThreadState* __tstate = wxPyBeginAllowThreads();
18189 (arg1)->SetPen((wxPen const &)*arg2);
18190 wxPyEndAllowThreads(__tstate);
18191 if (PyErr_Occurred()) SWIG_fail;
18192 }
18193 resultobj = SWIG_Py_Void();
18194 return resultobj;
18195 fail:
18196 return NULL;
18197 }
18198
18199
18200 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18201 PyObject *resultobj = 0;
18202 wxDC *arg1 = (wxDC *) 0 ;
18203 wxBrush *arg2 = 0 ;
18204 void *argp1 = 0 ;
18205 int res1 = 0 ;
18206 void *argp2 = 0 ;
18207 int res2 = 0 ;
18208 PyObject * obj0 = 0 ;
18209 PyObject * obj1 = 0 ;
18210 char * kwnames[] = {
18211 (char *) "self",(char *) "brush", NULL
18212 };
18213
18214 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18215 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18216 if (!SWIG_IsOK(res1)) {
18217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18218 }
18219 arg1 = reinterpret_cast< wxDC * >(argp1);
18220 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18221 if (!SWIG_IsOK(res2)) {
18222 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18223 }
18224 if (!argp2) {
18225 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18226 }
18227 arg2 = reinterpret_cast< wxBrush * >(argp2);
18228 {
18229 PyThreadState* __tstate = wxPyBeginAllowThreads();
18230 (arg1)->SetBrush((wxBrush const &)*arg2);
18231 wxPyEndAllowThreads(__tstate);
18232 if (PyErr_Occurred()) SWIG_fail;
18233 }
18234 resultobj = SWIG_Py_Void();
18235 return resultobj;
18236 fail:
18237 return NULL;
18238 }
18239
18240
18241 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18242 PyObject *resultobj = 0;
18243 wxDC *arg1 = (wxDC *) 0 ;
18244 wxBrush *arg2 = 0 ;
18245 void *argp1 = 0 ;
18246 int res1 = 0 ;
18247 void *argp2 = 0 ;
18248 int res2 = 0 ;
18249 PyObject * obj0 = 0 ;
18250 PyObject * obj1 = 0 ;
18251 char * kwnames[] = {
18252 (char *) "self",(char *) "brush", NULL
18253 };
18254
18255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18257 if (!SWIG_IsOK(res1)) {
18258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18259 }
18260 arg1 = reinterpret_cast< wxDC * >(argp1);
18261 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18262 if (!SWIG_IsOK(res2)) {
18263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18264 }
18265 if (!argp2) {
18266 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18267 }
18268 arg2 = reinterpret_cast< wxBrush * >(argp2);
18269 {
18270 PyThreadState* __tstate = wxPyBeginAllowThreads();
18271 (arg1)->SetBackground((wxBrush const &)*arg2);
18272 wxPyEndAllowThreads(__tstate);
18273 if (PyErr_Occurred()) SWIG_fail;
18274 }
18275 resultobj = SWIG_Py_Void();
18276 return resultobj;
18277 fail:
18278 return NULL;
18279 }
18280
18281
18282 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18283 PyObject *resultobj = 0;
18284 wxDC *arg1 = (wxDC *) 0 ;
18285 int arg2 ;
18286 void *argp1 = 0 ;
18287 int res1 = 0 ;
18288 int val2 ;
18289 int ecode2 = 0 ;
18290 PyObject * obj0 = 0 ;
18291 PyObject * obj1 = 0 ;
18292 char * kwnames[] = {
18293 (char *) "self",(char *) "mode", NULL
18294 };
18295
18296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18298 if (!SWIG_IsOK(res1)) {
18299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18300 }
18301 arg1 = reinterpret_cast< wxDC * >(argp1);
18302 ecode2 = SWIG_AsVal_int(obj1, &val2);
18303 if (!SWIG_IsOK(ecode2)) {
18304 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18305 }
18306 arg2 = static_cast< int >(val2);
18307 {
18308 PyThreadState* __tstate = wxPyBeginAllowThreads();
18309 (arg1)->SetBackgroundMode(arg2);
18310 wxPyEndAllowThreads(__tstate);
18311 if (PyErr_Occurred()) SWIG_fail;
18312 }
18313 resultobj = SWIG_Py_Void();
18314 return resultobj;
18315 fail:
18316 return NULL;
18317 }
18318
18319
18320 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18321 PyObject *resultobj = 0;
18322 wxDC *arg1 = (wxDC *) 0 ;
18323 wxPalette *arg2 = 0 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 void *argp2 = 0 ;
18327 int res2 = 0 ;
18328 PyObject * obj0 = 0 ;
18329 PyObject * obj1 = 0 ;
18330 char * kwnames[] = {
18331 (char *) "self",(char *) "palette", NULL
18332 };
18333
18334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18336 if (!SWIG_IsOK(res1)) {
18337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18338 }
18339 arg1 = reinterpret_cast< wxDC * >(argp1);
18340 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18341 if (!SWIG_IsOK(res2)) {
18342 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18343 }
18344 if (!argp2) {
18345 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18346 }
18347 arg2 = reinterpret_cast< wxPalette * >(argp2);
18348 {
18349 PyThreadState* __tstate = wxPyBeginAllowThreads();
18350 (arg1)->SetPalette((wxPalette const &)*arg2);
18351 wxPyEndAllowThreads(__tstate);
18352 if (PyErr_Occurred()) SWIG_fail;
18353 }
18354 resultobj = SWIG_Py_Void();
18355 return resultobj;
18356 fail:
18357 return NULL;
18358 }
18359
18360
18361 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18362 PyObject *resultobj = 0;
18363 wxDC *arg1 = (wxDC *) 0 ;
18364 void *argp1 = 0 ;
18365 int res1 = 0 ;
18366 PyObject *swig_obj[1] ;
18367
18368 if (!args) SWIG_fail;
18369 swig_obj[0] = args;
18370 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18371 if (!SWIG_IsOK(res1)) {
18372 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18373 }
18374 arg1 = reinterpret_cast< wxDC * >(argp1);
18375 {
18376 PyThreadState* __tstate = wxPyBeginAllowThreads();
18377 (arg1)->DestroyClippingRegion();
18378 wxPyEndAllowThreads(__tstate);
18379 if (PyErr_Occurred()) SWIG_fail;
18380 }
18381 resultobj = SWIG_Py_Void();
18382 return resultobj;
18383 fail:
18384 return NULL;
18385 }
18386
18387
18388 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18389 PyObject *resultobj = 0;
18390 wxDC *arg1 = (wxDC *) 0 ;
18391 int *arg2 = (int *) 0 ;
18392 int *arg3 = (int *) 0 ;
18393 int *arg4 = (int *) 0 ;
18394 int *arg5 = (int *) 0 ;
18395 void *argp1 = 0 ;
18396 int res1 = 0 ;
18397 int temp2 ;
18398 int res2 = SWIG_TMPOBJ ;
18399 int temp3 ;
18400 int res3 = SWIG_TMPOBJ ;
18401 int temp4 ;
18402 int res4 = SWIG_TMPOBJ ;
18403 int temp5 ;
18404 int res5 = SWIG_TMPOBJ ;
18405 PyObject *swig_obj[1] ;
18406
18407 arg2 = &temp2;
18408 arg3 = &temp3;
18409 arg4 = &temp4;
18410 arg5 = &temp5;
18411 if (!args) SWIG_fail;
18412 swig_obj[0] = args;
18413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18414 if (!SWIG_IsOK(res1)) {
18415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18416 }
18417 arg1 = reinterpret_cast< wxDC * >(argp1);
18418 {
18419 PyThreadState* __tstate = wxPyBeginAllowThreads();
18420 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18421 wxPyEndAllowThreads(__tstate);
18422 if (PyErr_Occurred()) SWIG_fail;
18423 }
18424 resultobj = SWIG_Py_Void();
18425 if (SWIG_IsTmpObj(res2)) {
18426 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18427 } else {
18428 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18429 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18430 }
18431 if (SWIG_IsTmpObj(res3)) {
18432 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18433 } else {
18434 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18435 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18436 }
18437 if (SWIG_IsTmpObj(res4)) {
18438 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18439 } else {
18440 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18441 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18442 }
18443 if (SWIG_IsTmpObj(res5)) {
18444 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18445 } else {
18446 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18447 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18448 }
18449 return resultobj;
18450 fail:
18451 return NULL;
18452 }
18453
18454
18455 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18456 PyObject *resultobj = 0;
18457 wxDC *arg1 = (wxDC *) 0 ;
18458 wxRect result;
18459 void *argp1 = 0 ;
18460 int res1 = 0 ;
18461 PyObject *swig_obj[1] ;
18462
18463 if (!args) SWIG_fail;
18464 swig_obj[0] = args;
18465 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18466 if (!SWIG_IsOK(res1)) {
18467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18468 }
18469 arg1 = reinterpret_cast< wxDC * >(argp1);
18470 {
18471 PyThreadState* __tstate = wxPyBeginAllowThreads();
18472 result = wxDC_GetClippingRect(arg1);
18473 wxPyEndAllowThreads(__tstate);
18474 if (PyErr_Occurred()) SWIG_fail;
18475 }
18476 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18477 return resultobj;
18478 fail:
18479 return NULL;
18480 }
18481
18482
18483 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18484 PyObject *resultobj = 0;
18485 wxDC *arg1 = (wxDC *) 0 ;
18486 int result;
18487 void *argp1 = 0 ;
18488 int res1 = 0 ;
18489 PyObject *swig_obj[1] ;
18490
18491 if (!args) SWIG_fail;
18492 swig_obj[0] = args;
18493 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18494 if (!SWIG_IsOK(res1)) {
18495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18496 }
18497 arg1 = reinterpret_cast< wxDC * >(argp1);
18498 {
18499 PyThreadState* __tstate = wxPyBeginAllowThreads();
18500 result = (int)((wxDC const *)arg1)->GetCharHeight();
18501 wxPyEndAllowThreads(__tstate);
18502 if (PyErr_Occurred()) SWIG_fail;
18503 }
18504 resultobj = SWIG_From_int(static_cast< int >(result));
18505 return resultobj;
18506 fail:
18507 return NULL;
18508 }
18509
18510
18511 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18512 PyObject *resultobj = 0;
18513 wxDC *arg1 = (wxDC *) 0 ;
18514 int result;
18515 void *argp1 = 0 ;
18516 int res1 = 0 ;
18517 PyObject *swig_obj[1] ;
18518
18519 if (!args) SWIG_fail;
18520 swig_obj[0] = args;
18521 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18522 if (!SWIG_IsOK(res1)) {
18523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18524 }
18525 arg1 = reinterpret_cast< wxDC * >(argp1);
18526 {
18527 PyThreadState* __tstate = wxPyBeginAllowThreads();
18528 result = (int)((wxDC const *)arg1)->GetCharWidth();
18529 wxPyEndAllowThreads(__tstate);
18530 if (PyErr_Occurred()) SWIG_fail;
18531 }
18532 resultobj = SWIG_From_int(static_cast< int >(result));
18533 return resultobj;
18534 fail:
18535 return NULL;
18536 }
18537
18538
18539 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18540 PyObject *resultobj = 0;
18541 wxDC *arg1 = (wxDC *) 0 ;
18542 wxString *arg2 = 0 ;
18543 int *arg3 = (int *) 0 ;
18544 int *arg4 = (int *) 0 ;
18545 void *argp1 = 0 ;
18546 int res1 = 0 ;
18547 bool temp2 = false ;
18548 int temp3 ;
18549 int res3 = SWIG_TMPOBJ ;
18550 int temp4 ;
18551 int res4 = SWIG_TMPOBJ ;
18552 PyObject * obj0 = 0 ;
18553 PyObject * obj1 = 0 ;
18554 char * kwnames[] = {
18555 (char *) "self",(char *) "string", NULL
18556 };
18557
18558 arg3 = &temp3;
18559 arg4 = &temp4;
18560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18562 if (!SWIG_IsOK(res1)) {
18563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18564 }
18565 arg1 = reinterpret_cast< wxDC * >(argp1);
18566 {
18567 arg2 = wxString_in_helper(obj1);
18568 if (arg2 == NULL) SWIG_fail;
18569 temp2 = true;
18570 }
18571 {
18572 PyThreadState* __tstate = wxPyBeginAllowThreads();
18573 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18574 wxPyEndAllowThreads(__tstate);
18575 if (PyErr_Occurred()) SWIG_fail;
18576 }
18577 resultobj = SWIG_Py_Void();
18578 if (SWIG_IsTmpObj(res3)) {
18579 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18580 } else {
18581 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18582 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18583 }
18584 if (SWIG_IsTmpObj(res4)) {
18585 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18586 } else {
18587 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18588 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18589 }
18590 {
18591 if (temp2)
18592 delete arg2;
18593 }
18594 return resultobj;
18595 fail:
18596 {
18597 if (temp2)
18598 delete arg2;
18599 }
18600 return NULL;
18601 }
18602
18603
18604 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18605 PyObject *resultobj = 0;
18606 wxDC *arg1 = (wxDC *) 0 ;
18607 wxString *arg2 = 0 ;
18608 int *arg3 = (int *) 0 ;
18609 int *arg4 = (int *) 0 ;
18610 int *arg5 = (int *) 0 ;
18611 int *arg6 = (int *) 0 ;
18612 wxFont *arg7 = (wxFont *) NULL ;
18613 void *argp1 = 0 ;
18614 int res1 = 0 ;
18615 bool temp2 = false ;
18616 int temp3 ;
18617 int res3 = SWIG_TMPOBJ ;
18618 int temp4 ;
18619 int res4 = SWIG_TMPOBJ ;
18620 int temp5 ;
18621 int res5 = SWIG_TMPOBJ ;
18622 int temp6 ;
18623 int res6 = SWIG_TMPOBJ ;
18624 void *argp7 = 0 ;
18625 int res7 = 0 ;
18626 PyObject * obj0 = 0 ;
18627 PyObject * obj1 = 0 ;
18628 PyObject * obj2 = 0 ;
18629 char * kwnames[] = {
18630 (char *) "self",(char *) "string",(char *) "font", NULL
18631 };
18632
18633 arg3 = &temp3;
18634 arg4 = &temp4;
18635 arg5 = &temp5;
18636 arg6 = &temp6;
18637 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18638 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18639 if (!SWIG_IsOK(res1)) {
18640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18641 }
18642 arg1 = reinterpret_cast< wxDC * >(argp1);
18643 {
18644 arg2 = wxString_in_helper(obj1);
18645 if (arg2 == NULL) SWIG_fail;
18646 temp2 = true;
18647 }
18648 if (obj2) {
18649 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18650 if (!SWIG_IsOK(res7)) {
18651 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18652 }
18653 arg7 = reinterpret_cast< wxFont * >(argp7);
18654 }
18655 {
18656 PyThreadState* __tstate = wxPyBeginAllowThreads();
18657 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18658 wxPyEndAllowThreads(__tstate);
18659 if (PyErr_Occurred()) SWIG_fail;
18660 }
18661 resultobj = SWIG_Py_Void();
18662 if (SWIG_IsTmpObj(res3)) {
18663 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18664 } else {
18665 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18666 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18667 }
18668 if (SWIG_IsTmpObj(res4)) {
18669 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18670 } else {
18671 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18672 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18673 }
18674 if (SWIG_IsTmpObj(res5)) {
18675 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18676 } else {
18677 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18678 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18679 }
18680 if (SWIG_IsTmpObj(res6)) {
18681 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18682 } else {
18683 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18684 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18685 }
18686 {
18687 if (temp2)
18688 delete arg2;
18689 }
18690 return resultobj;
18691 fail:
18692 {
18693 if (temp2)
18694 delete arg2;
18695 }
18696 return NULL;
18697 }
18698
18699
18700 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18701 PyObject *resultobj = 0;
18702 wxDC *arg1 = (wxDC *) 0 ;
18703 wxString *arg2 = 0 ;
18704 int *arg3 = (int *) 0 ;
18705 int *arg4 = (int *) 0 ;
18706 int *arg5 = (int *) 0 ;
18707 wxFont *arg6 = (wxFont *) NULL ;
18708 void *argp1 = 0 ;
18709 int res1 = 0 ;
18710 bool temp2 = false ;
18711 int temp3 ;
18712 int res3 = SWIG_TMPOBJ ;
18713 int temp4 ;
18714 int res4 = SWIG_TMPOBJ ;
18715 int temp5 ;
18716 int res5 = SWIG_TMPOBJ ;
18717 void *argp6 = 0 ;
18718 int res6 = 0 ;
18719 PyObject * obj0 = 0 ;
18720 PyObject * obj1 = 0 ;
18721 PyObject * obj2 = 0 ;
18722 char * kwnames[] = {
18723 (char *) "self",(char *) "text",(char *) "font", NULL
18724 };
18725
18726 arg3 = &temp3;
18727 arg4 = &temp4;
18728 arg5 = &temp5;
18729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18730 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18731 if (!SWIG_IsOK(res1)) {
18732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18733 }
18734 arg1 = reinterpret_cast< wxDC * >(argp1);
18735 {
18736 arg2 = wxString_in_helper(obj1);
18737 if (arg2 == NULL) SWIG_fail;
18738 temp2 = true;
18739 }
18740 if (obj2) {
18741 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18742 if (!SWIG_IsOK(res6)) {
18743 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18744 }
18745 arg6 = reinterpret_cast< wxFont * >(argp6);
18746 }
18747 {
18748 PyThreadState* __tstate = wxPyBeginAllowThreads();
18749 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18750 wxPyEndAllowThreads(__tstate);
18751 if (PyErr_Occurred()) SWIG_fail;
18752 }
18753 resultobj = SWIG_Py_Void();
18754 if (SWIG_IsTmpObj(res3)) {
18755 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18756 } else {
18757 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18758 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18759 }
18760 if (SWIG_IsTmpObj(res4)) {
18761 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18762 } else {
18763 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18764 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18765 }
18766 if (SWIG_IsTmpObj(res5)) {
18767 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18768 } else {
18769 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18770 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18771 }
18772 {
18773 if (temp2)
18774 delete arg2;
18775 }
18776 return resultobj;
18777 fail:
18778 {
18779 if (temp2)
18780 delete arg2;
18781 }
18782 return NULL;
18783 }
18784
18785
18786 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18787 PyObject *resultobj = 0;
18788 wxDC *arg1 = (wxDC *) 0 ;
18789 wxString *arg2 = 0 ;
18790 wxArrayInt result;
18791 void *argp1 = 0 ;
18792 int res1 = 0 ;
18793 bool temp2 = false ;
18794 PyObject * obj0 = 0 ;
18795 PyObject * obj1 = 0 ;
18796 char * kwnames[] = {
18797 (char *) "self",(char *) "text", NULL
18798 };
18799
18800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18802 if (!SWIG_IsOK(res1)) {
18803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18804 }
18805 arg1 = reinterpret_cast< wxDC * >(argp1);
18806 {
18807 arg2 = wxString_in_helper(obj1);
18808 if (arg2 == NULL) SWIG_fail;
18809 temp2 = true;
18810 }
18811 {
18812 PyThreadState* __tstate = wxPyBeginAllowThreads();
18813 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18814 wxPyEndAllowThreads(__tstate);
18815 if (PyErr_Occurred()) SWIG_fail;
18816 }
18817 {
18818 resultobj = PyList_New(0);
18819 size_t idx;
18820 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18821 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18822 PyList_Append(resultobj, val);
18823 Py_DECREF(val);
18824 }
18825 }
18826 {
18827 if (temp2)
18828 delete arg2;
18829 }
18830 return resultobj;
18831 fail:
18832 {
18833 if (temp2)
18834 delete arg2;
18835 }
18836 return NULL;
18837 }
18838
18839
18840 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18841 PyObject *resultobj = 0;
18842 wxDC *arg1 = (wxDC *) 0 ;
18843 wxSize result;
18844 void *argp1 = 0 ;
18845 int res1 = 0 ;
18846 PyObject *swig_obj[1] ;
18847
18848 if (!args) SWIG_fail;
18849 swig_obj[0] = args;
18850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18851 if (!SWIG_IsOK(res1)) {
18852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18853 }
18854 arg1 = reinterpret_cast< wxDC * >(argp1);
18855 {
18856 PyThreadState* __tstate = wxPyBeginAllowThreads();
18857 result = (arg1)->GetSize();
18858 wxPyEndAllowThreads(__tstate);
18859 if (PyErr_Occurred()) SWIG_fail;
18860 }
18861 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18862 return resultobj;
18863 fail:
18864 return NULL;
18865 }
18866
18867
18868 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18869 PyObject *resultobj = 0;
18870 wxDC *arg1 = (wxDC *) 0 ;
18871 int *arg2 = (int *) 0 ;
18872 int *arg3 = (int *) 0 ;
18873 void *argp1 = 0 ;
18874 int res1 = 0 ;
18875 int temp2 ;
18876 int res2 = SWIG_TMPOBJ ;
18877 int temp3 ;
18878 int res3 = SWIG_TMPOBJ ;
18879 PyObject *swig_obj[1] ;
18880
18881 arg2 = &temp2;
18882 arg3 = &temp3;
18883 if (!args) SWIG_fail;
18884 swig_obj[0] = args;
18885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18886 if (!SWIG_IsOK(res1)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18888 }
18889 arg1 = reinterpret_cast< wxDC * >(argp1);
18890 {
18891 PyThreadState* __tstate = wxPyBeginAllowThreads();
18892 (arg1)->GetSize(arg2,arg3);
18893 wxPyEndAllowThreads(__tstate);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 }
18896 resultobj = SWIG_Py_Void();
18897 if (SWIG_IsTmpObj(res2)) {
18898 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18899 } else {
18900 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18901 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18902 }
18903 if (SWIG_IsTmpObj(res3)) {
18904 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18905 } else {
18906 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18907 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18908 }
18909 return resultobj;
18910 fail:
18911 return NULL;
18912 }
18913
18914
18915 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18916 PyObject *resultobj = 0;
18917 wxDC *arg1 = (wxDC *) 0 ;
18918 wxSize result;
18919 void *argp1 = 0 ;
18920 int res1 = 0 ;
18921 PyObject *swig_obj[1] ;
18922
18923 if (!args) SWIG_fail;
18924 swig_obj[0] = args;
18925 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18926 if (!SWIG_IsOK(res1)) {
18927 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18928 }
18929 arg1 = reinterpret_cast< wxDC * >(argp1);
18930 {
18931 PyThreadState* __tstate = wxPyBeginAllowThreads();
18932 result = ((wxDC const *)arg1)->GetSizeMM();
18933 wxPyEndAllowThreads(__tstate);
18934 if (PyErr_Occurred()) SWIG_fail;
18935 }
18936 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18937 return resultobj;
18938 fail:
18939 return NULL;
18940 }
18941
18942
18943 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18944 PyObject *resultobj = 0;
18945 wxDC *arg1 = (wxDC *) 0 ;
18946 int *arg2 = (int *) 0 ;
18947 int *arg3 = (int *) 0 ;
18948 void *argp1 = 0 ;
18949 int res1 = 0 ;
18950 int temp2 ;
18951 int res2 = SWIG_TMPOBJ ;
18952 int temp3 ;
18953 int res3 = SWIG_TMPOBJ ;
18954 PyObject *swig_obj[1] ;
18955
18956 arg2 = &temp2;
18957 arg3 = &temp3;
18958 if (!args) SWIG_fail;
18959 swig_obj[0] = args;
18960 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18961 if (!SWIG_IsOK(res1)) {
18962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18963 }
18964 arg1 = reinterpret_cast< wxDC * >(argp1);
18965 {
18966 PyThreadState* __tstate = wxPyBeginAllowThreads();
18967 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18968 wxPyEndAllowThreads(__tstate);
18969 if (PyErr_Occurred()) SWIG_fail;
18970 }
18971 resultobj = SWIG_Py_Void();
18972 if (SWIG_IsTmpObj(res2)) {
18973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18974 } else {
18975 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18977 }
18978 if (SWIG_IsTmpObj(res3)) {
18979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18980 } else {
18981 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18983 }
18984 return resultobj;
18985 fail:
18986 return NULL;
18987 }
18988
18989
18990 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18991 PyObject *resultobj = 0;
18992 wxDC *arg1 = (wxDC *) 0 ;
18993 int arg2 ;
18994 int result;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 int val2 ;
18998 int ecode2 = 0 ;
18999 PyObject * obj0 = 0 ;
19000 PyObject * obj1 = 0 ;
19001 char * kwnames[] = {
19002 (char *) "self",(char *) "x", NULL
19003 };
19004
19005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
19006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19007 if (!SWIG_IsOK(res1)) {
19008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
19009 }
19010 arg1 = reinterpret_cast< wxDC * >(argp1);
19011 ecode2 = SWIG_AsVal_int(obj1, &val2);
19012 if (!SWIG_IsOK(ecode2)) {
19013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
19014 }
19015 arg2 = static_cast< int >(val2);
19016 {
19017 PyThreadState* __tstate = wxPyBeginAllowThreads();
19018 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
19019 wxPyEndAllowThreads(__tstate);
19020 if (PyErr_Occurred()) SWIG_fail;
19021 }
19022 resultobj = SWIG_From_int(static_cast< int >(result));
19023 return resultobj;
19024 fail:
19025 return NULL;
19026 }
19027
19028
19029 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19030 PyObject *resultobj = 0;
19031 wxDC *arg1 = (wxDC *) 0 ;
19032 int arg2 ;
19033 int result;
19034 void *argp1 = 0 ;
19035 int res1 = 0 ;
19036 int val2 ;
19037 int ecode2 = 0 ;
19038 PyObject * obj0 = 0 ;
19039 PyObject * obj1 = 0 ;
19040 char * kwnames[] = {
19041 (char *) "self",(char *) "y", NULL
19042 };
19043
19044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19046 if (!SWIG_IsOK(res1)) {
19047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19048 }
19049 arg1 = reinterpret_cast< wxDC * >(argp1);
19050 ecode2 = SWIG_AsVal_int(obj1, &val2);
19051 if (!SWIG_IsOK(ecode2)) {
19052 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19053 }
19054 arg2 = static_cast< int >(val2);
19055 {
19056 PyThreadState* __tstate = wxPyBeginAllowThreads();
19057 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19058 wxPyEndAllowThreads(__tstate);
19059 if (PyErr_Occurred()) SWIG_fail;
19060 }
19061 resultobj = SWIG_From_int(static_cast< int >(result));
19062 return resultobj;
19063 fail:
19064 return NULL;
19065 }
19066
19067
19068 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19069 PyObject *resultobj = 0;
19070 wxDC *arg1 = (wxDC *) 0 ;
19071 int arg2 ;
19072 int result;
19073 void *argp1 = 0 ;
19074 int res1 = 0 ;
19075 int val2 ;
19076 int ecode2 = 0 ;
19077 PyObject * obj0 = 0 ;
19078 PyObject * obj1 = 0 ;
19079 char * kwnames[] = {
19080 (char *) "self",(char *) "x", NULL
19081 };
19082
19083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19085 if (!SWIG_IsOK(res1)) {
19086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19087 }
19088 arg1 = reinterpret_cast< wxDC * >(argp1);
19089 ecode2 = SWIG_AsVal_int(obj1, &val2);
19090 if (!SWIG_IsOK(ecode2)) {
19091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19092 }
19093 arg2 = static_cast< int >(val2);
19094 {
19095 PyThreadState* __tstate = wxPyBeginAllowThreads();
19096 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19097 wxPyEndAllowThreads(__tstate);
19098 if (PyErr_Occurred()) SWIG_fail;
19099 }
19100 resultobj = SWIG_From_int(static_cast< int >(result));
19101 return resultobj;
19102 fail:
19103 return NULL;
19104 }
19105
19106
19107 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19108 PyObject *resultobj = 0;
19109 wxDC *arg1 = (wxDC *) 0 ;
19110 int arg2 ;
19111 int result;
19112 void *argp1 = 0 ;
19113 int res1 = 0 ;
19114 int val2 ;
19115 int ecode2 = 0 ;
19116 PyObject * obj0 = 0 ;
19117 PyObject * obj1 = 0 ;
19118 char * kwnames[] = {
19119 (char *) "self",(char *) "y", NULL
19120 };
19121
19122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19124 if (!SWIG_IsOK(res1)) {
19125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19126 }
19127 arg1 = reinterpret_cast< wxDC * >(argp1);
19128 ecode2 = SWIG_AsVal_int(obj1, &val2);
19129 if (!SWIG_IsOK(ecode2)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19131 }
19132 arg2 = static_cast< int >(val2);
19133 {
19134 PyThreadState* __tstate = wxPyBeginAllowThreads();
19135 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19136 wxPyEndAllowThreads(__tstate);
19137 if (PyErr_Occurred()) SWIG_fail;
19138 }
19139 resultobj = SWIG_From_int(static_cast< int >(result));
19140 return resultobj;
19141 fail:
19142 return NULL;
19143 }
19144
19145
19146 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19147 PyObject *resultobj = 0;
19148 wxDC *arg1 = (wxDC *) 0 ;
19149 int arg2 ;
19150 int result;
19151 void *argp1 = 0 ;
19152 int res1 = 0 ;
19153 int val2 ;
19154 int ecode2 = 0 ;
19155 PyObject * obj0 = 0 ;
19156 PyObject * obj1 = 0 ;
19157 char * kwnames[] = {
19158 (char *) "self",(char *) "x", NULL
19159 };
19160
19161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19163 if (!SWIG_IsOK(res1)) {
19164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19165 }
19166 arg1 = reinterpret_cast< wxDC * >(argp1);
19167 ecode2 = SWIG_AsVal_int(obj1, &val2);
19168 if (!SWIG_IsOK(ecode2)) {
19169 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19170 }
19171 arg2 = static_cast< int >(val2);
19172 {
19173 PyThreadState* __tstate = wxPyBeginAllowThreads();
19174 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19175 wxPyEndAllowThreads(__tstate);
19176 if (PyErr_Occurred()) SWIG_fail;
19177 }
19178 resultobj = SWIG_From_int(static_cast< int >(result));
19179 return resultobj;
19180 fail:
19181 return NULL;
19182 }
19183
19184
19185 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19186 PyObject *resultobj = 0;
19187 wxDC *arg1 = (wxDC *) 0 ;
19188 int arg2 ;
19189 int result;
19190 void *argp1 = 0 ;
19191 int res1 = 0 ;
19192 int val2 ;
19193 int ecode2 = 0 ;
19194 PyObject * obj0 = 0 ;
19195 PyObject * obj1 = 0 ;
19196 char * kwnames[] = {
19197 (char *) "self",(char *) "y", NULL
19198 };
19199
19200 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19201 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19202 if (!SWIG_IsOK(res1)) {
19203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19204 }
19205 arg1 = reinterpret_cast< wxDC * >(argp1);
19206 ecode2 = SWIG_AsVal_int(obj1, &val2);
19207 if (!SWIG_IsOK(ecode2)) {
19208 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19209 }
19210 arg2 = static_cast< int >(val2);
19211 {
19212 PyThreadState* __tstate = wxPyBeginAllowThreads();
19213 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19214 wxPyEndAllowThreads(__tstate);
19215 if (PyErr_Occurred()) SWIG_fail;
19216 }
19217 resultobj = SWIG_From_int(static_cast< int >(result));
19218 return resultobj;
19219 fail:
19220 return NULL;
19221 }
19222
19223
19224 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19225 PyObject *resultobj = 0;
19226 wxDC *arg1 = (wxDC *) 0 ;
19227 int arg2 ;
19228 int result;
19229 void *argp1 = 0 ;
19230 int res1 = 0 ;
19231 int val2 ;
19232 int ecode2 = 0 ;
19233 PyObject * obj0 = 0 ;
19234 PyObject * obj1 = 0 ;
19235 char * kwnames[] = {
19236 (char *) "self",(char *) "x", NULL
19237 };
19238
19239 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19240 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19241 if (!SWIG_IsOK(res1)) {
19242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19243 }
19244 arg1 = reinterpret_cast< wxDC * >(argp1);
19245 ecode2 = SWIG_AsVal_int(obj1, &val2);
19246 if (!SWIG_IsOK(ecode2)) {
19247 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19248 }
19249 arg2 = static_cast< int >(val2);
19250 {
19251 PyThreadState* __tstate = wxPyBeginAllowThreads();
19252 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19253 wxPyEndAllowThreads(__tstate);
19254 if (PyErr_Occurred()) SWIG_fail;
19255 }
19256 resultobj = SWIG_From_int(static_cast< int >(result));
19257 return resultobj;
19258 fail:
19259 return NULL;
19260 }
19261
19262
19263 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19264 PyObject *resultobj = 0;
19265 wxDC *arg1 = (wxDC *) 0 ;
19266 int arg2 ;
19267 int result;
19268 void *argp1 = 0 ;
19269 int res1 = 0 ;
19270 int val2 ;
19271 int ecode2 = 0 ;
19272 PyObject * obj0 = 0 ;
19273 PyObject * obj1 = 0 ;
19274 char * kwnames[] = {
19275 (char *) "self",(char *) "y", NULL
19276 };
19277
19278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19280 if (!SWIG_IsOK(res1)) {
19281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19282 }
19283 arg1 = reinterpret_cast< wxDC * >(argp1);
19284 ecode2 = SWIG_AsVal_int(obj1, &val2);
19285 if (!SWIG_IsOK(ecode2)) {
19286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19287 }
19288 arg2 = static_cast< int >(val2);
19289 {
19290 PyThreadState* __tstate = wxPyBeginAllowThreads();
19291 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19292 wxPyEndAllowThreads(__tstate);
19293 if (PyErr_Occurred()) SWIG_fail;
19294 }
19295 resultobj = SWIG_From_int(static_cast< int >(result));
19296 return resultobj;
19297 fail:
19298 return NULL;
19299 }
19300
19301
19302 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19303 PyObject *resultobj = 0;
19304 wxDC *arg1 = (wxDC *) 0 ;
19305 bool result;
19306 void *argp1 = 0 ;
19307 int res1 = 0 ;
19308 PyObject *swig_obj[1] ;
19309
19310 if (!args) SWIG_fail;
19311 swig_obj[0] = args;
19312 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19313 if (!SWIG_IsOK(res1)) {
19314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19315 }
19316 arg1 = reinterpret_cast< wxDC * >(argp1);
19317 {
19318 PyThreadState* __tstate = wxPyBeginAllowThreads();
19319 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19320 wxPyEndAllowThreads(__tstate);
19321 if (PyErr_Occurred()) SWIG_fail;
19322 }
19323 {
19324 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19325 }
19326 return resultobj;
19327 fail:
19328 return NULL;
19329 }
19330
19331
19332 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19333 PyObject *resultobj = 0;
19334 wxDC *arg1 = (wxDC *) 0 ;
19335 bool result;
19336 void *argp1 = 0 ;
19337 int res1 = 0 ;
19338 PyObject *swig_obj[1] ;
19339
19340 if (!args) SWIG_fail;
19341 swig_obj[0] = args;
19342 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19343 if (!SWIG_IsOK(res1)) {
19344 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19345 }
19346 arg1 = reinterpret_cast< wxDC * >(argp1);
19347 {
19348 PyThreadState* __tstate = wxPyBeginAllowThreads();
19349 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19350 wxPyEndAllowThreads(__tstate);
19351 if (PyErr_Occurred()) SWIG_fail;
19352 }
19353 {
19354 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19355 }
19356 return resultobj;
19357 fail:
19358 return NULL;
19359 }
19360
19361
19362 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19363 PyObject *resultobj = 0;
19364 wxDC *arg1 = (wxDC *) 0 ;
19365 int result;
19366 void *argp1 = 0 ;
19367 int res1 = 0 ;
19368 PyObject *swig_obj[1] ;
19369
19370 if (!args) SWIG_fail;
19371 swig_obj[0] = args;
19372 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19373 if (!SWIG_IsOK(res1)) {
19374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19375 }
19376 arg1 = reinterpret_cast< wxDC * >(argp1);
19377 {
19378 PyThreadState* __tstate = wxPyBeginAllowThreads();
19379 result = (int)((wxDC const *)arg1)->GetDepth();
19380 wxPyEndAllowThreads(__tstate);
19381 if (PyErr_Occurred()) SWIG_fail;
19382 }
19383 resultobj = SWIG_From_int(static_cast< int >(result));
19384 return resultobj;
19385 fail:
19386 return NULL;
19387 }
19388
19389
19390 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19391 PyObject *resultobj = 0;
19392 wxDC *arg1 = (wxDC *) 0 ;
19393 wxSize result;
19394 void *argp1 = 0 ;
19395 int res1 = 0 ;
19396 PyObject *swig_obj[1] ;
19397
19398 if (!args) SWIG_fail;
19399 swig_obj[0] = args;
19400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19401 if (!SWIG_IsOK(res1)) {
19402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19403 }
19404 arg1 = reinterpret_cast< wxDC * >(argp1);
19405 {
19406 PyThreadState* __tstate = wxPyBeginAllowThreads();
19407 result = ((wxDC const *)arg1)->GetPPI();
19408 wxPyEndAllowThreads(__tstate);
19409 if (PyErr_Occurred()) SWIG_fail;
19410 }
19411 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19412 return resultobj;
19413 fail:
19414 return NULL;
19415 }
19416
19417
19418 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19419 PyObject *resultobj = 0;
19420 wxDC *arg1 = (wxDC *) 0 ;
19421 bool result;
19422 void *argp1 = 0 ;
19423 int res1 = 0 ;
19424 PyObject *swig_obj[1] ;
19425
19426 if (!args) SWIG_fail;
19427 swig_obj[0] = args;
19428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19429 if (!SWIG_IsOK(res1)) {
19430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19431 }
19432 arg1 = reinterpret_cast< wxDC * >(argp1);
19433 {
19434 PyThreadState* __tstate = wxPyBeginAllowThreads();
19435 result = (bool)((wxDC const *)arg1)->Ok();
19436 wxPyEndAllowThreads(__tstate);
19437 if (PyErr_Occurred()) SWIG_fail;
19438 }
19439 {
19440 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19441 }
19442 return resultobj;
19443 fail:
19444 return NULL;
19445 }
19446
19447
19448 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19449 PyObject *resultobj = 0;
19450 wxDC *arg1 = (wxDC *) 0 ;
19451 int result;
19452 void *argp1 = 0 ;
19453 int res1 = 0 ;
19454 PyObject *swig_obj[1] ;
19455
19456 if (!args) SWIG_fail;
19457 swig_obj[0] = args;
19458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19459 if (!SWIG_IsOK(res1)) {
19460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19461 }
19462 arg1 = reinterpret_cast< wxDC * >(argp1);
19463 {
19464 PyThreadState* __tstate = wxPyBeginAllowThreads();
19465 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19466 wxPyEndAllowThreads(__tstate);
19467 if (PyErr_Occurred()) SWIG_fail;
19468 }
19469 resultobj = SWIG_From_int(static_cast< int >(result));
19470 return resultobj;
19471 fail:
19472 return NULL;
19473 }
19474
19475
19476 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19477 PyObject *resultobj = 0;
19478 wxDC *arg1 = (wxDC *) 0 ;
19479 wxBrush *result = 0 ;
19480 void *argp1 = 0 ;
19481 int res1 = 0 ;
19482 PyObject *swig_obj[1] ;
19483
19484 if (!args) SWIG_fail;
19485 swig_obj[0] = args;
19486 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19487 if (!SWIG_IsOK(res1)) {
19488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19489 }
19490 arg1 = reinterpret_cast< wxDC * >(argp1);
19491 {
19492 PyThreadState* __tstate = wxPyBeginAllowThreads();
19493 {
19494 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19495 result = (wxBrush *) &_result_ref;
19496 }
19497 wxPyEndAllowThreads(__tstate);
19498 if (PyErr_Occurred()) SWIG_fail;
19499 }
19500 {
19501 wxBrush* resultptr = new wxBrush(*result);
19502 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19503 }
19504 return resultobj;
19505 fail:
19506 return NULL;
19507 }
19508
19509
19510 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19511 PyObject *resultobj = 0;
19512 wxDC *arg1 = (wxDC *) 0 ;
19513 wxBrush *result = 0 ;
19514 void *argp1 = 0 ;
19515 int res1 = 0 ;
19516 PyObject *swig_obj[1] ;
19517
19518 if (!args) SWIG_fail;
19519 swig_obj[0] = args;
19520 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19521 if (!SWIG_IsOK(res1)) {
19522 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19523 }
19524 arg1 = reinterpret_cast< wxDC * >(argp1);
19525 {
19526 PyThreadState* __tstate = wxPyBeginAllowThreads();
19527 {
19528 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19529 result = (wxBrush *) &_result_ref;
19530 }
19531 wxPyEndAllowThreads(__tstate);
19532 if (PyErr_Occurred()) SWIG_fail;
19533 }
19534 {
19535 wxBrush* resultptr = new wxBrush(*result);
19536 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19537 }
19538 return resultobj;
19539 fail:
19540 return NULL;
19541 }
19542
19543
19544 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19545 PyObject *resultobj = 0;
19546 wxDC *arg1 = (wxDC *) 0 ;
19547 wxFont *result = 0 ;
19548 void *argp1 = 0 ;
19549 int res1 = 0 ;
19550 PyObject *swig_obj[1] ;
19551
19552 if (!args) SWIG_fail;
19553 swig_obj[0] = args;
19554 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19555 if (!SWIG_IsOK(res1)) {
19556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19557 }
19558 arg1 = reinterpret_cast< wxDC * >(argp1);
19559 {
19560 PyThreadState* __tstate = wxPyBeginAllowThreads();
19561 {
19562 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19563 result = (wxFont *) &_result_ref;
19564 }
19565 wxPyEndAllowThreads(__tstate);
19566 if (PyErr_Occurred()) SWIG_fail;
19567 }
19568 {
19569 wxFont* resultptr = new wxFont(*result);
19570 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19571 }
19572 return resultobj;
19573 fail:
19574 return NULL;
19575 }
19576
19577
19578 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19579 PyObject *resultobj = 0;
19580 wxDC *arg1 = (wxDC *) 0 ;
19581 wxPen *result = 0 ;
19582 void *argp1 = 0 ;
19583 int res1 = 0 ;
19584 PyObject *swig_obj[1] ;
19585
19586 if (!args) SWIG_fail;
19587 swig_obj[0] = args;
19588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19589 if (!SWIG_IsOK(res1)) {
19590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19591 }
19592 arg1 = reinterpret_cast< wxDC * >(argp1);
19593 {
19594 PyThreadState* __tstate = wxPyBeginAllowThreads();
19595 {
19596 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19597 result = (wxPen *) &_result_ref;
19598 }
19599 wxPyEndAllowThreads(__tstate);
19600 if (PyErr_Occurred()) SWIG_fail;
19601 }
19602 {
19603 wxPen* resultptr = new wxPen(*result);
19604 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19605 }
19606 return resultobj;
19607 fail:
19608 return NULL;
19609 }
19610
19611
19612 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19613 PyObject *resultobj = 0;
19614 wxDC *arg1 = (wxDC *) 0 ;
19615 wxColour *result = 0 ;
19616 void *argp1 = 0 ;
19617 int res1 = 0 ;
19618 PyObject *swig_obj[1] ;
19619
19620 if (!args) SWIG_fail;
19621 swig_obj[0] = args;
19622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19623 if (!SWIG_IsOK(res1)) {
19624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19625 }
19626 arg1 = reinterpret_cast< wxDC * >(argp1);
19627 {
19628 PyThreadState* __tstate = wxPyBeginAllowThreads();
19629 {
19630 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19631 result = (wxColour *) &_result_ref;
19632 }
19633 wxPyEndAllowThreads(__tstate);
19634 if (PyErr_Occurred()) SWIG_fail;
19635 }
19636 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19637 return resultobj;
19638 fail:
19639 return NULL;
19640 }
19641
19642
19643 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19644 PyObject *resultobj = 0;
19645 wxDC *arg1 = (wxDC *) 0 ;
19646 wxColour *result = 0 ;
19647 void *argp1 = 0 ;
19648 int res1 = 0 ;
19649 PyObject *swig_obj[1] ;
19650
19651 if (!args) SWIG_fail;
19652 swig_obj[0] = args;
19653 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19654 if (!SWIG_IsOK(res1)) {
19655 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19656 }
19657 arg1 = reinterpret_cast< wxDC * >(argp1);
19658 {
19659 PyThreadState* __tstate = wxPyBeginAllowThreads();
19660 {
19661 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19662 result = (wxColour *) &_result_ref;
19663 }
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19675 PyObject *resultobj = 0;
19676 wxDC *arg1 = (wxDC *) 0 ;
19677 wxColour *arg2 = 0 ;
19678 void *argp1 = 0 ;
19679 int res1 = 0 ;
19680 wxColour temp2 ;
19681 PyObject * obj0 = 0 ;
19682 PyObject * obj1 = 0 ;
19683 char * kwnames[] = {
19684 (char *) "self",(char *) "colour", NULL
19685 };
19686
19687 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19688 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19689 if (!SWIG_IsOK(res1)) {
19690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19691 }
19692 arg1 = reinterpret_cast< wxDC * >(argp1);
19693 {
19694 arg2 = &temp2;
19695 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19696 }
19697 {
19698 PyThreadState* __tstate = wxPyBeginAllowThreads();
19699 (arg1)->SetTextForeground((wxColour const &)*arg2);
19700 wxPyEndAllowThreads(__tstate);
19701 if (PyErr_Occurred()) SWIG_fail;
19702 }
19703 resultobj = SWIG_Py_Void();
19704 return resultobj;
19705 fail:
19706 return NULL;
19707 }
19708
19709
19710 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19711 PyObject *resultobj = 0;
19712 wxDC *arg1 = (wxDC *) 0 ;
19713 wxColour *arg2 = 0 ;
19714 void *argp1 = 0 ;
19715 int res1 = 0 ;
19716 wxColour temp2 ;
19717 PyObject * obj0 = 0 ;
19718 PyObject * obj1 = 0 ;
19719 char * kwnames[] = {
19720 (char *) "self",(char *) "colour", NULL
19721 };
19722
19723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19725 if (!SWIG_IsOK(res1)) {
19726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19727 }
19728 arg1 = reinterpret_cast< wxDC * >(argp1);
19729 {
19730 arg2 = &temp2;
19731 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19732 }
19733 {
19734 PyThreadState* __tstate = wxPyBeginAllowThreads();
19735 (arg1)->SetTextBackground((wxColour const &)*arg2);
19736 wxPyEndAllowThreads(__tstate);
19737 if (PyErr_Occurred()) SWIG_fail;
19738 }
19739 resultobj = SWIG_Py_Void();
19740 return resultobj;
19741 fail:
19742 return NULL;
19743 }
19744
19745
19746 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19747 PyObject *resultobj = 0;
19748 wxDC *arg1 = (wxDC *) 0 ;
19749 int result;
19750 void *argp1 = 0 ;
19751 int res1 = 0 ;
19752 PyObject *swig_obj[1] ;
19753
19754 if (!args) SWIG_fail;
19755 swig_obj[0] = args;
19756 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19757 if (!SWIG_IsOK(res1)) {
19758 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19759 }
19760 arg1 = reinterpret_cast< wxDC * >(argp1);
19761 {
19762 PyThreadState* __tstate = wxPyBeginAllowThreads();
19763 result = (int)((wxDC const *)arg1)->GetMapMode();
19764 wxPyEndAllowThreads(__tstate);
19765 if (PyErr_Occurred()) SWIG_fail;
19766 }
19767 resultobj = SWIG_From_int(static_cast< int >(result));
19768 return resultobj;
19769 fail:
19770 return NULL;
19771 }
19772
19773
19774 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19775 PyObject *resultobj = 0;
19776 wxDC *arg1 = (wxDC *) 0 ;
19777 int arg2 ;
19778 void *argp1 = 0 ;
19779 int res1 = 0 ;
19780 int val2 ;
19781 int ecode2 = 0 ;
19782 PyObject * obj0 = 0 ;
19783 PyObject * obj1 = 0 ;
19784 char * kwnames[] = {
19785 (char *) "self",(char *) "mode", NULL
19786 };
19787
19788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19792 }
19793 arg1 = reinterpret_cast< wxDC * >(argp1);
19794 ecode2 = SWIG_AsVal_int(obj1, &val2);
19795 if (!SWIG_IsOK(ecode2)) {
19796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19797 }
19798 arg2 = static_cast< int >(val2);
19799 {
19800 PyThreadState* __tstate = wxPyBeginAllowThreads();
19801 (arg1)->SetMapMode(arg2);
19802 wxPyEndAllowThreads(__tstate);
19803 if (PyErr_Occurred()) SWIG_fail;
19804 }
19805 resultobj = SWIG_Py_Void();
19806 return resultobj;
19807 fail:
19808 return NULL;
19809 }
19810
19811
19812 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19813 PyObject *resultobj = 0;
19814 wxDC *arg1 = (wxDC *) 0 ;
19815 double *arg2 = (double *) 0 ;
19816 double *arg3 = (double *) 0 ;
19817 void *argp1 = 0 ;
19818 int res1 = 0 ;
19819 double temp2 ;
19820 int res2 = SWIG_TMPOBJ ;
19821 double temp3 ;
19822 int res3 = SWIG_TMPOBJ ;
19823 PyObject *swig_obj[1] ;
19824
19825 arg2 = &temp2;
19826 arg3 = &temp3;
19827 if (!args) SWIG_fail;
19828 swig_obj[0] = args;
19829 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19830 if (!SWIG_IsOK(res1)) {
19831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19832 }
19833 arg1 = reinterpret_cast< wxDC * >(argp1);
19834 {
19835 PyThreadState* __tstate = wxPyBeginAllowThreads();
19836 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19837 wxPyEndAllowThreads(__tstate);
19838 if (PyErr_Occurred()) SWIG_fail;
19839 }
19840 resultobj = SWIG_Py_Void();
19841 if (SWIG_IsTmpObj(res2)) {
19842 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19843 } else {
19844 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19845 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19846 }
19847 if (SWIG_IsTmpObj(res3)) {
19848 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19849 } else {
19850 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19851 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19852 }
19853 return resultobj;
19854 fail:
19855 return NULL;
19856 }
19857
19858
19859 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19860 PyObject *resultobj = 0;
19861 wxDC *arg1 = (wxDC *) 0 ;
19862 double arg2 ;
19863 double arg3 ;
19864 void *argp1 = 0 ;
19865 int res1 = 0 ;
19866 double val2 ;
19867 int ecode2 = 0 ;
19868 double val3 ;
19869 int ecode3 = 0 ;
19870 PyObject * obj0 = 0 ;
19871 PyObject * obj1 = 0 ;
19872 PyObject * obj2 = 0 ;
19873 char * kwnames[] = {
19874 (char *) "self",(char *) "x",(char *) "y", NULL
19875 };
19876
19877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19879 if (!SWIG_IsOK(res1)) {
19880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19881 }
19882 arg1 = reinterpret_cast< wxDC * >(argp1);
19883 ecode2 = SWIG_AsVal_double(obj1, &val2);
19884 if (!SWIG_IsOK(ecode2)) {
19885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19886 }
19887 arg2 = static_cast< double >(val2);
19888 ecode3 = SWIG_AsVal_double(obj2, &val3);
19889 if (!SWIG_IsOK(ecode3)) {
19890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19891 }
19892 arg3 = static_cast< double >(val3);
19893 {
19894 PyThreadState* __tstate = wxPyBeginAllowThreads();
19895 (arg1)->SetUserScale(arg2,arg3);
19896 wxPyEndAllowThreads(__tstate);
19897 if (PyErr_Occurred()) SWIG_fail;
19898 }
19899 resultobj = SWIG_Py_Void();
19900 return resultobj;
19901 fail:
19902 return NULL;
19903 }
19904
19905
19906 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19907 PyObject *resultobj = 0;
19908 wxDC *arg1 = (wxDC *) 0 ;
19909 double *arg2 = (double *) 0 ;
19910 double *arg3 = (double *) 0 ;
19911 void *argp1 = 0 ;
19912 int res1 = 0 ;
19913 double temp2 ;
19914 int res2 = SWIG_TMPOBJ ;
19915 double temp3 ;
19916 int res3 = SWIG_TMPOBJ ;
19917 PyObject *swig_obj[1] ;
19918
19919 arg2 = &temp2;
19920 arg3 = &temp3;
19921 if (!args) SWIG_fail;
19922 swig_obj[0] = args;
19923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19924 if (!SWIG_IsOK(res1)) {
19925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19926 }
19927 arg1 = reinterpret_cast< wxDC * >(argp1);
19928 {
19929 PyThreadState* __tstate = wxPyBeginAllowThreads();
19930 (arg1)->GetLogicalScale(arg2,arg3);
19931 wxPyEndAllowThreads(__tstate);
19932 if (PyErr_Occurred()) SWIG_fail;
19933 }
19934 resultobj = SWIG_Py_Void();
19935 if (SWIG_IsTmpObj(res2)) {
19936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19937 } else {
19938 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19940 }
19941 if (SWIG_IsTmpObj(res3)) {
19942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19943 } else {
19944 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19945 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19946 }
19947 return resultobj;
19948 fail:
19949 return NULL;
19950 }
19951
19952
19953 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19954 PyObject *resultobj = 0;
19955 wxDC *arg1 = (wxDC *) 0 ;
19956 double arg2 ;
19957 double arg3 ;
19958 void *argp1 = 0 ;
19959 int res1 = 0 ;
19960 double val2 ;
19961 int ecode2 = 0 ;
19962 double val3 ;
19963 int ecode3 = 0 ;
19964 PyObject * obj0 = 0 ;
19965 PyObject * obj1 = 0 ;
19966 PyObject * obj2 = 0 ;
19967 char * kwnames[] = {
19968 (char *) "self",(char *) "x",(char *) "y", NULL
19969 };
19970
19971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19973 if (!SWIG_IsOK(res1)) {
19974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19975 }
19976 arg1 = reinterpret_cast< wxDC * >(argp1);
19977 ecode2 = SWIG_AsVal_double(obj1, &val2);
19978 if (!SWIG_IsOK(ecode2)) {
19979 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19980 }
19981 arg2 = static_cast< double >(val2);
19982 ecode3 = SWIG_AsVal_double(obj2, &val3);
19983 if (!SWIG_IsOK(ecode3)) {
19984 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19985 }
19986 arg3 = static_cast< double >(val3);
19987 {
19988 PyThreadState* __tstate = wxPyBeginAllowThreads();
19989 (arg1)->SetLogicalScale(arg2,arg3);
19990 wxPyEndAllowThreads(__tstate);
19991 if (PyErr_Occurred()) SWIG_fail;
19992 }
19993 resultobj = SWIG_Py_Void();
19994 return resultobj;
19995 fail:
19996 return NULL;
19997 }
19998
19999
20000 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20001 PyObject *resultobj = 0;
20002 wxDC *arg1 = (wxDC *) 0 ;
20003 wxPoint result;
20004 void *argp1 = 0 ;
20005 int res1 = 0 ;
20006 PyObject *swig_obj[1] ;
20007
20008 if (!args) SWIG_fail;
20009 swig_obj[0] = args;
20010 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20011 if (!SWIG_IsOK(res1)) {
20012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20013 }
20014 arg1 = reinterpret_cast< wxDC * >(argp1);
20015 {
20016 PyThreadState* __tstate = wxPyBeginAllowThreads();
20017 result = ((wxDC const *)arg1)->GetLogicalOrigin();
20018 wxPyEndAllowThreads(__tstate);
20019 if (PyErr_Occurred()) SWIG_fail;
20020 }
20021 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20022 return resultobj;
20023 fail:
20024 return NULL;
20025 }
20026
20027
20028 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20029 PyObject *resultobj = 0;
20030 wxDC *arg1 = (wxDC *) 0 ;
20031 int *arg2 = (int *) 0 ;
20032 int *arg3 = (int *) 0 ;
20033 void *argp1 = 0 ;
20034 int res1 = 0 ;
20035 int temp2 ;
20036 int res2 = SWIG_TMPOBJ ;
20037 int temp3 ;
20038 int res3 = SWIG_TMPOBJ ;
20039 PyObject *swig_obj[1] ;
20040
20041 arg2 = &temp2;
20042 arg3 = &temp3;
20043 if (!args) SWIG_fail;
20044 swig_obj[0] = args;
20045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20046 if (!SWIG_IsOK(res1)) {
20047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20048 }
20049 arg1 = reinterpret_cast< wxDC * >(argp1);
20050 {
20051 PyThreadState* __tstate = wxPyBeginAllowThreads();
20052 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20053 wxPyEndAllowThreads(__tstate);
20054 if (PyErr_Occurred()) SWIG_fail;
20055 }
20056 resultobj = SWIG_Py_Void();
20057 if (SWIG_IsTmpObj(res2)) {
20058 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20059 } else {
20060 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20061 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20062 }
20063 if (SWIG_IsTmpObj(res3)) {
20064 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20065 } else {
20066 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20067 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20068 }
20069 return resultobj;
20070 fail:
20071 return NULL;
20072 }
20073
20074
20075 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20076 PyObject *resultobj = 0;
20077 wxDC *arg1 = (wxDC *) 0 ;
20078 int arg2 ;
20079 int arg3 ;
20080 void *argp1 = 0 ;
20081 int res1 = 0 ;
20082 int val2 ;
20083 int ecode2 = 0 ;
20084 int val3 ;
20085 int ecode3 = 0 ;
20086 PyObject * obj0 = 0 ;
20087 PyObject * obj1 = 0 ;
20088 PyObject * obj2 = 0 ;
20089 char * kwnames[] = {
20090 (char *) "self",(char *) "x",(char *) "y", NULL
20091 };
20092
20093 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20094 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20095 if (!SWIG_IsOK(res1)) {
20096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20097 }
20098 arg1 = reinterpret_cast< wxDC * >(argp1);
20099 ecode2 = SWIG_AsVal_int(obj1, &val2);
20100 if (!SWIG_IsOK(ecode2)) {
20101 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20102 }
20103 arg2 = static_cast< int >(val2);
20104 ecode3 = SWIG_AsVal_int(obj2, &val3);
20105 if (!SWIG_IsOK(ecode3)) {
20106 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20107 }
20108 arg3 = static_cast< int >(val3);
20109 {
20110 PyThreadState* __tstate = wxPyBeginAllowThreads();
20111 (arg1)->SetLogicalOrigin(arg2,arg3);
20112 wxPyEndAllowThreads(__tstate);
20113 if (PyErr_Occurred()) SWIG_fail;
20114 }
20115 resultobj = SWIG_Py_Void();
20116 return resultobj;
20117 fail:
20118 return NULL;
20119 }
20120
20121
20122 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20123 PyObject *resultobj = 0;
20124 wxDC *arg1 = (wxDC *) 0 ;
20125 wxPoint *arg2 = 0 ;
20126 void *argp1 = 0 ;
20127 int res1 = 0 ;
20128 wxPoint temp2 ;
20129 PyObject * obj0 = 0 ;
20130 PyObject * obj1 = 0 ;
20131 char * kwnames[] = {
20132 (char *) "self",(char *) "point", NULL
20133 };
20134
20135 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20136 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20137 if (!SWIG_IsOK(res1)) {
20138 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20139 }
20140 arg1 = reinterpret_cast< wxDC * >(argp1);
20141 {
20142 arg2 = &temp2;
20143 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20144 }
20145 {
20146 PyThreadState* __tstate = wxPyBeginAllowThreads();
20147 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20148 wxPyEndAllowThreads(__tstate);
20149 if (PyErr_Occurred()) SWIG_fail;
20150 }
20151 resultobj = SWIG_Py_Void();
20152 return resultobj;
20153 fail:
20154 return NULL;
20155 }
20156
20157
20158 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20159 PyObject *resultobj = 0;
20160 wxDC *arg1 = (wxDC *) 0 ;
20161 wxPoint result;
20162 void *argp1 = 0 ;
20163 int res1 = 0 ;
20164 PyObject *swig_obj[1] ;
20165
20166 if (!args) SWIG_fail;
20167 swig_obj[0] = args;
20168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20169 if (!SWIG_IsOK(res1)) {
20170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20171 }
20172 arg1 = reinterpret_cast< wxDC * >(argp1);
20173 {
20174 PyThreadState* __tstate = wxPyBeginAllowThreads();
20175 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20176 wxPyEndAllowThreads(__tstate);
20177 if (PyErr_Occurred()) SWIG_fail;
20178 }
20179 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20180 return resultobj;
20181 fail:
20182 return NULL;
20183 }
20184
20185
20186 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20187 PyObject *resultobj = 0;
20188 wxDC *arg1 = (wxDC *) 0 ;
20189 int *arg2 = (int *) 0 ;
20190 int *arg3 = (int *) 0 ;
20191 void *argp1 = 0 ;
20192 int res1 = 0 ;
20193 int temp2 ;
20194 int res2 = SWIG_TMPOBJ ;
20195 int temp3 ;
20196 int res3 = SWIG_TMPOBJ ;
20197 PyObject *swig_obj[1] ;
20198
20199 arg2 = &temp2;
20200 arg3 = &temp3;
20201 if (!args) SWIG_fail;
20202 swig_obj[0] = args;
20203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20204 if (!SWIG_IsOK(res1)) {
20205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20206 }
20207 arg1 = reinterpret_cast< wxDC * >(argp1);
20208 {
20209 PyThreadState* __tstate = wxPyBeginAllowThreads();
20210 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20211 wxPyEndAllowThreads(__tstate);
20212 if (PyErr_Occurred()) SWIG_fail;
20213 }
20214 resultobj = SWIG_Py_Void();
20215 if (SWIG_IsTmpObj(res2)) {
20216 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20217 } else {
20218 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20219 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20220 }
20221 if (SWIG_IsTmpObj(res3)) {
20222 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20223 } else {
20224 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20225 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20226 }
20227 return resultobj;
20228 fail:
20229 return NULL;
20230 }
20231
20232
20233 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20234 PyObject *resultobj = 0;
20235 wxDC *arg1 = (wxDC *) 0 ;
20236 int arg2 ;
20237 int arg3 ;
20238 void *argp1 = 0 ;
20239 int res1 = 0 ;
20240 int val2 ;
20241 int ecode2 = 0 ;
20242 int val3 ;
20243 int ecode3 = 0 ;
20244 PyObject * obj0 = 0 ;
20245 PyObject * obj1 = 0 ;
20246 PyObject * obj2 = 0 ;
20247 char * kwnames[] = {
20248 (char *) "self",(char *) "x",(char *) "y", NULL
20249 };
20250
20251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20252 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20253 if (!SWIG_IsOK(res1)) {
20254 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20255 }
20256 arg1 = reinterpret_cast< wxDC * >(argp1);
20257 ecode2 = SWIG_AsVal_int(obj1, &val2);
20258 if (!SWIG_IsOK(ecode2)) {
20259 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20260 }
20261 arg2 = static_cast< int >(val2);
20262 ecode3 = SWIG_AsVal_int(obj2, &val3);
20263 if (!SWIG_IsOK(ecode3)) {
20264 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20265 }
20266 arg3 = static_cast< int >(val3);
20267 {
20268 PyThreadState* __tstate = wxPyBeginAllowThreads();
20269 (arg1)->SetDeviceOrigin(arg2,arg3);
20270 wxPyEndAllowThreads(__tstate);
20271 if (PyErr_Occurred()) SWIG_fail;
20272 }
20273 resultobj = SWIG_Py_Void();
20274 return resultobj;
20275 fail:
20276 return NULL;
20277 }
20278
20279
20280 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20281 PyObject *resultobj = 0;
20282 wxDC *arg1 = (wxDC *) 0 ;
20283 wxPoint *arg2 = 0 ;
20284 void *argp1 = 0 ;
20285 int res1 = 0 ;
20286 wxPoint temp2 ;
20287 PyObject * obj0 = 0 ;
20288 PyObject * obj1 = 0 ;
20289 char * kwnames[] = {
20290 (char *) "self",(char *) "point", NULL
20291 };
20292
20293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20295 if (!SWIG_IsOK(res1)) {
20296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20297 }
20298 arg1 = reinterpret_cast< wxDC * >(argp1);
20299 {
20300 arg2 = &temp2;
20301 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20302 }
20303 {
20304 PyThreadState* __tstate = wxPyBeginAllowThreads();
20305 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20306 wxPyEndAllowThreads(__tstate);
20307 if (PyErr_Occurred()) SWIG_fail;
20308 }
20309 resultobj = SWIG_Py_Void();
20310 return resultobj;
20311 fail:
20312 return NULL;
20313 }
20314
20315
20316 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20317 PyObject *resultobj = 0;
20318 wxDC *arg1 = (wxDC *) 0 ;
20319 bool arg2 ;
20320 bool arg3 ;
20321 void *argp1 = 0 ;
20322 int res1 = 0 ;
20323 bool val2 ;
20324 int ecode2 = 0 ;
20325 bool val3 ;
20326 int ecode3 = 0 ;
20327 PyObject * obj0 = 0 ;
20328 PyObject * obj1 = 0 ;
20329 PyObject * obj2 = 0 ;
20330 char * kwnames[] = {
20331 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20332 };
20333
20334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20336 if (!SWIG_IsOK(res1)) {
20337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20338 }
20339 arg1 = reinterpret_cast< wxDC * >(argp1);
20340 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20341 if (!SWIG_IsOK(ecode2)) {
20342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20343 }
20344 arg2 = static_cast< bool >(val2);
20345 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20346 if (!SWIG_IsOK(ecode3)) {
20347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20348 }
20349 arg3 = static_cast< bool >(val3);
20350 {
20351 PyThreadState* __tstate = wxPyBeginAllowThreads();
20352 (arg1)->SetAxisOrientation(arg2,arg3);
20353 wxPyEndAllowThreads(__tstate);
20354 if (PyErr_Occurred()) SWIG_fail;
20355 }
20356 resultobj = SWIG_Py_Void();
20357 return resultobj;
20358 fail:
20359 return NULL;
20360 }
20361
20362
20363 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20364 PyObject *resultobj = 0;
20365 wxDC *arg1 = (wxDC *) 0 ;
20366 int result;
20367 void *argp1 = 0 ;
20368 int res1 = 0 ;
20369 PyObject *swig_obj[1] ;
20370
20371 if (!args) SWIG_fail;
20372 swig_obj[0] = args;
20373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20374 if (!SWIG_IsOK(res1)) {
20375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20376 }
20377 arg1 = reinterpret_cast< wxDC * >(argp1);
20378 {
20379 PyThreadState* __tstate = wxPyBeginAllowThreads();
20380 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20381 wxPyEndAllowThreads(__tstate);
20382 if (PyErr_Occurred()) SWIG_fail;
20383 }
20384 resultobj = SWIG_From_int(static_cast< int >(result));
20385 return resultobj;
20386 fail:
20387 return NULL;
20388 }
20389
20390
20391 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20392 PyObject *resultobj = 0;
20393 wxDC *arg1 = (wxDC *) 0 ;
20394 int arg2 ;
20395 void *argp1 = 0 ;
20396 int res1 = 0 ;
20397 int val2 ;
20398 int ecode2 = 0 ;
20399 PyObject * obj0 = 0 ;
20400 PyObject * obj1 = 0 ;
20401 char * kwnames[] = {
20402 (char *) "self",(char *) "function", NULL
20403 };
20404
20405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20407 if (!SWIG_IsOK(res1)) {
20408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20409 }
20410 arg1 = reinterpret_cast< wxDC * >(argp1);
20411 ecode2 = SWIG_AsVal_int(obj1, &val2);
20412 if (!SWIG_IsOK(ecode2)) {
20413 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20414 }
20415 arg2 = static_cast< int >(val2);
20416 {
20417 PyThreadState* __tstate = wxPyBeginAllowThreads();
20418 (arg1)->SetLogicalFunction(arg2);
20419 wxPyEndAllowThreads(__tstate);
20420 if (PyErr_Occurred()) SWIG_fail;
20421 }
20422 resultobj = SWIG_Py_Void();
20423 return resultobj;
20424 fail:
20425 return NULL;
20426 }
20427
20428
20429 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20430 PyObject *resultobj = 0;
20431 wxDC *arg1 = (wxDC *) 0 ;
20432 void *argp1 = 0 ;
20433 int res1 = 0 ;
20434 PyObject *swig_obj[1] ;
20435
20436 if (!args) SWIG_fail;
20437 swig_obj[0] = args;
20438 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20439 if (!SWIG_IsOK(res1)) {
20440 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20441 }
20442 arg1 = reinterpret_cast< wxDC * >(argp1);
20443 {
20444 PyThreadState* __tstate = wxPyBeginAllowThreads();
20445 (arg1)->ComputeScaleAndOrigin();
20446 wxPyEndAllowThreads(__tstate);
20447 if (PyErr_Occurred()) SWIG_fail;
20448 }
20449 resultobj = SWIG_Py_Void();
20450 return resultobj;
20451 fail:
20452 return NULL;
20453 }
20454
20455
20456 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20457 PyObject *resultobj = 0;
20458 wxDC *arg1 = (wxDC *) 0 ;
20459 int arg2 ;
20460 int arg3 ;
20461 void *argp1 = 0 ;
20462 int res1 = 0 ;
20463 int val2 ;
20464 int ecode2 = 0 ;
20465 int val3 ;
20466 int ecode3 = 0 ;
20467 PyObject * obj0 = 0 ;
20468 PyObject * obj1 = 0 ;
20469 PyObject * obj2 = 0 ;
20470 char * kwnames[] = {
20471 (char *) "self",(char *) "x",(char *) "y", NULL
20472 };
20473
20474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20475 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20476 if (!SWIG_IsOK(res1)) {
20477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20478 }
20479 arg1 = reinterpret_cast< wxDC * >(argp1);
20480 ecode2 = SWIG_AsVal_int(obj1, &val2);
20481 if (!SWIG_IsOK(ecode2)) {
20482 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20483 }
20484 arg2 = static_cast< int >(val2);
20485 ecode3 = SWIG_AsVal_int(obj2, &val3);
20486 if (!SWIG_IsOK(ecode3)) {
20487 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20488 }
20489 arg3 = static_cast< int >(val3);
20490 {
20491 PyThreadState* __tstate = wxPyBeginAllowThreads();
20492 (arg1)->CalcBoundingBox(arg2,arg3);
20493 wxPyEndAllowThreads(__tstate);
20494 if (PyErr_Occurred()) SWIG_fail;
20495 }
20496 resultobj = SWIG_Py_Void();
20497 return resultobj;
20498 fail:
20499 return NULL;
20500 }
20501
20502
20503 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20504 PyObject *resultobj = 0;
20505 wxDC *arg1 = (wxDC *) 0 ;
20506 wxPoint *arg2 = 0 ;
20507 void *argp1 = 0 ;
20508 int res1 = 0 ;
20509 wxPoint temp2 ;
20510 PyObject * obj0 = 0 ;
20511 PyObject * obj1 = 0 ;
20512 char * kwnames[] = {
20513 (char *) "self",(char *) "point", NULL
20514 };
20515
20516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20518 if (!SWIG_IsOK(res1)) {
20519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20520 }
20521 arg1 = reinterpret_cast< wxDC * >(argp1);
20522 {
20523 arg2 = &temp2;
20524 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20525 }
20526 {
20527 PyThreadState* __tstate = wxPyBeginAllowThreads();
20528 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20529 wxPyEndAllowThreads(__tstate);
20530 if (PyErr_Occurred()) SWIG_fail;
20531 }
20532 resultobj = SWIG_Py_Void();
20533 return resultobj;
20534 fail:
20535 return NULL;
20536 }
20537
20538
20539 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20540 PyObject *resultobj = 0;
20541 wxDC *arg1 = (wxDC *) 0 ;
20542 void *argp1 = 0 ;
20543 int res1 = 0 ;
20544 PyObject *swig_obj[1] ;
20545
20546 if (!args) SWIG_fail;
20547 swig_obj[0] = args;
20548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20549 if (!SWIG_IsOK(res1)) {
20550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20551 }
20552 arg1 = reinterpret_cast< wxDC * >(argp1);
20553 {
20554 PyThreadState* __tstate = wxPyBeginAllowThreads();
20555 (arg1)->ResetBoundingBox();
20556 wxPyEndAllowThreads(__tstate);
20557 if (PyErr_Occurred()) SWIG_fail;
20558 }
20559 resultobj = SWIG_Py_Void();
20560 return resultobj;
20561 fail:
20562 return NULL;
20563 }
20564
20565
20566 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20567 PyObject *resultobj = 0;
20568 wxDC *arg1 = (wxDC *) 0 ;
20569 int result;
20570 void *argp1 = 0 ;
20571 int res1 = 0 ;
20572 PyObject *swig_obj[1] ;
20573
20574 if (!args) SWIG_fail;
20575 swig_obj[0] = args;
20576 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20577 if (!SWIG_IsOK(res1)) {
20578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20579 }
20580 arg1 = reinterpret_cast< wxDC * >(argp1);
20581 {
20582 PyThreadState* __tstate = wxPyBeginAllowThreads();
20583 result = (int)((wxDC const *)arg1)->MinX();
20584 wxPyEndAllowThreads(__tstate);
20585 if (PyErr_Occurred()) SWIG_fail;
20586 }
20587 resultobj = SWIG_From_int(static_cast< int >(result));
20588 return resultobj;
20589 fail:
20590 return NULL;
20591 }
20592
20593
20594 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20595 PyObject *resultobj = 0;
20596 wxDC *arg1 = (wxDC *) 0 ;
20597 int result;
20598 void *argp1 = 0 ;
20599 int res1 = 0 ;
20600 PyObject *swig_obj[1] ;
20601
20602 if (!args) SWIG_fail;
20603 swig_obj[0] = args;
20604 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20605 if (!SWIG_IsOK(res1)) {
20606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20607 }
20608 arg1 = reinterpret_cast< wxDC * >(argp1);
20609 {
20610 PyThreadState* __tstate = wxPyBeginAllowThreads();
20611 result = (int)((wxDC const *)arg1)->MaxX();
20612 wxPyEndAllowThreads(__tstate);
20613 if (PyErr_Occurred()) SWIG_fail;
20614 }
20615 resultobj = SWIG_From_int(static_cast< int >(result));
20616 return resultobj;
20617 fail:
20618 return NULL;
20619 }
20620
20621
20622 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20623 PyObject *resultobj = 0;
20624 wxDC *arg1 = (wxDC *) 0 ;
20625 int result;
20626 void *argp1 = 0 ;
20627 int res1 = 0 ;
20628 PyObject *swig_obj[1] ;
20629
20630 if (!args) SWIG_fail;
20631 swig_obj[0] = args;
20632 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20633 if (!SWIG_IsOK(res1)) {
20634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20635 }
20636 arg1 = reinterpret_cast< wxDC * >(argp1);
20637 {
20638 PyThreadState* __tstate = wxPyBeginAllowThreads();
20639 result = (int)((wxDC const *)arg1)->MinY();
20640 wxPyEndAllowThreads(__tstate);
20641 if (PyErr_Occurred()) SWIG_fail;
20642 }
20643 resultobj = SWIG_From_int(static_cast< int >(result));
20644 return resultobj;
20645 fail:
20646 return NULL;
20647 }
20648
20649
20650 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20651 PyObject *resultobj = 0;
20652 wxDC *arg1 = (wxDC *) 0 ;
20653 int result;
20654 void *argp1 = 0 ;
20655 int res1 = 0 ;
20656 PyObject *swig_obj[1] ;
20657
20658 if (!args) SWIG_fail;
20659 swig_obj[0] = args;
20660 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20661 if (!SWIG_IsOK(res1)) {
20662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20663 }
20664 arg1 = reinterpret_cast< wxDC * >(argp1);
20665 {
20666 PyThreadState* __tstate = wxPyBeginAllowThreads();
20667 result = (int)((wxDC const *)arg1)->MaxY();
20668 wxPyEndAllowThreads(__tstate);
20669 if (PyErr_Occurred()) SWIG_fail;
20670 }
20671 resultobj = SWIG_From_int(static_cast< int >(result));
20672 return resultobj;
20673 fail:
20674 return NULL;
20675 }
20676
20677
20678 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20679 PyObject *resultobj = 0;
20680 wxDC *arg1 = (wxDC *) 0 ;
20681 int *arg2 = (int *) 0 ;
20682 int *arg3 = (int *) 0 ;
20683 int *arg4 = (int *) 0 ;
20684 int *arg5 = (int *) 0 ;
20685 void *argp1 = 0 ;
20686 int res1 = 0 ;
20687 int temp2 ;
20688 int res2 = SWIG_TMPOBJ ;
20689 int temp3 ;
20690 int res3 = SWIG_TMPOBJ ;
20691 int temp4 ;
20692 int res4 = SWIG_TMPOBJ ;
20693 int temp5 ;
20694 int res5 = SWIG_TMPOBJ ;
20695 PyObject *swig_obj[1] ;
20696
20697 arg2 = &temp2;
20698 arg3 = &temp3;
20699 arg4 = &temp4;
20700 arg5 = &temp5;
20701 if (!args) SWIG_fail;
20702 swig_obj[0] = args;
20703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20704 if (!SWIG_IsOK(res1)) {
20705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20706 }
20707 arg1 = reinterpret_cast< wxDC * >(argp1);
20708 {
20709 PyThreadState* __tstate = wxPyBeginAllowThreads();
20710 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20711 wxPyEndAllowThreads(__tstate);
20712 if (PyErr_Occurred()) SWIG_fail;
20713 }
20714 resultobj = SWIG_Py_Void();
20715 if (SWIG_IsTmpObj(res2)) {
20716 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20717 } else {
20718 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20719 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20720 }
20721 if (SWIG_IsTmpObj(res3)) {
20722 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20723 } else {
20724 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20725 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20726 }
20727 if (SWIG_IsTmpObj(res4)) {
20728 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20729 } else {
20730 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20731 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20732 }
20733 if (SWIG_IsTmpObj(res5)) {
20734 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20735 } else {
20736 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20737 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20738 }
20739 return resultobj;
20740 fail:
20741 return NULL;
20742 }
20743
20744
20745 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20746 PyObject *resultobj = 0;
20747 wxDC *arg1 = (wxDC *) 0 ;
20748 long result;
20749 void *argp1 = 0 ;
20750 int res1 = 0 ;
20751 PyObject *swig_obj[1] ;
20752
20753 if (!args) SWIG_fail;
20754 swig_obj[0] = args;
20755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20756 if (!SWIG_IsOK(res1)) {
20757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20758 }
20759 arg1 = reinterpret_cast< wxDC * >(argp1);
20760 {
20761 PyThreadState* __tstate = wxPyBeginAllowThreads();
20762 result = (long)(arg1)->GetHDC();
20763 wxPyEndAllowThreads(__tstate);
20764 if (PyErr_Occurred()) SWIG_fail;
20765 }
20766 resultobj = SWIG_From_long(static_cast< long >(result));
20767 return resultobj;
20768 fail:
20769 return NULL;
20770 }
20771
20772
20773 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20774 PyObject *resultobj = 0;
20775 wxDC *arg1 = (wxDC *) 0 ;
20776 PyObject *arg2 = (PyObject *) 0 ;
20777 PyObject *arg3 = (PyObject *) 0 ;
20778 PyObject *arg4 = (PyObject *) 0 ;
20779 PyObject *result = 0 ;
20780 void *argp1 = 0 ;
20781 int res1 = 0 ;
20782 PyObject * obj0 = 0 ;
20783 PyObject * obj1 = 0 ;
20784 PyObject * obj2 = 0 ;
20785 PyObject * obj3 = 0 ;
20786 char * kwnames[] = {
20787 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20788 };
20789
20790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20794 }
20795 arg1 = reinterpret_cast< wxDC * >(argp1);
20796 arg2 = obj1;
20797 arg3 = obj2;
20798 arg4 = obj3;
20799 {
20800 PyThreadState* __tstate = wxPyBeginAllowThreads();
20801 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20802 wxPyEndAllowThreads(__tstate);
20803 if (PyErr_Occurred()) SWIG_fail;
20804 }
20805 resultobj = result;
20806 return resultobj;
20807 fail:
20808 return NULL;
20809 }
20810
20811
20812 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20813 PyObject *resultobj = 0;
20814 wxDC *arg1 = (wxDC *) 0 ;
20815 PyObject *arg2 = (PyObject *) 0 ;
20816 PyObject *arg3 = (PyObject *) 0 ;
20817 PyObject *arg4 = (PyObject *) 0 ;
20818 PyObject *result = 0 ;
20819 void *argp1 = 0 ;
20820 int res1 = 0 ;
20821 PyObject * obj0 = 0 ;
20822 PyObject * obj1 = 0 ;
20823 PyObject * obj2 = 0 ;
20824 PyObject * obj3 = 0 ;
20825 char * kwnames[] = {
20826 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20827 };
20828
20829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20831 if (!SWIG_IsOK(res1)) {
20832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20833 }
20834 arg1 = reinterpret_cast< wxDC * >(argp1);
20835 arg2 = obj1;
20836 arg3 = obj2;
20837 arg4 = obj3;
20838 {
20839 PyThreadState* __tstate = wxPyBeginAllowThreads();
20840 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20841 wxPyEndAllowThreads(__tstate);
20842 if (PyErr_Occurred()) SWIG_fail;
20843 }
20844 resultobj = result;
20845 return resultobj;
20846 fail:
20847 return NULL;
20848 }
20849
20850
20851 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20852 PyObject *resultobj = 0;
20853 wxDC *arg1 = (wxDC *) 0 ;
20854 PyObject *arg2 = (PyObject *) 0 ;
20855 PyObject *arg3 = (PyObject *) 0 ;
20856 PyObject *arg4 = (PyObject *) 0 ;
20857 PyObject *result = 0 ;
20858 void *argp1 = 0 ;
20859 int res1 = 0 ;
20860 PyObject * obj0 = 0 ;
20861 PyObject * obj1 = 0 ;
20862 PyObject * obj2 = 0 ;
20863 PyObject * obj3 = 0 ;
20864 char * kwnames[] = {
20865 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20866 };
20867
20868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20870 if (!SWIG_IsOK(res1)) {
20871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20872 }
20873 arg1 = reinterpret_cast< wxDC * >(argp1);
20874 arg2 = obj1;
20875 arg3 = obj2;
20876 arg4 = obj3;
20877 {
20878 PyThreadState* __tstate = wxPyBeginAllowThreads();
20879 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20880 wxPyEndAllowThreads(__tstate);
20881 if (PyErr_Occurred()) SWIG_fail;
20882 }
20883 resultobj = result;
20884 return resultobj;
20885 fail:
20886 return NULL;
20887 }
20888
20889
20890 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20891 PyObject *resultobj = 0;
20892 wxDC *arg1 = (wxDC *) 0 ;
20893 PyObject *arg2 = (PyObject *) 0 ;
20894 PyObject *arg3 = (PyObject *) 0 ;
20895 PyObject *arg4 = (PyObject *) 0 ;
20896 PyObject *result = 0 ;
20897 void *argp1 = 0 ;
20898 int res1 = 0 ;
20899 PyObject * obj0 = 0 ;
20900 PyObject * obj1 = 0 ;
20901 PyObject * obj2 = 0 ;
20902 PyObject * obj3 = 0 ;
20903 char * kwnames[] = {
20904 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20905 };
20906
20907 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20908 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20909 if (!SWIG_IsOK(res1)) {
20910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20911 }
20912 arg1 = reinterpret_cast< wxDC * >(argp1);
20913 arg2 = obj1;
20914 arg3 = obj2;
20915 arg4 = obj3;
20916 {
20917 PyThreadState* __tstate = wxPyBeginAllowThreads();
20918 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20919 wxPyEndAllowThreads(__tstate);
20920 if (PyErr_Occurred()) SWIG_fail;
20921 }
20922 resultobj = result;
20923 return resultobj;
20924 fail:
20925 return NULL;
20926 }
20927
20928
20929 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20930 PyObject *resultobj = 0;
20931 wxDC *arg1 = (wxDC *) 0 ;
20932 PyObject *arg2 = (PyObject *) 0 ;
20933 PyObject *arg3 = (PyObject *) 0 ;
20934 PyObject *arg4 = (PyObject *) 0 ;
20935 PyObject *result = 0 ;
20936 void *argp1 = 0 ;
20937 int res1 = 0 ;
20938 PyObject * obj0 = 0 ;
20939 PyObject * obj1 = 0 ;
20940 PyObject * obj2 = 0 ;
20941 PyObject * obj3 = 0 ;
20942 char * kwnames[] = {
20943 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20944 };
20945
20946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20947 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20948 if (!SWIG_IsOK(res1)) {
20949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20950 }
20951 arg1 = reinterpret_cast< wxDC * >(argp1);
20952 arg2 = obj1;
20953 arg3 = obj2;
20954 arg4 = obj3;
20955 {
20956 PyThreadState* __tstate = wxPyBeginAllowThreads();
20957 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20958 wxPyEndAllowThreads(__tstate);
20959 if (PyErr_Occurred()) SWIG_fail;
20960 }
20961 resultobj = result;
20962 return resultobj;
20963 fail:
20964 return NULL;
20965 }
20966
20967
20968 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20969 PyObject *resultobj = 0;
20970 wxDC *arg1 = (wxDC *) 0 ;
20971 PyObject *arg2 = (PyObject *) 0 ;
20972 PyObject *arg3 = (PyObject *) 0 ;
20973 PyObject *arg4 = (PyObject *) 0 ;
20974 PyObject *arg5 = (PyObject *) 0 ;
20975 PyObject *result = 0 ;
20976 void *argp1 = 0 ;
20977 int res1 = 0 ;
20978 PyObject * obj0 = 0 ;
20979 PyObject * obj1 = 0 ;
20980 PyObject * obj2 = 0 ;
20981 PyObject * obj3 = 0 ;
20982 PyObject * obj4 = 0 ;
20983 char * kwnames[] = {
20984 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20985 };
20986
20987 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20988 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20989 if (!SWIG_IsOK(res1)) {
20990 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20991 }
20992 arg1 = reinterpret_cast< wxDC * >(argp1);
20993 arg2 = obj1;
20994 arg3 = obj2;
20995 arg4 = obj3;
20996 arg5 = obj4;
20997 {
20998 PyThreadState* __tstate = wxPyBeginAllowThreads();
20999 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
21000 wxPyEndAllowThreads(__tstate);
21001 if (PyErr_Occurred()) SWIG_fail;
21002 }
21003 resultobj = result;
21004 return resultobj;
21005 fail:
21006 return NULL;
21007 }
21008
21009
21010 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21011 PyObject *obj;
21012 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21013 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
21014 return SWIG_Py_Void();
21015 }
21016
21017 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21018 PyObject *resultobj = 0;
21019 wxMemoryDC *result = 0 ;
21020
21021 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
21022 {
21023 if (!wxPyCheckForApp()) SWIG_fail;
21024 PyThreadState* __tstate = wxPyBeginAllowThreads();
21025 result = (wxMemoryDC *)new wxMemoryDC();
21026 wxPyEndAllowThreads(__tstate);
21027 if (PyErr_Occurred()) SWIG_fail;
21028 }
21029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
21030 return resultobj;
21031 fail:
21032 return NULL;
21033 }
21034
21035
21036 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21037 PyObject *resultobj = 0;
21038 wxDC *arg1 = (wxDC *) 0 ;
21039 wxMemoryDC *result = 0 ;
21040 void *argp1 = 0 ;
21041 int res1 = 0 ;
21042 PyObject * obj0 = 0 ;
21043 char * kwnames[] = {
21044 (char *) "oldDC", NULL
21045 };
21046
21047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21049 if (!SWIG_IsOK(res1)) {
21050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21051 }
21052 arg1 = reinterpret_cast< wxDC * >(argp1);
21053 {
21054 if (!wxPyCheckForApp()) SWIG_fail;
21055 PyThreadState* __tstate = wxPyBeginAllowThreads();
21056 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21057 wxPyEndAllowThreads(__tstate);
21058 if (PyErr_Occurred()) SWIG_fail;
21059 }
21060 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21061 return resultobj;
21062 fail:
21063 return NULL;
21064 }
21065
21066
21067 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21068 PyObject *resultobj = 0;
21069 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21070 wxBitmap *arg2 = 0 ;
21071 void *argp1 = 0 ;
21072 int res1 = 0 ;
21073 void *argp2 = 0 ;
21074 int res2 = 0 ;
21075 PyObject * obj0 = 0 ;
21076 PyObject * obj1 = 0 ;
21077 char * kwnames[] = {
21078 (char *) "self",(char *) "bitmap", NULL
21079 };
21080
21081 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21082 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21083 if (!SWIG_IsOK(res1)) {
21084 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21085 }
21086 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21087 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21088 if (!SWIG_IsOK(res2)) {
21089 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21090 }
21091 if (!argp2) {
21092 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21093 }
21094 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21095 {
21096 PyThreadState* __tstate = wxPyBeginAllowThreads();
21097 (arg1)->SelectObject((wxBitmap const &)*arg2);
21098 wxPyEndAllowThreads(__tstate);
21099 if (PyErr_Occurred()) SWIG_fail;
21100 }
21101 resultobj = SWIG_Py_Void();
21102 return resultobj;
21103 fail:
21104 return NULL;
21105 }
21106
21107
21108 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21109 PyObject *obj;
21110 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21111 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21112 return SWIG_Py_Void();
21113 }
21114
21115 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21116 return SWIG_Python_InitShadowInstance(args);
21117 }
21118
21119 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21120 PyObject *resultobj = 0;
21121 wxDC *arg1 = (wxDC *) 0 ;
21122 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21123 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21124 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21125 wxBufferedDC *result = 0 ;
21126 void *argp1 = 0 ;
21127 int res1 = 0 ;
21128 void *argp2 = 0 ;
21129 int res2 = 0 ;
21130 int val3 ;
21131 int ecode3 = 0 ;
21132
21133 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21134 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21135 if (!SWIG_IsOK(res1)) {
21136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21137 }
21138 arg1 = reinterpret_cast< wxDC * >(argp1);
21139 if (swig_obj[1]) {
21140 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21141 if (!SWIG_IsOK(res2)) {
21142 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21143 }
21144 if (!argp2) {
21145 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21146 }
21147 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21148 }
21149 if (swig_obj[2]) {
21150 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21151 if (!SWIG_IsOK(ecode3)) {
21152 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21153 }
21154 arg3 = static_cast< int >(val3);
21155 }
21156 {
21157 if (!wxPyCheckForApp()) SWIG_fail;
21158 PyThreadState* __tstate = wxPyBeginAllowThreads();
21159 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21160 wxPyEndAllowThreads(__tstate);
21161 if (PyErr_Occurred()) SWIG_fail;
21162 }
21163 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21164 return resultobj;
21165 fail:
21166 return NULL;
21167 }
21168
21169
21170 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21171 PyObject *resultobj = 0;
21172 wxDC *arg1 = (wxDC *) 0 ;
21173 wxSize *arg2 = 0 ;
21174 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21175 wxBufferedDC *result = 0 ;
21176 void *argp1 = 0 ;
21177 int res1 = 0 ;
21178 wxSize temp2 ;
21179 int val3 ;
21180 int ecode3 = 0 ;
21181
21182 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21184 if (!SWIG_IsOK(res1)) {
21185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21186 }
21187 arg1 = reinterpret_cast< wxDC * >(argp1);
21188 {
21189 arg2 = &temp2;
21190 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21191 }
21192 if (swig_obj[2]) {
21193 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21194 if (!SWIG_IsOK(ecode3)) {
21195 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21196 }
21197 arg3 = static_cast< int >(val3);
21198 }
21199 {
21200 if (!wxPyCheckForApp()) SWIG_fail;
21201 PyThreadState* __tstate = wxPyBeginAllowThreads();
21202 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21203 wxPyEndAllowThreads(__tstate);
21204 if (PyErr_Occurred()) SWIG_fail;
21205 }
21206 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21207 return resultobj;
21208 fail:
21209 return NULL;
21210 }
21211
21212
21213 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21214 int argc;
21215 PyObject *argv[4];
21216
21217 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21218 --argc;
21219 if ((argc >= 1) && (argc <= 3)) {
21220 int _v = 0;
21221 if (argc > 1) {
21222 {
21223 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21224 _v = SWIG_CheckState(res);
21225 }
21226 if (!_v) goto check_1;
21227 }
21228 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21229 }
21230 check_1:
21231
21232 if ((argc >= 2) && (argc <= 3)) {
21233 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21234 }
21235
21236 fail:
21237 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21238 return NULL;
21239 }
21240
21241
21242 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21243 PyObject *resultobj = 0;
21244 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21245 void *argp1 = 0 ;
21246 int res1 = 0 ;
21247 PyObject *swig_obj[1] ;
21248
21249 if (!args) SWIG_fail;
21250 swig_obj[0] = args;
21251 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21252 if (!SWIG_IsOK(res1)) {
21253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21254 }
21255 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21256 {
21257 PyThreadState* __tstate = wxPyBeginAllowThreads();
21258 delete arg1;
21259
21260 wxPyEndAllowThreads(__tstate);
21261 if (PyErr_Occurred()) SWIG_fail;
21262 }
21263 resultobj = SWIG_Py_Void();
21264 return resultobj;
21265 fail:
21266 return NULL;
21267 }
21268
21269
21270 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21271 PyObject *resultobj = 0;
21272 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21273 void *argp1 = 0 ;
21274 int res1 = 0 ;
21275 PyObject *swig_obj[1] ;
21276
21277 if (!args) SWIG_fail;
21278 swig_obj[0] = args;
21279 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21280 if (!SWIG_IsOK(res1)) {
21281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21282 }
21283 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21284 {
21285 PyThreadState* __tstate = wxPyBeginAllowThreads();
21286 (arg1)->UnMask();
21287 wxPyEndAllowThreads(__tstate);
21288 if (PyErr_Occurred()) SWIG_fail;
21289 }
21290 resultobj = SWIG_Py_Void();
21291 return resultobj;
21292 fail:
21293 return NULL;
21294 }
21295
21296
21297 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21298 PyObject *obj;
21299 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21300 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21301 return SWIG_Py_Void();
21302 }
21303
21304 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21305 return SWIG_Python_InitShadowInstance(args);
21306 }
21307
21308 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21309 PyObject *resultobj = 0;
21310 wxWindow *arg1 = (wxWindow *) 0 ;
21311 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21312 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21313 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21314 wxBufferedPaintDC *result = 0 ;
21315 void *argp1 = 0 ;
21316 int res1 = 0 ;
21317 void *argp2 = 0 ;
21318 int res2 = 0 ;
21319 int val3 ;
21320 int ecode3 = 0 ;
21321 PyObject * obj0 = 0 ;
21322 PyObject * obj1 = 0 ;
21323 PyObject * obj2 = 0 ;
21324 char * kwnames[] = {
21325 (char *) "window",(char *) "buffer",(char *) "style", NULL
21326 };
21327
21328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21330 if (!SWIG_IsOK(res1)) {
21331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21332 }
21333 arg1 = reinterpret_cast< wxWindow * >(argp1);
21334 if (obj1) {
21335 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21336 if (!SWIG_IsOK(res2)) {
21337 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21338 }
21339 if (!argp2) {
21340 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21341 }
21342 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21343 }
21344 if (obj2) {
21345 ecode3 = SWIG_AsVal_int(obj2, &val3);
21346 if (!SWIG_IsOK(ecode3)) {
21347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21348 }
21349 arg3 = static_cast< int >(val3);
21350 }
21351 {
21352 if (!wxPyCheckForApp()) SWIG_fail;
21353 PyThreadState* __tstate = wxPyBeginAllowThreads();
21354 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21355 wxPyEndAllowThreads(__tstate);
21356 if (PyErr_Occurred()) SWIG_fail;
21357 }
21358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21359 return resultobj;
21360 fail:
21361 return NULL;
21362 }
21363
21364
21365 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21366 PyObject *obj;
21367 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21368 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21369 return SWIG_Py_Void();
21370 }
21371
21372 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21373 return SWIG_Python_InitShadowInstance(args);
21374 }
21375
21376 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21377 PyObject *resultobj = 0;
21378 wxScreenDC *result = 0 ;
21379
21380 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21381 {
21382 if (!wxPyCheckForApp()) SWIG_fail;
21383 PyThreadState* __tstate = wxPyBeginAllowThreads();
21384 result = (wxScreenDC *)new wxScreenDC();
21385 wxPyEndAllowThreads(__tstate);
21386 if (PyErr_Occurred()) SWIG_fail;
21387 }
21388 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21389 return resultobj;
21390 fail:
21391 return NULL;
21392 }
21393
21394
21395 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21396 PyObject *resultobj = 0;
21397 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21398 wxWindow *arg2 = (wxWindow *) 0 ;
21399 bool result;
21400 void *argp1 = 0 ;
21401 int res1 = 0 ;
21402 void *argp2 = 0 ;
21403 int res2 = 0 ;
21404 PyObject * obj0 = 0 ;
21405 PyObject * obj1 = 0 ;
21406 char * kwnames[] = {
21407 (char *) "self",(char *) "window", NULL
21408 };
21409
21410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21412 if (!SWIG_IsOK(res1)) {
21413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21414 }
21415 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21417 if (!SWIG_IsOK(res2)) {
21418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21419 }
21420 arg2 = reinterpret_cast< wxWindow * >(argp2);
21421 {
21422 PyThreadState* __tstate = wxPyBeginAllowThreads();
21423 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21424 wxPyEndAllowThreads(__tstate);
21425 if (PyErr_Occurred()) SWIG_fail;
21426 }
21427 {
21428 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21429 }
21430 return resultobj;
21431 fail:
21432 return NULL;
21433 }
21434
21435
21436 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21437 PyObject *resultobj = 0;
21438 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21439 wxRect *arg2 = (wxRect *) NULL ;
21440 bool result;
21441 void *argp1 = 0 ;
21442 int res1 = 0 ;
21443 void *argp2 = 0 ;
21444 int res2 = 0 ;
21445 PyObject * obj0 = 0 ;
21446 PyObject * obj1 = 0 ;
21447 char * kwnames[] = {
21448 (char *) "self",(char *) "rect", NULL
21449 };
21450
21451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21453 if (!SWIG_IsOK(res1)) {
21454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21455 }
21456 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21457 if (obj1) {
21458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21459 if (!SWIG_IsOK(res2)) {
21460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21461 }
21462 arg2 = reinterpret_cast< wxRect * >(argp2);
21463 }
21464 {
21465 PyThreadState* __tstate = wxPyBeginAllowThreads();
21466 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21467 wxPyEndAllowThreads(__tstate);
21468 if (PyErr_Occurred()) SWIG_fail;
21469 }
21470 {
21471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21472 }
21473 return resultobj;
21474 fail:
21475 return NULL;
21476 }
21477
21478
21479 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21480 PyObject *resultobj = 0;
21481 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21482 bool result;
21483 void *argp1 = 0 ;
21484 int res1 = 0 ;
21485 PyObject *swig_obj[1] ;
21486
21487 if (!args) SWIG_fail;
21488 swig_obj[0] = args;
21489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21490 if (!SWIG_IsOK(res1)) {
21491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21492 }
21493 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21494 {
21495 PyThreadState* __tstate = wxPyBeginAllowThreads();
21496 result = (bool)(arg1)->EndDrawingOnTop();
21497 wxPyEndAllowThreads(__tstate);
21498 if (PyErr_Occurred()) SWIG_fail;
21499 }
21500 {
21501 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21502 }
21503 return resultobj;
21504 fail:
21505 return NULL;
21506 }
21507
21508
21509 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21510 PyObject *obj;
21511 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21512 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21513 return SWIG_Py_Void();
21514 }
21515
21516 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21517 return SWIG_Python_InitShadowInstance(args);
21518 }
21519
21520 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21521 PyObject *resultobj = 0;
21522 wxWindow *arg1 = (wxWindow *) 0 ;
21523 wxClientDC *result = 0 ;
21524 void *argp1 = 0 ;
21525 int res1 = 0 ;
21526 PyObject * obj0 = 0 ;
21527 char * kwnames[] = {
21528 (char *) "win", NULL
21529 };
21530
21531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21533 if (!SWIG_IsOK(res1)) {
21534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21535 }
21536 arg1 = reinterpret_cast< wxWindow * >(argp1);
21537 {
21538 if (!wxPyCheckForApp()) SWIG_fail;
21539 PyThreadState* __tstate = wxPyBeginAllowThreads();
21540 result = (wxClientDC *)new wxClientDC(arg1);
21541 wxPyEndAllowThreads(__tstate);
21542 if (PyErr_Occurred()) SWIG_fail;
21543 }
21544 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21545 return resultobj;
21546 fail:
21547 return NULL;
21548 }
21549
21550
21551 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21552 PyObject *obj;
21553 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21554 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21555 return SWIG_Py_Void();
21556 }
21557
21558 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21559 return SWIG_Python_InitShadowInstance(args);
21560 }
21561
21562 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21563 PyObject *resultobj = 0;
21564 wxWindow *arg1 = (wxWindow *) 0 ;
21565 wxPaintDC *result = 0 ;
21566 void *argp1 = 0 ;
21567 int res1 = 0 ;
21568 PyObject * obj0 = 0 ;
21569 char * kwnames[] = {
21570 (char *) "win", NULL
21571 };
21572
21573 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21574 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21575 if (!SWIG_IsOK(res1)) {
21576 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21577 }
21578 arg1 = reinterpret_cast< wxWindow * >(argp1);
21579 {
21580 if (!wxPyCheckForApp()) SWIG_fail;
21581 PyThreadState* __tstate = wxPyBeginAllowThreads();
21582 result = (wxPaintDC *)new wxPaintDC(arg1);
21583 wxPyEndAllowThreads(__tstate);
21584 if (PyErr_Occurred()) SWIG_fail;
21585 }
21586 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21587 return resultobj;
21588 fail:
21589 return NULL;
21590 }
21591
21592
21593 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21594 PyObject *obj;
21595 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21596 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21597 return SWIG_Py_Void();
21598 }
21599
21600 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21601 return SWIG_Python_InitShadowInstance(args);
21602 }
21603
21604 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21605 PyObject *resultobj = 0;
21606 wxWindow *arg1 = (wxWindow *) 0 ;
21607 wxWindowDC *result = 0 ;
21608 void *argp1 = 0 ;
21609 int res1 = 0 ;
21610 PyObject * obj0 = 0 ;
21611 char * kwnames[] = {
21612 (char *) "win", NULL
21613 };
21614
21615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21617 if (!SWIG_IsOK(res1)) {
21618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21619 }
21620 arg1 = reinterpret_cast< wxWindow * >(argp1);
21621 {
21622 if (!wxPyCheckForApp()) SWIG_fail;
21623 PyThreadState* __tstate = wxPyBeginAllowThreads();
21624 result = (wxWindowDC *)new wxWindowDC(arg1);
21625 wxPyEndAllowThreads(__tstate);
21626 if (PyErr_Occurred()) SWIG_fail;
21627 }
21628 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21629 return resultobj;
21630 fail:
21631 return NULL;
21632 }
21633
21634
21635 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21636 PyObject *obj;
21637 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21638 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21639 return SWIG_Py_Void();
21640 }
21641
21642 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21643 return SWIG_Python_InitShadowInstance(args);
21644 }
21645
21646 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21647 PyObject *resultobj = 0;
21648 wxDC *arg1 = 0 ;
21649 bool arg2 ;
21650 wxMirrorDC *result = 0 ;
21651 void *argp1 = 0 ;
21652 int res1 = 0 ;
21653 bool val2 ;
21654 int ecode2 = 0 ;
21655 PyObject * obj0 = 0 ;
21656 PyObject * obj1 = 0 ;
21657 char * kwnames[] = {
21658 (char *) "dc",(char *) "mirror", NULL
21659 };
21660
21661 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21662 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21663 if (!SWIG_IsOK(res1)) {
21664 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21665 }
21666 if (!argp1) {
21667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21668 }
21669 arg1 = reinterpret_cast< wxDC * >(argp1);
21670 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21671 if (!SWIG_IsOK(ecode2)) {
21672 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21673 }
21674 arg2 = static_cast< bool >(val2);
21675 {
21676 if (!wxPyCheckForApp()) SWIG_fail;
21677 PyThreadState* __tstate = wxPyBeginAllowThreads();
21678 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21679 wxPyEndAllowThreads(__tstate);
21680 if (PyErr_Occurred()) SWIG_fail;
21681 }
21682 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21683 return resultobj;
21684 fail:
21685 return NULL;
21686 }
21687
21688
21689 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21690 PyObject *obj;
21691 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21692 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21693 return SWIG_Py_Void();
21694 }
21695
21696 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21697 return SWIG_Python_InitShadowInstance(args);
21698 }
21699
21700 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21701 PyObject *resultobj = 0;
21702 wxPrintData *arg1 = 0 ;
21703 wxPostScriptDC *result = 0 ;
21704 void *argp1 = 0 ;
21705 int res1 = 0 ;
21706 PyObject * obj0 = 0 ;
21707 char * kwnames[] = {
21708 (char *) "printData", NULL
21709 };
21710
21711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21712 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21713 if (!SWIG_IsOK(res1)) {
21714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21715 }
21716 if (!argp1) {
21717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21718 }
21719 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21720 {
21721 if (!wxPyCheckForApp()) SWIG_fail;
21722 PyThreadState* __tstate = wxPyBeginAllowThreads();
21723 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21724 wxPyEndAllowThreads(__tstate);
21725 if (PyErr_Occurred()) SWIG_fail;
21726 }
21727 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21728 return resultobj;
21729 fail:
21730 return NULL;
21731 }
21732
21733
21734 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21735 PyObject *resultobj = 0;
21736 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21737 wxPrintData *result = 0 ;
21738 void *argp1 = 0 ;
21739 int res1 = 0 ;
21740 PyObject *swig_obj[1] ;
21741
21742 if (!args) SWIG_fail;
21743 swig_obj[0] = args;
21744 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21745 if (!SWIG_IsOK(res1)) {
21746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21747 }
21748 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21749 {
21750 PyThreadState* __tstate = wxPyBeginAllowThreads();
21751 {
21752 wxPrintData &_result_ref = (arg1)->GetPrintData();
21753 result = (wxPrintData *) &_result_ref;
21754 }
21755 wxPyEndAllowThreads(__tstate);
21756 if (PyErr_Occurred()) SWIG_fail;
21757 }
21758 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21759 return resultobj;
21760 fail:
21761 return NULL;
21762 }
21763
21764
21765 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21766 PyObject *resultobj = 0;
21767 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21768 wxPrintData *arg2 = 0 ;
21769 void *argp1 = 0 ;
21770 int res1 = 0 ;
21771 void *argp2 = 0 ;
21772 int res2 = 0 ;
21773 PyObject * obj0 = 0 ;
21774 PyObject * obj1 = 0 ;
21775 char * kwnames[] = {
21776 (char *) "self",(char *) "data", NULL
21777 };
21778
21779 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21780 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21781 if (!SWIG_IsOK(res1)) {
21782 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21783 }
21784 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21785 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21786 if (!SWIG_IsOK(res2)) {
21787 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21788 }
21789 if (!argp2) {
21790 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21791 }
21792 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21793 {
21794 PyThreadState* __tstate = wxPyBeginAllowThreads();
21795 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21796 wxPyEndAllowThreads(__tstate);
21797 if (PyErr_Occurred()) SWIG_fail;
21798 }
21799 resultobj = SWIG_Py_Void();
21800 return resultobj;
21801 fail:
21802 return NULL;
21803 }
21804
21805
21806 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21807 PyObject *resultobj = 0;
21808 int arg1 ;
21809 int val1 ;
21810 int ecode1 = 0 ;
21811 PyObject * obj0 = 0 ;
21812 char * kwnames[] = {
21813 (char *) "ppi", NULL
21814 };
21815
21816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21817 ecode1 = SWIG_AsVal_int(obj0, &val1);
21818 if (!SWIG_IsOK(ecode1)) {
21819 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21820 }
21821 arg1 = static_cast< int >(val1);
21822 {
21823 PyThreadState* __tstate = wxPyBeginAllowThreads();
21824 wxPostScriptDC::SetResolution(arg1);
21825 wxPyEndAllowThreads(__tstate);
21826 if (PyErr_Occurred()) SWIG_fail;
21827 }
21828 resultobj = SWIG_Py_Void();
21829 return resultobj;
21830 fail:
21831 return NULL;
21832 }
21833
21834
21835 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21836 PyObject *resultobj = 0;
21837 int result;
21838
21839 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21840 {
21841 PyThreadState* __tstate = wxPyBeginAllowThreads();
21842 result = (int)wxPostScriptDC::GetResolution();
21843 wxPyEndAllowThreads(__tstate);
21844 if (PyErr_Occurred()) SWIG_fail;
21845 }
21846 resultobj = SWIG_From_int(static_cast< int >(result));
21847 return resultobj;
21848 fail:
21849 return NULL;
21850 }
21851
21852
21853 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21854 PyObject *obj;
21855 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21856 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21857 return SWIG_Py_Void();
21858 }
21859
21860 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21861 return SWIG_Python_InitShadowInstance(args);
21862 }
21863
21864 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21865 PyObject *resultobj = 0;
21866 wxString const &arg1_defvalue = wxPyEmptyString ;
21867 wxString *arg1 = (wxString *) &arg1_defvalue ;
21868 wxMetaFile *result = 0 ;
21869 bool temp1 = false ;
21870 PyObject * obj0 = 0 ;
21871 char * kwnames[] = {
21872 (char *) "filename", NULL
21873 };
21874
21875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21876 if (obj0) {
21877 {
21878 arg1 = wxString_in_helper(obj0);
21879 if (arg1 == NULL) SWIG_fail;
21880 temp1 = true;
21881 }
21882 }
21883 {
21884 if (!wxPyCheckForApp()) SWIG_fail;
21885 PyThreadState* __tstate = wxPyBeginAllowThreads();
21886 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21887 wxPyEndAllowThreads(__tstate);
21888 if (PyErr_Occurred()) SWIG_fail;
21889 }
21890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21891 {
21892 if (temp1)
21893 delete arg1;
21894 }
21895 return resultobj;
21896 fail:
21897 {
21898 if (temp1)
21899 delete arg1;
21900 }
21901 return NULL;
21902 }
21903
21904
21905 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21906 PyObject *resultobj = 0;
21907 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21908 void *argp1 = 0 ;
21909 int res1 = 0 ;
21910 PyObject *swig_obj[1] ;
21911
21912 if (!args) SWIG_fail;
21913 swig_obj[0] = args;
21914 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21915 if (!SWIG_IsOK(res1)) {
21916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21917 }
21918 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21919 {
21920 PyThreadState* __tstate = wxPyBeginAllowThreads();
21921 delete arg1;
21922
21923 wxPyEndAllowThreads(__tstate);
21924 if (PyErr_Occurred()) SWIG_fail;
21925 }
21926 resultobj = SWIG_Py_Void();
21927 return resultobj;
21928 fail:
21929 return NULL;
21930 }
21931
21932
21933 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21934 PyObject *resultobj = 0;
21935 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21936 bool result;
21937 void *argp1 = 0 ;
21938 int res1 = 0 ;
21939 PyObject *swig_obj[1] ;
21940
21941 if (!args) SWIG_fail;
21942 swig_obj[0] = args;
21943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21944 if (!SWIG_IsOK(res1)) {
21945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21946 }
21947 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21948 {
21949 PyThreadState* __tstate = wxPyBeginAllowThreads();
21950 result = (bool)(arg1)->Ok();
21951 wxPyEndAllowThreads(__tstate);
21952 if (PyErr_Occurred()) SWIG_fail;
21953 }
21954 {
21955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21956 }
21957 return resultobj;
21958 fail:
21959 return NULL;
21960 }
21961
21962
21963 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21964 PyObject *resultobj = 0;
21965 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21966 int arg2 = (int) 0 ;
21967 int arg3 = (int) 0 ;
21968 bool result;
21969 void *argp1 = 0 ;
21970 int res1 = 0 ;
21971 int val2 ;
21972 int ecode2 = 0 ;
21973 int val3 ;
21974 int ecode3 = 0 ;
21975 PyObject * obj0 = 0 ;
21976 PyObject * obj1 = 0 ;
21977 PyObject * obj2 = 0 ;
21978 char * kwnames[] = {
21979 (char *) "self",(char *) "width",(char *) "height", NULL
21980 };
21981
21982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21983 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21984 if (!SWIG_IsOK(res1)) {
21985 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21986 }
21987 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21988 if (obj1) {
21989 ecode2 = SWIG_AsVal_int(obj1, &val2);
21990 if (!SWIG_IsOK(ecode2)) {
21991 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21992 }
21993 arg2 = static_cast< int >(val2);
21994 }
21995 if (obj2) {
21996 ecode3 = SWIG_AsVal_int(obj2, &val3);
21997 if (!SWIG_IsOK(ecode3)) {
21998 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21999 }
22000 arg3 = static_cast< int >(val3);
22001 }
22002 {
22003 PyThreadState* __tstate = wxPyBeginAllowThreads();
22004 result = (bool)(arg1)->SetClipboard(arg2,arg3);
22005 wxPyEndAllowThreads(__tstate);
22006 if (PyErr_Occurred()) SWIG_fail;
22007 }
22008 {
22009 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22010 }
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22018 PyObject *resultobj = 0;
22019 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22020 wxSize result;
22021 void *argp1 = 0 ;
22022 int res1 = 0 ;
22023 PyObject *swig_obj[1] ;
22024
22025 if (!args) SWIG_fail;
22026 swig_obj[0] = args;
22027 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22028 if (!SWIG_IsOK(res1)) {
22029 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22030 }
22031 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22032 {
22033 PyThreadState* __tstate = wxPyBeginAllowThreads();
22034 result = (arg1)->GetSize();
22035 wxPyEndAllowThreads(__tstate);
22036 if (PyErr_Occurred()) SWIG_fail;
22037 }
22038 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22039 return resultobj;
22040 fail:
22041 return NULL;
22042 }
22043
22044
22045 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22046 PyObject *resultobj = 0;
22047 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22048 int result;
22049 void *argp1 = 0 ;
22050 int res1 = 0 ;
22051 PyObject *swig_obj[1] ;
22052
22053 if (!args) SWIG_fail;
22054 swig_obj[0] = args;
22055 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22056 if (!SWIG_IsOK(res1)) {
22057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22058 }
22059 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22060 {
22061 PyThreadState* __tstate = wxPyBeginAllowThreads();
22062 result = (int)(arg1)->GetWidth();
22063 wxPyEndAllowThreads(__tstate);
22064 if (PyErr_Occurred()) SWIG_fail;
22065 }
22066 resultobj = SWIG_From_int(static_cast< int >(result));
22067 return resultobj;
22068 fail:
22069 return NULL;
22070 }
22071
22072
22073 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22074 PyObject *resultobj = 0;
22075 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22076 int result;
22077 void *argp1 = 0 ;
22078 int res1 = 0 ;
22079 PyObject *swig_obj[1] ;
22080
22081 if (!args) SWIG_fail;
22082 swig_obj[0] = args;
22083 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22084 if (!SWIG_IsOK(res1)) {
22085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22086 }
22087 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22088 {
22089 PyThreadState* __tstate = wxPyBeginAllowThreads();
22090 result = (int)(arg1)->GetHeight();
22091 wxPyEndAllowThreads(__tstate);
22092 if (PyErr_Occurred()) SWIG_fail;
22093 }
22094 resultobj = SWIG_From_int(static_cast< int >(result));
22095 return resultobj;
22096 fail:
22097 return NULL;
22098 }
22099
22100
22101 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22102 PyObject *resultobj = 0;
22103 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22104 wxString *result = 0 ;
22105 void *argp1 = 0 ;
22106 int res1 = 0 ;
22107 PyObject *swig_obj[1] ;
22108
22109 if (!args) SWIG_fail;
22110 swig_obj[0] = args;
22111 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22112 if (!SWIG_IsOK(res1)) {
22113 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22114 }
22115 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22116 {
22117 PyThreadState* __tstate = wxPyBeginAllowThreads();
22118 {
22119 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22120 result = (wxString *) &_result_ref;
22121 }
22122 wxPyEndAllowThreads(__tstate);
22123 if (PyErr_Occurred()) SWIG_fail;
22124 }
22125 {
22126 #if wxUSE_UNICODE
22127 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22128 #else
22129 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22130 #endif
22131 }
22132 return resultobj;
22133 fail:
22134 return NULL;
22135 }
22136
22137
22138 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22139 PyObject *obj;
22140 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22141 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22142 return SWIG_Py_Void();
22143 }
22144
22145 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22146 return SWIG_Python_InitShadowInstance(args);
22147 }
22148
22149 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22150 PyObject *resultobj = 0;
22151 wxString const &arg1_defvalue = wxPyEmptyString ;
22152 wxString *arg1 = (wxString *) &arg1_defvalue ;
22153 int arg2 = (int) 0 ;
22154 int arg3 = (int) 0 ;
22155 wxString const &arg4_defvalue = wxPyEmptyString ;
22156 wxString *arg4 = (wxString *) &arg4_defvalue ;
22157 wxMetaFileDC *result = 0 ;
22158 bool temp1 = false ;
22159 int val2 ;
22160 int ecode2 = 0 ;
22161 int val3 ;
22162 int ecode3 = 0 ;
22163 bool temp4 = false ;
22164 PyObject * obj0 = 0 ;
22165 PyObject * obj1 = 0 ;
22166 PyObject * obj2 = 0 ;
22167 PyObject * obj3 = 0 ;
22168 char * kwnames[] = {
22169 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22170 };
22171
22172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22173 if (obj0) {
22174 {
22175 arg1 = wxString_in_helper(obj0);
22176 if (arg1 == NULL) SWIG_fail;
22177 temp1 = true;
22178 }
22179 }
22180 if (obj1) {
22181 ecode2 = SWIG_AsVal_int(obj1, &val2);
22182 if (!SWIG_IsOK(ecode2)) {
22183 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22184 }
22185 arg2 = static_cast< int >(val2);
22186 }
22187 if (obj2) {
22188 ecode3 = SWIG_AsVal_int(obj2, &val3);
22189 if (!SWIG_IsOK(ecode3)) {
22190 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22191 }
22192 arg3 = static_cast< int >(val3);
22193 }
22194 if (obj3) {
22195 {
22196 arg4 = wxString_in_helper(obj3);
22197 if (arg4 == NULL) SWIG_fail;
22198 temp4 = true;
22199 }
22200 }
22201 {
22202 if (!wxPyCheckForApp()) SWIG_fail;
22203 PyThreadState* __tstate = wxPyBeginAllowThreads();
22204 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22205 wxPyEndAllowThreads(__tstate);
22206 if (PyErr_Occurred()) SWIG_fail;
22207 }
22208 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22209 {
22210 if (temp1)
22211 delete arg1;
22212 }
22213 {
22214 if (temp4)
22215 delete arg4;
22216 }
22217 return resultobj;
22218 fail:
22219 {
22220 if (temp1)
22221 delete arg1;
22222 }
22223 {
22224 if (temp4)
22225 delete arg4;
22226 }
22227 return NULL;
22228 }
22229
22230
22231 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22232 PyObject *resultobj = 0;
22233 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22234 wxMetaFile *result = 0 ;
22235 void *argp1 = 0 ;
22236 int res1 = 0 ;
22237 PyObject *swig_obj[1] ;
22238
22239 if (!args) SWIG_fail;
22240 swig_obj[0] = args;
22241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22242 if (!SWIG_IsOK(res1)) {
22243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22244 }
22245 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22246 {
22247 PyThreadState* __tstate = wxPyBeginAllowThreads();
22248 result = (wxMetaFile *)(arg1)->Close();
22249 wxPyEndAllowThreads(__tstate);
22250 if (PyErr_Occurred()) SWIG_fail;
22251 }
22252 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22253 return resultobj;
22254 fail:
22255 return NULL;
22256 }
22257
22258
22259 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22260 PyObject *obj;
22261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22262 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22263 return SWIG_Py_Void();
22264 }
22265
22266 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22267 return SWIG_Python_InitShadowInstance(args);
22268 }
22269
22270 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22271 PyObject *resultobj = 0;
22272 wxPrintData *arg1 = 0 ;
22273 wxPrinterDC *result = 0 ;
22274 void *argp1 = 0 ;
22275 int res1 = 0 ;
22276 PyObject * obj0 = 0 ;
22277 char * kwnames[] = {
22278 (char *) "printData", NULL
22279 };
22280
22281 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22282 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22283 if (!SWIG_IsOK(res1)) {
22284 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22285 }
22286 if (!argp1) {
22287 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22288 }
22289 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22290 {
22291 if (!wxPyCheckForApp()) SWIG_fail;
22292 PyThreadState* __tstate = wxPyBeginAllowThreads();
22293 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22294 wxPyEndAllowThreads(__tstate);
22295 if (PyErr_Occurred()) SWIG_fail;
22296 }
22297 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22298 return resultobj;
22299 fail:
22300 return NULL;
22301 }
22302
22303
22304 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22305 PyObject *obj;
22306 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22307 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22308 return SWIG_Py_Void();
22309 }
22310
22311 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22312 return SWIG_Python_InitShadowInstance(args);
22313 }
22314
22315 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22316 PyObject *resultobj = 0;
22317 int arg1 ;
22318 int arg2 ;
22319 int arg3 = (int) true ;
22320 int arg4 = (int) 1 ;
22321 wxImageList *result = 0 ;
22322 int val1 ;
22323 int ecode1 = 0 ;
22324 int val2 ;
22325 int ecode2 = 0 ;
22326 int val3 ;
22327 int ecode3 = 0 ;
22328 int val4 ;
22329 int ecode4 = 0 ;
22330 PyObject * obj0 = 0 ;
22331 PyObject * obj1 = 0 ;
22332 PyObject * obj2 = 0 ;
22333 PyObject * obj3 = 0 ;
22334 char * kwnames[] = {
22335 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22336 };
22337
22338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22339 ecode1 = SWIG_AsVal_int(obj0, &val1);
22340 if (!SWIG_IsOK(ecode1)) {
22341 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22342 }
22343 arg1 = static_cast< int >(val1);
22344 ecode2 = SWIG_AsVal_int(obj1, &val2);
22345 if (!SWIG_IsOK(ecode2)) {
22346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22347 }
22348 arg2 = static_cast< int >(val2);
22349 if (obj2) {
22350 ecode3 = SWIG_AsVal_int(obj2, &val3);
22351 if (!SWIG_IsOK(ecode3)) {
22352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22353 }
22354 arg3 = static_cast< int >(val3);
22355 }
22356 if (obj3) {
22357 ecode4 = SWIG_AsVal_int(obj3, &val4);
22358 if (!SWIG_IsOK(ecode4)) {
22359 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22360 }
22361 arg4 = static_cast< int >(val4);
22362 }
22363 {
22364 if (!wxPyCheckForApp()) SWIG_fail;
22365 PyThreadState* __tstate = wxPyBeginAllowThreads();
22366 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22367 wxPyEndAllowThreads(__tstate);
22368 if (PyErr_Occurred()) SWIG_fail;
22369 }
22370 {
22371 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22372 }
22373 return resultobj;
22374 fail:
22375 return NULL;
22376 }
22377
22378
22379 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22380 PyObject *resultobj = 0;
22381 wxImageList *arg1 = (wxImageList *) 0 ;
22382 void *argp1 = 0 ;
22383 int res1 = 0 ;
22384 PyObject *swig_obj[1] ;
22385
22386 if (!args) SWIG_fail;
22387 swig_obj[0] = args;
22388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22391 }
22392 arg1 = reinterpret_cast< wxImageList * >(argp1);
22393 {
22394 PyThreadState* __tstate = wxPyBeginAllowThreads();
22395 delete arg1;
22396
22397 wxPyEndAllowThreads(__tstate);
22398 if (PyErr_Occurred()) SWIG_fail;
22399 }
22400 resultobj = SWIG_Py_Void();
22401 return resultobj;
22402 fail:
22403 return NULL;
22404 }
22405
22406
22407 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22408 PyObject *resultobj = 0;
22409 wxImageList *arg1 = (wxImageList *) 0 ;
22410 wxBitmap *arg2 = 0 ;
22411 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22412 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22413 int result;
22414 void *argp1 = 0 ;
22415 int res1 = 0 ;
22416 void *argp2 = 0 ;
22417 int res2 = 0 ;
22418 void *argp3 = 0 ;
22419 int res3 = 0 ;
22420 PyObject * obj0 = 0 ;
22421 PyObject * obj1 = 0 ;
22422 PyObject * obj2 = 0 ;
22423 char * kwnames[] = {
22424 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22425 };
22426
22427 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22428 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22429 if (!SWIG_IsOK(res1)) {
22430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22431 }
22432 arg1 = reinterpret_cast< wxImageList * >(argp1);
22433 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22434 if (!SWIG_IsOK(res2)) {
22435 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22436 }
22437 if (!argp2) {
22438 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22439 }
22440 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22441 if (obj2) {
22442 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22443 if (!SWIG_IsOK(res3)) {
22444 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22445 }
22446 if (!argp3) {
22447 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22448 }
22449 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22450 }
22451 {
22452 PyThreadState* __tstate = wxPyBeginAllowThreads();
22453 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22454 wxPyEndAllowThreads(__tstate);
22455 if (PyErr_Occurred()) SWIG_fail;
22456 }
22457 resultobj = SWIG_From_int(static_cast< int >(result));
22458 return resultobj;
22459 fail:
22460 return NULL;
22461 }
22462
22463
22464 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22465 PyObject *resultobj = 0;
22466 wxImageList *arg1 = (wxImageList *) 0 ;
22467 wxBitmap *arg2 = 0 ;
22468 wxColour *arg3 = 0 ;
22469 int result;
22470 void *argp1 = 0 ;
22471 int res1 = 0 ;
22472 void *argp2 = 0 ;
22473 int res2 = 0 ;
22474 wxColour temp3 ;
22475 PyObject * obj0 = 0 ;
22476 PyObject * obj1 = 0 ;
22477 PyObject * obj2 = 0 ;
22478 char * kwnames[] = {
22479 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22480 };
22481
22482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22486 }
22487 arg1 = reinterpret_cast< wxImageList * >(argp1);
22488 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22489 if (!SWIG_IsOK(res2)) {
22490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22491 }
22492 if (!argp2) {
22493 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22494 }
22495 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22496 {
22497 arg3 = &temp3;
22498 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22499 }
22500 {
22501 PyThreadState* __tstate = wxPyBeginAllowThreads();
22502 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22503 wxPyEndAllowThreads(__tstate);
22504 if (PyErr_Occurred()) SWIG_fail;
22505 }
22506 resultobj = SWIG_From_int(static_cast< int >(result));
22507 return resultobj;
22508 fail:
22509 return NULL;
22510 }
22511
22512
22513 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22514 PyObject *resultobj = 0;
22515 wxImageList *arg1 = (wxImageList *) 0 ;
22516 wxIcon *arg2 = 0 ;
22517 int result;
22518 void *argp1 = 0 ;
22519 int res1 = 0 ;
22520 void *argp2 = 0 ;
22521 int res2 = 0 ;
22522 PyObject * obj0 = 0 ;
22523 PyObject * obj1 = 0 ;
22524 char * kwnames[] = {
22525 (char *) "self",(char *) "icon", NULL
22526 };
22527
22528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22529 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22530 if (!SWIG_IsOK(res1)) {
22531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22532 }
22533 arg1 = reinterpret_cast< wxImageList * >(argp1);
22534 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22535 if (!SWIG_IsOK(res2)) {
22536 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22537 }
22538 if (!argp2) {
22539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22540 }
22541 arg2 = reinterpret_cast< wxIcon * >(argp2);
22542 {
22543 PyThreadState* __tstate = wxPyBeginAllowThreads();
22544 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22545 wxPyEndAllowThreads(__tstate);
22546 if (PyErr_Occurred()) SWIG_fail;
22547 }
22548 resultobj = SWIG_From_int(static_cast< int >(result));
22549 return resultobj;
22550 fail:
22551 return NULL;
22552 }
22553
22554
22555 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22556 PyObject *resultobj = 0;
22557 wxImageList *arg1 = (wxImageList *) 0 ;
22558 int arg2 ;
22559 SwigValueWrapper<wxBitmap > result;
22560 void *argp1 = 0 ;
22561 int res1 = 0 ;
22562 int val2 ;
22563 int ecode2 = 0 ;
22564 PyObject * obj0 = 0 ;
22565 PyObject * obj1 = 0 ;
22566 char * kwnames[] = {
22567 (char *) "self",(char *) "index", NULL
22568 };
22569
22570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22572 if (!SWIG_IsOK(res1)) {
22573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22574 }
22575 arg1 = reinterpret_cast< wxImageList * >(argp1);
22576 ecode2 = SWIG_AsVal_int(obj1, &val2);
22577 if (!SWIG_IsOK(ecode2)) {
22578 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22579 }
22580 arg2 = static_cast< int >(val2);
22581 {
22582 PyThreadState* __tstate = wxPyBeginAllowThreads();
22583 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22584 wxPyEndAllowThreads(__tstate);
22585 if (PyErr_Occurred()) SWIG_fail;
22586 }
22587 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22588 return resultobj;
22589 fail:
22590 return NULL;
22591 }
22592
22593
22594 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22595 PyObject *resultobj = 0;
22596 wxImageList *arg1 = (wxImageList *) 0 ;
22597 int arg2 ;
22598 wxIcon result;
22599 void *argp1 = 0 ;
22600 int res1 = 0 ;
22601 int val2 ;
22602 int ecode2 = 0 ;
22603 PyObject * obj0 = 0 ;
22604 PyObject * obj1 = 0 ;
22605 char * kwnames[] = {
22606 (char *) "self",(char *) "index", NULL
22607 };
22608
22609 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22610 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22611 if (!SWIG_IsOK(res1)) {
22612 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22613 }
22614 arg1 = reinterpret_cast< wxImageList * >(argp1);
22615 ecode2 = SWIG_AsVal_int(obj1, &val2);
22616 if (!SWIG_IsOK(ecode2)) {
22617 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22618 }
22619 arg2 = static_cast< int >(val2);
22620 {
22621 PyThreadState* __tstate = wxPyBeginAllowThreads();
22622 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22623 wxPyEndAllowThreads(__tstate);
22624 if (PyErr_Occurred()) SWIG_fail;
22625 }
22626 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22627 return resultobj;
22628 fail:
22629 return NULL;
22630 }
22631
22632
22633 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22634 PyObject *resultobj = 0;
22635 wxImageList *arg1 = (wxImageList *) 0 ;
22636 int arg2 ;
22637 wxBitmap *arg3 = 0 ;
22638 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22639 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22640 bool result;
22641 void *argp1 = 0 ;
22642 int res1 = 0 ;
22643 int val2 ;
22644 int ecode2 = 0 ;
22645 void *argp3 = 0 ;
22646 int res3 = 0 ;
22647 void *argp4 = 0 ;
22648 int res4 = 0 ;
22649 PyObject * obj0 = 0 ;
22650 PyObject * obj1 = 0 ;
22651 PyObject * obj2 = 0 ;
22652 PyObject * obj3 = 0 ;
22653 char * kwnames[] = {
22654 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22655 };
22656
22657 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22658 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22659 if (!SWIG_IsOK(res1)) {
22660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22661 }
22662 arg1 = reinterpret_cast< wxImageList * >(argp1);
22663 ecode2 = SWIG_AsVal_int(obj1, &val2);
22664 if (!SWIG_IsOK(ecode2)) {
22665 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22666 }
22667 arg2 = static_cast< int >(val2);
22668 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22669 if (!SWIG_IsOK(res3)) {
22670 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22671 }
22672 if (!argp3) {
22673 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22674 }
22675 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22676 if (obj3) {
22677 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22678 if (!SWIG_IsOK(res4)) {
22679 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22680 }
22681 if (!argp4) {
22682 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22683 }
22684 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22685 }
22686 {
22687 PyThreadState* __tstate = wxPyBeginAllowThreads();
22688 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22689 wxPyEndAllowThreads(__tstate);
22690 if (PyErr_Occurred()) SWIG_fail;
22691 }
22692 {
22693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22694 }
22695 return resultobj;
22696 fail:
22697 return NULL;
22698 }
22699
22700
22701 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22702 PyObject *resultobj = 0;
22703 wxImageList *arg1 = (wxImageList *) 0 ;
22704 int arg2 ;
22705 wxDC *arg3 = 0 ;
22706 int arg4 ;
22707 int arg5 ;
22708 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22709 bool arg7 = (bool) (bool)false ;
22710 bool result;
22711 void *argp1 = 0 ;
22712 int res1 = 0 ;
22713 int val2 ;
22714 int ecode2 = 0 ;
22715 void *argp3 = 0 ;
22716 int res3 = 0 ;
22717 int val4 ;
22718 int ecode4 = 0 ;
22719 int val5 ;
22720 int ecode5 = 0 ;
22721 int val6 ;
22722 int ecode6 = 0 ;
22723 bool val7 ;
22724 int ecode7 = 0 ;
22725 PyObject * obj0 = 0 ;
22726 PyObject * obj1 = 0 ;
22727 PyObject * obj2 = 0 ;
22728 PyObject * obj3 = 0 ;
22729 PyObject * obj4 = 0 ;
22730 PyObject * obj5 = 0 ;
22731 PyObject * obj6 = 0 ;
22732 char * kwnames[] = {
22733 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22734 };
22735
22736 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22737 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22738 if (!SWIG_IsOK(res1)) {
22739 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22740 }
22741 arg1 = reinterpret_cast< wxImageList * >(argp1);
22742 ecode2 = SWIG_AsVal_int(obj1, &val2);
22743 if (!SWIG_IsOK(ecode2)) {
22744 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22745 }
22746 arg2 = static_cast< int >(val2);
22747 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22748 if (!SWIG_IsOK(res3)) {
22749 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22750 }
22751 if (!argp3) {
22752 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22753 }
22754 arg3 = reinterpret_cast< wxDC * >(argp3);
22755 ecode4 = SWIG_AsVal_int(obj3, &val4);
22756 if (!SWIG_IsOK(ecode4)) {
22757 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22758 }
22759 arg4 = static_cast< int >(val4);
22760 ecode5 = SWIG_AsVal_int(obj4, &val5);
22761 if (!SWIG_IsOK(ecode5)) {
22762 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22763 }
22764 arg5 = static_cast< int >(val5);
22765 if (obj5) {
22766 ecode6 = SWIG_AsVal_int(obj5, &val6);
22767 if (!SWIG_IsOK(ecode6)) {
22768 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22769 }
22770 arg6 = static_cast< int >(val6);
22771 }
22772 if (obj6) {
22773 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22774 if (!SWIG_IsOK(ecode7)) {
22775 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22776 }
22777 arg7 = static_cast< bool >(val7);
22778 }
22779 {
22780 PyThreadState* __tstate = wxPyBeginAllowThreads();
22781 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22782 wxPyEndAllowThreads(__tstate);
22783 if (PyErr_Occurred()) SWIG_fail;
22784 }
22785 {
22786 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22787 }
22788 return resultobj;
22789 fail:
22790 return NULL;
22791 }
22792
22793
22794 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22795 PyObject *resultobj = 0;
22796 wxImageList *arg1 = (wxImageList *) 0 ;
22797 int result;
22798 void *argp1 = 0 ;
22799 int res1 = 0 ;
22800 PyObject *swig_obj[1] ;
22801
22802 if (!args) SWIG_fail;
22803 swig_obj[0] = args;
22804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22805 if (!SWIG_IsOK(res1)) {
22806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22807 }
22808 arg1 = reinterpret_cast< wxImageList * >(argp1);
22809 {
22810 PyThreadState* __tstate = wxPyBeginAllowThreads();
22811 result = (int)(arg1)->GetImageCount();
22812 wxPyEndAllowThreads(__tstate);
22813 if (PyErr_Occurred()) SWIG_fail;
22814 }
22815 resultobj = SWIG_From_int(static_cast< int >(result));
22816 return resultobj;
22817 fail:
22818 return NULL;
22819 }
22820
22821
22822 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22823 PyObject *resultobj = 0;
22824 wxImageList *arg1 = (wxImageList *) 0 ;
22825 int arg2 ;
22826 bool result;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 int val2 ;
22830 int ecode2 = 0 ;
22831 PyObject * obj0 = 0 ;
22832 PyObject * obj1 = 0 ;
22833 char * kwnames[] = {
22834 (char *) "self",(char *) "index", NULL
22835 };
22836
22837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22839 if (!SWIG_IsOK(res1)) {
22840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22841 }
22842 arg1 = reinterpret_cast< wxImageList * >(argp1);
22843 ecode2 = SWIG_AsVal_int(obj1, &val2);
22844 if (!SWIG_IsOK(ecode2)) {
22845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22846 }
22847 arg2 = static_cast< int >(val2);
22848 {
22849 PyThreadState* __tstate = wxPyBeginAllowThreads();
22850 result = (bool)(arg1)->Remove(arg2);
22851 wxPyEndAllowThreads(__tstate);
22852 if (PyErr_Occurred()) SWIG_fail;
22853 }
22854 {
22855 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22856 }
22857 return resultobj;
22858 fail:
22859 return NULL;
22860 }
22861
22862
22863 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22864 PyObject *resultobj = 0;
22865 wxImageList *arg1 = (wxImageList *) 0 ;
22866 bool result;
22867 void *argp1 = 0 ;
22868 int res1 = 0 ;
22869 PyObject *swig_obj[1] ;
22870
22871 if (!args) SWIG_fail;
22872 swig_obj[0] = args;
22873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22874 if (!SWIG_IsOK(res1)) {
22875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22876 }
22877 arg1 = reinterpret_cast< wxImageList * >(argp1);
22878 {
22879 PyThreadState* __tstate = wxPyBeginAllowThreads();
22880 result = (bool)(arg1)->RemoveAll();
22881 wxPyEndAllowThreads(__tstate);
22882 if (PyErr_Occurred()) SWIG_fail;
22883 }
22884 {
22885 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22886 }
22887 return resultobj;
22888 fail:
22889 return NULL;
22890 }
22891
22892
22893 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22894 PyObject *resultobj = 0;
22895 wxImageList *arg1 = (wxImageList *) 0 ;
22896 int arg2 ;
22897 int *arg3 = 0 ;
22898 int *arg4 = 0 ;
22899 void *argp1 = 0 ;
22900 int res1 = 0 ;
22901 int val2 ;
22902 int ecode2 = 0 ;
22903 int temp3 ;
22904 int res3 = SWIG_TMPOBJ ;
22905 int temp4 ;
22906 int res4 = SWIG_TMPOBJ ;
22907 PyObject * obj0 = 0 ;
22908 PyObject * obj1 = 0 ;
22909 char * kwnames[] = {
22910 (char *) "self",(char *) "index", NULL
22911 };
22912
22913 arg3 = &temp3;
22914 arg4 = &temp4;
22915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22917 if (!SWIG_IsOK(res1)) {
22918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22919 }
22920 arg1 = reinterpret_cast< wxImageList * >(argp1);
22921 ecode2 = SWIG_AsVal_int(obj1, &val2);
22922 if (!SWIG_IsOK(ecode2)) {
22923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22924 }
22925 arg2 = static_cast< int >(val2);
22926 {
22927 PyThreadState* __tstate = wxPyBeginAllowThreads();
22928 (arg1)->GetSize(arg2,*arg3,*arg4);
22929 wxPyEndAllowThreads(__tstate);
22930 if (PyErr_Occurred()) SWIG_fail;
22931 }
22932 resultobj = SWIG_Py_Void();
22933 if (SWIG_IsTmpObj(res3)) {
22934 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22935 } else {
22936 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22937 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22938 }
22939 if (SWIG_IsTmpObj(res4)) {
22940 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22941 } else {
22942 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22943 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22944 }
22945 return resultobj;
22946 fail:
22947 return NULL;
22948 }
22949
22950
22951 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22952 PyObject *obj;
22953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22954 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22955 return SWIG_Py_Void();
22956 }
22957
22958 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22959 return SWIG_Python_InitShadowInstance(args);
22960 }
22961
22962 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22963 PyObject *resultobj = 0;
22964 wxStockGDI *result = 0 ;
22965
22966 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22967 {
22968 PyThreadState* __tstate = wxPyBeginAllowThreads();
22969 result = (wxStockGDI *)new wxStockGDI();
22970 wxPyEndAllowThreads(__tstate);
22971 if (PyErr_Occurred()) SWIG_fail;
22972 }
22973 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22974 return resultobj;
22975 fail:
22976 return NULL;
22977 }
22978
22979
22980 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22981 PyObject *resultobj = 0;
22982 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22983 void *argp1 = 0 ;
22984 int res1 = 0 ;
22985 PyObject *swig_obj[1] ;
22986
22987 if (!args) SWIG_fail;
22988 swig_obj[0] = args;
22989 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22990 if (!SWIG_IsOK(res1)) {
22991 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22992 }
22993 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22994 {
22995 PyThreadState* __tstate = wxPyBeginAllowThreads();
22996 delete arg1;
22997
22998 wxPyEndAllowThreads(__tstate);
22999 if (PyErr_Occurred()) SWIG_fail;
23000 }
23001 resultobj = SWIG_Py_Void();
23002 return resultobj;
23003 fail:
23004 return NULL;
23005 }
23006
23007
23008 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23009 PyObject *resultobj = 0;
23010
23011 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
23012 {
23013 PyThreadState* __tstate = wxPyBeginAllowThreads();
23014 wxStockGDI::DeleteAll();
23015 wxPyEndAllowThreads(__tstate);
23016 if (PyErr_Occurred()) SWIG_fail;
23017 }
23018 resultobj = SWIG_Py_Void();
23019 return resultobj;
23020 fail:
23021 return NULL;
23022 }
23023
23024
23025 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23026 PyObject *resultobj = 0;
23027 wxStockGDI *result = 0 ;
23028
23029 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
23030 {
23031 PyThreadState* __tstate = wxPyBeginAllowThreads();
23032 {
23033 wxStockGDI &_result_ref = wxStockGDI::instance();
23034 result = (wxStockGDI *) &_result_ref;
23035 }
23036 wxPyEndAllowThreads(__tstate);
23037 if (PyErr_Occurred()) SWIG_fail;
23038 }
23039 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23040 return resultobj;
23041 fail:
23042 return NULL;
23043 }
23044
23045
23046 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23047 PyObject *resultobj = 0;
23048 wxStockGDI::Item arg1 ;
23049 wxBrush *result = 0 ;
23050 int val1 ;
23051 int ecode1 = 0 ;
23052 PyObject * obj0 = 0 ;
23053 char * kwnames[] = {
23054 (char *) "item", NULL
23055 };
23056
23057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23058 ecode1 = SWIG_AsVal_int(obj0, &val1);
23059 if (!SWIG_IsOK(ecode1)) {
23060 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23061 }
23062 arg1 = static_cast< wxStockGDI::Item >(val1);
23063 {
23064 PyThreadState* __tstate = wxPyBeginAllowThreads();
23065 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23066 wxPyEndAllowThreads(__tstate);
23067 if (PyErr_Occurred()) SWIG_fail;
23068 }
23069 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23070 return resultobj;
23071 fail:
23072 return NULL;
23073 }
23074
23075
23076 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23077 PyObject *resultobj = 0;
23078 wxStockGDI::Item arg1 ;
23079 wxColour *result = 0 ;
23080 int val1 ;
23081 int ecode1 = 0 ;
23082 PyObject * obj0 = 0 ;
23083 char * kwnames[] = {
23084 (char *) "item", NULL
23085 };
23086
23087 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23088 ecode1 = SWIG_AsVal_int(obj0, &val1);
23089 if (!SWIG_IsOK(ecode1)) {
23090 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23091 }
23092 arg1 = static_cast< wxStockGDI::Item >(val1);
23093 {
23094 PyThreadState* __tstate = wxPyBeginAllowThreads();
23095 result = (wxColour *)wxStockGDI::GetColour(arg1);
23096 wxPyEndAllowThreads(__tstate);
23097 if (PyErr_Occurred()) SWIG_fail;
23098 }
23099 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23100 return resultobj;
23101 fail:
23102 return NULL;
23103 }
23104
23105
23106 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23107 PyObject *resultobj = 0;
23108 wxStockGDI::Item arg1 ;
23109 wxCursor *result = 0 ;
23110 int val1 ;
23111 int ecode1 = 0 ;
23112 PyObject * obj0 = 0 ;
23113 char * kwnames[] = {
23114 (char *) "item", NULL
23115 };
23116
23117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23118 ecode1 = SWIG_AsVal_int(obj0, &val1);
23119 if (!SWIG_IsOK(ecode1)) {
23120 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23121 }
23122 arg1 = static_cast< wxStockGDI::Item >(val1);
23123 {
23124 PyThreadState* __tstate = wxPyBeginAllowThreads();
23125 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23126 wxPyEndAllowThreads(__tstate);
23127 if (PyErr_Occurred()) SWIG_fail;
23128 }
23129 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23130 return resultobj;
23131 fail:
23132 return NULL;
23133 }
23134
23135
23136 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23137 PyObject *resultobj = 0;
23138 wxStockGDI::Item arg1 ;
23139 wxPen *result = 0 ;
23140 int val1 ;
23141 int ecode1 = 0 ;
23142 PyObject * obj0 = 0 ;
23143 char * kwnames[] = {
23144 (char *) "item", NULL
23145 };
23146
23147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23148 ecode1 = SWIG_AsVal_int(obj0, &val1);
23149 if (!SWIG_IsOK(ecode1)) {
23150 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23151 }
23152 arg1 = static_cast< wxStockGDI::Item >(val1);
23153 {
23154 PyThreadState* __tstate = wxPyBeginAllowThreads();
23155 result = (wxPen *)wxStockGDI::GetPen(arg1);
23156 wxPyEndAllowThreads(__tstate);
23157 if (PyErr_Occurred()) SWIG_fail;
23158 }
23159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23160 return resultobj;
23161 fail:
23162 return NULL;
23163 }
23164
23165
23166 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23167 PyObject *resultobj = 0;
23168 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23169 wxStockGDI::Item arg2 ;
23170 wxFont *result = 0 ;
23171 void *argp1 = 0 ;
23172 int res1 = 0 ;
23173 int val2 ;
23174 int ecode2 = 0 ;
23175 PyObject * obj0 = 0 ;
23176 PyObject * obj1 = 0 ;
23177 char * kwnames[] = {
23178 (char *) "self",(char *) "item", NULL
23179 };
23180
23181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23183 if (!SWIG_IsOK(res1)) {
23184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23185 }
23186 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23187 ecode2 = SWIG_AsVal_int(obj1, &val2);
23188 if (!SWIG_IsOK(ecode2)) {
23189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23190 }
23191 arg2 = static_cast< wxStockGDI::Item >(val2);
23192 {
23193 PyThreadState* __tstate = wxPyBeginAllowThreads();
23194 result = (wxFont *)(arg1)->GetFont(arg2);
23195 wxPyEndAllowThreads(__tstate);
23196 if (PyErr_Occurred()) SWIG_fail;
23197 }
23198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23199 return resultobj;
23200 fail:
23201 return NULL;
23202 }
23203
23204
23205 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23206 PyObject *obj;
23207 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23208 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23209 return SWIG_Py_Void();
23210 }
23211
23212 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23213 return SWIG_Python_InitShadowInstance(args);
23214 }
23215
23216 SWIGINTERN int NullBitmap_set(PyObject *) {
23217 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23218 return 1;
23219 }
23220
23221
23222 SWIGINTERN PyObject *NullBitmap_get(void) {
23223 PyObject *pyobj = 0;
23224
23225 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23226 return pyobj;
23227 }
23228
23229
23230 SWIGINTERN int NullIcon_set(PyObject *) {
23231 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23232 return 1;
23233 }
23234
23235
23236 SWIGINTERN PyObject *NullIcon_get(void) {
23237 PyObject *pyobj = 0;
23238
23239 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23240 return pyobj;
23241 }
23242
23243
23244 SWIGINTERN int NullCursor_set(PyObject *) {
23245 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23246 return 1;
23247 }
23248
23249
23250 SWIGINTERN PyObject *NullCursor_get(void) {
23251 PyObject *pyobj = 0;
23252
23253 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23254 return pyobj;
23255 }
23256
23257
23258 SWIGINTERN int NullPen_set(PyObject *) {
23259 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23260 return 1;
23261 }
23262
23263
23264 SWIGINTERN PyObject *NullPen_get(void) {
23265 PyObject *pyobj = 0;
23266
23267 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23268 return pyobj;
23269 }
23270
23271
23272 SWIGINTERN int NullBrush_set(PyObject *) {
23273 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23274 return 1;
23275 }
23276
23277
23278 SWIGINTERN PyObject *NullBrush_get(void) {
23279 PyObject *pyobj = 0;
23280
23281 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23282 return pyobj;
23283 }
23284
23285
23286 SWIGINTERN int NullPalette_set(PyObject *) {
23287 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23288 return 1;
23289 }
23290
23291
23292 SWIGINTERN PyObject *NullPalette_get(void) {
23293 PyObject *pyobj = 0;
23294
23295 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23296 return pyobj;
23297 }
23298
23299
23300 SWIGINTERN int NullFont_set(PyObject *) {
23301 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23302 return 1;
23303 }
23304
23305
23306 SWIGINTERN PyObject *NullFont_get(void) {
23307 PyObject *pyobj = 0;
23308
23309 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23310 return pyobj;
23311 }
23312
23313
23314 SWIGINTERN int NullColour_set(PyObject *) {
23315 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23316 return 1;
23317 }
23318
23319
23320 SWIGINTERN PyObject *NullColour_get(void) {
23321 PyObject *pyobj = 0;
23322
23323 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23324 return pyobj;
23325 }
23326
23327
23328 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23329 PyObject *resultobj = 0;
23330 wxGDIObjListBase *result = 0 ;
23331
23332 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23333 {
23334 PyThreadState* __tstate = wxPyBeginAllowThreads();
23335 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23336 wxPyEndAllowThreads(__tstate);
23337 if (PyErr_Occurred()) SWIG_fail;
23338 }
23339 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23340 return resultobj;
23341 fail:
23342 return NULL;
23343 }
23344
23345
23346 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23347 PyObject *resultobj = 0;
23348 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23349 void *argp1 = 0 ;
23350 int res1 = 0 ;
23351 PyObject *swig_obj[1] ;
23352
23353 if (!args) SWIG_fail;
23354 swig_obj[0] = args;
23355 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23356 if (!SWIG_IsOK(res1)) {
23357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23358 }
23359 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23360 {
23361 PyThreadState* __tstate = wxPyBeginAllowThreads();
23362 delete arg1;
23363
23364 wxPyEndAllowThreads(__tstate);
23365 if (PyErr_Occurred()) SWIG_fail;
23366 }
23367 resultobj = SWIG_Py_Void();
23368 return resultobj;
23369 fail:
23370 return NULL;
23371 }
23372
23373
23374 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23375 PyObject *obj;
23376 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23377 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23378 return SWIG_Py_Void();
23379 }
23380
23381 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23382 return SWIG_Python_InitShadowInstance(args);
23383 }
23384
23385 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23386 PyObject *resultobj = 0;
23387 wxPenList *arg1 = (wxPenList *) 0 ;
23388 wxColour *arg2 = 0 ;
23389 int arg3 ;
23390 int arg4 ;
23391 wxPen *result = 0 ;
23392 void *argp1 = 0 ;
23393 int res1 = 0 ;
23394 wxColour temp2 ;
23395 int val3 ;
23396 int ecode3 = 0 ;
23397 int val4 ;
23398 int ecode4 = 0 ;
23399 PyObject * obj0 = 0 ;
23400 PyObject * obj1 = 0 ;
23401 PyObject * obj2 = 0 ;
23402 PyObject * obj3 = 0 ;
23403 char * kwnames[] = {
23404 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23405 };
23406
23407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23409 if (!SWIG_IsOK(res1)) {
23410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23411 }
23412 arg1 = reinterpret_cast< wxPenList * >(argp1);
23413 {
23414 arg2 = &temp2;
23415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23416 }
23417 ecode3 = SWIG_AsVal_int(obj2, &val3);
23418 if (!SWIG_IsOK(ecode3)) {
23419 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23420 }
23421 arg3 = static_cast< int >(val3);
23422 ecode4 = SWIG_AsVal_int(obj3, &val4);
23423 if (!SWIG_IsOK(ecode4)) {
23424 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23425 }
23426 arg4 = static_cast< int >(val4);
23427 {
23428 PyThreadState* __tstate = wxPyBeginAllowThreads();
23429 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23430 wxPyEndAllowThreads(__tstate);
23431 if (PyErr_Occurred()) SWIG_fail;
23432 }
23433 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23434 return resultobj;
23435 fail:
23436 return NULL;
23437 }
23438
23439
23440 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23441 PyObject *resultobj = 0;
23442 wxPenList *arg1 = (wxPenList *) 0 ;
23443 wxPen *arg2 = (wxPen *) 0 ;
23444 void *argp1 = 0 ;
23445 int res1 = 0 ;
23446 void *argp2 = 0 ;
23447 int res2 = 0 ;
23448 PyObject * obj0 = 0 ;
23449 PyObject * obj1 = 0 ;
23450 char * kwnames[] = {
23451 (char *) "self",(char *) "pen", NULL
23452 };
23453
23454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23456 if (!SWIG_IsOK(res1)) {
23457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23458 }
23459 arg1 = reinterpret_cast< wxPenList * >(argp1);
23460 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23461 if (!SWIG_IsOK(res2)) {
23462 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23463 }
23464 arg2 = reinterpret_cast< wxPen * >(argp2);
23465 {
23466 PyThreadState* __tstate = wxPyBeginAllowThreads();
23467 (arg1)->AddPen(arg2);
23468 wxPyEndAllowThreads(__tstate);
23469 if (PyErr_Occurred()) SWIG_fail;
23470 }
23471 resultobj = SWIG_Py_Void();
23472 return resultobj;
23473 fail:
23474 return NULL;
23475 }
23476
23477
23478 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23479 PyObject *resultobj = 0;
23480 wxPenList *arg1 = (wxPenList *) 0 ;
23481 wxPen *arg2 = (wxPen *) 0 ;
23482 void *argp1 = 0 ;
23483 int res1 = 0 ;
23484 void *argp2 = 0 ;
23485 int res2 = 0 ;
23486 PyObject * obj0 = 0 ;
23487 PyObject * obj1 = 0 ;
23488 char * kwnames[] = {
23489 (char *) "self",(char *) "pen", NULL
23490 };
23491
23492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23494 if (!SWIG_IsOK(res1)) {
23495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23496 }
23497 arg1 = reinterpret_cast< wxPenList * >(argp1);
23498 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23499 if (!SWIG_IsOK(res2)) {
23500 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23501 }
23502 arg2 = reinterpret_cast< wxPen * >(argp2);
23503 {
23504 PyThreadState* __tstate = wxPyBeginAllowThreads();
23505 (arg1)->RemovePen(arg2);
23506 wxPyEndAllowThreads(__tstate);
23507 if (PyErr_Occurred()) SWIG_fail;
23508 }
23509 resultobj = SWIG_Py_Void();
23510 return resultobj;
23511 fail:
23512 return NULL;
23513 }
23514
23515
23516 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23517 PyObject *obj;
23518 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23519 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23520 return SWIG_Py_Void();
23521 }
23522
23523 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23524 PyObject *resultobj = 0;
23525 wxBrushList *arg1 = (wxBrushList *) 0 ;
23526 wxColour *arg2 = 0 ;
23527 int arg3 = (int) wxSOLID ;
23528 wxBrush *result = 0 ;
23529 void *argp1 = 0 ;
23530 int res1 = 0 ;
23531 wxColour temp2 ;
23532 int val3 ;
23533 int ecode3 = 0 ;
23534 PyObject * obj0 = 0 ;
23535 PyObject * obj1 = 0 ;
23536 PyObject * obj2 = 0 ;
23537 char * kwnames[] = {
23538 (char *) "self",(char *) "colour",(char *) "style", NULL
23539 };
23540
23541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23543 if (!SWIG_IsOK(res1)) {
23544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23545 }
23546 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23547 {
23548 arg2 = &temp2;
23549 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23550 }
23551 if (obj2) {
23552 ecode3 = SWIG_AsVal_int(obj2, &val3);
23553 if (!SWIG_IsOK(ecode3)) {
23554 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23555 }
23556 arg3 = static_cast< int >(val3);
23557 }
23558 {
23559 PyThreadState* __tstate = wxPyBeginAllowThreads();
23560 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23561 wxPyEndAllowThreads(__tstate);
23562 if (PyErr_Occurred()) SWIG_fail;
23563 }
23564 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23565 return resultobj;
23566 fail:
23567 return NULL;
23568 }
23569
23570
23571 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23572 PyObject *resultobj = 0;
23573 wxBrushList *arg1 = (wxBrushList *) 0 ;
23574 wxBrush *arg2 = (wxBrush *) 0 ;
23575 void *argp1 = 0 ;
23576 int res1 = 0 ;
23577 void *argp2 = 0 ;
23578 int res2 = 0 ;
23579 PyObject * obj0 = 0 ;
23580 PyObject * obj1 = 0 ;
23581 char * kwnames[] = {
23582 (char *) "self",(char *) "brush", NULL
23583 };
23584
23585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23587 if (!SWIG_IsOK(res1)) {
23588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23589 }
23590 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23591 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23592 if (!SWIG_IsOK(res2)) {
23593 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23594 }
23595 arg2 = reinterpret_cast< wxBrush * >(argp2);
23596 {
23597 PyThreadState* __tstate = wxPyBeginAllowThreads();
23598 (arg1)->AddBrush(arg2);
23599 wxPyEndAllowThreads(__tstate);
23600 if (PyErr_Occurred()) SWIG_fail;
23601 }
23602 resultobj = SWIG_Py_Void();
23603 return resultobj;
23604 fail:
23605 return NULL;
23606 }
23607
23608
23609 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23610 PyObject *resultobj = 0;
23611 wxBrushList *arg1 = (wxBrushList *) 0 ;
23612 wxBrush *arg2 = (wxBrush *) 0 ;
23613 void *argp1 = 0 ;
23614 int res1 = 0 ;
23615 void *argp2 = 0 ;
23616 int res2 = 0 ;
23617 PyObject * obj0 = 0 ;
23618 PyObject * obj1 = 0 ;
23619 char * kwnames[] = {
23620 (char *) "self",(char *) "brush", NULL
23621 };
23622
23623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23624 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23625 if (!SWIG_IsOK(res1)) {
23626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23627 }
23628 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23629 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23630 if (!SWIG_IsOK(res2)) {
23631 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23632 }
23633 arg2 = reinterpret_cast< wxBrush * >(argp2);
23634 {
23635 PyThreadState* __tstate = wxPyBeginAllowThreads();
23636 (arg1)->RemoveBrush(arg2);
23637 wxPyEndAllowThreads(__tstate);
23638 if (PyErr_Occurred()) SWIG_fail;
23639 }
23640 resultobj = SWIG_Py_Void();
23641 return resultobj;
23642 fail:
23643 return NULL;
23644 }
23645
23646
23647 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23648 PyObject *obj;
23649 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23650 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23651 return SWIG_Py_Void();
23652 }
23653
23654 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23655 PyObject *resultobj = 0;
23656 wxFontList *arg1 = (wxFontList *) 0 ;
23657 int arg2 ;
23658 int arg3 ;
23659 int arg4 ;
23660 int arg5 ;
23661 bool arg6 = (bool) false ;
23662 wxString const &arg7_defvalue = wxPyEmptyString ;
23663 wxString *arg7 = (wxString *) &arg7_defvalue ;
23664 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23665 wxFont *result = 0 ;
23666 void *argp1 = 0 ;
23667 int res1 = 0 ;
23668 int val2 ;
23669 int ecode2 = 0 ;
23670 int val3 ;
23671 int ecode3 = 0 ;
23672 int val4 ;
23673 int ecode4 = 0 ;
23674 int val5 ;
23675 int ecode5 = 0 ;
23676 bool val6 ;
23677 int ecode6 = 0 ;
23678 bool temp7 = false ;
23679 int val8 ;
23680 int ecode8 = 0 ;
23681 PyObject * obj0 = 0 ;
23682 PyObject * obj1 = 0 ;
23683 PyObject * obj2 = 0 ;
23684 PyObject * obj3 = 0 ;
23685 PyObject * obj4 = 0 ;
23686 PyObject * obj5 = 0 ;
23687 PyObject * obj6 = 0 ;
23688 PyObject * obj7 = 0 ;
23689 char * kwnames[] = {
23690 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23691 };
23692
23693 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23694 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23695 if (!SWIG_IsOK(res1)) {
23696 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23697 }
23698 arg1 = reinterpret_cast< wxFontList * >(argp1);
23699 ecode2 = SWIG_AsVal_int(obj1, &val2);
23700 if (!SWIG_IsOK(ecode2)) {
23701 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23702 }
23703 arg2 = static_cast< int >(val2);
23704 ecode3 = SWIG_AsVal_int(obj2, &val3);
23705 if (!SWIG_IsOK(ecode3)) {
23706 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23707 }
23708 arg3 = static_cast< int >(val3);
23709 ecode4 = SWIG_AsVal_int(obj3, &val4);
23710 if (!SWIG_IsOK(ecode4)) {
23711 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23712 }
23713 arg4 = static_cast< int >(val4);
23714 ecode5 = SWIG_AsVal_int(obj4, &val5);
23715 if (!SWIG_IsOK(ecode5)) {
23716 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23717 }
23718 arg5 = static_cast< int >(val5);
23719 if (obj5) {
23720 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23721 if (!SWIG_IsOK(ecode6)) {
23722 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23723 }
23724 arg6 = static_cast< bool >(val6);
23725 }
23726 if (obj6) {
23727 {
23728 arg7 = wxString_in_helper(obj6);
23729 if (arg7 == NULL) SWIG_fail;
23730 temp7 = true;
23731 }
23732 }
23733 if (obj7) {
23734 ecode8 = SWIG_AsVal_int(obj7, &val8);
23735 if (!SWIG_IsOK(ecode8)) {
23736 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23737 }
23738 arg8 = static_cast< wxFontEncoding >(val8);
23739 }
23740 {
23741 PyThreadState* __tstate = wxPyBeginAllowThreads();
23742 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23743 wxPyEndAllowThreads(__tstate);
23744 if (PyErr_Occurred()) SWIG_fail;
23745 }
23746 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23747 {
23748 if (temp7)
23749 delete arg7;
23750 }
23751 return resultobj;
23752 fail:
23753 {
23754 if (temp7)
23755 delete arg7;
23756 }
23757 return NULL;
23758 }
23759
23760
23761 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23762 PyObject *resultobj = 0;
23763 wxFontList *arg1 = (wxFontList *) 0 ;
23764 wxFont *arg2 = (wxFont *) 0 ;
23765 void *argp1 = 0 ;
23766 int res1 = 0 ;
23767 void *argp2 = 0 ;
23768 int res2 = 0 ;
23769 PyObject * obj0 = 0 ;
23770 PyObject * obj1 = 0 ;
23771 char * kwnames[] = {
23772 (char *) "self",(char *) "font", NULL
23773 };
23774
23775 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23776 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23777 if (!SWIG_IsOK(res1)) {
23778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23779 }
23780 arg1 = reinterpret_cast< wxFontList * >(argp1);
23781 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23782 if (!SWIG_IsOK(res2)) {
23783 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23784 }
23785 arg2 = reinterpret_cast< wxFont * >(argp2);
23786 {
23787 PyThreadState* __tstate = wxPyBeginAllowThreads();
23788 (arg1)->AddFont(arg2);
23789 wxPyEndAllowThreads(__tstate);
23790 if (PyErr_Occurred()) SWIG_fail;
23791 }
23792 resultobj = SWIG_Py_Void();
23793 return resultobj;
23794 fail:
23795 return NULL;
23796 }
23797
23798
23799 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23800 PyObject *resultobj = 0;
23801 wxFontList *arg1 = (wxFontList *) 0 ;
23802 wxFont *arg2 = (wxFont *) 0 ;
23803 void *argp1 = 0 ;
23804 int res1 = 0 ;
23805 void *argp2 = 0 ;
23806 int res2 = 0 ;
23807 PyObject * obj0 = 0 ;
23808 PyObject * obj1 = 0 ;
23809 char * kwnames[] = {
23810 (char *) "self",(char *) "font", NULL
23811 };
23812
23813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23814 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23815 if (!SWIG_IsOK(res1)) {
23816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23817 }
23818 arg1 = reinterpret_cast< wxFontList * >(argp1);
23819 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23820 if (!SWIG_IsOK(res2)) {
23821 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23822 }
23823 arg2 = reinterpret_cast< wxFont * >(argp2);
23824 {
23825 PyThreadState* __tstate = wxPyBeginAllowThreads();
23826 (arg1)->RemoveFont(arg2);
23827 wxPyEndAllowThreads(__tstate);
23828 if (PyErr_Occurred()) SWIG_fail;
23829 }
23830 resultobj = SWIG_Py_Void();
23831 return resultobj;
23832 fail:
23833 return NULL;
23834 }
23835
23836
23837 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23838 PyObject *obj;
23839 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23840 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23841 return SWIG_Py_Void();
23842 }
23843
23844 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23845 PyObject *resultobj = 0;
23846 wxColourDatabase *result = 0 ;
23847
23848 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23849 {
23850 if (!wxPyCheckForApp()) SWIG_fail;
23851 PyThreadState* __tstate = wxPyBeginAllowThreads();
23852 result = (wxColourDatabase *)new wxColourDatabase();
23853 wxPyEndAllowThreads(__tstate);
23854 if (PyErr_Occurred()) SWIG_fail;
23855 }
23856 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23857 return resultobj;
23858 fail:
23859 return NULL;
23860 }
23861
23862
23863 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23864 PyObject *resultobj = 0;
23865 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23866 void *argp1 = 0 ;
23867 int res1 = 0 ;
23868 PyObject *swig_obj[1] ;
23869
23870 if (!args) SWIG_fail;
23871 swig_obj[0] = args;
23872 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23873 if (!SWIG_IsOK(res1)) {
23874 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23875 }
23876 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23877 {
23878 PyThreadState* __tstate = wxPyBeginAllowThreads();
23879 delete arg1;
23880
23881 wxPyEndAllowThreads(__tstate);
23882 if (PyErr_Occurred()) SWIG_fail;
23883 }
23884 resultobj = SWIG_Py_Void();
23885 return resultobj;
23886 fail:
23887 return NULL;
23888 }
23889
23890
23891 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23892 PyObject *resultobj = 0;
23893 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23894 wxString *arg2 = 0 ;
23895 wxColour result;
23896 void *argp1 = 0 ;
23897 int res1 = 0 ;
23898 bool temp2 = false ;
23899 PyObject * obj0 = 0 ;
23900 PyObject * obj1 = 0 ;
23901 char * kwnames[] = {
23902 (char *) "self",(char *) "name", NULL
23903 };
23904
23905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23907 if (!SWIG_IsOK(res1)) {
23908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23909 }
23910 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23911 {
23912 arg2 = wxString_in_helper(obj1);
23913 if (arg2 == NULL) SWIG_fail;
23914 temp2 = true;
23915 }
23916 {
23917 PyThreadState* __tstate = wxPyBeginAllowThreads();
23918 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23919 wxPyEndAllowThreads(__tstate);
23920 if (PyErr_Occurred()) SWIG_fail;
23921 }
23922 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23923 {
23924 if (temp2)
23925 delete arg2;
23926 }
23927 return resultobj;
23928 fail:
23929 {
23930 if (temp2)
23931 delete arg2;
23932 }
23933 return NULL;
23934 }
23935
23936
23937 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23938 PyObject *resultobj = 0;
23939 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23940 wxColour *arg2 = 0 ;
23941 wxString result;
23942 void *argp1 = 0 ;
23943 int res1 = 0 ;
23944 wxColour temp2 ;
23945 PyObject * obj0 = 0 ;
23946 PyObject * obj1 = 0 ;
23947 char * kwnames[] = {
23948 (char *) "self",(char *) "colour", NULL
23949 };
23950
23951 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23952 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23953 if (!SWIG_IsOK(res1)) {
23954 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23955 }
23956 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23957 {
23958 arg2 = &temp2;
23959 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23960 }
23961 {
23962 PyThreadState* __tstate = wxPyBeginAllowThreads();
23963 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23964 wxPyEndAllowThreads(__tstate);
23965 if (PyErr_Occurred()) SWIG_fail;
23966 }
23967 {
23968 #if wxUSE_UNICODE
23969 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23970 #else
23971 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23972 #endif
23973 }
23974 return resultobj;
23975 fail:
23976 return NULL;
23977 }
23978
23979
23980 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23981 PyObject *resultobj = 0;
23982 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23983 wxString *arg2 = 0 ;
23984 wxColour *arg3 = 0 ;
23985 void *argp1 = 0 ;
23986 int res1 = 0 ;
23987 bool temp2 = false ;
23988 wxColour temp3 ;
23989 PyObject * obj0 = 0 ;
23990 PyObject * obj1 = 0 ;
23991 PyObject * obj2 = 0 ;
23992 char * kwnames[] = {
23993 (char *) "self",(char *) "name",(char *) "colour", NULL
23994 };
23995
23996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23998 if (!SWIG_IsOK(res1)) {
23999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24000 }
24001 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24002 {
24003 arg2 = wxString_in_helper(obj1);
24004 if (arg2 == NULL) SWIG_fail;
24005 temp2 = true;
24006 }
24007 {
24008 arg3 = &temp3;
24009 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24010 }
24011 {
24012 PyThreadState* __tstate = wxPyBeginAllowThreads();
24013 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
24014 wxPyEndAllowThreads(__tstate);
24015 if (PyErr_Occurred()) SWIG_fail;
24016 }
24017 resultobj = SWIG_Py_Void();
24018 {
24019 if (temp2)
24020 delete arg2;
24021 }
24022 return resultobj;
24023 fail:
24024 {
24025 if (temp2)
24026 delete arg2;
24027 }
24028 return NULL;
24029 }
24030
24031
24032 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24033 PyObject *resultobj = 0;
24034 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
24035 wxString *arg2 = 0 ;
24036 int arg3 ;
24037 int arg4 ;
24038 int arg5 ;
24039 void *argp1 = 0 ;
24040 int res1 = 0 ;
24041 bool temp2 = false ;
24042 int val3 ;
24043 int ecode3 = 0 ;
24044 int val4 ;
24045 int ecode4 = 0 ;
24046 int val5 ;
24047 int ecode5 = 0 ;
24048 PyObject * obj0 = 0 ;
24049 PyObject * obj1 = 0 ;
24050 PyObject * obj2 = 0 ;
24051 PyObject * obj3 = 0 ;
24052 PyObject * obj4 = 0 ;
24053 char * kwnames[] = {
24054 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
24055 };
24056
24057 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24058 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24059 if (!SWIG_IsOK(res1)) {
24060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24061 }
24062 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24063 {
24064 arg2 = wxString_in_helper(obj1);
24065 if (arg2 == NULL) SWIG_fail;
24066 temp2 = true;
24067 }
24068 ecode3 = SWIG_AsVal_int(obj2, &val3);
24069 if (!SWIG_IsOK(ecode3)) {
24070 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
24071 }
24072 arg3 = static_cast< int >(val3);
24073 ecode4 = SWIG_AsVal_int(obj3, &val4);
24074 if (!SWIG_IsOK(ecode4)) {
24075 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
24076 }
24077 arg4 = static_cast< int >(val4);
24078 ecode5 = SWIG_AsVal_int(obj4, &val5);
24079 if (!SWIG_IsOK(ecode5)) {
24080 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
24081 }
24082 arg5 = static_cast< int >(val5);
24083 {
24084 PyThreadState* __tstate = wxPyBeginAllowThreads();
24085 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
24086 wxPyEndAllowThreads(__tstate);
24087 if (PyErr_Occurred()) SWIG_fail;
24088 }
24089 resultobj = SWIG_Py_Void();
24090 {
24091 if (temp2)
24092 delete arg2;
24093 }
24094 return resultobj;
24095 fail:
24096 {
24097 if (temp2)
24098 delete arg2;
24099 }
24100 return NULL;
24101 }
24102
24103
24104 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24105 PyObject *obj;
24106 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24107 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24108 return SWIG_Py_Void();
24109 }
24110
24111 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24112 return SWIG_Python_InitShadowInstance(args);
24113 }
24114
24115 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24116 PyObject *resultobj = 0;
24117 wxFontList *result = 0 ;
24118
24119 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24120 {
24121 PyThreadState* __tstate = wxPyBeginAllowThreads();
24122 result = (wxFontList *)_wxPyInitTheFontList();
24123 wxPyEndAllowThreads(__tstate);
24124 if (PyErr_Occurred()) SWIG_fail;
24125 }
24126 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24127 return resultobj;
24128 fail:
24129 return NULL;
24130 }
24131
24132
24133 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24134 PyObject *resultobj = 0;
24135 wxPenList *result = 0 ;
24136
24137 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24138 {
24139 PyThreadState* __tstate = wxPyBeginAllowThreads();
24140 result = (wxPenList *)_wxPyInitThePenList();
24141 wxPyEndAllowThreads(__tstate);
24142 if (PyErr_Occurred()) SWIG_fail;
24143 }
24144 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24145 return resultobj;
24146 fail:
24147 return NULL;
24148 }
24149
24150
24151 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24152 PyObject *resultobj = 0;
24153 wxBrushList *result = 0 ;
24154
24155 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24156 {
24157 PyThreadState* __tstate = wxPyBeginAllowThreads();
24158 result = (wxBrushList *)_wxPyInitTheBrushList();
24159 wxPyEndAllowThreads(__tstate);
24160 if (PyErr_Occurred()) SWIG_fail;
24161 }
24162 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24163 return resultobj;
24164 fail:
24165 return NULL;
24166 }
24167
24168
24169 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24170 PyObject *resultobj = 0;
24171 wxColourDatabase *result = 0 ;
24172
24173 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24174 {
24175 PyThreadState* __tstate = wxPyBeginAllowThreads();
24176 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24177 wxPyEndAllowThreads(__tstate);
24178 if (PyErr_Occurred()) SWIG_fail;
24179 }
24180 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24181 return resultobj;
24182 fail:
24183 return NULL;
24184 }
24185
24186
24187 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24188 PyObject *resultobj = 0;
24189 wxEffects *result = 0 ;
24190
24191 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24192 {
24193 PyThreadState* __tstate = wxPyBeginAllowThreads();
24194 result = (wxEffects *)new wxEffects();
24195 wxPyEndAllowThreads(__tstate);
24196 if (PyErr_Occurred()) SWIG_fail;
24197 }
24198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24199 return resultobj;
24200 fail:
24201 return NULL;
24202 }
24203
24204
24205 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24206 PyObject *resultobj = 0;
24207 wxEffects *arg1 = (wxEffects *) 0 ;
24208 wxColour result;
24209 void *argp1 = 0 ;
24210 int res1 = 0 ;
24211 PyObject *swig_obj[1] ;
24212
24213 if (!args) SWIG_fail;
24214 swig_obj[0] = args;
24215 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24216 if (!SWIG_IsOK(res1)) {
24217 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24218 }
24219 arg1 = reinterpret_cast< wxEffects * >(argp1);
24220 {
24221 PyThreadState* __tstate = wxPyBeginAllowThreads();
24222 result = ((wxEffects const *)arg1)->GetHighlightColour();
24223 wxPyEndAllowThreads(__tstate);
24224 if (PyErr_Occurred()) SWIG_fail;
24225 }
24226 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24227 return resultobj;
24228 fail:
24229 return NULL;
24230 }
24231
24232
24233 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24234 PyObject *resultobj = 0;
24235 wxEffects *arg1 = (wxEffects *) 0 ;
24236 wxColour result;
24237 void *argp1 = 0 ;
24238 int res1 = 0 ;
24239 PyObject *swig_obj[1] ;
24240
24241 if (!args) SWIG_fail;
24242 swig_obj[0] = args;
24243 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24244 if (!SWIG_IsOK(res1)) {
24245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24246 }
24247 arg1 = reinterpret_cast< wxEffects * >(argp1);
24248 {
24249 PyThreadState* __tstate = wxPyBeginAllowThreads();
24250 result = ((wxEffects const *)arg1)->GetLightShadow();
24251 wxPyEndAllowThreads(__tstate);
24252 if (PyErr_Occurred()) SWIG_fail;
24253 }
24254 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24255 return resultobj;
24256 fail:
24257 return NULL;
24258 }
24259
24260
24261 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24262 PyObject *resultobj = 0;
24263 wxEffects *arg1 = (wxEffects *) 0 ;
24264 wxColour result;
24265 void *argp1 = 0 ;
24266 int res1 = 0 ;
24267 PyObject *swig_obj[1] ;
24268
24269 if (!args) SWIG_fail;
24270 swig_obj[0] = args;
24271 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24272 if (!SWIG_IsOK(res1)) {
24273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24274 }
24275 arg1 = reinterpret_cast< wxEffects * >(argp1);
24276 {
24277 PyThreadState* __tstate = wxPyBeginAllowThreads();
24278 result = ((wxEffects const *)arg1)->GetFaceColour();
24279 wxPyEndAllowThreads(__tstate);
24280 if (PyErr_Occurred()) SWIG_fail;
24281 }
24282 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24283 return resultobj;
24284 fail:
24285 return NULL;
24286 }
24287
24288
24289 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24290 PyObject *resultobj = 0;
24291 wxEffects *arg1 = (wxEffects *) 0 ;
24292 wxColour result;
24293 void *argp1 = 0 ;
24294 int res1 = 0 ;
24295 PyObject *swig_obj[1] ;
24296
24297 if (!args) SWIG_fail;
24298 swig_obj[0] = args;
24299 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24300 if (!SWIG_IsOK(res1)) {
24301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24302 }
24303 arg1 = reinterpret_cast< wxEffects * >(argp1);
24304 {
24305 PyThreadState* __tstate = wxPyBeginAllowThreads();
24306 result = ((wxEffects const *)arg1)->GetMediumShadow();
24307 wxPyEndAllowThreads(__tstate);
24308 if (PyErr_Occurred()) SWIG_fail;
24309 }
24310 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24311 return resultobj;
24312 fail:
24313 return NULL;
24314 }
24315
24316
24317 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24318 PyObject *resultobj = 0;
24319 wxEffects *arg1 = (wxEffects *) 0 ;
24320 wxColour result;
24321 void *argp1 = 0 ;
24322 int res1 = 0 ;
24323 PyObject *swig_obj[1] ;
24324
24325 if (!args) SWIG_fail;
24326 swig_obj[0] = args;
24327 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24328 if (!SWIG_IsOK(res1)) {
24329 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24330 }
24331 arg1 = reinterpret_cast< wxEffects * >(argp1);
24332 {
24333 PyThreadState* __tstate = wxPyBeginAllowThreads();
24334 result = ((wxEffects const *)arg1)->GetDarkShadow();
24335 wxPyEndAllowThreads(__tstate);
24336 if (PyErr_Occurred()) SWIG_fail;
24337 }
24338 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24339 return resultobj;
24340 fail:
24341 return NULL;
24342 }
24343
24344
24345 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24346 PyObject *resultobj = 0;
24347 wxEffects *arg1 = (wxEffects *) 0 ;
24348 wxColour *arg2 = 0 ;
24349 void *argp1 = 0 ;
24350 int res1 = 0 ;
24351 wxColour temp2 ;
24352 PyObject * obj0 = 0 ;
24353 PyObject * obj1 = 0 ;
24354 char * kwnames[] = {
24355 (char *) "self",(char *) "c", NULL
24356 };
24357
24358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24360 if (!SWIG_IsOK(res1)) {
24361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24362 }
24363 arg1 = reinterpret_cast< wxEffects * >(argp1);
24364 {
24365 arg2 = &temp2;
24366 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24367 }
24368 {
24369 PyThreadState* __tstate = wxPyBeginAllowThreads();
24370 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24371 wxPyEndAllowThreads(__tstate);
24372 if (PyErr_Occurred()) SWIG_fail;
24373 }
24374 resultobj = SWIG_Py_Void();
24375 return resultobj;
24376 fail:
24377 return NULL;
24378 }
24379
24380
24381 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24382 PyObject *resultobj = 0;
24383 wxEffects *arg1 = (wxEffects *) 0 ;
24384 wxColour *arg2 = 0 ;
24385 void *argp1 = 0 ;
24386 int res1 = 0 ;
24387 wxColour temp2 ;
24388 PyObject * obj0 = 0 ;
24389 PyObject * obj1 = 0 ;
24390 char * kwnames[] = {
24391 (char *) "self",(char *) "c", NULL
24392 };
24393
24394 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24395 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24396 if (!SWIG_IsOK(res1)) {
24397 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24398 }
24399 arg1 = reinterpret_cast< wxEffects * >(argp1);
24400 {
24401 arg2 = &temp2;
24402 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24403 }
24404 {
24405 PyThreadState* __tstate = wxPyBeginAllowThreads();
24406 (arg1)->SetLightShadow((wxColour const &)*arg2);
24407 wxPyEndAllowThreads(__tstate);
24408 if (PyErr_Occurred()) SWIG_fail;
24409 }
24410 resultobj = SWIG_Py_Void();
24411 return resultobj;
24412 fail:
24413 return NULL;
24414 }
24415
24416
24417 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24418 PyObject *resultobj = 0;
24419 wxEffects *arg1 = (wxEffects *) 0 ;
24420 wxColour *arg2 = 0 ;
24421 void *argp1 = 0 ;
24422 int res1 = 0 ;
24423 wxColour temp2 ;
24424 PyObject * obj0 = 0 ;
24425 PyObject * obj1 = 0 ;
24426 char * kwnames[] = {
24427 (char *) "self",(char *) "c", NULL
24428 };
24429
24430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24432 if (!SWIG_IsOK(res1)) {
24433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24434 }
24435 arg1 = reinterpret_cast< wxEffects * >(argp1);
24436 {
24437 arg2 = &temp2;
24438 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24439 }
24440 {
24441 PyThreadState* __tstate = wxPyBeginAllowThreads();
24442 (arg1)->SetFaceColour((wxColour const &)*arg2);
24443 wxPyEndAllowThreads(__tstate);
24444 if (PyErr_Occurred()) SWIG_fail;
24445 }
24446 resultobj = SWIG_Py_Void();
24447 return resultobj;
24448 fail:
24449 return NULL;
24450 }
24451
24452
24453 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24454 PyObject *resultobj = 0;
24455 wxEffects *arg1 = (wxEffects *) 0 ;
24456 wxColour *arg2 = 0 ;
24457 void *argp1 = 0 ;
24458 int res1 = 0 ;
24459 wxColour temp2 ;
24460 PyObject * obj0 = 0 ;
24461 PyObject * obj1 = 0 ;
24462 char * kwnames[] = {
24463 (char *) "self",(char *) "c", NULL
24464 };
24465
24466 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24467 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24468 if (!SWIG_IsOK(res1)) {
24469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24470 }
24471 arg1 = reinterpret_cast< wxEffects * >(argp1);
24472 {
24473 arg2 = &temp2;
24474 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24475 }
24476 {
24477 PyThreadState* __tstate = wxPyBeginAllowThreads();
24478 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24479 wxPyEndAllowThreads(__tstate);
24480 if (PyErr_Occurred()) SWIG_fail;
24481 }
24482 resultobj = SWIG_Py_Void();
24483 return resultobj;
24484 fail:
24485 return NULL;
24486 }
24487
24488
24489 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24490 PyObject *resultobj = 0;
24491 wxEffects *arg1 = (wxEffects *) 0 ;
24492 wxColour *arg2 = 0 ;
24493 void *argp1 = 0 ;
24494 int res1 = 0 ;
24495 wxColour temp2 ;
24496 PyObject * obj0 = 0 ;
24497 PyObject * obj1 = 0 ;
24498 char * kwnames[] = {
24499 (char *) "self",(char *) "c", NULL
24500 };
24501
24502 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24504 if (!SWIG_IsOK(res1)) {
24505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24506 }
24507 arg1 = reinterpret_cast< wxEffects * >(argp1);
24508 {
24509 arg2 = &temp2;
24510 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24511 }
24512 {
24513 PyThreadState* __tstate = wxPyBeginAllowThreads();
24514 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24515 wxPyEndAllowThreads(__tstate);
24516 if (PyErr_Occurred()) SWIG_fail;
24517 }
24518 resultobj = SWIG_Py_Void();
24519 return resultobj;
24520 fail:
24521 return NULL;
24522 }
24523
24524
24525 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24526 PyObject *resultobj = 0;
24527 wxEffects *arg1 = (wxEffects *) 0 ;
24528 wxColour *arg2 = 0 ;
24529 wxColour *arg3 = 0 ;
24530 wxColour *arg4 = 0 ;
24531 wxColour *arg5 = 0 ;
24532 wxColour *arg6 = 0 ;
24533 void *argp1 = 0 ;
24534 int res1 = 0 ;
24535 wxColour temp2 ;
24536 wxColour temp3 ;
24537 wxColour temp4 ;
24538 wxColour temp5 ;
24539 wxColour temp6 ;
24540 PyObject * obj0 = 0 ;
24541 PyObject * obj1 = 0 ;
24542 PyObject * obj2 = 0 ;
24543 PyObject * obj3 = 0 ;
24544 PyObject * obj4 = 0 ;
24545 PyObject * obj5 = 0 ;
24546 char * kwnames[] = {
24547 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24548 };
24549
24550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24552 if (!SWIG_IsOK(res1)) {
24553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24554 }
24555 arg1 = reinterpret_cast< wxEffects * >(argp1);
24556 {
24557 arg2 = &temp2;
24558 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24559 }
24560 {
24561 arg3 = &temp3;
24562 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24563 }
24564 {
24565 arg4 = &temp4;
24566 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24567 }
24568 {
24569 arg5 = &temp5;
24570 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24571 }
24572 {
24573 arg6 = &temp6;
24574 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24575 }
24576 {
24577 PyThreadState* __tstate = wxPyBeginAllowThreads();
24578 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24579 wxPyEndAllowThreads(__tstate);
24580 if (PyErr_Occurred()) SWIG_fail;
24581 }
24582 resultobj = SWIG_Py_Void();
24583 return resultobj;
24584 fail:
24585 return NULL;
24586 }
24587
24588
24589 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24590 PyObject *resultobj = 0;
24591 wxEffects *arg1 = (wxEffects *) 0 ;
24592 wxDC *arg2 = 0 ;
24593 wxRect *arg3 = 0 ;
24594 int arg4 = (int) 1 ;
24595 void *argp1 = 0 ;
24596 int res1 = 0 ;
24597 void *argp2 = 0 ;
24598 int res2 = 0 ;
24599 wxRect temp3 ;
24600 int val4 ;
24601 int ecode4 = 0 ;
24602 PyObject * obj0 = 0 ;
24603 PyObject * obj1 = 0 ;
24604 PyObject * obj2 = 0 ;
24605 PyObject * obj3 = 0 ;
24606 char * kwnames[] = {
24607 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24608 };
24609
24610 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24611 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24612 if (!SWIG_IsOK(res1)) {
24613 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24614 }
24615 arg1 = reinterpret_cast< wxEffects * >(argp1);
24616 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24617 if (!SWIG_IsOK(res2)) {
24618 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24619 }
24620 if (!argp2) {
24621 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24622 }
24623 arg2 = reinterpret_cast< wxDC * >(argp2);
24624 {
24625 arg3 = &temp3;
24626 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24627 }
24628 if (obj3) {
24629 ecode4 = SWIG_AsVal_int(obj3, &val4);
24630 if (!SWIG_IsOK(ecode4)) {
24631 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24632 }
24633 arg4 = static_cast< int >(val4);
24634 }
24635 {
24636 PyThreadState* __tstate = wxPyBeginAllowThreads();
24637 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24638 wxPyEndAllowThreads(__tstate);
24639 if (PyErr_Occurred()) SWIG_fail;
24640 }
24641 resultobj = SWIG_Py_Void();
24642 return resultobj;
24643 fail:
24644 return NULL;
24645 }
24646
24647
24648 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24649 PyObject *resultobj = 0;
24650 wxEffects *arg1 = (wxEffects *) 0 ;
24651 wxRect *arg2 = 0 ;
24652 wxDC *arg3 = 0 ;
24653 wxBitmap *arg4 = 0 ;
24654 bool result;
24655 void *argp1 = 0 ;
24656 int res1 = 0 ;
24657 wxRect temp2 ;
24658 void *argp3 = 0 ;
24659 int res3 = 0 ;
24660 void *argp4 = 0 ;
24661 int res4 = 0 ;
24662 PyObject * obj0 = 0 ;
24663 PyObject * obj1 = 0 ;
24664 PyObject * obj2 = 0 ;
24665 PyObject * obj3 = 0 ;
24666 char * kwnames[] = {
24667 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24668 };
24669
24670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24672 if (!SWIG_IsOK(res1)) {
24673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24674 }
24675 arg1 = reinterpret_cast< wxEffects * >(argp1);
24676 {
24677 arg2 = &temp2;
24678 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24679 }
24680 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24681 if (!SWIG_IsOK(res3)) {
24682 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24683 }
24684 if (!argp3) {
24685 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24686 }
24687 arg3 = reinterpret_cast< wxDC * >(argp3);
24688 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24689 if (!SWIG_IsOK(res4)) {
24690 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24691 }
24692 if (!argp4) {
24693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24694 }
24695 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24696 {
24697 PyThreadState* __tstate = wxPyBeginAllowThreads();
24698 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24699 wxPyEndAllowThreads(__tstate);
24700 if (PyErr_Occurred()) SWIG_fail;
24701 }
24702 {
24703 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24704 }
24705 return resultobj;
24706 fail:
24707 return NULL;
24708 }
24709
24710
24711 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24712 PyObject *obj;
24713 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24714 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24715 return SWIG_Py_Void();
24716 }
24717
24718 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24719 return SWIG_Python_InitShadowInstance(args);
24720 }
24721
24722 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24723 PyObject *resultobj = 0;
24724 int arg1 ;
24725 int arg2 ;
24726 bool arg3 ;
24727 wxSplitterRenderParams *result = 0 ;
24728 int val1 ;
24729 int ecode1 = 0 ;
24730 int val2 ;
24731 int ecode2 = 0 ;
24732 bool val3 ;
24733 int ecode3 = 0 ;
24734 PyObject * obj0 = 0 ;
24735 PyObject * obj1 = 0 ;
24736 PyObject * obj2 = 0 ;
24737 char * kwnames[] = {
24738 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24739 };
24740
24741 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24742 ecode1 = SWIG_AsVal_int(obj0, &val1);
24743 if (!SWIG_IsOK(ecode1)) {
24744 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24745 }
24746 arg1 = static_cast< int >(val1);
24747 ecode2 = SWIG_AsVal_int(obj1, &val2);
24748 if (!SWIG_IsOK(ecode2)) {
24749 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24750 }
24751 arg2 = static_cast< int >(val2);
24752 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24753 if (!SWIG_IsOK(ecode3)) {
24754 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24755 }
24756 arg3 = static_cast< bool >(val3);
24757 {
24758 PyThreadState* __tstate = wxPyBeginAllowThreads();
24759 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24760 wxPyEndAllowThreads(__tstate);
24761 if (PyErr_Occurred()) SWIG_fail;
24762 }
24763 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24764 return resultobj;
24765 fail:
24766 return NULL;
24767 }
24768
24769
24770 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24771 PyObject *resultobj = 0;
24772 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24773 void *argp1 = 0 ;
24774 int res1 = 0 ;
24775 PyObject *swig_obj[1] ;
24776
24777 if (!args) SWIG_fail;
24778 swig_obj[0] = args;
24779 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24780 if (!SWIG_IsOK(res1)) {
24781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24782 }
24783 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24784 {
24785 PyThreadState* __tstate = wxPyBeginAllowThreads();
24786 delete arg1;
24787
24788 wxPyEndAllowThreads(__tstate);
24789 if (PyErr_Occurred()) SWIG_fail;
24790 }
24791 resultobj = SWIG_Py_Void();
24792 return resultobj;
24793 fail:
24794 return NULL;
24795 }
24796
24797
24798 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24799 PyObject *resultobj = 0;
24800 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24801 int result;
24802 void *argp1 = 0 ;
24803 int res1 = 0 ;
24804 PyObject *swig_obj[1] ;
24805
24806 if (!args) SWIG_fail;
24807 swig_obj[0] = args;
24808 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24809 if (!SWIG_IsOK(res1)) {
24810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24811 }
24812 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24813 result = (int)(int) ((arg1)->widthSash);
24814 resultobj = SWIG_From_int(static_cast< int >(result));
24815 return resultobj;
24816 fail:
24817 return NULL;
24818 }
24819
24820
24821 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24822 PyObject *resultobj = 0;
24823 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24824 int result;
24825 void *argp1 = 0 ;
24826 int res1 = 0 ;
24827 PyObject *swig_obj[1] ;
24828
24829 if (!args) SWIG_fail;
24830 swig_obj[0] = args;
24831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24832 if (!SWIG_IsOK(res1)) {
24833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24834 }
24835 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24836 result = (int)(int) ((arg1)->border);
24837 resultobj = SWIG_From_int(static_cast< int >(result));
24838 return resultobj;
24839 fail:
24840 return NULL;
24841 }
24842
24843
24844 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24845 PyObject *resultobj = 0;
24846 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24847 bool result;
24848 void *argp1 = 0 ;
24849 int res1 = 0 ;
24850 PyObject *swig_obj[1] ;
24851
24852 if (!args) SWIG_fail;
24853 swig_obj[0] = args;
24854 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24855 if (!SWIG_IsOK(res1)) {
24856 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24857 }
24858 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24859 result = (bool)(bool) ((arg1)->isHotSensitive);
24860 resultobj = SWIG_From_bool(static_cast< bool >(result));
24861 return resultobj;
24862 fail:
24863 return NULL;
24864 }
24865
24866
24867 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24868 PyObject *obj;
24869 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24870 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24871 return SWIG_Py_Void();
24872 }
24873
24874 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24875 return SWIG_Python_InitShadowInstance(args);
24876 }
24877
24878 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24879 PyObject *resultobj = 0;
24880 int arg1 ;
24881 int arg2 ;
24882 wxRendererVersion *result = 0 ;
24883 int val1 ;
24884 int ecode1 = 0 ;
24885 int val2 ;
24886 int ecode2 = 0 ;
24887 PyObject * obj0 = 0 ;
24888 PyObject * obj1 = 0 ;
24889 char * kwnames[] = {
24890 (char *) "version_",(char *) "age_", NULL
24891 };
24892
24893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24894 ecode1 = SWIG_AsVal_int(obj0, &val1);
24895 if (!SWIG_IsOK(ecode1)) {
24896 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24897 }
24898 arg1 = static_cast< int >(val1);
24899 ecode2 = SWIG_AsVal_int(obj1, &val2);
24900 if (!SWIG_IsOK(ecode2)) {
24901 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24902 }
24903 arg2 = static_cast< int >(val2);
24904 {
24905 PyThreadState* __tstate = wxPyBeginAllowThreads();
24906 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24907 wxPyEndAllowThreads(__tstate);
24908 if (PyErr_Occurred()) SWIG_fail;
24909 }
24910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24911 return resultobj;
24912 fail:
24913 return NULL;
24914 }
24915
24916
24917 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24918 PyObject *resultobj = 0;
24919 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24920 void *argp1 = 0 ;
24921 int res1 = 0 ;
24922 PyObject *swig_obj[1] ;
24923
24924 if (!args) SWIG_fail;
24925 swig_obj[0] = args;
24926 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24927 if (!SWIG_IsOK(res1)) {
24928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24929 }
24930 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24931 {
24932 PyThreadState* __tstate = wxPyBeginAllowThreads();
24933 delete arg1;
24934
24935 wxPyEndAllowThreads(__tstate);
24936 if (PyErr_Occurred()) SWIG_fail;
24937 }
24938 resultobj = SWIG_Py_Void();
24939 return resultobj;
24940 fail:
24941 return NULL;
24942 }
24943
24944
24945 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24946 PyObject *resultobj = 0;
24947 wxRendererVersion *arg1 = 0 ;
24948 bool result;
24949 void *argp1 = 0 ;
24950 int res1 = 0 ;
24951 PyObject * obj0 = 0 ;
24952 char * kwnames[] = {
24953 (char *) "ver", NULL
24954 };
24955
24956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24957 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24958 if (!SWIG_IsOK(res1)) {
24959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24960 }
24961 if (!argp1) {
24962 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24963 }
24964 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24965 {
24966 PyThreadState* __tstate = wxPyBeginAllowThreads();
24967 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24968 wxPyEndAllowThreads(__tstate);
24969 if (PyErr_Occurred()) SWIG_fail;
24970 }
24971 {
24972 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24973 }
24974 return resultobj;
24975 fail:
24976 return NULL;
24977 }
24978
24979
24980 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24981 PyObject *resultobj = 0;
24982 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24983 int result;
24984 void *argp1 = 0 ;
24985 int res1 = 0 ;
24986 PyObject *swig_obj[1] ;
24987
24988 if (!args) SWIG_fail;
24989 swig_obj[0] = args;
24990 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24991 if (!SWIG_IsOK(res1)) {
24992 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24993 }
24994 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24995 result = (int)(int) ((arg1)->version);
24996 resultobj = SWIG_From_int(static_cast< int >(result));
24997 return resultobj;
24998 fail:
24999 return NULL;
25000 }
25001
25002
25003 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25004 PyObject *resultobj = 0;
25005 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
25006 int result;
25007 void *argp1 = 0 ;
25008 int res1 = 0 ;
25009 PyObject *swig_obj[1] ;
25010
25011 if (!args) SWIG_fail;
25012 swig_obj[0] = args;
25013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
25014 if (!SWIG_IsOK(res1)) {
25015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
25016 }
25017 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
25018 result = (int)(int) ((arg1)->age);
25019 resultobj = SWIG_From_int(static_cast< int >(result));
25020 return resultobj;
25021 fail:
25022 return NULL;
25023 }
25024
25025
25026 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25027 PyObject *obj;
25028 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25029 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
25030 return SWIG_Py_Void();
25031 }
25032
25033 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25034 return SWIG_Python_InitShadowInstance(args);
25035 }
25036
25037 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25038 PyObject *resultobj = 0;
25039 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25040 wxWindow *arg2 = (wxWindow *) 0 ;
25041 wxDC *arg3 = 0 ;
25042 wxRect *arg4 = 0 ;
25043 int arg5 = (int) 0 ;
25044 void *argp1 = 0 ;
25045 int res1 = 0 ;
25046 void *argp2 = 0 ;
25047 int res2 = 0 ;
25048 void *argp3 = 0 ;
25049 int res3 = 0 ;
25050 wxRect temp4 ;
25051 int val5 ;
25052 int ecode5 = 0 ;
25053 PyObject * obj0 = 0 ;
25054 PyObject * obj1 = 0 ;
25055 PyObject * obj2 = 0 ;
25056 PyObject * obj3 = 0 ;
25057 PyObject * obj4 = 0 ;
25058 char * kwnames[] = {
25059 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25060 };
25061
25062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25064 if (!SWIG_IsOK(res1)) {
25065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25066 }
25067 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25068 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25069 if (!SWIG_IsOK(res2)) {
25070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25071 }
25072 arg2 = reinterpret_cast< wxWindow * >(argp2);
25073 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25074 if (!SWIG_IsOK(res3)) {
25075 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25076 }
25077 if (!argp3) {
25078 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25079 }
25080 arg3 = reinterpret_cast< wxDC * >(argp3);
25081 {
25082 arg4 = &temp4;
25083 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25084 }
25085 if (obj4) {
25086 ecode5 = SWIG_AsVal_int(obj4, &val5);
25087 if (!SWIG_IsOK(ecode5)) {
25088 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25089 }
25090 arg5 = static_cast< int >(val5);
25091 }
25092 {
25093 PyThreadState* __tstate = wxPyBeginAllowThreads();
25094 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25095 wxPyEndAllowThreads(__tstate);
25096 if (PyErr_Occurred()) SWIG_fail;
25097 }
25098 resultobj = SWIG_Py_Void();
25099 return resultobj;
25100 fail:
25101 return NULL;
25102 }
25103
25104
25105 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25106 PyObject *resultobj = 0;
25107 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25108 wxWindow *arg2 = (wxWindow *) 0 ;
25109 wxDC *arg3 = 0 ;
25110 wxRect *arg4 = 0 ;
25111 int arg5 = (int) 0 ;
25112 void *argp1 = 0 ;
25113 int res1 = 0 ;
25114 void *argp2 = 0 ;
25115 int res2 = 0 ;
25116 void *argp3 = 0 ;
25117 int res3 = 0 ;
25118 wxRect temp4 ;
25119 int val5 ;
25120 int ecode5 = 0 ;
25121 PyObject * obj0 = 0 ;
25122 PyObject * obj1 = 0 ;
25123 PyObject * obj2 = 0 ;
25124 PyObject * obj3 = 0 ;
25125 PyObject * obj4 = 0 ;
25126 char * kwnames[] = {
25127 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25128 };
25129
25130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25131 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25132 if (!SWIG_IsOK(res1)) {
25133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25134 }
25135 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25136 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25137 if (!SWIG_IsOK(res2)) {
25138 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25139 }
25140 arg2 = reinterpret_cast< wxWindow * >(argp2);
25141 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25142 if (!SWIG_IsOK(res3)) {
25143 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25144 }
25145 if (!argp3) {
25146 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25147 }
25148 arg3 = reinterpret_cast< wxDC * >(argp3);
25149 {
25150 arg4 = &temp4;
25151 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25152 }
25153 if (obj4) {
25154 ecode5 = SWIG_AsVal_int(obj4, &val5);
25155 if (!SWIG_IsOK(ecode5)) {
25156 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25157 }
25158 arg5 = static_cast< int >(val5);
25159 }
25160 {
25161 PyThreadState* __tstate = wxPyBeginAllowThreads();
25162 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25163 wxPyEndAllowThreads(__tstate);
25164 if (PyErr_Occurred()) SWIG_fail;
25165 }
25166 resultobj = SWIG_Py_Void();
25167 return resultobj;
25168 fail:
25169 return NULL;
25170 }
25171
25172
25173 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25174 PyObject *resultobj = 0;
25175 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25176 wxWindow *arg2 = (wxWindow *) 0 ;
25177 wxDC *arg3 = 0 ;
25178 wxRect *arg4 = 0 ;
25179 int arg5 = (int) 0 ;
25180 void *argp1 = 0 ;
25181 int res1 = 0 ;
25182 void *argp2 = 0 ;
25183 int res2 = 0 ;
25184 void *argp3 = 0 ;
25185 int res3 = 0 ;
25186 wxRect temp4 ;
25187 int val5 ;
25188 int ecode5 = 0 ;
25189 PyObject * obj0 = 0 ;
25190 PyObject * obj1 = 0 ;
25191 PyObject * obj2 = 0 ;
25192 PyObject * obj3 = 0 ;
25193 PyObject * obj4 = 0 ;
25194 char * kwnames[] = {
25195 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25196 };
25197
25198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25199 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25200 if (!SWIG_IsOK(res1)) {
25201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25202 }
25203 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25204 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25205 if (!SWIG_IsOK(res2)) {
25206 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25207 }
25208 arg2 = reinterpret_cast< wxWindow * >(argp2);
25209 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25210 if (!SWIG_IsOK(res3)) {
25211 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25212 }
25213 if (!argp3) {
25214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25215 }
25216 arg3 = reinterpret_cast< wxDC * >(argp3);
25217 {
25218 arg4 = &temp4;
25219 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25220 }
25221 if (obj4) {
25222 ecode5 = SWIG_AsVal_int(obj4, &val5);
25223 if (!SWIG_IsOK(ecode5)) {
25224 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25225 }
25226 arg5 = static_cast< int >(val5);
25227 }
25228 {
25229 PyThreadState* __tstate = wxPyBeginAllowThreads();
25230 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25231 wxPyEndAllowThreads(__tstate);
25232 if (PyErr_Occurred()) SWIG_fail;
25233 }
25234 resultobj = SWIG_Py_Void();
25235 return resultobj;
25236 fail:
25237 return NULL;
25238 }
25239
25240
25241 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25242 PyObject *resultobj = 0;
25243 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25244 wxWindow *arg2 = (wxWindow *) 0 ;
25245 wxDC *arg3 = 0 ;
25246 wxSize *arg4 = 0 ;
25247 int arg5 ;
25248 wxOrientation arg6 ;
25249 int arg7 = (int) 0 ;
25250 void *argp1 = 0 ;
25251 int res1 = 0 ;
25252 void *argp2 = 0 ;
25253 int res2 = 0 ;
25254 void *argp3 = 0 ;
25255 int res3 = 0 ;
25256 wxSize temp4 ;
25257 int val5 ;
25258 int ecode5 = 0 ;
25259 int val6 ;
25260 int ecode6 = 0 ;
25261 int val7 ;
25262 int ecode7 = 0 ;
25263 PyObject * obj0 = 0 ;
25264 PyObject * obj1 = 0 ;
25265 PyObject * obj2 = 0 ;
25266 PyObject * obj3 = 0 ;
25267 PyObject * obj4 = 0 ;
25268 PyObject * obj5 = 0 ;
25269 PyObject * obj6 = 0 ;
25270 char * kwnames[] = {
25271 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25272 };
25273
25274 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25275 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25276 if (!SWIG_IsOK(res1)) {
25277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25278 }
25279 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25280 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25281 if (!SWIG_IsOK(res2)) {
25282 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25283 }
25284 arg2 = reinterpret_cast< wxWindow * >(argp2);
25285 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25286 if (!SWIG_IsOK(res3)) {
25287 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25288 }
25289 if (!argp3) {
25290 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25291 }
25292 arg3 = reinterpret_cast< wxDC * >(argp3);
25293 {
25294 arg4 = &temp4;
25295 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25296 }
25297 ecode5 = SWIG_AsVal_int(obj4, &val5);
25298 if (!SWIG_IsOK(ecode5)) {
25299 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25300 }
25301 arg5 = static_cast< int >(val5);
25302 ecode6 = SWIG_AsVal_int(obj5, &val6);
25303 if (!SWIG_IsOK(ecode6)) {
25304 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25305 }
25306 arg6 = static_cast< wxOrientation >(val6);
25307 if (obj6) {
25308 ecode7 = SWIG_AsVal_int(obj6, &val7);
25309 if (!SWIG_IsOK(ecode7)) {
25310 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25311 }
25312 arg7 = static_cast< int >(val7);
25313 }
25314 {
25315 PyThreadState* __tstate = wxPyBeginAllowThreads();
25316 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25317 wxPyEndAllowThreads(__tstate);
25318 if (PyErr_Occurred()) SWIG_fail;
25319 }
25320 resultobj = SWIG_Py_Void();
25321 return resultobj;
25322 fail:
25323 return NULL;
25324 }
25325
25326
25327 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25328 PyObject *resultobj = 0;
25329 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25330 wxWindow *arg2 = (wxWindow *) 0 ;
25331 wxDC *arg3 = 0 ;
25332 wxRect *arg4 = 0 ;
25333 int arg5 = (int) 0 ;
25334 void *argp1 = 0 ;
25335 int res1 = 0 ;
25336 void *argp2 = 0 ;
25337 int res2 = 0 ;
25338 void *argp3 = 0 ;
25339 int res3 = 0 ;
25340 wxRect temp4 ;
25341 int val5 ;
25342 int ecode5 = 0 ;
25343 PyObject * obj0 = 0 ;
25344 PyObject * obj1 = 0 ;
25345 PyObject * obj2 = 0 ;
25346 PyObject * obj3 = 0 ;
25347 PyObject * obj4 = 0 ;
25348 char * kwnames[] = {
25349 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25350 };
25351
25352 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25353 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25354 if (!SWIG_IsOK(res1)) {
25355 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25356 }
25357 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25358 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25359 if (!SWIG_IsOK(res2)) {
25360 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25361 }
25362 arg2 = reinterpret_cast< wxWindow * >(argp2);
25363 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25364 if (!SWIG_IsOK(res3)) {
25365 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25366 }
25367 if (!argp3) {
25368 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25369 }
25370 arg3 = reinterpret_cast< wxDC * >(argp3);
25371 {
25372 arg4 = &temp4;
25373 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25374 }
25375 if (obj4) {
25376 ecode5 = SWIG_AsVal_int(obj4, &val5);
25377 if (!SWIG_IsOK(ecode5)) {
25378 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25379 }
25380 arg5 = static_cast< int >(val5);
25381 }
25382 {
25383 PyThreadState* __tstate = wxPyBeginAllowThreads();
25384 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25385 wxPyEndAllowThreads(__tstate);
25386 if (PyErr_Occurred()) SWIG_fail;
25387 }
25388 resultobj = SWIG_Py_Void();
25389 return resultobj;
25390 fail:
25391 return NULL;
25392 }
25393
25394
25395 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25396 PyObject *resultobj = 0;
25397 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25398 wxWindow *arg2 = (wxWindow *) 0 ;
25399 wxDC *arg3 = 0 ;
25400 wxRect *arg4 = 0 ;
25401 int arg5 = (int) 0 ;
25402 void *argp1 = 0 ;
25403 int res1 = 0 ;
25404 void *argp2 = 0 ;
25405 int res2 = 0 ;
25406 void *argp3 = 0 ;
25407 int res3 = 0 ;
25408 wxRect temp4 ;
25409 int val5 ;
25410 int ecode5 = 0 ;
25411 PyObject * obj0 = 0 ;
25412 PyObject * obj1 = 0 ;
25413 PyObject * obj2 = 0 ;
25414 PyObject * obj3 = 0 ;
25415 PyObject * obj4 = 0 ;
25416 char * kwnames[] = {
25417 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25418 };
25419
25420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25422 if (!SWIG_IsOK(res1)) {
25423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25424 }
25425 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25426 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25427 if (!SWIG_IsOK(res2)) {
25428 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25429 }
25430 arg2 = reinterpret_cast< wxWindow * >(argp2);
25431 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25432 if (!SWIG_IsOK(res3)) {
25433 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25434 }
25435 if (!argp3) {
25436 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25437 }
25438 arg3 = reinterpret_cast< wxDC * >(argp3);
25439 {
25440 arg4 = &temp4;
25441 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25442 }
25443 if (obj4) {
25444 ecode5 = SWIG_AsVal_int(obj4, &val5);
25445 if (!SWIG_IsOK(ecode5)) {
25446 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25447 }
25448 arg5 = static_cast< int >(val5);
25449 }
25450 {
25451 PyThreadState* __tstate = wxPyBeginAllowThreads();
25452 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25453 wxPyEndAllowThreads(__tstate);
25454 if (PyErr_Occurred()) SWIG_fail;
25455 }
25456 resultobj = SWIG_Py_Void();
25457 return resultobj;
25458 fail:
25459 return NULL;
25460 }
25461
25462
25463 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25464 PyObject *resultobj = 0;
25465 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25466 wxWindow *arg2 = (wxWindow *) 0 ;
25467 wxDC *arg3 = 0 ;
25468 wxRect *arg4 = 0 ;
25469 int arg5 = (int) 0 ;
25470 void *argp1 = 0 ;
25471 int res1 = 0 ;
25472 void *argp2 = 0 ;
25473 int res2 = 0 ;
25474 void *argp3 = 0 ;
25475 int res3 = 0 ;
25476 wxRect temp4 ;
25477 int val5 ;
25478 int ecode5 = 0 ;
25479 PyObject * obj0 = 0 ;
25480 PyObject * obj1 = 0 ;
25481 PyObject * obj2 = 0 ;
25482 PyObject * obj3 = 0 ;
25483 PyObject * obj4 = 0 ;
25484 char * kwnames[] = {
25485 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25486 };
25487
25488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25490 if (!SWIG_IsOK(res1)) {
25491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25492 }
25493 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25494 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25495 if (!SWIG_IsOK(res2)) {
25496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25497 }
25498 arg2 = reinterpret_cast< wxWindow * >(argp2);
25499 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25500 if (!SWIG_IsOK(res3)) {
25501 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25502 }
25503 if (!argp3) {
25504 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25505 }
25506 arg3 = reinterpret_cast< wxDC * >(argp3);
25507 {
25508 arg4 = &temp4;
25509 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25510 }
25511 if (obj4) {
25512 ecode5 = SWIG_AsVal_int(obj4, &val5);
25513 if (!SWIG_IsOK(ecode5)) {
25514 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25515 }
25516 arg5 = static_cast< int >(val5);
25517 }
25518 {
25519 PyThreadState* __tstate = wxPyBeginAllowThreads();
25520 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25521 wxPyEndAllowThreads(__tstate);
25522 if (PyErr_Occurred()) SWIG_fail;
25523 }
25524 resultobj = SWIG_Py_Void();
25525 return resultobj;
25526 fail:
25527 return NULL;
25528 }
25529
25530
25531 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25532 PyObject *resultobj = 0;
25533 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25534 wxWindow *arg2 = (wxWindow *) 0 ;
25535 wxDC *arg3 = 0 ;
25536 wxRect *arg4 = 0 ;
25537 int arg5 = (int) 0 ;
25538 void *argp1 = 0 ;
25539 int res1 = 0 ;
25540 void *argp2 = 0 ;
25541 int res2 = 0 ;
25542 void *argp3 = 0 ;
25543 int res3 = 0 ;
25544 wxRect temp4 ;
25545 int val5 ;
25546 int ecode5 = 0 ;
25547 PyObject * obj0 = 0 ;
25548 PyObject * obj1 = 0 ;
25549 PyObject * obj2 = 0 ;
25550 PyObject * obj3 = 0 ;
25551 PyObject * obj4 = 0 ;
25552 char * kwnames[] = {
25553 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25554 };
25555
25556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25558 if (!SWIG_IsOK(res1)) {
25559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25560 }
25561 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25562 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25563 if (!SWIG_IsOK(res2)) {
25564 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25565 }
25566 arg2 = reinterpret_cast< wxWindow * >(argp2);
25567 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25568 if (!SWIG_IsOK(res3)) {
25569 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25570 }
25571 if (!argp3) {
25572 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25573 }
25574 arg3 = reinterpret_cast< wxDC * >(argp3);
25575 {
25576 arg4 = &temp4;
25577 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25578 }
25579 if (obj4) {
25580 ecode5 = SWIG_AsVal_int(obj4, &val5);
25581 if (!SWIG_IsOK(ecode5)) {
25582 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25583 }
25584 arg5 = static_cast< int >(val5);
25585 }
25586 {
25587 PyThreadState* __tstate = wxPyBeginAllowThreads();
25588 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25589 wxPyEndAllowThreads(__tstate);
25590 if (PyErr_Occurred()) SWIG_fail;
25591 }
25592 resultobj = SWIG_Py_Void();
25593 return resultobj;
25594 fail:
25595 return NULL;
25596 }
25597
25598
25599 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25600 PyObject *resultobj = 0;
25601 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25602 wxWindow *arg2 = (wxWindow *) 0 ;
25603 wxDC *arg3 = 0 ;
25604 wxRect *arg4 = 0 ;
25605 int arg5 = (int) 0 ;
25606 void *argp1 = 0 ;
25607 int res1 = 0 ;
25608 void *argp2 = 0 ;
25609 int res2 = 0 ;
25610 void *argp3 = 0 ;
25611 int res3 = 0 ;
25612 wxRect temp4 ;
25613 int val5 ;
25614 int ecode5 = 0 ;
25615 PyObject * obj0 = 0 ;
25616 PyObject * obj1 = 0 ;
25617 PyObject * obj2 = 0 ;
25618 PyObject * obj3 = 0 ;
25619 PyObject * obj4 = 0 ;
25620 char * kwnames[] = {
25621 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25622 };
25623
25624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25626 if (!SWIG_IsOK(res1)) {
25627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25628 }
25629 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25630 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25631 if (!SWIG_IsOK(res2)) {
25632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
25633 }
25634 arg2 = reinterpret_cast< wxWindow * >(argp2);
25635 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25636 if (!SWIG_IsOK(res3)) {
25637 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25638 }
25639 if (!argp3) {
25640 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25641 }
25642 arg3 = reinterpret_cast< wxDC * >(argp3);
25643 {
25644 arg4 = &temp4;
25645 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25646 }
25647 if (obj4) {
25648 ecode5 = SWIG_AsVal_int(obj4, &val5);
25649 if (!SWIG_IsOK(ecode5)) {
25650 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
25651 }
25652 arg5 = static_cast< int >(val5);
25653 }
25654 {
25655 PyThreadState* __tstate = wxPyBeginAllowThreads();
25656 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
25657 wxPyEndAllowThreads(__tstate);
25658 if (PyErr_Occurred()) SWIG_fail;
25659 }
25660 resultobj = SWIG_Py_Void();
25661 return resultobj;
25662 fail:
25663 return NULL;
25664 }
25665
25666
25667 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25668 PyObject *resultobj = 0;
25669 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25670 wxWindow *arg2 = (wxWindow *) 0 ;
25671 SwigValueWrapper<wxSplitterRenderParams > result;
25672 void *argp1 = 0 ;
25673 int res1 = 0 ;
25674 void *argp2 = 0 ;
25675 int res2 = 0 ;
25676 PyObject * obj0 = 0 ;
25677 PyObject * obj1 = 0 ;
25678 char * kwnames[] = {
25679 (char *) "self",(char *) "win", NULL
25680 };
25681
25682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25683 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25684 if (!SWIG_IsOK(res1)) {
25685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25686 }
25687 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25688 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25689 if (!SWIG_IsOK(res2)) {
25690 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25691 }
25692 arg2 = reinterpret_cast< wxWindow * >(argp2);
25693 {
25694 PyThreadState* __tstate = wxPyBeginAllowThreads();
25695 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25696 wxPyEndAllowThreads(__tstate);
25697 if (PyErr_Occurred()) SWIG_fail;
25698 }
25699 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25700 return resultobj;
25701 fail:
25702 return NULL;
25703 }
25704
25705
25706 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25707 PyObject *resultobj = 0;
25708 wxRendererNative *result = 0 ;
25709
25710 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25711 {
25712 if (!wxPyCheckForApp()) SWIG_fail;
25713 PyThreadState* __tstate = wxPyBeginAllowThreads();
25714 {
25715 wxRendererNative &_result_ref = wxRendererNative::Get();
25716 result = (wxRendererNative *) &_result_ref;
25717 }
25718 wxPyEndAllowThreads(__tstate);
25719 if (PyErr_Occurred()) SWIG_fail;
25720 }
25721 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25722 return resultobj;
25723 fail:
25724 return NULL;
25725 }
25726
25727
25728 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25729 PyObject *resultobj = 0;
25730 wxRendererNative *result = 0 ;
25731
25732 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25733 {
25734 if (!wxPyCheckForApp()) SWIG_fail;
25735 PyThreadState* __tstate = wxPyBeginAllowThreads();
25736 {
25737 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25738 result = (wxRendererNative *) &_result_ref;
25739 }
25740 wxPyEndAllowThreads(__tstate);
25741 if (PyErr_Occurred()) SWIG_fail;
25742 }
25743 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25744 return resultobj;
25745 fail:
25746 return NULL;
25747 }
25748
25749
25750 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25751 PyObject *resultobj = 0;
25752 wxRendererNative *result = 0 ;
25753
25754 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25755 {
25756 if (!wxPyCheckForApp()) SWIG_fail;
25757 PyThreadState* __tstate = wxPyBeginAllowThreads();
25758 {
25759 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25760 result = (wxRendererNative *) &_result_ref;
25761 }
25762 wxPyEndAllowThreads(__tstate);
25763 if (PyErr_Occurred()) SWIG_fail;
25764 }
25765 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25766 return resultobj;
25767 fail:
25768 return NULL;
25769 }
25770
25771
25772 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25773 PyObject *resultobj = 0;
25774 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25775 wxRendererNative *result = 0 ;
25776 void *argp1 = 0 ;
25777 int res1 = 0 ;
25778 PyObject * obj0 = 0 ;
25779 char * kwnames[] = {
25780 (char *) "renderer", NULL
25781 };
25782
25783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25784 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25785 if (!SWIG_IsOK(res1)) {
25786 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25787 }
25788 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25789 {
25790 if (!wxPyCheckForApp()) SWIG_fail;
25791 PyThreadState* __tstate = wxPyBeginAllowThreads();
25792 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25793 wxPyEndAllowThreads(__tstate);
25794 if (PyErr_Occurred()) SWIG_fail;
25795 }
25796 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25797 return resultobj;
25798 fail:
25799 return NULL;
25800 }
25801
25802
25803 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25804 PyObject *resultobj = 0;
25805 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25806 SwigValueWrapper<wxRendererVersion > result;
25807 void *argp1 = 0 ;
25808 int res1 = 0 ;
25809 PyObject *swig_obj[1] ;
25810
25811 if (!args) SWIG_fail;
25812 swig_obj[0] = args;
25813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25814 if (!SWIG_IsOK(res1)) {
25815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25816 }
25817 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25818 {
25819 PyThreadState* __tstate = wxPyBeginAllowThreads();
25820 result = ((wxRendererNative const *)arg1)->GetVersion();
25821 wxPyEndAllowThreads(__tstate);
25822 if (PyErr_Occurred()) SWIG_fail;
25823 }
25824 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25825 return resultobj;
25826 fail:
25827 return NULL;
25828 }
25829
25830
25831 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25832 PyObject *obj;
25833 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25834 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25835 return SWIG_Py_Void();
25836 }
25837
25838 SWIGINTERN PyObject *_wrap_new_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25839 PyObject *resultobj = 0;
25840 wxPseudoDC *result = 0 ;
25841
25842 if (!SWIG_Python_UnpackTuple(args,"new_PseudoDC",0,0,0)) SWIG_fail;
25843 {
25844 PyThreadState* __tstate = wxPyBeginAllowThreads();
25845 result = (wxPseudoDC *)new wxPseudoDC();
25846 wxPyEndAllowThreads(__tstate);
25847 if (PyErr_Occurred()) SWIG_fail;
25848 }
25849 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_NEW | 0 );
25850 return resultobj;
25851 fail:
25852 return NULL;
25853 }
25854
25855
25856 SWIGINTERN PyObject *_wrap_PseudoDC_BeginDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25857 PyObject *resultobj = 0;
25858 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25859 void *argp1 = 0 ;
25860 int res1 = 0 ;
25861 PyObject *swig_obj[1] ;
25862
25863 if (!args) SWIG_fail;
25864 swig_obj[0] = args;
25865 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25866 if (!SWIG_IsOK(res1)) {
25867 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_BeginDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25868 }
25869 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25870 {
25871 PyThreadState* __tstate = wxPyBeginAllowThreads();
25872 (arg1)->BeginDrawing();
25873 wxPyEndAllowThreads(__tstate);
25874 if (PyErr_Occurred()) SWIG_fail;
25875 }
25876 resultobj = SWIG_Py_Void();
25877 return resultobj;
25878 fail:
25879 return NULL;
25880 }
25881
25882
25883 SWIGINTERN PyObject *_wrap_PseudoDC_EndDrawing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25884 PyObject *resultobj = 0;
25885 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25886 void *argp1 = 0 ;
25887 int res1 = 0 ;
25888 PyObject *swig_obj[1] ;
25889
25890 if (!args) SWIG_fail;
25891 swig_obj[0] = args;
25892 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25893 if (!SWIG_IsOK(res1)) {
25894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_EndDrawing" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25895 }
25896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25897 {
25898 PyThreadState* __tstate = wxPyBeginAllowThreads();
25899 (arg1)->EndDrawing();
25900 wxPyEndAllowThreads(__tstate);
25901 if (PyErr_Occurred()) SWIG_fail;
25902 }
25903 resultobj = SWIG_Py_Void();
25904 return resultobj;
25905 fail:
25906 return NULL;
25907 }
25908
25909
25910 SWIGINTERN PyObject *_wrap_delete_PseudoDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25911 PyObject *resultobj = 0;
25912 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25913 void *argp1 = 0 ;
25914 int res1 = 0 ;
25915 PyObject *swig_obj[1] ;
25916
25917 if (!args) SWIG_fail;
25918 swig_obj[0] = args;
25919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, SWIG_POINTER_DISOWN | 0 );
25920 if (!SWIG_IsOK(res1)) {
25921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PseudoDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25922 }
25923 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25924 {
25925 PyThreadState* __tstate = wxPyBeginAllowThreads();
25926 delete arg1;
25927
25928 wxPyEndAllowThreads(__tstate);
25929 if (PyErr_Occurred()) SWIG_fail;
25930 }
25931 resultobj = SWIG_Py_Void();
25932 return resultobj;
25933 fail:
25934 return NULL;
25935 }
25936
25937
25938 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25939 PyObject *resultobj = 0;
25940 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25941 void *argp1 = 0 ;
25942 int res1 = 0 ;
25943 PyObject *swig_obj[1] ;
25944
25945 if (!args) SWIG_fail;
25946 swig_obj[0] = args;
25947 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25948 if (!SWIG_IsOK(res1)) {
25949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveAll" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25950 }
25951 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25952 {
25953 PyThreadState* __tstate = wxPyBeginAllowThreads();
25954 (arg1)->RemoveAll();
25955 wxPyEndAllowThreads(__tstate);
25956 if (PyErr_Occurred()) SWIG_fail;
25957 }
25958 resultobj = SWIG_Py_Void();
25959 return resultobj;
25960 fail:
25961 return NULL;
25962 }
25963
25964
25965 SWIGINTERN PyObject *_wrap_PseudoDC_GetLen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25966 PyObject *resultobj = 0;
25967 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25968 int result;
25969 void *argp1 = 0 ;
25970 int res1 = 0 ;
25971 PyObject *swig_obj[1] ;
25972
25973 if (!args) SWIG_fail;
25974 swig_obj[0] = args;
25975 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
25976 if (!SWIG_IsOK(res1)) {
25977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetLen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
25978 }
25979 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
25980 {
25981 PyThreadState* __tstate = wxPyBeginAllowThreads();
25982 result = (int)(arg1)->GetLen();
25983 wxPyEndAllowThreads(__tstate);
25984 if (PyErr_Occurred()) SWIG_fail;
25985 }
25986 resultobj = SWIG_From_int(static_cast< int >(result));
25987 return resultobj;
25988 fail:
25989 return NULL;
25990 }
25991
25992
25993 SWIGINTERN PyObject *_wrap_PseudoDC_SetId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25994 PyObject *resultobj = 0;
25995 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
25996 int arg2 ;
25997 void *argp1 = 0 ;
25998 int res1 = 0 ;
25999 int val2 ;
26000 int ecode2 = 0 ;
26001 PyObject * obj0 = 0 ;
26002 PyObject * obj1 = 0 ;
26003 char * kwnames[] = {
26004 (char *) "self",(char *) "id", NULL
26005 };
26006
26007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetId",kwnames,&obj0,&obj1)) SWIG_fail;
26008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26009 if (!SWIG_IsOK(res1)) {
26010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26011 }
26012 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26013 ecode2 = SWIG_AsVal_int(obj1, &val2);
26014 if (!SWIG_IsOK(ecode2)) {
26015 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetId" "', expected argument " "2"" of type '" "int""'");
26016 }
26017 arg2 = static_cast< int >(val2);
26018 {
26019 PyThreadState* __tstate = wxPyBeginAllowThreads();
26020 (arg1)->SetId(arg2);
26021 wxPyEndAllowThreads(__tstate);
26022 if (PyErr_Occurred()) SWIG_fail;
26023 }
26024 resultobj = SWIG_Py_Void();
26025 return resultobj;
26026 fail:
26027 return NULL;
26028 }
26029
26030
26031 SWIGINTERN PyObject *_wrap_PseudoDC_ClearId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26032 PyObject *resultobj = 0;
26033 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26034 int arg2 ;
26035 void *argp1 = 0 ;
26036 int res1 = 0 ;
26037 int val2 ;
26038 int ecode2 = 0 ;
26039 PyObject * obj0 = 0 ;
26040 PyObject * obj1 = 0 ;
26041 char * kwnames[] = {
26042 (char *) "self",(char *) "id", NULL
26043 };
26044
26045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_ClearId",kwnames,&obj0,&obj1)) SWIG_fail;
26046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26047 if (!SWIG_IsOK(res1)) {
26048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_ClearId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26049 }
26050 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26051 ecode2 = SWIG_AsVal_int(obj1, &val2);
26052 if (!SWIG_IsOK(ecode2)) {
26053 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_ClearId" "', expected argument " "2"" of type '" "int""'");
26054 }
26055 arg2 = static_cast< int >(val2);
26056 {
26057 PyThreadState* __tstate = wxPyBeginAllowThreads();
26058 (arg1)->ClearId(arg2);
26059 wxPyEndAllowThreads(__tstate);
26060 if (PyErr_Occurred()) SWIG_fail;
26061 }
26062 resultobj = SWIG_Py_Void();
26063 return resultobj;
26064 fail:
26065 return NULL;
26066 }
26067
26068
26069 SWIGINTERN PyObject *_wrap_PseudoDC_RemoveId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26070 PyObject *resultobj = 0;
26071 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26072 int arg2 ;
26073 void *argp1 = 0 ;
26074 int res1 = 0 ;
26075 int val2 ;
26076 int ecode2 = 0 ;
26077 PyObject * obj0 = 0 ;
26078 PyObject * obj1 = 0 ;
26079 char * kwnames[] = {
26080 (char *) "self",(char *) "id", NULL
26081 };
26082
26083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_RemoveId",kwnames,&obj0,&obj1)) SWIG_fail;
26084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26085 if (!SWIG_IsOK(res1)) {
26086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_RemoveId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26087 }
26088 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26089 ecode2 = SWIG_AsVal_int(obj1, &val2);
26090 if (!SWIG_IsOK(ecode2)) {
26091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_RemoveId" "', expected argument " "2"" of type '" "int""'");
26092 }
26093 arg2 = static_cast< int >(val2);
26094 {
26095 PyThreadState* __tstate = wxPyBeginAllowThreads();
26096 (arg1)->RemoveId(arg2);
26097 wxPyEndAllowThreads(__tstate);
26098 if (PyErr_Occurred()) SWIG_fail;
26099 }
26100 resultobj = SWIG_Py_Void();
26101 return resultobj;
26102 fail:
26103 return NULL;
26104 }
26105
26106
26107 SWIGINTERN PyObject *_wrap_PseudoDC_TranslateId(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26108 PyObject *resultobj = 0;
26109 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26110 int arg2 ;
26111 int arg3 ;
26112 int arg4 ;
26113 void *argp1 = 0 ;
26114 int res1 = 0 ;
26115 int val2 ;
26116 int ecode2 = 0 ;
26117 int val3 ;
26118 int ecode3 = 0 ;
26119 int val4 ;
26120 int ecode4 = 0 ;
26121 PyObject * obj0 = 0 ;
26122 PyObject * obj1 = 0 ;
26123 PyObject * obj2 = 0 ;
26124 PyObject * obj3 = 0 ;
26125 char * kwnames[] = {
26126 (char *) "self",(char *) "id",(char *) "dx",(char *) "dy", NULL
26127 };
26128
26129 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_TranslateId",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26130 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26131 if (!SWIG_IsOK(res1)) {
26132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_TranslateId" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26133 }
26134 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26135 ecode2 = SWIG_AsVal_int(obj1, &val2);
26136 if (!SWIG_IsOK(ecode2)) {
26137 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_TranslateId" "', expected argument " "2"" of type '" "int""'");
26138 }
26139 arg2 = static_cast< int >(val2);
26140 ecode3 = SWIG_AsVal_int(obj2, &val3);
26141 if (!SWIG_IsOK(ecode3)) {
26142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_TranslateId" "', expected argument " "3"" of type '" "int""'");
26143 }
26144 arg3 = static_cast< int >(val3);
26145 ecode4 = SWIG_AsVal_int(obj3, &val4);
26146 if (!SWIG_IsOK(ecode4)) {
26147 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_TranslateId" "', expected argument " "4"" of type '" "int""'");
26148 }
26149 arg4 = static_cast< int >(val4);
26150 {
26151 PyThreadState* __tstate = wxPyBeginAllowThreads();
26152 (arg1)->TranslateId(arg2,arg3,arg4);
26153 wxPyEndAllowThreads(__tstate);
26154 if (PyErr_Occurred()) SWIG_fail;
26155 }
26156 resultobj = SWIG_Py_Void();
26157 return resultobj;
26158 fail:
26159 return NULL;
26160 }
26161
26162
26163 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIdToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26164 PyObject *resultobj = 0;
26165 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26166 int arg2 ;
26167 wxDC *arg3 = (wxDC *) 0 ;
26168 void *argp1 = 0 ;
26169 int res1 = 0 ;
26170 int val2 ;
26171 int ecode2 = 0 ;
26172 void *argp3 = 0 ;
26173 int res3 = 0 ;
26174 PyObject * obj0 = 0 ;
26175 PyObject * obj1 = 0 ;
26176 PyObject * obj2 = 0 ;
26177 char * kwnames[] = {
26178 (char *) "self",(char *) "id",(char *) "dc", NULL
26179 };
26180
26181 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIdToDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26182 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26183 if (!SWIG_IsOK(res1)) {
26184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26185 }
26186 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26187 ecode2 = SWIG_AsVal_int(obj1, &val2);
26188 if (!SWIG_IsOK(ecode2)) {
26189 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "2"" of type '" "int""'");
26190 }
26191 arg2 = static_cast< int >(val2);
26192 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_wxDC, 0 | 0 );
26193 if (!SWIG_IsOK(res3)) {
26194 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawIdToDC" "', expected argument " "3"" of type '" "wxDC *""'");
26195 }
26196 arg3 = reinterpret_cast< wxDC * >(argp3);
26197 {
26198 PyThreadState* __tstate = wxPyBeginAllowThreads();
26199 (arg1)->DrawIdToDC(arg2,arg3);
26200 wxPyEndAllowThreads(__tstate);
26201 if (PyErr_Occurred()) SWIG_fail;
26202 }
26203 resultobj = SWIG_Py_Void();
26204 return resultobj;
26205 fail:
26206 return NULL;
26207 }
26208
26209
26210 SWIGINTERN PyObject *_wrap_PseudoDC_SetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26211 PyObject *resultobj = 0;
26212 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26213 int arg2 ;
26214 wxRect *arg3 = 0 ;
26215 void *argp1 = 0 ;
26216 int res1 = 0 ;
26217 int val2 ;
26218 int ecode2 = 0 ;
26219 wxRect temp3 ;
26220 PyObject * obj0 = 0 ;
26221 PyObject * obj1 = 0 ;
26222 PyObject * obj2 = 0 ;
26223 char * kwnames[] = {
26224 (char *) "self",(char *) "id",(char *) "rect", NULL
26225 };
26226
26227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_SetIdBounds",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26229 if (!SWIG_IsOK(res1)) {
26230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26231 }
26232 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26233 ecode2 = SWIG_AsVal_int(obj1, &val2);
26234 if (!SWIG_IsOK(ecode2)) {
26235 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetIdBounds" "', expected argument " "2"" of type '" "int""'");
26236 }
26237 arg2 = static_cast< int >(val2);
26238 {
26239 arg3 = &temp3;
26240 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26241 }
26242 {
26243 PyThreadState* __tstate = wxPyBeginAllowThreads();
26244 (arg1)->SetIdBounds(arg2,*arg3);
26245 wxPyEndAllowThreads(__tstate);
26246 if (PyErr_Occurred()) SWIG_fail;
26247 }
26248 resultobj = SWIG_Py_Void();
26249 return resultobj;
26250 fail:
26251 return NULL;
26252 }
26253
26254
26255 SWIGINTERN PyObject *_wrap_PseudoDC_GetIdBounds(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26256 PyObject *resultobj = 0;
26257 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26258 int arg2 ;
26259 wxRect result;
26260 void *argp1 = 0 ;
26261 int res1 = 0 ;
26262 int val2 ;
26263 int ecode2 = 0 ;
26264 PyObject * obj0 = 0 ;
26265 PyObject * obj1 = 0 ;
26266 char * kwnames[] = {
26267 (char *) "self",(char *) "id", NULL
26268 };
26269
26270 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_GetIdBounds",kwnames,&obj0,&obj1)) SWIG_fail;
26271 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26272 if (!SWIG_IsOK(res1)) {
26273 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26274 }
26275 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26276 ecode2 = SWIG_AsVal_int(obj1, &val2);
26277 if (!SWIG_IsOK(ecode2)) {
26278 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_GetIdBounds" "', expected argument " "2"" of type '" "int""'");
26279 }
26280 arg2 = static_cast< int >(val2);
26281 {
26282 PyThreadState* __tstate = wxPyBeginAllowThreads();
26283 result = wxPseudoDC_GetIdBounds(arg1,arg2);
26284 wxPyEndAllowThreads(__tstate);
26285 if (PyErr_Occurred()) SWIG_fail;
26286 }
26287 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
26288 return resultobj;
26289 fail:
26290 return NULL;
26291 }
26292
26293
26294 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClipped(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26295 PyObject *resultobj = 0;
26296 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26297 wxDC *arg2 = (wxDC *) 0 ;
26298 wxRect *arg3 = 0 ;
26299 void *argp1 = 0 ;
26300 int res1 = 0 ;
26301 void *argp2 = 0 ;
26302 int res2 = 0 ;
26303 wxRect temp3 ;
26304 PyObject * obj0 = 0 ;
26305 PyObject * obj1 = 0 ;
26306 PyObject * obj2 = 0 ;
26307 char * kwnames[] = {
26308 (char *) "self",(char *) "dc",(char *) "rect", NULL
26309 };
26310
26311 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClipped",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26312 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26313 if (!SWIG_IsOK(res1)) {
26314 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26315 }
26316 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26317 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26318 if (!SWIG_IsOK(res2)) {
26319 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClipped" "', expected argument " "2"" of type '" "wxDC *""'");
26320 }
26321 arg2 = reinterpret_cast< wxDC * >(argp2);
26322 {
26323 arg3 = &temp3;
26324 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
26325 }
26326 {
26327 PyThreadState* __tstate = wxPyBeginAllowThreads();
26328 (arg1)->DrawToDCClipped(arg2,(wxRect const &)*arg3);
26329 wxPyEndAllowThreads(__tstate);
26330 if (PyErr_Occurred()) SWIG_fail;
26331 }
26332 resultobj = SWIG_Py_Void();
26333 return resultobj;
26334 fail:
26335 return NULL;
26336 }
26337
26338
26339 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDCClippedRgn(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26340 PyObject *resultobj = 0;
26341 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26342 wxDC *arg2 = (wxDC *) 0 ;
26343 wxRegion *arg3 = 0 ;
26344 void *argp1 = 0 ;
26345 int res1 = 0 ;
26346 void *argp2 = 0 ;
26347 int res2 = 0 ;
26348 void *argp3 = 0 ;
26349 int res3 = 0 ;
26350 PyObject * obj0 = 0 ;
26351 PyObject * obj1 = 0 ;
26352 PyObject * obj2 = 0 ;
26353 char * kwnames[] = {
26354 (char *) "self",(char *) "dc",(char *) "region", NULL
26355 };
26356
26357 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawToDCClippedRgn",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26358 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26359 if (!SWIG_IsOK(res1)) {
26360 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26361 }
26362 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26363 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26364 if (!SWIG_IsOK(res2)) {
26365 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "2"" of type '" "wxDC *""'");
26366 }
26367 arg2 = reinterpret_cast< wxDC * >(argp2);
26368 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxRegion, 0 | 0);
26369 if (!SWIG_IsOK(res3)) {
26370 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
26371 }
26372 if (!argp3) {
26373 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawToDCClippedRgn" "', expected argument " "3"" of type '" "wxRegion const &""'");
26374 }
26375 arg3 = reinterpret_cast< wxRegion * >(argp3);
26376 {
26377 PyThreadState* __tstate = wxPyBeginAllowThreads();
26378 (arg1)->DrawToDCClippedRgn(arg2,(wxRegion const &)*arg3);
26379 wxPyEndAllowThreads(__tstate);
26380 if (PyErr_Occurred()) SWIG_fail;
26381 }
26382 resultobj = SWIG_Py_Void();
26383 return resultobj;
26384 fail:
26385 return NULL;
26386 }
26387
26388
26389 SWIGINTERN PyObject *_wrap_PseudoDC_DrawToDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26390 PyObject *resultobj = 0;
26391 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26392 wxDC *arg2 = (wxDC *) 0 ;
26393 void *argp1 = 0 ;
26394 int res1 = 0 ;
26395 void *argp2 = 0 ;
26396 int res2 = 0 ;
26397 PyObject * obj0 = 0 ;
26398 PyObject * obj1 = 0 ;
26399 char * kwnames[] = {
26400 (char *) "self",(char *) "dc", NULL
26401 };
26402
26403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawToDC",kwnames,&obj0,&obj1)) SWIG_fail;
26404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26405 if (!SWIG_IsOK(res1)) {
26406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawToDC" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26407 }
26408 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26409 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxDC, 0 | 0 );
26410 if (!SWIG_IsOK(res2)) {
26411 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawToDC" "', expected argument " "2"" of type '" "wxDC *""'");
26412 }
26413 arg2 = reinterpret_cast< wxDC * >(argp2);
26414 {
26415 PyThreadState* __tstate = wxPyBeginAllowThreads();
26416 (arg1)->DrawToDC(arg2);
26417 wxPyEndAllowThreads(__tstate);
26418 if (PyErr_Occurred()) SWIG_fail;
26419 }
26420 resultobj = SWIG_Py_Void();
26421 return resultobj;
26422 fail:
26423 return NULL;
26424 }
26425
26426
26427 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26428 PyObject *resultobj = 0;
26429 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26430 int arg2 ;
26431 int arg3 ;
26432 wxColour *arg4 = 0 ;
26433 int arg5 = (int) wxFLOOD_SURFACE ;
26434 void *argp1 = 0 ;
26435 int res1 = 0 ;
26436 int val2 ;
26437 int ecode2 = 0 ;
26438 int val3 ;
26439 int ecode3 = 0 ;
26440 wxColour temp4 ;
26441 int val5 ;
26442 int ecode5 = 0 ;
26443 PyObject * obj0 = 0 ;
26444 PyObject * obj1 = 0 ;
26445 PyObject * obj2 = 0 ;
26446 PyObject * obj3 = 0 ;
26447 PyObject * obj4 = 0 ;
26448 char * kwnames[] = {
26449 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
26450 };
26451
26452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26454 if (!SWIG_IsOK(res1)) {
26455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFill" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26456 }
26457 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26458 ecode2 = SWIG_AsVal_int(obj1, &val2);
26459 if (!SWIG_IsOK(ecode2)) {
26460 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_FloodFill" "', expected argument " "2"" of type '" "int""'");
26461 }
26462 arg2 = static_cast< int >(val2);
26463 ecode3 = SWIG_AsVal_int(obj2, &val3);
26464 if (!SWIG_IsOK(ecode3)) {
26465 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_FloodFill" "', expected argument " "3"" of type '" "int""'");
26466 }
26467 arg3 = static_cast< int >(val3);
26468 {
26469 arg4 = &temp4;
26470 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
26471 }
26472 if (obj4) {
26473 ecode5 = SWIG_AsVal_int(obj4, &val5);
26474 if (!SWIG_IsOK(ecode5)) {
26475 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_FloodFill" "', expected argument " "5"" of type '" "int""'");
26476 }
26477 arg5 = static_cast< int >(val5);
26478 }
26479 {
26480 PyThreadState* __tstate = wxPyBeginAllowThreads();
26481 (arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
26482 wxPyEndAllowThreads(__tstate);
26483 if (PyErr_Occurred()) SWIG_fail;
26484 }
26485 resultobj = SWIG_Py_Void();
26486 return resultobj;
26487 fail:
26488 return NULL;
26489 }
26490
26491
26492 SWIGINTERN PyObject *_wrap_PseudoDC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26493 PyObject *resultobj = 0;
26494 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26495 wxPoint *arg2 = 0 ;
26496 wxColour *arg3 = 0 ;
26497 int arg4 = (int) wxFLOOD_SURFACE ;
26498 void *argp1 = 0 ;
26499 int res1 = 0 ;
26500 wxPoint temp2 ;
26501 wxColour temp3 ;
26502 int val4 ;
26503 int ecode4 = 0 ;
26504 PyObject * obj0 = 0 ;
26505 PyObject * obj1 = 0 ;
26506 PyObject * obj2 = 0 ;
26507 PyObject * obj3 = 0 ;
26508 char * kwnames[] = {
26509 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
26510 };
26511
26512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26514 if (!SWIG_IsOK(res1)) {
26515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26516 }
26517 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26518 {
26519 arg2 = &temp2;
26520 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26521 }
26522 {
26523 arg3 = &temp3;
26524 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
26525 }
26526 if (obj3) {
26527 ecode4 = SWIG_AsVal_int(obj3, &val4);
26528 if (!SWIG_IsOK(ecode4)) {
26529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
26530 }
26531 arg4 = static_cast< int >(val4);
26532 }
26533 {
26534 PyThreadState* __tstate = wxPyBeginAllowThreads();
26535 (arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
26536 wxPyEndAllowThreads(__tstate);
26537 if (PyErr_Occurred()) SWIG_fail;
26538 }
26539 resultobj = SWIG_Py_Void();
26540 return resultobj;
26541 fail:
26542 return NULL;
26543 }
26544
26545
26546 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26547 PyObject *resultobj = 0;
26548 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26549 int arg2 ;
26550 int arg3 ;
26551 int arg4 ;
26552 int arg5 ;
26553 void *argp1 = 0 ;
26554 int res1 = 0 ;
26555 int val2 ;
26556 int ecode2 = 0 ;
26557 int val3 ;
26558 int ecode3 = 0 ;
26559 int val4 ;
26560 int ecode4 = 0 ;
26561 int val5 ;
26562 int ecode5 = 0 ;
26563 PyObject * obj0 = 0 ;
26564 PyObject * obj1 = 0 ;
26565 PyObject * obj2 = 0 ;
26566 PyObject * obj3 = 0 ;
26567 PyObject * obj4 = 0 ;
26568 char * kwnames[] = {
26569 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
26570 };
26571
26572 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26573 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26574 if (!SWIG_IsOK(res1)) {
26575 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLine" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26576 }
26577 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26578 ecode2 = SWIG_AsVal_int(obj1, &val2);
26579 if (!SWIG_IsOK(ecode2)) {
26580 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawLine" "', expected argument " "2"" of type '" "int""'");
26581 }
26582 arg2 = static_cast< int >(val2);
26583 ecode3 = SWIG_AsVal_int(obj2, &val3);
26584 if (!SWIG_IsOK(ecode3)) {
26585 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawLine" "', expected argument " "3"" of type '" "int""'");
26586 }
26587 arg3 = static_cast< int >(val3);
26588 ecode4 = SWIG_AsVal_int(obj3, &val4);
26589 if (!SWIG_IsOK(ecode4)) {
26590 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLine" "', expected argument " "4"" of type '" "int""'");
26591 }
26592 arg4 = static_cast< int >(val4);
26593 ecode5 = SWIG_AsVal_int(obj4, &val5);
26594 if (!SWIG_IsOK(ecode5)) {
26595 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLine" "', expected argument " "5"" of type '" "int""'");
26596 }
26597 arg5 = static_cast< int >(val5);
26598 {
26599 PyThreadState* __tstate = wxPyBeginAllowThreads();
26600 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
26601 wxPyEndAllowThreads(__tstate);
26602 if (PyErr_Occurred()) SWIG_fail;
26603 }
26604 resultobj = SWIG_Py_Void();
26605 return resultobj;
26606 fail:
26607 return NULL;
26608 }
26609
26610
26611 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26612 PyObject *resultobj = 0;
26613 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26614 wxPoint *arg2 = 0 ;
26615 wxPoint *arg3 = 0 ;
26616 void *argp1 = 0 ;
26617 int res1 = 0 ;
26618 wxPoint temp2 ;
26619 wxPoint temp3 ;
26620 PyObject * obj0 = 0 ;
26621 PyObject * obj1 = 0 ;
26622 PyObject * obj2 = 0 ;
26623 char * kwnames[] = {
26624 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
26625 };
26626
26627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26629 if (!SWIG_IsOK(res1)) {
26630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLinePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26631 }
26632 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26633 {
26634 arg2 = &temp2;
26635 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26636 }
26637 {
26638 arg3 = &temp3;
26639 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26640 }
26641 {
26642 PyThreadState* __tstate = wxPyBeginAllowThreads();
26643 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
26644 wxPyEndAllowThreads(__tstate);
26645 if (PyErr_Occurred()) SWIG_fail;
26646 }
26647 resultobj = SWIG_Py_Void();
26648 return resultobj;
26649 fail:
26650 return NULL;
26651 }
26652
26653
26654 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26655 PyObject *resultobj = 0;
26656 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26657 int arg2 ;
26658 int arg3 ;
26659 void *argp1 = 0 ;
26660 int res1 = 0 ;
26661 int val2 ;
26662 int ecode2 = 0 ;
26663 int val3 ;
26664 int ecode3 = 0 ;
26665 PyObject * obj0 = 0 ;
26666 PyObject * obj1 = 0 ;
26667 PyObject * obj2 = 0 ;
26668 char * kwnames[] = {
26669 (char *) "self",(char *) "x",(char *) "y", NULL
26670 };
26671
26672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
26673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26674 if (!SWIG_IsOK(res1)) {
26675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHair" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26676 }
26677 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26678 ecode2 = SWIG_AsVal_int(obj1, &val2);
26679 if (!SWIG_IsOK(ecode2)) {
26680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_CrossHair" "', expected argument " "2"" of type '" "int""'");
26681 }
26682 arg2 = static_cast< int >(val2);
26683 ecode3 = SWIG_AsVal_int(obj2, &val3);
26684 if (!SWIG_IsOK(ecode3)) {
26685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_CrossHair" "', expected argument " "3"" of type '" "int""'");
26686 }
26687 arg3 = static_cast< int >(val3);
26688 {
26689 PyThreadState* __tstate = wxPyBeginAllowThreads();
26690 (arg1)->CrossHair(arg2,arg3);
26691 wxPyEndAllowThreads(__tstate);
26692 if (PyErr_Occurred()) SWIG_fail;
26693 }
26694 resultobj = SWIG_Py_Void();
26695 return resultobj;
26696 fail:
26697 return NULL;
26698 }
26699
26700
26701 SWIGINTERN PyObject *_wrap_PseudoDC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26702 PyObject *resultobj = 0;
26703 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26704 wxPoint *arg2 = 0 ;
26705 void *argp1 = 0 ;
26706 int res1 = 0 ;
26707 wxPoint temp2 ;
26708 PyObject * obj0 = 0 ;
26709 PyObject * obj1 = 0 ;
26710 char * kwnames[] = {
26711 (char *) "self",(char *) "pt", NULL
26712 };
26713
26714 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
26715 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26716 if (!SWIG_IsOK(res1)) {
26717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_CrossHairPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26718 }
26719 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26720 {
26721 arg2 = &temp2;
26722 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26723 }
26724 {
26725 PyThreadState* __tstate = wxPyBeginAllowThreads();
26726 (arg1)->CrossHair((wxPoint const &)*arg2);
26727 wxPyEndAllowThreads(__tstate);
26728 if (PyErr_Occurred()) SWIG_fail;
26729 }
26730 resultobj = SWIG_Py_Void();
26731 return resultobj;
26732 fail:
26733 return NULL;
26734 }
26735
26736
26737 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26738 PyObject *resultobj = 0;
26739 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26740 int arg2 ;
26741 int arg3 ;
26742 int arg4 ;
26743 int arg5 ;
26744 int arg6 ;
26745 int arg7 ;
26746 void *argp1 = 0 ;
26747 int res1 = 0 ;
26748 int val2 ;
26749 int ecode2 = 0 ;
26750 int val3 ;
26751 int ecode3 = 0 ;
26752 int val4 ;
26753 int ecode4 = 0 ;
26754 int val5 ;
26755 int ecode5 = 0 ;
26756 int val6 ;
26757 int ecode6 = 0 ;
26758 int val7 ;
26759 int ecode7 = 0 ;
26760 PyObject * obj0 = 0 ;
26761 PyObject * obj1 = 0 ;
26762 PyObject * obj2 = 0 ;
26763 PyObject * obj3 = 0 ;
26764 PyObject * obj4 = 0 ;
26765 PyObject * obj5 = 0 ;
26766 PyObject * obj6 = 0 ;
26767 char * kwnames[] = {
26768 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
26769 };
26770
26771 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
26772 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26773 if (!SWIG_IsOK(res1)) {
26774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26775 }
26776 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26777 ecode2 = SWIG_AsVal_int(obj1, &val2);
26778 if (!SWIG_IsOK(ecode2)) {
26779 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawArc" "', expected argument " "2"" of type '" "int""'");
26780 }
26781 arg2 = static_cast< int >(val2);
26782 ecode3 = SWIG_AsVal_int(obj2, &val3);
26783 if (!SWIG_IsOK(ecode3)) {
26784 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawArc" "', expected argument " "3"" of type '" "int""'");
26785 }
26786 arg3 = static_cast< int >(val3);
26787 ecode4 = SWIG_AsVal_int(obj3, &val4);
26788 if (!SWIG_IsOK(ecode4)) {
26789 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawArc" "', expected argument " "4"" of type '" "int""'");
26790 }
26791 arg4 = static_cast< int >(val4);
26792 ecode5 = SWIG_AsVal_int(obj4, &val5);
26793 if (!SWIG_IsOK(ecode5)) {
26794 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawArc" "', expected argument " "5"" of type '" "int""'");
26795 }
26796 arg5 = static_cast< int >(val5);
26797 ecode6 = SWIG_AsVal_int(obj5, &val6);
26798 if (!SWIG_IsOK(ecode6)) {
26799 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawArc" "', expected argument " "6"" of type '" "int""'");
26800 }
26801 arg6 = static_cast< int >(val6);
26802 ecode7 = SWIG_AsVal_int(obj6, &val7);
26803 if (!SWIG_IsOK(ecode7)) {
26804 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawArc" "', expected argument " "7"" of type '" "int""'");
26805 }
26806 arg7 = static_cast< int >(val7);
26807 {
26808 PyThreadState* __tstate = wxPyBeginAllowThreads();
26809 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
26810 wxPyEndAllowThreads(__tstate);
26811 if (PyErr_Occurred()) SWIG_fail;
26812 }
26813 resultobj = SWIG_Py_Void();
26814 return resultobj;
26815 fail:
26816 return NULL;
26817 }
26818
26819
26820 SWIGINTERN PyObject *_wrap_PseudoDC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26821 PyObject *resultobj = 0;
26822 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26823 wxPoint *arg2 = 0 ;
26824 wxPoint *arg3 = 0 ;
26825 wxPoint *arg4 = 0 ;
26826 void *argp1 = 0 ;
26827 int res1 = 0 ;
26828 wxPoint temp2 ;
26829 wxPoint temp3 ;
26830 wxPoint temp4 ;
26831 PyObject * obj0 = 0 ;
26832 PyObject * obj1 = 0 ;
26833 PyObject * obj2 = 0 ;
26834 PyObject * obj3 = 0 ;
26835 char * kwnames[] = {
26836 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
26837 };
26838
26839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
26840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26841 if (!SWIG_IsOK(res1)) {
26842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawArcPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26843 }
26844 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26845 {
26846 arg2 = &temp2;
26847 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
26848 }
26849 {
26850 arg3 = &temp3;
26851 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
26852 }
26853 {
26854 arg4 = &temp4;
26855 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
26856 }
26857 {
26858 PyThreadState* __tstate = wxPyBeginAllowThreads();
26859 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
26860 wxPyEndAllowThreads(__tstate);
26861 if (PyErr_Occurred()) SWIG_fail;
26862 }
26863 resultobj = SWIG_Py_Void();
26864 return resultobj;
26865 fail:
26866 return NULL;
26867 }
26868
26869
26870 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26871 PyObject *resultobj = 0;
26872 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26873 int arg2 ;
26874 int arg3 ;
26875 int arg4 ;
26876 int arg5 ;
26877 void *argp1 = 0 ;
26878 int res1 = 0 ;
26879 int val2 ;
26880 int ecode2 = 0 ;
26881 int val3 ;
26882 int ecode3 = 0 ;
26883 int val4 ;
26884 int ecode4 = 0 ;
26885 int val5 ;
26886 int ecode5 = 0 ;
26887 PyObject * obj0 = 0 ;
26888 PyObject * obj1 = 0 ;
26889 PyObject * obj2 = 0 ;
26890 PyObject * obj3 = 0 ;
26891 PyObject * obj4 = 0 ;
26892 char * kwnames[] = {
26893 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
26894 };
26895
26896 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
26897 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26898 if (!SWIG_IsOK(res1)) {
26899 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26900 }
26901 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26902 ecode2 = SWIG_AsVal_int(obj1, &val2);
26903 if (!SWIG_IsOK(ecode2)) {
26904 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
26905 }
26906 arg2 = static_cast< int >(val2);
26907 ecode3 = SWIG_AsVal_int(obj2, &val3);
26908 if (!SWIG_IsOK(ecode3)) {
26909 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
26910 }
26911 arg3 = static_cast< int >(val3);
26912 ecode4 = SWIG_AsVal_int(obj3, &val4);
26913 if (!SWIG_IsOK(ecode4)) {
26914 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
26915 }
26916 arg4 = static_cast< int >(val4);
26917 ecode5 = SWIG_AsVal_int(obj4, &val5);
26918 if (!SWIG_IsOK(ecode5)) {
26919 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
26920 }
26921 arg5 = static_cast< int >(val5);
26922 {
26923 PyThreadState* __tstate = wxPyBeginAllowThreads();
26924 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
26925 wxPyEndAllowThreads(__tstate);
26926 if (PyErr_Occurred()) SWIG_fail;
26927 }
26928 resultobj = SWIG_Py_Void();
26929 return resultobj;
26930 fail:
26931 return NULL;
26932 }
26933
26934
26935 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26936 PyObject *resultobj = 0;
26937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26938 wxRect *arg2 = 0 ;
26939 void *argp1 = 0 ;
26940 int res1 = 0 ;
26941 wxRect temp2 ;
26942 PyObject * obj0 = 0 ;
26943 PyObject * obj1 = 0 ;
26944 char * kwnames[] = {
26945 (char *) "self",(char *) "rect", NULL
26946 };
26947
26948 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
26949 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
26950 if (!SWIG_IsOK(res1)) {
26951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
26952 }
26953 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
26954 {
26955 arg2 = &temp2;
26956 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
26957 }
26958 {
26959 PyThreadState* __tstate = wxPyBeginAllowThreads();
26960 (arg1)->DrawCheckMark((wxRect const &)*arg2);
26961 wxPyEndAllowThreads(__tstate);
26962 if (PyErr_Occurred()) SWIG_fail;
26963 }
26964 resultobj = SWIG_Py_Void();
26965 return resultobj;
26966 fail:
26967 return NULL;
26968 }
26969
26970
26971 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
26972 PyObject *resultobj = 0;
26973 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
26974 int arg2 ;
26975 int arg3 ;
26976 int arg4 ;
26977 int arg5 ;
26978 double arg6 ;
26979 double arg7 ;
26980 void *argp1 = 0 ;
26981 int res1 = 0 ;
26982 int val2 ;
26983 int ecode2 = 0 ;
26984 int val3 ;
26985 int ecode3 = 0 ;
26986 int val4 ;
26987 int ecode4 = 0 ;
26988 int val5 ;
26989 int ecode5 = 0 ;
26990 double val6 ;
26991 int ecode6 = 0 ;
26992 double val7 ;
26993 int ecode7 = 0 ;
26994 PyObject * obj0 = 0 ;
26995 PyObject * obj1 = 0 ;
26996 PyObject * obj2 = 0 ;
26997 PyObject * obj3 = 0 ;
26998 PyObject * obj4 = 0 ;
26999 PyObject * obj5 = 0 ;
27000 PyObject * obj6 = 0 ;
27001 char * kwnames[] = {
27002 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
27003 };
27004
27005 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:PseudoDC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
27006 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27007 if (!SWIG_IsOK(res1)) {
27008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27009 }
27010 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27011 ecode2 = SWIG_AsVal_int(obj1, &val2);
27012 if (!SWIG_IsOK(ecode2)) {
27013 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
27014 }
27015 arg2 = static_cast< int >(val2);
27016 ecode3 = SWIG_AsVal_int(obj2, &val3);
27017 if (!SWIG_IsOK(ecode3)) {
27018 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
27019 }
27020 arg3 = static_cast< int >(val3);
27021 ecode4 = SWIG_AsVal_int(obj3, &val4);
27022 if (!SWIG_IsOK(ecode4)) {
27023 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
27024 }
27025 arg4 = static_cast< int >(val4);
27026 ecode5 = SWIG_AsVal_int(obj4, &val5);
27027 if (!SWIG_IsOK(ecode5)) {
27028 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
27029 }
27030 arg5 = static_cast< int >(val5);
27031 ecode6 = SWIG_AsVal_double(obj5, &val6);
27032 if (!SWIG_IsOK(ecode6)) {
27033 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
27034 }
27035 arg6 = static_cast< double >(val6);
27036 ecode7 = SWIG_AsVal_double(obj6, &val7);
27037 if (!SWIG_IsOK(ecode7)) {
27038 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "PseudoDC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
27039 }
27040 arg7 = static_cast< double >(val7);
27041 {
27042 PyThreadState* __tstate = wxPyBeginAllowThreads();
27043 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
27044 wxPyEndAllowThreads(__tstate);
27045 if (PyErr_Occurred()) SWIG_fail;
27046 }
27047 resultobj = SWIG_Py_Void();
27048 return resultobj;
27049 fail:
27050 return NULL;
27051 }
27052
27053
27054 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27055 PyObject *resultobj = 0;
27056 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27057 wxPoint *arg2 = 0 ;
27058 wxSize *arg3 = 0 ;
27059 double arg4 ;
27060 double arg5 ;
27061 void *argp1 = 0 ;
27062 int res1 = 0 ;
27063 wxPoint temp2 ;
27064 wxSize temp3 ;
27065 double val4 ;
27066 int ecode4 = 0 ;
27067 double val5 ;
27068 int ecode5 = 0 ;
27069 PyObject * obj0 = 0 ;
27070 PyObject * obj1 = 0 ;
27071 PyObject * obj2 = 0 ;
27072 PyObject * obj3 = 0 ;
27073 PyObject * obj4 = 0 ;
27074 char * kwnames[] = {
27075 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
27076 };
27077
27078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27080 if (!SWIG_IsOK(res1)) {
27081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27082 }
27083 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27084 {
27085 arg2 = &temp2;
27086 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27087 }
27088 {
27089 arg3 = &temp3;
27090 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27091 }
27092 ecode4 = SWIG_AsVal_double(obj3, &val4);
27093 if (!SWIG_IsOK(ecode4)) {
27094 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
27095 }
27096 arg4 = static_cast< double >(val4);
27097 ecode5 = SWIG_AsVal_double(obj4, &val5);
27098 if (!SWIG_IsOK(ecode5)) {
27099 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
27100 }
27101 arg5 = static_cast< double >(val5);
27102 {
27103 PyThreadState* __tstate = wxPyBeginAllowThreads();
27104 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
27105 wxPyEndAllowThreads(__tstate);
27106 if (PyErr_Occurred()) SWIG_fail;
27107 }
27108 resultobj = SWIG_Py_Void();
27109 return resultobj;
27110 fail:
27111 return NULL;
27112 }
27113
27114
27115 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27116 PyObject *resultobj = 0;
27117 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27118 int arg2 ;
27119 int arg3 ;
27120 void *argp1 = 0 ;
27121 int res1 = 0 ;
27122 int val2 ;
27123 int ecode2 = 0 ;
27124 int val3 ;
27125 int ecode3 = 0 ;
27126 PyObject * obj0 = 0 ;
27127 PyObject * obj1 = 0 ;
27128 PyObject * obj2 = 0 ;
27129 char * kwnames[] = {
27130 (char *) "self",(char *) "x",(char *) "y", NULL
27131 };
27132
27133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27135 if (!SWIG_IsOK(res1)) {
27136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27137 }
27138 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27139 ecode2 = SWIG_AsVal_int(obj1, &val2);
27140 if (!SWIG_IsOK(ecode2)) {
27141 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
27142 }
27143 arg2 = static_cast< int >(val2);
27144 ecode3 = SWIG_AsVal_int(obj2, &val3);
27145 if (!SWIG_IsOK(ecode3)) {
27146 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
27147 }
27148 arg3 = static_cast< int >(val3);
27149 {
27150 PyThreadState* __tstate = wxPyBeginAllowThreads();
27151 (arg1)->DrawPoint(arg2,arg3);
27152 wxPyEndAllowThreads(__tstate);
27153 if (PyErr_Occurred()) SWIG_fail;
27154 }
27155 resultobj = SWIG_Py_Void();
27156 return resultobj;
27157 fail:
27158 return NULL;
27159 }
27160
27161
27162 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27163 PyObject *resultobj = 0;
27164 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27165 wxPoint *arg2 = 0 ;
27166 void *argp1 = 0 ;
27167 int res1 = 0 ;
27168 wxPoint temp2 ;
27169 PyObject * obj0 = 0 ;
27170 PyObject * obj1 = 0 ;
27171 char * kwnames[] = {
27172 (char *) "self",(char *) "pt", NULL
27173 };
27174
27175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
27176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27177 if (!SWIG_IsOK(res1)) {
27178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPointPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27179 }
27180 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27181 {
27182 arg2 = &temp2;
27183 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27184 }
27185 {
27186 PyThreadState* __tstate = wxPyBeginAllowThreads();
27187 (arg1)->DrawPoint((wxPoint const &)*arg2);
27188 wxPyEndAllowThreads(__tstate);
27189 if (PyErr_Occurred()) SWIG_fail;
27190 }
27191 resultobj = SWIG_Py_Void();
27192 return resultobj;
27193 fail:
27194 return NULL;
27195 }
27196
27197
27198 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27199 PyObject *resultobj = 0;
27200 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27201 int arg2 ;
27202 int arg3 ;
27203 int arg4 ;
27204 int arg5 ;
27205 void *argp1 = 0 ;
27206 int res1 = 0 ;
27207 int val2 ;
27208 int ecode2 = 0 ;
27209 int val3 ;
27210 int ecode3 = 0 ;
27211 int val4 ;
27212 int ecode4 = 0 ;
27213 int val5 ;
27214 int ecode5 = 0 ;
27215 PyObject * obj0 = 0 ;
27216 PyObject * obj1 = 0 ;
27217 PyObject * obj2 = 0 ;
27218 PyObject * obj3 = 0 ;
27219 PyObject * obj4 = 0 ;
27220 char * kwnames[] = {
27221 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27222 };
27223
27224 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27225 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27226 if (!SWIG_IsOK(res1)) {
27227 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27228 }
27229 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27230 ecode2 = SWIG_AsVal_int(obj1, &val2);
27231 if (!SWIG_IsOK(ecode2)) {
27232 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
27233 }
27234 arg2 = static_cast< int >(val2);
27235 ecode3 = SWIG_AsVal_int(obj2, &val3);
27236 if (!SWIG_IsOK(ecode3)) {
27237 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
27238 }
27239 arg3 = static_cast< int >(val3);
27240 ecode4 = SWIG_AsVal_int(obj3, &val4);
27241 if (!SWIG_IsOK(ecode4)) {
27242 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
27243 }
27244 arg4 = static_cast< int >(val4);
27245 ecode5 = SWIG_AsVal_int(obj4, &val5);
27246 if (!SWIG_IsOK(ecode5)) {
27247 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
27248 }
27249 arg5 = static_cast< int >(val5);
27250 {
27251 PyThreadState* __tstate = wxPyBeginAllowThreads();
27252 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
27253 wxPyEndAllowThreads(__tstate);
27254 if (PyErr_Occurred()) SWIG_fail;
27255 }
27256 resultobj = SWIG_Py_Void();
27257 return resultobj;
27258 fail:
27259 return NULL;
27260 }
27261
27262
27263 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27264 PyObject *resultobj = 0;
27265 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27266 wxRect *arg2 = 0 ;
27267 void *argp1 = 0 ;
27268 int res1 = 0 ;
27269 wxRect temp2 ;
27270 PyObject * obj0 = 0 ;
27271 PyObject * obj1 = 0 ;
27272 char * kwnames[] = {
27273 (char *) "self",(char *) "rect", NULL
27274 };
27275
27276 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
27277 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27278 if (!SWIG_IsOK(res1)) {
27279 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27280 }
27281 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27282 {
27283 arg2 = &temp2;
27284 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27285 }
27286 {
27287 PyThreadState* __tstate = wxPyBeginAllowThreads();
27288 (arg1)->DrawRectangle((wxRect const &)*arg2);
27289 wxPyEndAllowThreads(__tstate);
27290 if (PyErr_Occurred()) SWIG_fail;
27291 }
27292 resultobj = SWIG_Py_Void();
27293 return resultobj;
27294 fail:
27295 return NULL;
27296 }
27297
27298
27299 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27300 PyObject *resultobj = 0;
27301 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27302 wxPoint *arg2 = 0 ;
27303 wxSize *arg3 = 0 ;
27304 void *argp1 = 0 ;
27305 int res1 = 0 ;
27306 wxPoint temp2 ;
27307 wxSize temp3 ;
27308 PyObject * obj0 = 0 ;
27309 PyObject * obj1 = 0 ;
27310 PyObject * obj2 = 0 ;
27311 char * kwnames[] = {
27312 (char *) "self",(char *) "pt",(char *) "sz", NULL
27313 };
27314
27315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27317 if (!SWIG_IsOK(res1)) {
27318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27319 }
27320 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27321 {
27322 arg2 = &temp2;
27323 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27324 }
27325 {
27326 arg3 = &temp3;
27327 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27328 }
27329 {
27330 PyThreadState* __tstate = wxPyBeginAllowThreads();
27331 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
27332 wxPyEndAllowThreads(__tstate);
27333 if (PyErr_Occurred()) SWIG_fail;
27334 }
27335 resultobj = SWIG_Py_Void();
27336 return resultobj;
27337 fail:
27338 return NULL;
27339 }
27340
27341
27342 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27343 PyObject *resultobj = 0;
27344 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27345 int arg2 ;
27346 int arg3 ;
27347 int arg4 ;
27348 int arg5 ;
27349 double arg6 ;
27350 void *argp1 = 0 ;
27351 int res1 = 0 ;
27352 int val2 ;
27353 int ecode2 = 0 ;
27354 int val3 ;
27355 int ecode3 = 0 ;
27356 int val4 ;
27357 int ecode4 = 0 ;
27358 int val5 ;
27359 int ecode5 = 0 ;
27360 double val6 ;
27361 int ecode6 = 0 ;
27362 PyObject * obj0 = 0 ;
27363 PyObject * obj1 = 0 ;
27364 PyObject * obj2 = 0 ;
27365 PyObject * obj3 = 0 ;
27366 PyObject * obj4 = 0 ;
27367 PyObject * obj5 = 0 ;
27368 char * kwnames[] = {
27369 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
27370 };
27371
27372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:PseudoDC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
27373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27374 if (!SWIG_IsOK(res1)) {
27375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27376 }
27377 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27378 ecode2 = SWIG_AsVal_int(obj1, &val2);
27379 if (!SWIG_IsOK(ecode2)) {
27380 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
27381 }
27382 arg2 = static_cast< int >(val2);
27383 ecode3 = SWIG_AsVal_int(obj2, &val3);
27384 if (!SWIG_IsOK(ecode3)) {
27385 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
27386 }
27387 arg3 = static_cast< int >(val3);
27388 ecode4 = SWIG_AsVal_int(obj3, &val4);
27389 if (!SWIG_IsOK(ecode4)) {
27390 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
27391 }
27392 arg4 = static_cast< int >(val4);
27393 ecode5 = SWIG_AsVal_int(obj4, &val5);
27394 if (!SWIG_IsOK(ecode5)) {
27395 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
27396 }
27397 arg5 = static_cast< int >(val5);
27398 ecode6 = SWIG_AsVal_double(obj5, &val6);
27399 if (!SWIG_IsOK(ecode6)) {
27400 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
27401 }
27402 arg6 = static_cast< double >(val6);
27403 {
27404 PyThreadState* __tstate = wxPyBeginAllowThreads();
27405 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
27406 wxPyEndAllowThreads(__tstate);
27407 if (PyErr_Occurred()) SWIG_fail;
27408 }
27409 resultobj = SWIG_Py_Void();
27410 return resultobj;
27411 fail:
27412 return NULL;
27413 }
27414
27415
27416 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27417 PyObject *resultobj = 0;
27418 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27419 wxRect *arg2 = 0 ;
27420 double arg3 ;
27421 void *argp1 = 0 ;
27422 int res1 = 0 ;
27423 wxRect temp2 ;
27424 double val3 ;
27425 int ecode3 = 0 ;
27426 PyObject * obj0 = 0 ;
27427 PyObject * obj1 = 0 ;
27428 PyObject * obj2 = 0 ;
27429 char * kwnames[] = {
27430 (char *) "self",(char *) "r",(char *) "radius", NULL
27431 };
27432
27433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27435 if (!SWIG_IsOK(res1)) {
27436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27437 }
27438 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27439 {
27440 arg2 = &temp2;
27441 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27442 }
27443 ecode3 = SWIG_AsVal_double(obj2, &val3);
27444 if (!SWIG_IsOK(ecode3)) {
27445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
27446 }
27447 arg3 = static_cast< double >(val3);
27448 {
27449 PyThreadState* __tstate = wxPyBeginAllowThreads();
27450 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
27451 wxPyEndAllowThreads(__tstate);
27452 if (PyErr_Occurred()) SWIG_fail;
27453 }
27454 resultobj = SWIG_Py_Void();
27455 return resultobj;
27456 fail:
27457 return NULL;
27458 }
27459
27460
27461 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27462 PyObject *resultobj = 0;
27463 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27464 wxPoint *arg2 = 0 ;
27465 wxSize *arg3 = 0 ;
27466 double arg4 ;
27467 void *argp1 = 0 ;
27468 int res1 = 0 ;
27469 wxPoint temp2 ;
27470 wxSize temp3 ;
27471 double val4 ;
27472 int ecode4 = 0 ;
27473 PyObject * obj0 = 0 ;
27474 PyObject * obj1 = 0 ;
27475 PyObject * obj2 = 0 ;
27476 PyObject * obj3 = 0 ;
27477 char * kwnames[] = {
27478 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
27479 };
27480
27481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27483 if (!SWIG_IsOK(res1)) {
27484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27485 }
27486 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27487 {
27488 arg2 = &temp2;
27489 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27490 }
27491 {
27492 arg3 = &temp3;
27493 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27494 }
27495 ecode4 = SWIG_AsVal_double(obj3, &val4);
27496 if (!SWIG_IsOK(ecode4)) {
27497 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
27498 }
27499 arg4 = static_cast< double >(val4);
27500 {
27501 PyThreadState* __tstate = wxPyBeginAllowThreads();
27502 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
27503 wxPyEndAllowThreads(__tstate);
27504 if (PyErr_Occurred()) SWIG_fail;
27505 }
27506 resultobj = SWIG_Py_Void();
27507 return resultobj;
27508 fail:
27509 return NULL;
27510 }
27511
27512
27513 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27514 PyObject *resultobj = 0;
27515 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27516 int arg2 ;
27517 int arg3 ;
27518 int arg4 ;
27519 void *argp1 = 0 ;
27520 int res1 = 0 ;
27521 int val2 ;
27522 int ecode2 = 0 ;
27523 int val3 ;
27524 int ecode3 = 0 ;
27525 int val4 ;
27526 int ecode4 = 0 ;
27527 PyObject * obj0 = 0 ;
27528 PyObject * obj1 = 0 ;
27529 PyObject * obj2 = 0 ;
27530 PyObject * obj3 = 0 ;
27531 char * kwnames[] = {
27532 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
27533 };
27534
27535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27536 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27537 if (!SWIG_IsOK(res1)) {
27538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCircle" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27539 }
27540 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27541 ecode2 = SWIG_AsVal_int(obj1, &val2);
27542 if (!SWIG_IsOK(ecode2)) {
27543 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
27544 }
27545 arg2 = static_cast< int >(val2);
27546 ecode3 = SWIG_AsVal_int(obj2, &val3);
27547 if (!SWIG_IsOK(ecode3)) {
27548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
27549 }
27550 arg3 = static_cast< int >(val3);
27551 ecode4 = SWIG_AsVal_int(obj3, &val4);
27552 if (!SWIG_IsOK(ecode4)) {
27553 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
27554 }
27555 arg4 = static_cast< int >(val4);
27556 {
27557 PyThreadState* __tstate = wxPyBeginAllowThreads();
27558 (arg1)->DrawCircle(arg2,arg3,arg4);
27559 wxPyEndAllowThreads(__tstate);
27560 if (PyErr_Occurred()) SWIG_fail;
27561 }
27562 resultobj = SWIG_Py_Void();
27563 return resultobj;
27564 fail:
27565 return NULL;
27566 }
27567
27568
27569 SWIGINTERN PyObject *_wrap_PseudoDC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27570 PyObject *resultobj = 0;
27571 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27572 wxPoint *arg2 = 0 ;
27573 int arg3 ;
27574 void *argp1 = 0 ;
27575 int res1 = 0 ;
27576 wxPoint temp2 ;
27577 int val3 ;
27578 int ecode3 = 0 ;
27579 PyObject * obj0 = 0 ;
27580 PyObject * obj1 = 0 ;
27581 PyObject * obj2 = 0 ;
27582 char * kwnames[] = {
27583 (char *) "self",(char *) "pt",(char *) "radius", NULL
27584 };
27585
27586 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27587 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27588 if (!SWIG_IsOK(res1)) {
27589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27590 }
27591 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27592 {
27593 arg2 = &temp2;
27594 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27595 }
27596 ecode3 = SWIG_AsVal_int(obj2, &val3);
27597 if (!SWIG_IsOK(ecode3)) {
27598 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
27599 }
27600 arg3 = static_cast< int >(val3);
27601 {
27602 PyThreadState* __tstate = wxPyBeginAllowThreads();
27603 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
27604 wxPyEndAllowThreads(__tstate);
27605 if (PyErr_Occurred()) SWIG_fail;
27606 }
27607 resultobj = SWIG_Py_Void();
27608 return resultobj;
27609 fail:
27610 return NULL;
27611 }
27612
27613
27614 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27615 PyObject *resultobj = 0;
27616 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27617 int arg2 ;
27618 int arg3 ;
27619 int arg4 ;
27620 int arg5 ;
27621 void *argp1 = 0 ;
27622 int res1 = 0 ;
27623 int val2 ;
27624 int ecode2 = 0 ;
27625 int val3 ;
27626 int ecode3 = 0 ;
27627 int val4 ;
27628 int ecode4 = 0 ;
27629 int val5 ;
27630 int ecode5 = 0 ;
27631 PyObject * obj0 = 0 ;
27632 PyObject * obj1 = 0 ;
27633 PyObject * obj2 = 0 ;
27634 PyObject * obj3 = 0 ;
27635 PyObject * obj4 = 0 ;
27636 char * kwnames[] = {
27637 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
27638 };
27639
27640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27642 if (!SWIG_IsOK(res1)) {
27643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27644 }
27645 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27646 ecode2 = SWIG_AsVal_int(obj1, &val2);
27647 if (!SWIG_IsOK(ecode2)) {
27648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
27649 }
27650 arg2 = static_cast< int >(val2);
27651 ecode3 = SWIG_AsVal_int(obj2, &val3);
27652 if (!SWIG_IsOK(ecode3)) {
27653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
27654 }
27655 arg3 = static_cast< int >(val3);
27656 ecode4 = SWIG_AsVal_int(obj3, &val4);
27657 if (!SWIG_IsOK(ecode4)) {
27658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
27659 }
27660 arg4 = static_cast< int >(val4);
27661 ecode5 = SWIG_AsVal_int(obj4, &val5);
27662 if (!SWIG_IsOK(ecode5)) {
27663 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
27664 }
27665 arg5 = static_cast< int >(val5);
27666 {
27667 PyThreadState* __tstate = wxPyBeginAllowThreads();
27668 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
27669 wxPyEndAllowThreads(__tstate);
27670 if (PyErr_Occurred()) SWIG_fail;
27671 }
27672 resultobj = SWIG_Py_Void();
27673 return resultobj;
27674 fail:
27675 return NULL;
27676 }
27677
27678
27679 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27680 PyObject *resultobj = 0;
27681 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27682 wxRect *arg2 = 0 ;
27683 void *argp1 = 0 ;
27684 int res1 = 0 ;
27685 wxRect temp2 ;
27686 PyObject * obj0 = 0 ;
27687 PyObject * obj1 = 0 ;
27688 char * kwnames[] = {
27689 (char *) "self",(char *) "rect", NULL
27690 };
27691
27692 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
27693 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27694 if (!SWIG_IsOK(res1)) {
27695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27696 }
27697 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27698 {
27699 arg2 = &temp2;
27700 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
27701 }
27702 {
27703 PyThreadState* __tstate = wxPyBeginAllowThreads();
27704 (arg1)->DrawEllipse((wxRect const &)*arg2);
27705 wxPyEndAllowThreads(__tstate);
27706 if (PyErr_Occurred()) SWIG_fail;
27707 }
27708 resultobj = SWIG_Py_Void();
27709 return resultobj;
27710 fail:
27711 return NULL;
27712 }
27713
27714
27715 SWIGINTERN PyObject *_wrap_PseudoDC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27716 PyObject *resultobj = 0;
27717 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27718 wxPoint *arg2 = 0 ;
27719 wxSize *arg3 = 0 ;
27720 void *argp1 = 0 ;
27721 int res1 = 0 ;
27722 wxPoint temp2 ;
27723 wxSize temp3 ;
27724 PyObject * obj0 = 0 ;
27725 PyObject * obj1 = 0 ;
27726 PyObject * obj2 = 0 ;
27727 char * kwnames[] = {
27728 (char *) "self",(char *) "pt",(char *) "sz", NULL
27729 };
27730
27731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27732 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27733 if (!SWIG_IsOK(res1)) {
27734 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27735 }
27736 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27737 {
27738 arg2 = &temp2;
27739 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
27740 }
27741 {
27742 arg3 = &temp3;
27743 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
27744 }
27745 {
27746 PyThreadState* __tstate = wxPyBeginAllowThreads();
27747 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
27748 wxPyEndAllowThreads(__tstate);
27749 if (PyErr_Occurred()) SWIG_fail;
27750 }
27751 resultobj = SWIG_Py_Void();
27752 return resultobj;
27753 fail:
27754 return NULL;
27755 }
27756
27757
27758 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27759 PyObject *resultobj = 0;
27760 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27761 wxIcon *arg2 = 0 ;
27762 int arg3 ;
27763 int arg4 ;
27764 void *argp1 = 0 ;
27765 int res1 = 0 ;
27766 void *argp2 = 0 ;
27767 int res2 = 0 ;
27768 int val3 ;
27769 int ecode3 = 0 ;
27770 int val4 ;
27771 int ecode4 = 0 ;
27772 PyObject * obj0 = 0 ;
27773 PyObject * obj1 = 0 ;
27774 PyObject * obj2 = 0 ;
27775 PyObject * obj3 = 0 ;
27776 char * kwnames[] = {
27777 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
27778 };
27779
27780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27782 if (!SWIG_IsOK(res1)) {
27783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIcon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27784 }
27785 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27786 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27787 if (!SWIG_IsOK(res2)) {
27788 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27789 }
27790 if (!argp2) {
27791 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
27792 }
27793 arg2 = reinterpret_cast< wxIcon * >(argp2);
27794 ecode3 = SWIG_AsVal_int(obj2, &val3);
27795 if (!SWIG_IsOK(ecode3)) {
27796 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
27797 }
27798 arg3 = static_cast< int >(val3);
27799 ecode4 = SWIG_AsVal_int(obj3, &val4);
27800 if (!SWIG_IsOK(ecode4)) {
27801 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
27802 }
27803 arg4 = static_cast< int >(val4);
27804 {
27805 PyThreadState* __tstate = wxPyBeginAllowThreads();
27806 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
27807 wxPyEndAllowThreads(__tstate);
27808 if (PyErr_Occurred()) SWIG_fail;
27809 }
27810 resultobj = SWIG_Py_Void();
27811 return resultobj;
27812 fail:
27813 return NULL;
27814 }
27815
27816
27817 SWIGINTERN PyObject *_wrap_PseudoDC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27818 PyObject *resultobj = 0;
27819 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27820 wxIcon *arg2 = 0 ;
27821 wxPoint *arg3 = 0 ;
27822 void *argp1 = 0 ;
27823 int res1 = 0 ;
27824 void *argp2 = 0 ;
27825 int res2 = 0 ;
27826 wxPoint temp3 ;
27827 PyObject * obj0 = 0 ;
27828 PyObject * obj1 = 0 ;
27829 PyObject * obj2 = 0 ;
27830 char * kwnames[] = {
27831 (char *) "self",(char *) "icon",(char *) "pt", NULL
27832 };
27833
27834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
27835 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27836 if (!SWIG_IsOK(res1)) {
27837 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27838 }
27839 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27840 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
27841 if (!SWIG_IsOK(res2)) {
27842 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27843 }
27844 if (!argp2) {
27845 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
27846 }
27847 arg2 = reinterpret_cast< wxIcon * >(argp2);
27848 {
27849 arg3 = &temp3;
27850 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27851 }
27852 {
27853 PyThreadState* __tstate = wxPyBeginAllowThreads();
27854 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
27855 wxPyEndAllowThreads(__tstate);
27856 if (PyErr_Occurred()) SWIG_fail;
27857 }
27858 resultobj = SWIG_Py_Void();
27859 return resultobj;
27860 fail:
27861 return NULL;
27862 }
27863
27864
27865 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27866 PyObject *resultobj = 0;
27867 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27868 wxBitmap *arg2 = 0 ;
27869 int arg3 ;
27870 int arg4 ;
27871 bool arg5 = (bool) false ;
27872 void *argp1 = 0 ;
27873 int res1 = 0 ;
27874 void *argp2 = 0 ;
27875 int res2 = 0 ;
27876 int val3 ;
27877 int ecode3 = 0 ;
27878 int val4 ;
27879 int ecode4 = 0 ;
27880 bool val5 ;
27881 int ecode5 = 0 ;
27882 PyObject * obj0 = 0 ;
27883 PyObject * obj1 = 0 ;
27884 PyObject * obj2 = 0 ;
27885 PyObject * obj3 = 0 ;
27886 PyObject * obj4 = 0 ;
27887 char * kwnames[] = {
27888 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
27889 };
27890
27891 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:PseudoDC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
27892 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27893 if (!SWIG_IsOK(res1)) {
27894 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27895 }
27896 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27897 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27898 if (!SWIG_IsOK(res2)) {
27899 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27900 }
27901 if (!argp2) {
27902 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27903 }
27904 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27905 ecode3 = SWIG_AsVal_int(obj2, &val3);
27906 if (!SWIG_IsOK(ecode3)) {
27907 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
27908 }
27909 arg3 = static_cast< int >(val3);
27910 ecode4 = SWIG_AsVal_int(obj3, &val4);
27911 if (!SWIG_IsOK(ecode4)) {
27912 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
27913 }
27914 arg4 = static_cast< int >(val4);
27915 if (obj4) {
27916 ecode5 = SWIG_AsVal_bool(obj4, &val5);
27917 if (!SWIG_IsOK(ecode5)) {
27918 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
27919 }
27920 arg5 = static_cast< bool >(val5);
27921 }
27922 {
27923 PyThreadState* __tstate = wxPyBeginAllowThreads();
27924 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
27925 wxPyEndAllowThreads(__tstate);
27926 if (PyErr_Occurred()) SWIG_fail;
27927 }
27928 resultobj = SWIG_Py_Void();
27929 return resultobj;
27930 fail:
27931 return NULL;
27932 }
27933
27934
27935 SWIGINTERN PyObject *_wrap_PseudoDC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27936 PyObject *resultobj = 0;
27937 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27938 wxBitmap *arg2 = 0 ;
27939 wxPoint *arg3 = 0 ;
27940 bool arg4 = (bool) false ;
27941 void *argp1 = 0 ;
27942 int res1 = 0 ;
27943 void *argp2 = 0 ;
27944 int res2 = 0 ;
27945 wxPoint temp3 ;
27946 bool val4 ;
27947 int ecode4 = 0 ;
27948 PyObject * obj0 = 0 ;
27949 PyObject * obj1 = 0 ;
27950 PyObject * obj2 = 0 ;
27951 PyObject * obj3 = 0 ;
27952 char * kwnames[] = {
27953 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
27954 };
27955
27956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:PseudoDC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
27957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
27958 if (!SWIG_IsOK(res1)) {
27959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
27960 }
27961 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
27962 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
27963 if (!SWIG_IsOK(res2)) {
27964 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27965 }
27966 if (!argp2) {
27967 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
27968 }
27969 arg2 = reinterpret_cast< wxBitmap * >(argp2);
27970 {
27971 arg3 = &temp3;
27972 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
27973 }
27974 if (obj3) {
27975 ecode4 = SWIG_AsVal_bool(obj3, &val4);
27976 if (!SWIG_IsOK(ecode4)) {
27977 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
27978 }
27979 arg4 = static_cast< bool >(val4);
27980 }
27981 {
27982 PyThreadState* __tstate = wxPyBeginAllowThreads();
27983 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
27984 wxPyEndAllowThreads(__tstate);
27985 if (PyErr_Occurred()) SWIG_fail;
27986 }
27987 resultobj = SWIG_Py_Void();
27988 return resultobj;
27989 fail:
27990 return NULL;
27991 }
27992
27993
27994 SWIGINTERN PyObject *_wrap_PseudoDC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
27995 PyObject *resultobj = 0;
27996 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
27997 wxString *arg2 = 0 ;
27998 int arg3 ;
27999 int arg4 ;
28000 void *argp1 = 0 ;
28001 int res1 = 0 ;
28002 bool temp2 = false ;
28003 int val3 ;
28004 int ecode3 = 0 ;
28005 int val4 ;
28006 int ecode4 = 0 ;
28007 PyObject * obj0 = 0 ;
28008 PyObject * obj1 = 0 ;
28009 PyObject * obj2 = 0 ;
28010 PyObject * obj3 = 0 ;
28011 char * kwnames[] = {
28012 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
28013 };
28014
28015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28017 if (!SWIG_IsOK(res1)) {
28018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28019 }
28020 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28021 {
28022 arg2 = wxString_in_helper(obj1);
28023 if (arg2 == NULL) SWIG_fail;
28024 temp2 = true;
28025 }
28026 ecode3 = SWIG_AsVal_int(obj2, &val3);
28027 if (!SWIG_IsOK(ecode3)) {
28028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawText" "', expected argument " "3"" of type '" "int""'");
28029 }
28030 arg3 = static_cast< int >(val3);
28031 ecode4 = SWIG_AsVal_int(obj3, &val4);
28032 if (!SWIG_IsOK(ecode4)) {
28033 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawText" "', expected argument " "4"" of type '" "int""'");
28034 }
28035 arg4 = static_cast< int >(val4);
28036 {
28037 PyThreadState* __tstate = wxPyBeginAllowThreads();
28038 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
28039 wxPyEndAllowThreads(__tstate);
28040 if (PyErr_Occurred()) SWIG_fail;
28041 }
28042 resultobj = SWIG_Py_Void();
28043 {
28044 if (temp2)
28045 delete arg2;
28046 }
28047 return resultobj;
28048 fail:
28049 {
28050 if (temp2)
28051 delete arg2;
28052 }
28053 return NULL;
28054 }
28055
28056
28057 SWIGINTERN PyObject *_wrap_PseudoDC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28058 PyObject *resultobj = 0;
28059 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28060 wxString *arg2 = 0 ;
28061 wxPoint *arg3 = 0 ;
28062 void *argp1 = 0 ;
28063 int res1 = 0 ;
28064 bool temp2 = false ;
28065 wxPoint temp3 ;
28066 PyObject * obj0 = 0 ;
28067 PyObject * obj1 = 0 ;
28068 PyObject * obj2 = 0 ;
28069 char * kwnames[] = {
28070 (char *) "self",(char *) "text",(char *) "pt", NULL
28071 };
28072
28073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PseudoDC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
28074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28075 if (!SWIG_IsOK(res1)) {
28076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28077 }
28078 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28079 {
28080 arg2 = wxString_in_helper(obj1);
28081 if (arg2 == NULL) SWIG_fail;
28082 temp2 = true;
28083 }
28084 {
28085 arg3 = &temp3;
28086 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28087 }
28088 {
28089 PyThreadState* __tstate = wxPyBeginAllowThreads();
28090 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
28091 wxPyEndAllowThreads(__tstate);
28092 if (PyErr_Occurred()) SWIG_fail;
28093 }
28094 resultobj = SWIG_Py_Void();
28095 {
28096 if (temp2)
28097 delete arg2;
28098 }
28099 return resultobj;
28100 fail:
28101 {
28102 if (temp2)
28103 delete arg2;
28104 }
28105 return NULL;
28106 }
28107
28108
28109 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28110 PyObject *resultobj = 0;
28111 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28112 wxString *arg2 = 0 ;
28113 int arg3 ;
28114 int arg4 ;
28115 double arg5 ;
28116 void *argp1 = 0 ;
28117 int res1 = 0 ;
28118 bool temp2 = false ;
28119 int val3 ;
28120 int ecode3 = 0 ;
28121 int val4 ;
28122 int ecode4 = 0 ;
28123 double val5 ;
28124 int ecode5 = 0 ;
28125 PyObject * obj0 = 0 ;
28126 PyObject * obj1 = 0 ;
28127 PyObject * obj2 = 0 ;
28128 PyObject * obj3 = 0 ;
28129 PyObject * obj4 = 0 ;
28130 char * kwnames[] = {
28131 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
28132 };
28133
28134 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PseudoDC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28135 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28136 if (!SWIG_IsOK(res1)) {
28137 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28138 }
28139 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28140 {
28141 arg2 = wxString_in_helper(obj1);
28142 if (arg2 == NULL) SWIG_fail;
28143 temp2 = true;
28144 }
28145 ecode3 = SWIG_AsVal_int(obj2, &val3);
28146 if (!SWIG_IsOK(ecode3)) {
28147 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
28148 }
28149 arg3 = static_cast< int >(val3);
28150 ecode4 = SWIG_AsVal_int(obj3, &val4);
28151 if (!SWIG_IsOK(ecode4)) {
28152 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
28153 }
28154 arg4 = static_cast< int >(val4);
28155 ecode5 = SWIG_AsVal_double(obj4, &val5);
28156 if (!SWIG_IsOK(ecode5)) {
28157 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
28158 }
28159 arg5 = static_cast< double >(val5);
28160 {
28161 PyThreadState* __tstate = wxPyBeginAllowThreads();
28162 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
28163 wxPyEndAllowThreads(__tstate);
28164 if (PyErr_Occurred()) SWIG_fail;
28165 }
28166 resultobj = SWIG_Py_Void();
28167 {
28168 if (temp2)
28169 delete arg2;
28170 }
28171 return resultobj;
28172 fail:
28173 {
28174 if (temp2)
28175 delete arg2;
28176 }
28177 return NULL;
28178 }
28179
28180
28181 SWIGINTERN PyObject *_wrap_PseudoDC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28182 PyObject *resultobj = 0;
28183 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28184 wxString *arg2 = 0 ;
28185 wxPoint *arg3 = 0 ;
28186 double arg4 ;
28187 void *argp1 = 0 ;
28188 int res1 = 0 ;
28189 bool temp2 = false ;
28190 wxPoint temp3 ;
28191 double val4 ;
28192 int ecode4 = 0 ;
28193 PyObject * obj0 = 0 ;
28194 PyObject * obj1 = 0 ;
28195 PyObject * obj2 = 0 ;
28196 PyObject * obj3 = 0 ;
28197 char * kwnames[] = {
28198 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
28199 };
28200
28201 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PseudoDC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28202 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28203 if (!SWIG_IsOK(res1)) {
28204 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28205 }
28206 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28207 {
28208 arg2 = wxString_in_helper(obj1);
28209 if (arg2 == NULL) SWIG_fail;
28210 temp2 = true;
28211 }
28212 {
28213 arg3 = &temp3;
28214 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
28215 }
28216 ecode4 = SWIG_AsVal_double(obj3, &val4);
28217 if (!SWIG_IsOK(ecode4)) {
28218 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
28219 }
28220 arg4 = static_cast< double >(val4);
28221 {
28222 PyThreadState* __tstate = wxPyBeginAllowThreads();
28223 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
28224 wxPyEndAllowThreads(__tstate);
28225 if (PyErr_Occurred()) SWIG_fail;
28226 }
28227 resultobj = SWIG_Py_Void();
28228 {
28229 if (temp2)
28230 delete arg2;
28231 }
28232 return resultobj;
28233 fail:
28234 {
28235 if (temp2)
28236 delete arg2;
28237 }
28238 return NULL;
28239 }
28240
28241
28242 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28243 PyObject *resultobj = 0;
28244 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28245 int arg2 ;
28246 wxPoint *arg3 = (wxPoint *) 0 ;
28247 int arg4 = (int) 0 ;
28248 int arg5 = (int) 0 ;
28249 void *argp1 = 0 ;
28250 int res1 = 0 ;
28251 int val4 ;
28252 int ecode4 = 0 ;
28253 int val5 ;
28254 int ecode5 = 0 ;
28255 PyObject * obj0 = 0 ;
28256 PyObject * obj1 = 0 ;
28257 PyObject * obj2 = 0 ;
28258 PyObject * obj3 = 0 ;
28259 char * kwnames[] = {
28260 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
28261 };
28262
28263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:PseudoDC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
28264 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28265 if (!SWIG_IsOK(res1)) {
28266 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLines" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28267 }
28268 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28269 {
28270 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28271 if (arg3 == NULL) SWIG_fail;
28272 }
28273 if (obj2) {
28274 ecode4 = SWIG_AsVal_int(obj2, &val4);
28275 if (!SWIG_IsOK(ecode4)) {
28276 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLines" "', expected argument " "4"" of type '" "int""'");
28277 }
28278 arg4 = static_cast< int >(val4);
28279 }
28280 if (obj3) {
28281 ecode5 = SWIG_AsVal_int(obj3, &val5);
28282 if (!SWIG_IsOK(ecode5)) {
28283 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLines" "', expected argument " "5"" of type '" "int""'");
28284 }
28285 arg5 = static_cast< int >(val5);
28286 }
28287 {
28288 PyThreadState* __tstate = wxPyBeginAllowThreads();
28289 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
28290 wxPyEndAllowThreads(__tstate);
28291 if (PyErr_Occurred()) SWIG_fail;
28292 }
28293 resultobj = SWIG_Py_Void();
28294 {
28295 if (arg3) delete [] arg3;
28296 }
28297 return resultobj;
28298 fail:
28299 {
28300 if (arg3) delete [] arg3;
28301 }
28302 return NULL;
28303 }
28304
28305
28306 SWIGINTERN PyObject *_wrap_PseudoDC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28307 PyObject *resultobj = 0;
28308 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28309 int arg2 ;
28310 wxPoint *arg3 = (wxPoint *) 0 ;
28311 int arg4 = (int) 0 ;
28312 int arg5 = (int) 0 ;
28313 int arg6 = (int) wxODDEVEN_RULE ;
28314 void *argp1 = 0 ;
28315 int res1 = 0 ;
28316 int val4 ;
28317 int ecode4 = 0 ;
28318 int val5 ;
28319 int ecode5 = 0 ;
28320 int val6 ;
28321 int ecode6 = 0 ;
28322 PyObject * obj0 = 0 ;
28323 PyObject * obj1 = 0 ;
28324 PyObject * obj2 = 0 ;
28325 PyObject * obj3 = 0 ;
28326 PyObject * obj4 = 0 ;
28327 char * kwnames[] = {
28328 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
28329 };
28330
28331 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:PseudoDC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28332 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28333 if (!SWIG_IsOK(res1)) {
28334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28335 }
28336 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28337 {
28338 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28339 if (arg3 == NULL) SWIG_fail;
28340 }
28341 if (obj2) {
28342 ecode4 = SWIG_AsVal_int(obj2, &val4);
28343 if (!SWIG_IsOK(ecode4)) {
28344 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
28345 }
28346 arg4 = static_cast< int >(val4);
28347 }
28348 if (obj3) {
28349 ecode5 = SWIG_AsVal_int(obj3, &val5);
28350 if (!SWIG_IsOK(ecode5)) {
28351 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
28352 }
28353 arg5 = static_cast< int >(val5);
28354 }
28355 if (obj4) {
28356 ecode6 = SWIG_AsVal_int(obj4, &val6);
28357 if (!SWIG_IsOK(ecode6)) {
28358 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
28359 }
28360 arg6 = static_cast< int >(val6);
28361 }
28362 {
28363 PyThreadState* __tstate = wxPyBeginAllowThreads();
28364 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
28365 wxPyEndAllowThreads(__tstate);
28366 if (PyErr_Occurred()) SWIG_fail;
28367 }
28368 resultobj = SWIG_Py_Void();
28369 {
28370 if (arg3) delete [] arg3;
28371 }
28372 return resultobj;
28373 fail:
28374 {
28375 if (arg3) delete [] arg3;
28376 }
28377 return NULL;
28378 }
28379
28380
28381 SWIGINTERN PyObject *_wrap_PseudoDC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28382 PyObject *resultobj = 0;
28383 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28384 wxString *arg2 = 0 ;
28385 wxRect *arg3 = 0 ;
28386 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
28387 int arg5 = (int) -1 ;
28388 void *argp1 = 0 ;
28389 int res1 = 0 ;
28390 bool temp2 = false ;
28391 wxRect temp3 ;
28392 int val4 ;
28393 int ecode4 = 0 ;
28394 int val5 ;
28395 int ecode5 = 0 ;
28396 PyObject * obj0 = 0 ;
28397 PyObject * obj1 = 0 ;
28398 PyObject * obj2 = 0 ;
28399 PyObject * obj3 = 0 ;
28400 PyObject * obj4 = 0 ;
28401 char * kwnames[] = {
28402 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
28403 };
28404
28405 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:PseudoDC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
28406 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28407 if (!SWIG_IsOK(res1)) {
28408 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28409 }
28410 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28411 {
28412 arg2 = wxString_in_helper(obj1);
28413 if (arg2 == NULL) SWIG_fail;
28414 temp2 = true;
28415 }
28416 {
28417 arg3 = &temp3;
28418 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
28419 }
28420 if (obj3) {
28421 ecode4 = SWIG_AsVal_int(obj3, &val4);
28422 if (!SWIG_IsOK(ecode4)) {
28423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PseudoDC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
28424 }
28425 arg4 = static_cast< int >(val4);
28426 }
28427 if (obj4) {
28428 ecode5 = SWIG_AsVal_int(obj4, &val5);
28429 if (!SWIG_IsOK(ecode5)) {
28430 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
28431 }
28432 arg5 = static_cast< int >(val5);
28433 }
28434 {
28435 PyThreadState* __tstate = wxPyBeginAllowThreads();
28436 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
28437 wxPyEndAllowThreads(__tstate);
28438 if (PyErr_Occurred()) SWIG_fail;
28439 }
28440 resultobj = SWIG_Py_Void();
28441 {
28442 if (temp2)
28443 delete arg2;
28444 }
28445 return resultobj;
28446 fail:
28447 {
28448 if (temp2)
28449 delete arg2;
28450 }
28451 return NULL;
28452 }
28453
28454
28455 SWIGINTERN PyObject *_wrap_PseudoDC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28456 PyObject *resultobj = 0;
28457 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28458 wxString *arg2 = 0 ;
28459 wxBitmap *arg3 = 0 ;
28460 wxRect *arg4 = 0 ;
28461 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
28462 int arg6 = (int) -1 ;
28463 void *argp1 = 0 ;
28464 int res1 = 0 ;
28465 bool temp2 = false ;
28466 void *argp3 = 0 ;
28467 int res3 = 0 ;
28468 wxRect temp4 ;
28469 int val5 ;
28470 int ecode5 = 0 ;
28471 int val6 ;
28472 int ecode6 = 0 ;
28473 PyObject * obj0 = 0 ;
28474 PyObject * obj1 = 0 ;
28475 PyObject * obj2 = 0 ;
28476 PyObject * obj3 = 0 ;
28477 PyObject * obj4 = 0 ;
28478 PyObject * obj5 = 0 ;
28479 char * kwnames[] = {
28480 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
28481 };
28482
28483 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:PseudoDC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
28484 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28485 if (!SWIG_IsOK(res1)) {
28486 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28487 }
28488 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28489 {
28490 arg2 = wxString_in_helper(obj1);
28491 if (arg2 == NULL) SWIG_fail;
28492 temp2 = true;
28493 }
28494 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
28495 if (!SWIG_IsOK(res3)) {
28496 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28497 }
28498 if (!argp3) {
28499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
28500 }
28501 arg3 = reinterpret_cast< wxBitmap * >(argp3);
28502 {
28503 arg4 = &temp4;
28504 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
28505 }
28506 if (obj4) {
28507 ecode5 = SWIG_AsVal_int(obj4, &val5);
28508 if (!SWIG_IsOK(ecode5)) {
28509 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
28510 }
28511 arg5 = static_cast< int >(val5);
28512 }
28513 if (obj5) {
28514 ecode6 = SWIG_AsVal_int(obj5, &val6);
28515 if (!SWIG_IsOK(ecode6)) {
28516 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "PseudoDC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
28517 }
28518 arg6 = static_cast< int >(val6);
28519 }
28520 {
28521 PyThreadState* __tstate = wxPyBeginAllowThreads();
28522 (arg1)->DrawLabel((wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
28523 wxPyEndAllowThreads(__tstate);
28524 if (PyErr_Occurred()) SWIG_fail;
28525 }
28526 resultobj = SWIG_Py_Void();
28527 {
28528 if (temp2)
28529 delete arg2;
28530 }
28531 return resultobj;
28532 fail:
28533 {
28534 if (temp2)
28535 delete arg2;
28536 }
28537 return NULL;
28538 }
28539
28540
28541 SWIGINTERN PyObject *_wrap_PseudoDC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28542 PyObject *resultobj = 0;
28543 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28544 int arg2 ;
28545 wxPoint *arg3 = (wxPoint *) 0 ;
28546 void *argp1 = 0 ;
28547 int res1 = 0 ;
28548 PyObject * obj0 = 0 ;
28549 PyObject * obj1 = 0 ;
28550 char * kwnames[] = {
28551 (char *) "self",(char *) "points", NULL
28552 };
28553
28554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
28555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28556 if (!SWIG_IsOK(res1)) {
28557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_DrawSpline" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28558 }
28559 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28560 {
28561 arg3 = wxPoint_LIST_helper(obj1, &arg2);
28562 if (arg3 == NULL) SWIG_fail;
28563 }
28564 {
28565 PyThreadState* __tstate = wxPyBeginAllowThreads();
28566 (arg1)->DrawSpline(arg2,arg3);
28567 wxPyEndAllowThreads(__tstate);
28568 if (PyErr_Occurred()) SWIG_fail;
28569 }
28570 resultobj = SWIG_Py_Void();
28571 {
28572 if (arg3) delete [] arg3;
28573 }
28574 return resultobj;
28575 fail:
28576 {
28577 if (arg3) delete [] arg3;
28578 }
28579 return NULL;
28580 }
28581
28582
28583 SWIGINTERN PyObject *_wrap_PseudoDC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28584 PyObject *resultobj = 0;
28585 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28586 void *argp1 = 0 ;
28587 int res1 = 0 ;
28588 PyObject *swig_obj[1] ;
28589
28590 if (!args) SWIG_fail;
28591 swig_obj[0] = args;
28592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28593 if (!SWIG_IsOK(res1)) {
28594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_Clear" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28595 }
28596 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28597 {
28598 PyThreadState* __tstate = wxPyBeginAllowThreads();
28599 (arg1)->Clear();
28600 wxPyEndAllowThreads(__tstate);
28601 if (PyErr_Occurred()) SWIG_fail;
28602 }
28603 resultobj = SWIG_Py_Void();
28604 return resultobj;
28605 fail:
28606 return NULL;
28607 }
28608
28609
28610 SWIGINTERN PyObject *_wrap_PseudoDC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28611 PyObject *resultobj = 0;
28612 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28613 wxFont *arg2 = 0 ;
28614 void *argp1 = 0 ;
28615 int res1 = 0 ;
28616 void *argp2 = 0 ;
28617 int res2 = 0 ;
28618 PyObject * obj0 = 0 ;
28619 PyObject * obj1 = 0 ;
28620 char * kwnames[] = {
28621 (char *) "self",(char *) "font", NULL
28622 };
28623
28624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
28625 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28626 if (!SWIG_IsOK(res1)) {
28627 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetFont" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28628 }
28629 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28630 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
28631 if (!SWIG_IsOK(res2)) {
28632 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28633 }
28634 if (!argp2) {
28635 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
28636 }
28637 arg2 = reinterpret_cast< wxFont * >(argp2);
28638 {
28639 PyThreadState* __tstate = wxPyBeginAllowThreads();
28640 (arg1)->SetFont((wxFont const &)*arg2);
28641 wxPyEndAllowThreads(__tstate);
28642 if (PyErr_Occurred()) SWIG_fail;
28643 }
28644 resultobj = SWIG_Py_Void();
28645 return resultobj;
28646 fail:
28647 return NULL;
28648 }
28649
28650
28651 SWIGINTERN PyObject *_wrap_PseudoDC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28652 PyObject *resultobj = 0;
28653 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28654 wxPen *arg2 = 0 ;
28655 void *argp1 = 0 ;
28656 int res1 = 0 ;
28657 void *argp2 = 0 ;
28658 int res2 = 0 ;
28659 PyObject * obj0 = 0 ;
28660 PyObject * obj1 = 0 ;
28661 char * kwnames[] = {
28662 (char *) "self",(char *) "pen", NULL
28663 };
28664
28665 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
28666 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28667 if (!SWIG_IsOK(res1)) {
28668 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPen" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28669 }
28670 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28671 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
28672 if (!SWIG_IsOK(res2)) {
28673 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28674 }
28675 if (!argp2) {
28676 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
28677 }
28678 arg2 = reinterpret_cast< wxPen * >(argp2);
28679 {
28680 PyThreadState* __tstate = wxPyBeginAllowThreads();
28681 (arg1)->SetPen((wxPen const &)*arg2);
28682 wxPyEndAllowThreads(__tstate);
28683 if (PyErr_Occurred()) SWIG_fail;
28684 }
28685 resultobj = SWIG_Py_Void();
28686 return resultobj;
28687 fail:
28688 return NULL;
28689 }
28690
28691
28692 SWIGINTERN PyObject *_wrap_PseudoDC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28693 PyObject *resultobj = 0;
28694 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28695 wxBrush *arg2 = 0 ;
28696 void *argp1 = 0 ;
28697 int res1 = 0 ;
28698 void *argp2 = 0 ;
28699 int res2 = 0 ;
28700 PyObject * obj0 = 0 ;
28701 PyObject * obj1 = 0 ;
28702 char * kwnames[] = {
28703 (char *) "self",(char *) "brush", NULL
28704 };
28705
28706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
28707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28708 if (!SWIG_IsOK(res1)) {
28709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBrush" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28710 }
28711 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28712 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28713 if (!SWIG_IsOK(res2)) {
28714 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28715 }
28716 if (!argp2) {
28717 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
28718 }
28719 arg2 = reinterpret_cast< wxBrush * >(argp2);
28720 {
28721 PyThreadState* __tstate = wxPyBeginAllowThreads();
28722 (arg1)->SetBrush((wxBrush const &)*arg2);
28723 wxPyEndAllowThreads(__tstate);
28724 if (PyErr_Occurred()) SWIG_fail;
28725 }
28726 resultobj = SWIG_Py_Void();
28727 return resultobj;
28728 fail:
28729 return NULL;
28730 }
28731
28732
28733 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28734 PyObject *resultobj = 0;
28735 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28736 wxBrush *arg2 = 0 ;
28737 void *argp1 = 0 ;
28738 int res1 = 0 ;
28739 void *argp2 = 0 ;
28740 int res2 = 0 ;
28741 PyObject * obj0 = 0 ;
28742 PyObject * obj1 = 0 ;
28743 char * kwnames[] = {
28744 (char *) "self",(char *) "brush", NULL
28745 };
28746
28747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28749 if (!SWIG_IsOK(res1)) {
28750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28751 }
28752 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28753 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
28754 if (!SWIG_IsOK(res2)) {
28755 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28756 }
28757 if (!argp2) {
28758 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
28759 }
28760 arg2 = reinterpret_cast< wxBrush * >(argp2);
28761 {
28762 PyThreadState* __tstate = wxPyBeginAllowThreads();
28763 (arg1)->SetBackground((wxBrush const &)*arg2);
28764 wxPyEndAllowThreads(__tstate);
28765 if (PyErr_Occurred()) SWIG_fail;
28766 }
28767 resultobj = SWIG_Py_Void();
28768 return resultobj;
28769 fail:
28770 return NULL;
28771 }
28772
28773
28774 SWIGINTERN PyObject *_wrap_PseudoDC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28775 PyObject *resultobj = 0;
28776 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28777 int arg2 ;
28778 void *argp1 = 0 ;
28779 int res1 = 0 ;
28780 int val2 ;
28781 int ecode2 = 0 ;
28782 PyObject * obj0 = 0 ;
28783 PyObject * obj1 = 0 ;
28784 char * kwnames[] = {
28785 (char *) "self",(char *) "mode", NULL
28786 };
28787
28788 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
28789 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28790 if (!SWIG_IsOK(res1)) {
28791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28792 }
28793 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28794 ecode2 = SWIG_AsVal_int(obj1, &val2);
28795 if (!SWIG_IsOK(ecode2)) {
28796 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
28797 }
28798 arg2 = static_cast< int >(val2);
28799 {
28800 PyThreadState* __tstate = wxPyBeginAllowThreads();
28801 (arg1)->SetBackgroundMode(arg2);
28802 wxPyEndAllowThreads(__tstate);
28803 if (PyErr_Occurred()) SWIG_fail;
28804 }
28805 resultobj = SWIG_Py_Void();
28806 return resultobj;
28807 fail:
28808 return NULL;
28809 }
28810
28811
28812 SWIGINTERN PyObject *_wrap_PseudoDC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28813 PyObject *resultobj = 0;
28814 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28815 wxPalette *arg2 = 0 ;
28816 void *argp1 = 0 ;
28817 int res1 = 0 ;
28818 void *argp2 = 0 ;
28819 int res2 = 0 ;
28820 PyObject * obj0 = 0 ;
28821 PyObject * obj1 = 0 ;
28822 char * kwnames[] = {
28823 (char *) "self",(char *) "palette", NULL
28824 };
28825
28826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
28827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28828 if (!SWIG_IsOK(res1)) {
28829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetPalette" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28830 }
28831 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28832 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
28833 if (!SWIG_IsOK(res2)) {
28834 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28835 }
28836 if (!argp2) {
28837 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PseudoDC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
28838 }
28839 arg2 = reinterpret_cast< wxPalette * >(argp2);
28840 {
28841 PyThreadState* __tstate = wxPyBeginAllowThreads();
28842 (arg1)->SetPalette((wxPalette const &)*arg2);
28843 wxPyEndAllowThreads(__tstate);
28844 if (PyErr_Occurred()) SWIG_fail;
28845 }
28846 resultobj = SWIG_Py_Void();
28847 return resultobj;
28848 fail:
28849 return NULL;
28850 }
28851
28852
28853 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28854 PyObject *resultobj = 0;
28855 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28856 wxColour *arg2 = 0 ;
28857 void *argp1 = 0 ;
28858 int res1 = 0 ;
28859 wxColour temp2 ;
28860 PyObject * obj0 = 0 ;
28861 PyObject * obj1 = 0 ;
28862 char * kwnames[] = {
28863 (char *) "self",(char *) "colour", NULL
28864 };
28865
28866 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
28867 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28868 if (!SWIG_IsOK(res1)) {
28869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextForeground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28870 }
28871 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28872 {
28873 arg2 = &temp2;
28874 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28875 }
28876 {
28877 PyThreadState* __tstate = wxPyBeginAllowThreads();
28878 (arg1)->SetTextForeground((wxColour const &)*arg2);
28879 wxPyEndAllowThreads(__tstate);
28880 if (PyErr_Occurred()) SWIG_fail;
28881 }
28882 resultobj = SWIG_Py_Void();
28883 return resultobj;
28884 fail:
28885 return NULL;
28886 }
28887
28888
28889 SWIGINTERN PyObject *_wrap_PseudoDC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28890 PyObject *resultobj = 0;
28891 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28892 wxColour *arg2 = 0 ;
28893 void *argp1 = 0 ;
28894 int res1 = 0 ;
28895 wxColour temp2 ;
28896 PyObject * obj0 = 0 ;
28897 PyObject * obj1 = 0 ;
28898 char * kwnames[] = {
28899 (char *) "self",(char *) "colour", NULL
28900 };
28901
28902 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
28903 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28904 if (!SWIG_IsOK(res1)) {
28905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetTextBackground" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28906 }
28907 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28908 {
28909 arg2 = &temp2;
28910 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
28911 }
28912 {
28913 PyThreadState* __tstate = wxPyBeginAllowThreads();
28914 (arg1)->SetTextBackground((wxColour const &)*arg2);
28915 wxPyEndAllowThreads(__tstate);
28916 if (PyErr_Occurred()) SWIG_fail;
28917 }
28918 resultobj = SWIG_Py_Void();
28919 return resultobj;
28920 fail:
28921 return NULL;
28922 }
28923
28924
28925 SWIGINTERN PyObject *_wrap_PseudoDC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
28926 PyObject *resultobj = 0;
28927 wxPseudoDC *arg1 = (wxPseudoDC *) 0 ;
28928 int arg2 ;
28929 void *argp1 = 0 ;
28930 int res1 = 0 ;
28931 int val2 ;
28932 int ecode2 = 0 ;
28933 PyObject * obj0 = 0 ;
28934 PyObject * obj1 = 0 ;
28935 char * kwnames[] = {
28936 (char *) "self",(char *) "function", NULL
28937 };
28938
28939 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PseudoDC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
28940 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPseudoDC, 0 | 0 );
28941 if (!SWIG_IsOK(res1)) {
28942 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxPseudoDC *""'");
28943 }
28944 arg1 = reinterpret_cast< wxPseudoDC * >(argp1);
28945 ecode2 = SWIG_AsVal_int(obj1, &val2);
28946 if (!SWIG_IsOK(ecode2)) {
28947 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "PseudoDC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
28948 }
28949 arg2 = static_cast< int >(val2);
28950 {
28951 PyThreadState* __tstate = wxPyBeginAllowThreads();
28952 (arg1)->SetLogicalFunction(arg2);
28953 wxPyEndAllowThreads(__tstate);
28954 if (PyErr_Occurred()) SWIG_fail;
28955 }
28956 resultobj = SWIG_Py_Void();
28957 return resultobj;
28958 fail:
28959 return NULL;
28960 }
28961
28962
28963 SWIGINTERN PyObject *PseudoDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28964 PyObject *obj;
28965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
28966 SWIG_TypeNewClientData(SWIGTYPE_p_wxPseudoDC, SWIG_NewClientData(obj));
28967 return SWIG_Py_Void();
28968 }
28969
28970 SWIGINTERN PyObject *PseudoDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
28971 return SWIG_Python_InitShadowInstance(args);
28972 }
28973
28974 static PyMethodDef SwigMethods[] = {
28975 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
28976 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
28977 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
28978 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
28979 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
28980 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
28981 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
28982 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28983 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
28984 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
28985 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
28986 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
28987 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
28988 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
28989 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
28990 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
28991 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
28992 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
28993 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
28994 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
28995 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
28996 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
28997 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
28998 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
28999 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
29000 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
29001 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
29002 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
29003 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
29004 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
29005 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
29006 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
29007 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
29008 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
29009 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
29010 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
29011 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
29012 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
29013 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
29014 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
29015 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
29016 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29017 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
29018 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29019 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29020 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
29021 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
29022 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
29023 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
29024 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
29025 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
29026 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29027 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29028 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
29029 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
29030 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
29031 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29032 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
29033 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29034 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29035 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
29036 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
29037 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
29038 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
29039 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
29040 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
29041 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
29042 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
29043 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29044 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
29045 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29046 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29047 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
29048 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
29049 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
29050 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
29051 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29052 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
29053 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
29054 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
29055 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
29056 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
29057 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
29058 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
29059 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
29060 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
29061 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29062 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
29063 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
29064 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
29065 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29066 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29067 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29068 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29069 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29070 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29071 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29072 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29073 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29074 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
29075 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
29076 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
29077 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
29078 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
29079 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
29080 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
29081 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
29082 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
29083 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
29084 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29085 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
29086 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
29087 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
29088 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29089 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
29090 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
29091 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
29092 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
29093 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29094 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29095 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29096 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29097 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29098 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
29099 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
29100 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
29101 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
29102 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
29103 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
29104 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
29105 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
29106 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
29107 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
29108 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
29109 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
29110 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
29111 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29112 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
29113 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29114 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
29115 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29116 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
29117 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
29118 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
29119 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
29120 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29121 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
29122 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
29123 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
29124 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
29125 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
29126 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
29127 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
29128 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
29129 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
29130 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
29131 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29132 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
29133 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
29134 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
29135 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29136 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
29137 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
29138 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
29139 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
29140 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
29141 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
29142 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29143 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
29144 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
29145 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
29146 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
29147 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
29148 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29149 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
29150 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
29151 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
29152 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29153 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
29154 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
29155 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29156 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
29157 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
29158 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29159 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
29160 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29161 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
29162 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
29163 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
29164 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
29165 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
29166 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
29167 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
29168 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
29169 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
29170 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
29171 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
29172 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
29173 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
29174 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
29175 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
29176 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
29177 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
29178 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
29179 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
29180 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
29181 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
29182 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
29183 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
29184 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
29185 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
29186 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
29187 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
29188 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
29189 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
29190 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
29191 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29192 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29193 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29194 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
29195 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
29196 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
29197 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
29198 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29199 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
29200 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
29201 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
29202 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
29203 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
29204 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
29205 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
29206 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
29207 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
29208 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
29209 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
29210 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
29211 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
29212 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
29213 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
29214 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
29215 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
29216 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29217 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29218 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
29219 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
29220 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
29221 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29222 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29223 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
29224 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29225 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
29226 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
29227 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
29228 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
29229 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
29230 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29231 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
29232 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
29233 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
29234 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
29235 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
29236 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
29237 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
29238 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29239 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
29240 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
29241 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29242 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29243 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
29244 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
29245 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
29246 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
29247 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
29248 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
29249 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
29250 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
29251 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
29252 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
29253 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
29254 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
29255 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
29256 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
29257 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
29258 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
29259 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29260 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
29261 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
29262 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
29263 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
29264 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
29265 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
29266 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29267 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29268 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
29269 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
29270 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
29271 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
29272 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
29273 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
29274 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
29275 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
29276 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
29277 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
29278 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
29279 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
29280 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
29281 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29282 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
29283 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
29284 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
29285 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
29286 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
29287 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
29288 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
29289 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
29290 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
29291 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
29292 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
29293 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
29294 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
29295 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
29296 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
29297 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
29298 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
29299 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
29300 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
29301 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
29302 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
29303 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
29304 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
29305 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
29306 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
29307 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
29308 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
29309 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
29310 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
29311 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29312 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
29313 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
29314 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
29315 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
29316 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
29317 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
29318 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
29319 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
29320 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
29321 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
29322 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
29323 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
29324 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
29325 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
29326 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
29327 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
29328 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
29329 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
29330 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
29331 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
29332 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29333 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
29334 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
29335 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
29336 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29337 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
29338 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29339 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
29340 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29341 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
29342 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29343 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
29344 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
29345 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
29346 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29347 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29348 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29349 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29350 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29351 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29352 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29353 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29354 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29355 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
29356 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29357 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
29358 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
29359 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29360 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29361 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29362 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29363 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29364 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
29365 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29366 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
29367 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29368 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
29369 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29370 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29371 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29372 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
29373 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
29374 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
29375 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
29376 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29377 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29378 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
29379 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
29380 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
29381 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
29382 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
29383 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
29384 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29385 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29386 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29387 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29388 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
29389 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29390 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
29391 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
29392 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
29393 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
29394 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
29395 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29396 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29397 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
29398 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
29399 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
29400 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
29401 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
29402 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
29403 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
29404 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
29405 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
29406 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
29407 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
29408 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
29409 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
29410 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
29411 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
29412 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
29413 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
29414 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
29415 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
29416 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
29417 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
29418 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
29419 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
29420 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
29421 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
29422 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
29423 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
29424 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29425 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
29426 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
29427 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
29428 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
29429 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
29430 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
29431 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
29432 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
29433 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
29434 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29435 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
29436 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
29437 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
29438 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29439 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
29440 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
29441 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
29442 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
29443 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
29444 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29445 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
29446 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
29447 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
29448 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
29449 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
29450 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
29451 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
29452 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
29453 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
29454 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
29455 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
29456 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
29457 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
29458 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
29459 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
29460 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
29461 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
29462 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
29463 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
29464 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
29465 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
29466 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
29467 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
29468 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
29469 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
29470 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
29471 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
29472 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
29473 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
29474 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
29475 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
29476 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
29477 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
29478 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
29479 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
29480 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
29481 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
29482 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
29483 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
29484 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
29485 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
29486 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
29487 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
29488 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
29489 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
29490 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
29491 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
29492 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
29493 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
29494 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
29495 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
29496 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
29497 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
29498 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
29499 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
29500 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
29501 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
29502 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
29503 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
29504 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
29505 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
29506 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
29507 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
29508 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
29509 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
29510 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
29511 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
29512 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
29513 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
29514 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
29515 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
29516 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
29517 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
29518 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29519 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29520 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29521 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
29522 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
29523 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
29524 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
29525 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
29526 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
29527 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
29528 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
29529 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
29530 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
29531 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
29532 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
29533 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29534 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
29535 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
29536 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29537 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29538 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
29539 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
29540 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
29541 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
29542 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
29543 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
29544 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
29545 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
29546 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
29547 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
29548 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29549 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29550 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29551 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
29552 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
29553 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
29554 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
29555 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
29556 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
29557 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
29558 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
29559 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
29560 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
29561 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
29562 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
29563 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
29564 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
29565 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
29566 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
29567 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
29568 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
29569 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
29570 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
29571 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
29572 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
29573 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
29574 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
29575 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29576 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
29577 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29578 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
29579 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29580 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
29581 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29582 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
29583 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
29584 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
29585 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
29586 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
29587 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
29588 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
29589 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
29590 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
29591 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
29592 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
29593 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
29594 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
29595 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
29596 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
29597 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
29598 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
29599 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
29600 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
29601 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
29602 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
29603 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
29604 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
29605 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
29606 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
29607 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
29608 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
29609 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
29610 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
29611 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
29612 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
29613 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
29614 { (char *)"new_PseudoDC", (PyCFunction)_wrap_new_PseudoDC, METH_NOARGS, NULL},
29615 { (char *)"PseudoDC_BeginDrawing", (PyCFunction)_wrap_PseudoDC_BeginDrawing, METH_O, NULL},
29616 { (char *)"PseudoDC_EndDrawing", (PyCFunction)_wrap_PseudoDC_EndDrawing, METH_O, NULL},
29617 { (char *)"delete_PseudoDC", (PyCFunction)_wrap_delete_PseudoDC, METH_O, NULL},
29618 { (char *)"PseudoDC_RemoveAll", (PyCFunction)_wrap_PseudoDC_RemoveAll, METH_O, NULL},
29619 { (char *)"PseudoDC_GetLen", (PyCFunction)_wrap_PseudoDC_GetLen, METH_O, NULL},
29620 { (char *)"PseudoDC_SetId", (PyCFunction) _wrap_PseudoDC_SetId, METH_VARARGS | METH_KEYWORDS, NULL},
29621 { (char *)"PseudoDC_ClearId", (PyCFunction) _wrap_PseudoDC_ClearId, METH_VARARGS | METH_KEYWORDS, NULL},
29622 { (char *)"PseudoDC_RemoveId", (PyCFunction) _wrap_PseudoDC_RemoveId, METH_VARARGS | METH_KEYWORDS, NULL},
29623 { (char *)"PseudoDC_TranslateId", (PyCFunction) _wrap_PseudoDC_TranslateId, METH_VARARGS | METH_KEYWORDS, NULL},
29624 { (char *)"PseudoDC_DrawIdToDC", (PyCFunction) _wrap_PseudoDC_DrawIdToDC, METH_VARARGS | METH_KEYWORDS, NULL},
29625 { (char *)"PseudoDC_SetIdBounds", (PyCFunction) _wrap_PseudoDC_SetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
29626 { (char *)"PseudoDC_GetIdBounds", (PyCFunction) _wrap_PseudoDC_GetIdBounds, METH_VARARGS | METH_KEYWORDS, NULL},
29627 { (char *)"PseudoDC_DrawToDCClipped", (PyCFunction) _wrap_PseudoDC_DrawToDCClipped, METH_VARARGS | METH_KEYWORDS, NULL},
29628 { (char *)"PseudoDC_DrawToDCClippedRgn", (PyCFunction) _wrap_PseudoDC_DrawToDCClippedRgn, METH_VARARGS | METH_KEYWORDS, NULL},
29629 { (char *)"PseudoDC_DrawToDC", (PyCFunction) _wrap_PseudoDC_DrawToDC, METH_VARARGS | METH_KEYWORDS, NULL},
29630 { (char *)"PseudoDC_FloodFill", (PyCFunction) _wrap_PseudoDC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
29631 { (char *)"PseudoDC_FloodFillPoint", (PyCFunction) _wrap_PseudoDC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29632 { (char *)"PseudoDC_DrawLine", (PyCFunction) _wrap_PseudoDC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
29633 { (char *)"PseudoDC_DrawLinePoint", (PyCFunction) _wrap_PseudoDC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29634 { (char *)"PseudoDC_CrossHair", (PyCFunction) _wrap_PseudoDC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
29635 { (char *)"PseudoDC_CrossHairPoint", (PyCFunction) _wrap_PseudoDC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29636 { (char *)"PseudoDC_DrawArc", (PyCFunction) _wrap_PseudoDC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
29637 { (char *)"PseudoDC_DrawArcPoint", (PyCFunction) _wrap_PseudoDC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29638 { (char *)"PseudoDC_DrawCheckMark", (PyCFunction) _wrap_PseudoDC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
29639 { (char *)"PseudoDC_DrawCheckMarkRect", (PyCFunction) _wrap_PseudoDC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
29640 { (char *)"PseudoDC_DrawEllipticArc", (PyCFunction) _wrap_PseudoDC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
29641 { (char *)"PseudoDC_DrawEllipticArcPointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29642 { (char *)"PseudoDC_DrawPoint", (PyCFunction) _wrap_PseudoDC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29643 { (char *)"PseudoDC_DrawPointPoint", (PyCFunction) _wrap_PseudoDC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29644 { (char *)"PseudoDC_DrawRectangle", (PyCFunction) _wrap_PseudoDC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29645 { (char *)"PseudoDC_DrawRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29646 { (char *)"PseudoDC_DrawRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29647 { (char *)"PseudoDC_DrawRoundedRectangle", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
29648 { (char *)"PseudoDC_DrawRoundedRectangleRect", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
29649 { (char *)"PseudoDC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_PseudoDC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29650 { (char *)"PseudoDC_DrawCircle", (PyCFunction) _wrap_PseudoDC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
29651 { (char *)"PseudoDC_DrawCirclePoint", (PyCFunction) _wrap_PseudoDC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
29652 { (char *)"PseudoDC_DrawEllipse", (PyCFunction) _wrap_PseudoDC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
29653 { (char *)"PseudoDC_DrawEllipseRect", (PyCFunction) _wrap_PseudoDC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
29654 { (char *)"PseudoDC_DrawEllipsePointSize", (PyCFunction) _wrap_PseudoDC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
29655 { (char *)"PseudoDC_DrawIcon", (PyCFunction) _wrap_PseudoDC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
29656 { (char *)"PseudoDC_DrawIconPoint", (PyCFunction) _wrap_PseudoDC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29657 { (char *)"PseudoDC_DrawBitmap", (PyCFunction) _wrap_PseudoDC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
29658 { (char *)"PseudoDC_DrawBitmapPoint", (PyCFunction) _wrap_PseudoDC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29659 { (char *)"PseudoDC_DrawText", (PyCFunction) _wrap_PseudoDC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
29660 { (char *)"PseudoDC_DrawTextPoint", (PyCFunction) _wrap_PseudoDC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29661 { (char *)"PseudoDC_DrawRotatedText", (PyCFunction) _wrap_PseudoDC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
29662 { (char *)"PseudoDC_DrawRotatedTextPoint", (PyCFunction) _wrap_PseudoDC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
29663 { (char *)"PseudoDC_DrawLines", (PyCFunction) _wrap_PseudoDC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
29664 { (char *)"PseudoDC_DrawPolygon", (PyCFunction) _wrap_PseudoDC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
29665 { (char *)"PseudoDC_DrawLabel", (PyCFunction) _wrap_PseudoDC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29666 { (char *)"PseudoDC_DrawImageLabel", (PyCFunction) _wrap_PseudoDC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
29667 { (char *)"PseudoDC_DrawSpline", (PyCFunction) _wrap_PseudoDC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
29668 { (char *)"PseudoDC_Clear", (PyCFunction)_wrap_PseudoDC_Clear, METH_O, NULL},
29669 { (char *)"PseudoDC_SetFont", (PyCFunction) _wrap_PseudoDC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
29670 { (char *)"PseudoDC_SetPen", (PyCFunction) _wrap_PseudoDC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
29671 { (char *)"PseudoDC_SetBrush", (PyCFunction) _wrap_PseudoDC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
29672 { (char *)"PseudoDC_SetBackground", (PyCFunction) _wrap_PseudoDC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29673 { (char *)"PseudoDC_SetBackgroundMode", (PyCFunction) _wrap_PseudoDC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
29674 { (char *)"PseudoDC_SetPalette", (PyCFunction) _wrap_PseudoDC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
29675 { (char *)"PseudoDC_SetTextForeground", (PyCFunction) _wrap_PseudoDC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
29676 { (char *)"PseudoDC_SetTextBackground", (PyCFunction) _wrap_PseudoDC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
29677 { (char *)"PseudoDC_SetLogicalFunction", (PyCFunction) _wrap_PseudoDC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
29678 { (char *)"PseudoDC_swigregister", PseudoDC_swigregister, METH_VARARGS, NULL},
29679 { (char *)"PseudoDC_swiginit", PseudoDC_swiginit, METH_VARARGS, NULL},
29680 { NULL, NULL, 0, NULL }
29681 };
29682
29683
29684 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
29685
29686 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
29687 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
29688 }
29689 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
29690 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
29691 }
29692 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
29693 return (void *)((wxGDIObject *) ((wxIcon *) x));
29694 }
29695 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
29696 return (void *)((wxGDIObject *) ((wxPalette *) x));
29697 }
29698 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
29699 return (void *)((wxGDIObject *) ((wxPen *) x));
29700 }
29701 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
29702 return (void *)((wxGDIObject *) ((wxFont *) x));
29703 }
29704 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
29705 return (void *)((wxGDIObject *) ((wxCursor *) x));
29706 }
29707 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
29708 return (void *)((wxGDIObject *) ((wxBitmap *) x));
29709 }
29710 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
29711 return (void *)((wxGDIObject *) ((wxRegion *) x));
29712 }
29713 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
29714 return (void *)((wxGDIObject *) ((wxBrush *) x));
29715 }
29716 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
29717 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
29718 }
29719 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
29720 return (void *)((wxDC *) ((wxScreenDC *) x));
29721 }
29722 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
29723 return (void *)((wxDC *) ((wxMirrorDC *) x));
29724 }
29725 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
29726 return (void *)((wxDC *) ((wxMemoryDC *) x));
29727 }
29728 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
29729 return (void *)((wxDC *) ((wxWindowDC *) x));
29730 }
29731 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
29732 return (void *)((wxDC *) ((wxMetaFileDC *) x));
29733 }
29734 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
29735 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29736 }
29737 static void *_p_wxClientDCTo_p_wxDC(void *x) {
29738 return (void *)((wxDC *) ((wxClientDC *) x));
29739 }
29740 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
29741 return (void *)((wxDC *) ((wxPaintDC *) x));
29742 }
29743 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
29744 return (void *)((wxDC *) ((wxPostScriptDC *) x));
29745 }
29746 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
29747 return (void *)((wxDC *) ((wxPrinterDC *) x));
29748 }
29749 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
29750 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
29751 }
29752 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
29753 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
29754 }
29755 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
29756 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
29757 }
29758 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
29759 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
29760 }
29761 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
29762 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
29763 }
29764 static void *_p_wxPenTo_p_wxObject(void *x) {
29765 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
29766 }
29767 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
29768 return (void *)((wxObject *) ((wxRegionIterator *) x));
29769 }
29770 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
29771 return (void *)((wxObject *) ((wxSizerItem *) x));
29772 }
29773 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
29774 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
29775 }
29776 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
29777 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
29778 }
29779 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
29780 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
29781 }
29782 static void *_p_wxIconTo_p_wxObject(void *x) {
29783 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
29784 }
29785 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
29786 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
29787 }
29788 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
29789 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
29790 }
29791 static void *_p_wxSizerTo_p_wxObject(void *x) {
29792 return (void *)((wxObject *) ((wxSizer *) x));
29793 }
29794 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
29795 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
29796 }
29797 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
29798 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
29799 }
29800 static void *_p_wxEventTo_p_wxObject(void *x) {
29801 return (void *)((wxObject *) ((wxEvent *) x));
29802 }
29803 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
29804 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
29805 }
29806 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
29807 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
29808 }
29809 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
29810 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
29811 }
29812 static void *_p_wxPseudoDCTo_p_wxObject(void *x) {
29813 return (void *)((wxObject *) ((wxPseudoDC *) x));
29814 }
29815 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
29816 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
29817 }
29818 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
29819 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
29820 }
29821 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
29822 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
29823 }
29824 static void *_p_wxDCTo_p_wxObject(void *x) {
29825 return (void *)((wxObject *) ((wxDC *) x));
29826 }
29827 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
29828 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
29829 }
29830 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
29831 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
29832 }
29833 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
29834 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
29835 }
29836 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
29837 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
29838 }
29839 static void *_p_wxControlTo_p_wxObject(void *x) {
29840 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
29841 }
29842 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
29843 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
29844 }
29845 static void *_p_wxClientDCTo_p_wxObject(void *x) {
29846 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
29847 }
29848 static void *_p_wxFSFileTo_p_wxObject(void *x) {
29849 return (void *)((wxObject *) ((wxFSFile *) x));
29850 }
29851 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
29852 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
29853 }
29854 static void *_p_wxRegionTo_p_wxObject(void *x) {
29855 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
29856 }
29857 static void *_p_wxPySizerTo_p_wxObject(void *x) {
29858 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
29859 }
29860 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
29861 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
29862 }
29863 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
29864 return (void *)((wxObject *) ((wxGDIObject *) x));
29865 }
29866 static void *_p_wxEffectsTo_p_wxObject(void *x) {
29867 return (void *)((wxObject *) ((wxEffects *) x));
29868 }
29869 static void *_p_wxPyEventTo_p_wxObject(void *x) {
29870 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
29871 }
29872 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
29873 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
29874 }
29875 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
29876 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
29877 }
29878 static void *_p_wxShowEventTo_p_wxObject(void *x) {
29879 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
29880 }
29881 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
29882 return (void *)((wxObject *) ((wxMenuItem *) x));
29883 }
29884 static void *_p_wxDateEventTo_p_wxObject(void *x) {
29885 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
29886 }
29887 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
29888 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
29889 }
29890 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
29891 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
29892 }
29893 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
29894 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
29895 }
29896 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
29897 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
29898 }
29899 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
29900 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
29901 }
29902 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
29903 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
29904 }
29905 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
29906 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
29907 }
29908 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
29909 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
29910 }
29911 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
29912 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
29913 }
29914 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
29915 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
29916 }
29917 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
29918 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
29919 }
29920 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
29921 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
29922 }
29923 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
29924 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
29925 }
29926 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
29927 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
29928 }
29929 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
29930 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
29931 }
29932 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
29933 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
29934 }
29935 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
29936 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
29937 }
29938 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
29939 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
29940 }
29941 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
29942 return (void *)((wxObject *) ((wxImageHandler *) x));
29943 }
29944 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
29945 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
29946 }
29947 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
29948 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
29949 }
29950 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
29951 return (void *)((wxObject *) ((wxEvtHandler *) x));
29952 }
29953 static void *_p_wxMouseCaptureLostEventTo_p_wxObject(void *x) {
29954 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureLostEvent *) x));
29955 }
29956 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
29957 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
29958 }
29959 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
29960 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
29961 }
29962 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
29963 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
29964 }
29965 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
29966 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
29967 }
29968 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
29969 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
29970 }
29971 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
29972 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
29973 }
29974 static void *_p_wxImageTo_p_wxObject(void *x) {
29975 return (void *)((wxObject *) ((wxImage *) x));
29976 }
29977 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
29978 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
29979 }
29980 static void *_p_wxPaletteTo_p_wxObject(void *x) {
29981 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
29982 }
29983 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
29984 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
29985 }
29986 static void *_p_wxImageListTo_p_wxObject(void *x) {
29987 return (void *)((wxObject *) ((wxImageList *) x));
29988 }
29989 static void *_p_wxCursorTo_p_wxObject(void *x) {
29990 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
29991 }
29992 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
29993 return (void *)((wxObject *) ((wxEncodingConverter *) x));
29994 }
29995 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
29996 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
29997 }
29998 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
29999 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
30000 }
30001 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
30002 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
30003 }
30004 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
30005 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
30006 }
30007 static void *_p_wxWindowTo_p_wxObject(void *x) {
30008 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
30009 }
30010 static void *_p_wxMenuTo_p_wxObject(void *x) {
30011 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
30012 }
30013 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
30014 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
30015 }
30016 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
30017 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
30018 }
30019 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
30020 return (void *)((wxObject *) ((wxFileSystem *) x));
30021 }
30022 static void *_p_wxBitmapTo_p_wxObject(void *x) {
30023 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
30024 }
30025 static void *_p_wxMaskTo_p_wxObject(void *x) {
30026 return (void *)((wxObject *) ((wxMask *) x));
30027 }
30028 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
30029 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
30030 }
30031 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
30032 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
30033 }
30034 static void *_p_wxPyAppTo_p_wxObject(void *x) {
30035 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
30036 }
30037 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
30038 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
30039 }
30040 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
30041 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
30042 }
30043 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
30044 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
30045 }
30046 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
30047 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
30048 }
30049 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
30050 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
30051 }
30052 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
30053 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
30054 }
30055 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
30056 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
30057 }
30058 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
30059 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
30060 }
30061 static void *_p_wxFontTo_p_wxObject(void *x) {
30062 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
30063 }
30064 static void *_p_wxBrushTo_p_wxObject(void *x) {
30065 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
30066 }
30067 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
30068 return (void *)((wxObject *) ((wxMetaFile *) x));
30069 }
30070 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
30071 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
30072 }
30073 static void *_p_wxColourTo_p_wxObject(void *x) {
30074 return (void *)((wxObject *) ((wxColour *) x));
30075 }
30076 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
30077 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
30078 }
30079 static void *_p_wxValidatorTo_p_wxObject(void *x) {
30080 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
30081 }
30082 static void *_p_wxControlTo_p_wxWindow(void *x) {
30083 return (void *)((wxWindow *) ((wxControl *) x));
30084 }
30085 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
30086 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
30087 }
30088 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
30089 return (void *)((wxWindow *) ((wxMenuBar *) x));
30090 }
30091 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
30092 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
30093 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};
30094 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
30095 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
30096 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
30097 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
30098 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
30099 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
30100 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
30101 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
30102 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
30103 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
30104 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
30105 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
30106 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
30107 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
30108 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
30109 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
30110 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
30111 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
30112 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
30113 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
30114 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
30115 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
30116 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
30117 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
30118 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
30119 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
30120 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
30121 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
30122 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
30123 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
30124 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
30125 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
30126 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
30127 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
30128 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
30129 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
30130 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
30131 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
30132 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
30133 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
30134 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
30135 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
30136 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
30137 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
30138 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
30139 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
30140 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
30141 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
30142 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
30143 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
30144 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
30145 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
30146 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
30147 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
30148 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
30149 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
30150 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
30151 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
30152 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
30153 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
30154 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
30155 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
30156 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
30157 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
30158 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
30159 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
30160 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
30161 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
30162 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
30163 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
30164 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
30165 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
30166 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
30167 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
30168 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
30169 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
30170 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
30171 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
30172 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
30173 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
30174 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
30175 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
30176 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
30177 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
30178 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
30179 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
30180 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
30181 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
30182 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
30183 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
30184 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
30185 static swig_type_info _swigt__p_wxMouseCaptureLostEvent = {"_p_wxMouseCaptureLostEvent", 0, 0, 0, 0, 0};
30186 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
30187 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
30188 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
30189 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
30190 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
30191 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
30192 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
30193 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
30194 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
30195 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
30196 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
30197 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
30198 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
30199 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
30200 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
30201 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
30202 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
30203 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
30204 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
30205 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
30206 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
30207 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
30208 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
30209 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
30210 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
30211 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
30212 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
30213 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
30214 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
30215 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
30216 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
30217 static swig_type_info _swigt__p_wxPseudoDC = {"_p_wxPseudoDC", "wxPseudoDC *", 0, 0, (void*)0, 0};
30218 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
30219 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
30220 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
30221 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
30222 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
30223 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
30224 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
30225 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
30226 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
30227 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
30228 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
30229 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
30230 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
30231
30232 static swig_type_info *swig_type_initial[] = {
30233 &_swigt__p_char,
30234 &_swigt__p_double,
30235 &_swigt__p_form_ops_t,
30236 &_swigt__p_int,
30237 &_swigt__p_unsigned_char,
30238 &_swigt__p_unsigned_int,
30239 &_swigt__p_unsigned_long,
30240 &_swigt__p_wxANIHandler,
30241 &_swigt__p_wxAcceleratorTable,
30242 &_swigt__p_wxActivateEvent,
30243 &_swigt__p_wxBMPHandler,
30244 &_swigt__p_wxBitmap,
30245 &_swigt__p_wxBoxSizer,
30246 &_swigt__p_wxBrush,
30247 &_swigt__p_wxBrushList,
30248 &_swigt__p_wxBufferedDC,
30249 &_swigt__p_wxBufferedPaintDC,
30250 &_swigt__p_wxCURHandler,
30251 &_swigt__p_wxChildFocusEvent,
30252 &_swigt__p_wxClientDC,
30253 &_swigt__p_wxClipboardTextEvent,
30254 &_swigt__p_wxCloseEvent,
30255 &_swigt__p_wxColour,
30256 &_swigt__p_wxColourDatabase,
30257 &_swigt__p_wxCommandEvent,
30258 &_swigt__p_wxContextMenuEvent,
30259 &_swigt__p_wxControl,
30260 &_swigt__p_wxControlWithItems,
30261 &_swigt__p_wxCursor,
30262 &_swigt__p_wxDC,
30263 &_swigt__p_wxDash,
30264 &_swigt__p_wxDateEvent,
30265 &_swigt__p_wxDisplayChangedEvent,
30266 &_swigt__p_wxDropFilesEvent,
30267 &_swigt__p_wxDuplexMode,
30268 &_swigt__p_wxEffects,
30269 &_swigt__p_wxEncodingConverter,
30270 &_swigt__p_wxEraseEvent,
30271 &_swigt__p_wxEvent,
30272 &_swigt__p_wxEvtHandler,
30273 &_swigt__p_wxFSFile,
30274 &_swigt__p_wxFileSystem,
30275 &_swigt__p_wxFlexGridSizer,
30276 &_swigt__p_wxFocusEvent,
30277 &_swigt__p_wxFont,
30278 &_swigt__p_wxFontList,
30279 &_swigt__p_wxFontMapper,
30280 &_swigt__p_wxGBSizerItem,
30281 &_swigt__p_wxGDIObjListBase,
30282 &_swigt__p_wxGDIObject,
30283 &_swigt__p_wxGIFHandler,
30284 &_swigt__p_wxGridBagSizer,
30285 &_swigt__p_wxGridSizer,
30286 &_swigt__p_wxICOHandler,
30287 &_swigt__p_wxIcon,
30288 &_swigt__p_wxIconBundle,
30289 &_swigt__p_wxIconLocation,
30290 &_swigt__p_wxIconizeEvent,
30291 &_swigt__p_wxIdleEvent,
30292 &_swigt__p_wxImage,
30293 &_swigt__p_wxImageHandler,
30294 &_swigt__p_wxImageList,
30295 &_swigt__p_wxIndividualLayoutConstraint,
30296 &_swigt__p_wxInitDialogEvent,
30297 &_swigt__p_wxJPEGHandler,
30298 &_swigt__p_wxKeyEvent,
30299 &_swigt__p_wxLanguageInfo,
30300 &_swigt__p_wxLayoutConstraints,
30301 &_swigt__p_wxLocale,
30302 &_swigt__p_wxMask,
30303 &_swigt__p_wxMaximizeEvent,
30304 &_swigt__p_wxMemoryDC,
30305 &_swigt__p_wxMenu,
30306 &_swigt__p_wxMenuBar,
30307 &_swigt__p_wxMenuEvent,
30308 &_swigt__p_wxMenuItem,
30309 &_swigt__p_wxMetaFile,
30310 &_swigt__p_wxMetaFileDC,
30311 &_swigt__p_wxMirrorDC,
30312 &_swigt__p_wxMouseCaptureChangedEvent,
30313 &_swigt__p_wxMouseCaptureLostEvent,
30314 &_swigt__p_wxMouseEvent,
30315 &_swigt__p_wxMoveEvent,
30316 &_swigt__p_wxNativeEncodingInfo,
30317 &_swigt__p_wxNativeFontInfo,
30318 &_swigt__p_wxNavigationKeyEvent,
30319 &_swigt__p_wxNcPaintEvent,
30320 &_swigt__p_wxNotifyEvent,
30321 &_swigt__p_wxObject,
30322 &_swigt__p_wxPCXHandler,
30323 &_swigt__p_wxPNGHandler,
30324 &_swigt__p_wxPNMHandler,
30325 &_swigt__p_wxPaintDC,
30326 &_swigt__p_wxPaintEvent,
30327 &_swigt__p_wxPalette,
30328 &_swigt__p_wxPaletteChangedEvent,
30329 &_swigt__p_wxPaperSize,
30330 &_swigt__p_wxPen,
30331 &_swigt__p_wxPenList,
30332 &_swigt__p_wxPoint,
30333 &_swigt__p_wxPostScriptDC,
30334 &_swigt__p_wxPrintData,
30335 &_swigt__p_wxPrinterDC,
30336 &_swigt__p_wxPseudoDC,
30337 &_swigt__p_wxPyApp,
30338 &_swigt__p_wxPyCommandEvent,
30339 &_swigt__p_wxPyEvent,
30340 &_swigt__p_wxPyFontEnumerator,
30341 &_swigt__p_wxPyImageHandler,
30342 &_swigt__p_wxPySizer,
30343 &_swigt__p_wxPyValidator,
30344 &_swigt__p_wxQueryNewPaletteEvent,
30345 &_swigt__p_wxRect,
30346 &_swigt__p_wxRegion,
30347 &_swigt__p_wxRegionIterator,
30348 &_swigt__p_wxRendererNative,
30349 &_swigt__p_wxRendererVersion,
30350 &_swigt__p_wxScreenDC,
30351 &_swigt__p_wxScrollEvent,
30352 &_swigt__p_wxScrollWinEvent,
30353 &_swigt__p_wxSetCursorEvent,
30354 &_swigt__p_wxShowEvent,
30355 &_swigt__p_wxSize,
30356 &_swigt__p_wxSizeEvent,
30357 &_swigt__p_wxSizer,
30358 &_swigt__p_wxSizerItem,
30359 &_swigt__p_wxSplitterRenderParams,
30360 &_swigt__p_wxStaticBoxSizer,
30361 &_swigt__p_wxStdDialogButtonSizer,
30362 &_swigt__p_wxStockGDI,
30363 &_swigt__p_wxString,
30364 &_swigt__p_wxSysColourChangedEvent,
30365 &_swigt__p_wxTIFFHandler,
30366 &_swigt__p_wxUpdateUIEvent,
30367 &_swigt__p_wxValidator,
30368 &_swigt__p_wxWindow,
30369 &_swigt__p_wxWindowCreateEvent,
30370 &_swigt__p_wxWindowDC,
30371 &_swigt__p_wxWindowDestroyEvent,
30372 &_swigt__p_wxXPMHandler,
30373 };
30374
30375 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
30376 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
30377 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
30378 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
30379 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
30380 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
30381 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
30382 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
30383 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
30384 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
30385 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}};
30386 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
30387 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
30388 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
30389 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
30390 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
30391 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}};
30392 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
30393 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
30394 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
30395 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
30396 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
30397 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
30398 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
30399 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}};
30400 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}};
30401 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
30402 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
30403 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
30404 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
30405 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
30406 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
30407 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
30408 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
30409 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}};
30410 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
30411 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
30412 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
30413 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
30414 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
30415 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
30416 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
30417 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
30418 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
30419 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
30420 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
30421 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
30422 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
30423 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
30424 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
30425 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
30426 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
30427 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
30428 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
30429 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
30430 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
30431 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
30432 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
30433 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30434 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30435 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30436 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
30437 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
30438 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
30439 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
30440 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
30441 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
30442 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
30443 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
30444 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
30445 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
30446 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
30447 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
30448 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
30449 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30450 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30451 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
30452 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
30453 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
30454 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
30455 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
30456 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
30457 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
30458 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
30459 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
30460 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
30461 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
30462 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
30463 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
30464 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
30465 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
30466 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
30467 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
30468 static swig_cast_info _swigc__p_wxMouseCaptureLostEvent[] = {{&_swigt__p_wxMouseCaptureLostEvent, 0, 0, 0},{0, 0, 0, 0}};
30469 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
30470 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
30471 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
30472 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
30473 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
30474 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
30475 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
30476 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
30477 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
30478 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
30479 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
30480 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
30481 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
30482 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
30483 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
30484 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
30485 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
30486 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
30487 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
30488 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
30489 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
30490 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
30491 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_wxPseudoDC, _p_wxPseudoDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxClipboardTextEvent, _p_wxClipboardTextEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintEvent, _p_wxPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNcPaintEvent, _p_wxNcPaintEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaletteChangedEvent, _p_wxPaletteChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDisplayChangedEvent, _p_wxDisplayChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureChangedEvent, _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSysColourChangedEvent, _p_wxSysColourChangedEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxControl, _p_wxControlTo_p_wxObject, 0, 0}, {&_swigt__p_wxFont, _p_wxFontTo_p_wxObject, 0, 0}, {&_swigt__p_wxSetCursorEvent, _p_wxSetCursorEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxClientDC, _p_wxClientDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxFSFile, _p_wxFSFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxMemoryDC, _p_wxMemoryDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegion, _p_wxRegionTo_p_wxObject, 0, 0}, {&_swigt__p_wxPySizer, _p_wxPySizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxDC, _p_wxDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxIcon, _p_wxIconTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDC, _p_wxWindowDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxGDIObject, _p_wxGDIObjectTo_p_wxObject, 0, 0}, {&_swigt__p_wxEffects, _p_wxEffectsTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyEvent, _p_wxPyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNotifyEvent, _p_wxNotifyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPostScriptDC, _p_wxPostScriptDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxShowEvent, _p_wxShowEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuItem, _p_wxMenuItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxDateEvent, _p_wxDateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIdleEvent, _p_wxIdleEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowCreateEvent, _p_wxWindowCreateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxQueryNewPaletteEvent, _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMaximizeEvent, _p_wxMaximizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIconizeEvent, _p_wxIconizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizeEvent, _p_wxSizeEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMoveEvent, _p_wxMoveEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxActivateEvent, _p_wxActivateEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxANIHandler, _p_wxANIHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxCURHandler, _p_wxCURHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxICOHandler, _p_wxICOHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBMPHandler, _p_wxBMPHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyImageHandler, _p_wxPyImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageHandler, _p_wxImageHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxXPMHandler, _p_wxXPMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxTIFFHandler, _p_wxTIFFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvtHandler, _p_wxEvtHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNGHandler, _p_wxPNGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseCaptureLostEvent, _p_wxMouseCaptureLostEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
30492 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
30493 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
30494 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
30495 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
30496 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
30497 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
30498 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
30499 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
30500 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
30501 static swig_cast_info _swigc__p_wxPseudoDC[] = { {&_swigt__p_wxPseudoDC, 0, 0, 0},{0, 0, 0, 0}};
30502 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
30503 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
30504 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
30505 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
30506 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
30507 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
30508 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
30509 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
30510 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
30511 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
30512 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
30513 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}};
30514 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
30515
30516 static swig_cast_info *swig_cast_initial[] = {
30517 _swigc__p_char,
30518 _swigc__p_double,
30519 _swigc__p_form_ops_t,
30520 _swigc__p_int,
30521 _swigc__p_unsigned_char,
30522 _swigc__p_unsigned_int,
30523 _swigc__p_unsigned_long,
30524 _swigc__p_wxANIHandler,
30525 _swigc__p_wxAcceleratorTable,
30526 _swigc__p_wxActivateEvent,
30527 _swigc__p_wxBMPHandler,
30528 _swigc__p_wxBitmap,
30529 _swigc__p_wxBoxSizer,
30530 _swigc__p_wxBrush,
30531 _swigc__p_wxBrushList,
30532 _swigc__p_wxBufferedDC,
30533 _swigc__p_wxBufferedPaintDC,
30534 _swigc__p_wxCURHandler,
30535 _swigc__p_wxChildFocusEvent,
30536 _swigc__p_wxClientDC,
30537 _swigc__p_wxClipboardTextEvent,
30538 _swigc__p_wxCloseEvent,
30539 _swigc__p_wxColour,
30540 _swigc__p_wxColourDatabase,
30541 _swigc__p_wxCommandEvent,
30542 _swigc__p_wxContextMenuEvent,
30543 _swigc__p_wxControl,
30544 _swigc__p_wxControlWithItems,
30545 _swigc__p_wxCursor,
30546 _swigc__p_wxDC,
30547 _swigc__p_wxDash,
30548 _swigc__p_wxDateEvent,
30549 _swigc__p_wxDisplayChangedEvent,
30550 _swigc__p_wxDropFilesEvent,
30551 _swigc__p_wxDuplexMode,
30552 _swigc__p_wxEffects,
30553 _swigc__p_wxEncodingConverter,
30554 _swigc__p_wxEraseEvent,
30555 _swigc__p_wxEvent,
30556 _swigc__p_wxEvtHandler,
30557 _swigc__p_wxFSFile,
30558 _swigc__p_wxFileSystem,
30559 _swigc__p_wxFlexGridSizer,
30560 _swigc__p_wxFocusEvent,
30561 _swigc__p_wxFont,
30562 _swigc__p_wxFontList,
30563 _swigc__p_wxFontMapper,
30564 _swigc__p_wxGBSizerItem,
30565 _swigc__p_wxGDIObjListBase,
30566 _swigc__p_wxGDIObject,
30567 _swigc__p_wxGIFHandler,
30568 _swigc__p_wxGridBagSizer,
30569 _swigc__p_wxGridSizer,
30570 _swigc__p_wxICOHandler,
30571 _swigc__p_wxIcon,
30572 _swigc__p_wxIconBundle,
30573 _swigc__p_wxIconLocation,
30574 _swigc__p_wxIconizeEvent,
30575 _swigc__p_wxIdleEvent,
30576 _swigc__p_wxImage,
30577 _swigc__p_wxImageHandler,
30578 _swigc__p_wxImageList,
30579 _swigc__p_wxIndividualLayoutConstraint,
30580 _swigc__p_wxInitDialogEvent,
30581 _swigc__p_wxJPEGHandler,
30582 _swigc__p_wxKeyEvent,
30583 _swigc__p_wxLanguageInfo,
30584 _swigc__p_wxLayoutConstraints,
30585 _swigc__p_wxLocale,
30586 _swigc__p_wxMask,
30587 _swigc__p_wxMaximizeEvent,
30588 _swigc__p_wxMemoryDC,
30589 _swigc__p_wxMenu,
30590 _swigc__p_wxMenuBar,
30591 _swigc__p_wxMenuEvent,
30592 _swigc__p_wxMenuItem,
30593 _swigc__p_wxMetaFile,
30594 _swigc__p_wxMetaFileDC,
30595 _swigc__p_wxMirrorDC,
30596 _swigc__p_wxMouseCaptureChangedEvent,
30597 _swigc__p_wxMouseCaptureLostEvent,
30598 _swigc__p_wxMouseEvent,
30599 _swigc__p_wxMoveEvent,
30600 _swigc__p_wxNativeEncodingInfo,
30601 _swigc__p_wxNativeFontInfo,
30602 _swigc__p_wxNavigationKeyEvent,
30603 _swigc__p_wxNcPaintEvent,
30604 _swigc__p_wxNotifyEvent,
30605 _swigc__p_wxObject,
30606 _swigc__p_wxPCXHandler,
30607 _swigc__p_wxPNGHandler,
30608 _swigc__p_wxPNMHandler,
30609 _swigc__p_wxPaintDC,
30610 _swigc__p_wxPaintEvent,
30611 _swigc__p_wxPalette,
30612 _swigc__p_wxPaletteChangedEvent,
30613 _swigc__p_wxPaperSize,
30614 _swigc__p_wxPen,
30615 _swigc__p_wxPenList,
30616 _swigc__p_wxPoint,
30617 _swigc__p_wxPostScriptDC,
30618 _swigc__p_wxPrintData,
30619 _swigc__p_wxPrinterDC,
30620 _swigc__p_wxPseudoDC,
30621 _swigc__p_wxPyApp,
30622 _swigc__p_wxPyCommandEvent,
30623 _swigc__p_wxPyEvent,
30624 _swigc__p_wxPyFontEnumerator,
30625 _swigc__p_wxPyImageHandler,
30626 _swigc__p_wxPySizer,
30627 _swigc__p_wxPyValidator,
30628 _swigc__p_wxQueryNewPaletteEvent,
30629 _swigc__p_wxRect,
30630 _swigc__p_wxRegion,
30631 _swigc__p_wxRegionIterator,
30632 _swigc__p_wxRendererNative,
30633 _swigc__p_wxRendererVersion,
30634 _swigc__p_wxScreenDC,
30635 _swigc__p_wxScrollEvent,
30636 _swigc__p_wxScrollWinEvent,
30637 _swigc__p_wxSetCursorEvent,
30638 _swigc__p_wxShowEvent,
30639 _swigc__p_wxSize,
30640 _swigc__p_wxSizeEvent,
30641 _swigc__p_wxSizer,
30642 _swigc__p_wxSizerItem,
30643 _swigc__p_wxSplitterRenderParams,
30644 _swigc__p_wxStaticBoxSizer,
30645 _swigc__p_wxStdDialogButtonSizer,
30646 _swigc__p_wxStockGDI,
30647 _swigc__p_wxString,
30648 _swigc__p_wxSysColourChangedEvent,
30649 _swigc__p_wxTIFFHandler,
30650 _swigc__p_wxUpdateUIEvent,
30651 _swigc__p_wxValidator,
30652 _swigc__p_wxWindow,
30653 _swigc__p_wxWindowCreateEvent,
30654 _swigc__p_wxWindowDC,
30655 _swigc__p_wxWindowDestroyEvent,
30656 _swigc__p_wxXPMHandler,
30657 };
30658
30659
30660 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
30661
30662 static swig_const_info swig_const_table[] = {
30663 {0, 0, 0, 0.0, 0, 0}};
30664
30665 #ifdef __cplusplus
30666 }
30667 #endif
30668 /* -----------------------------------------------------------------------------
30669 * Type initialization:
30670 * This problem is tough by the requirement that no dynamic
30671 * memory is used. Also, since swig_type_info structures store pointers to
30672 * swig_cast_info structures and swig_cast_info structures store pointers back
30673 * to swig_type_info structures, we need some lookup code at initialization.
30674 * The idea is that swig generates all the structures that are needed.
30675 * The runtime then collects these partially filled structures.
30676 * The SWIG_InitializeModule function takes these initial arrays out of
30677 * swig_module, and does all the lookup, filling in the swig_module.types
30678 * array with the correct data and linking the correct swig_cast_info
30679 * structures together.
30680 *
30681 * The generated swig_type_info structures are assigned staticly to an initial
30682 * array. We just loop though that array, and handle each type individually.
30683 * First we lookup if this type has been already loaded, and if so, use the
30684 * loaded structure instead of the generated one. Then we have to fill in the
30685 * cast linked list. The cast data is initially stored in something like a
30686 * two-dimensional array. Each row corresponds to a type (there are the same
30687 * number of rows as there are in the swig_type_initial array). Each entry in
30688 * a column is one of the swig_cast_info structures for that type.
30689 * The cast_initial array is actually an array of arrays, because each row has
30690 * a variable number of columns. So to actually build the cast linked list,
30691 * we find the array of casts associated with the type, and loop through it
30692 * adding the casts to the list. The one last trick we need to do is making
30693 * sure the type pointer in the swig_cast_info struct is correct.
30694 *
30695 * First off, we lookup the cast->type name to see if it is already loaded.
30696 * There are three cases to handle:
30697 * 1) If the cast->type has already been loaded AND the type we are adding
30698 * casting info to has not been loaded (it is in this module), THEN we
30699 * replace the cast->type pointer with the type pointer that has already
30700 * been loaded.
30701 * 2) If BOTH types (the one we are adding casting info to, and the
30702 * cast->type) are loaded, THEN the cast info has already been loaded by
30703 * the previous module so we just ignore it.
30704 * 3) Finally, if cast->type has not already been loaded, then we add that
30705 * swig_cast_info to the linked list (because the cast->type) pointer will
30706 * be correct.
30707 * ----------------------------------------------------------------------------- */
30708
30709 #ifdef __cplusplus
30710 extern "C" {
30711 #if 0
30712 } /* c-mode */
30713 #endif
30714 #endif
30715
30716 #if 0
30717 #define SWIGRUNTIME_DEBUG
30718 #endif
30719
30720 SWIGRUNTIME void
30721 SWIG_InitializeModule(void *clientdata) {
30722 size_t i;
30723 swig_module_info *module_head;
30724 static int init_run = 0;
30725
30726 clientdata = clientdata;
30727
30728 if (init_run) return;
30729 init_run = 1;
30730
30731 /* Initialize the swig_module */
30732 swig_module.type_initial = swig_type_initial;
30733 swig_module.cast_initial = swig_cast_initial;
30734
30735 /* Try and load any already created modules */
30736 module_head = SWIG_GetModule(clientdata);
30737 if (module_head) {
30738 swig_module.next = module_head->next;
30739 module_head->next = &swig_module;
30740 } else {
30741 /* This is the first module loaded */
30742 swig_module.next = &swig_module;
30743 SWIG_SetModule(clientdata, &swig_module);
30744 }
30745
30746 /* Now work on filling in swig_module.types */
30747 #ifdef SWIGRUNTIME_DEBUG
30748 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
30749 #endif
30750 for (i = 0; i < swig_module.size; ++i) {
30751 swig_type_info *type = 0;
30752 swig_type_info *ret;
30753 swig_cast_info *cast;
30754
30755 #ifdef SWIGRUNTIME_DEBUG
30756 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30757 #endif
30758
30759 /* if there is another module already loaded */
30760 if (swig_module.next != &swig_module) {
30761 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
30762 }
30763 if (type) {
30764 /* Overwrite clientdata field */
30765 #ifdef SWIGRUNTIME_DEBUG
30766 printf("SWIG_InitializeModule: found type %s\n", type->name);
30767 #endif
30768 if (swig_module.type_initial[i]->clientdata) {
30769 type->clientdata = swig_module.type_initial[i]->clientdata;
30770 #ifdef SWIGRUNTIME_DEBUG
30771 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
30772 #endif
30773 }
30774 } else {
30775 type = swig_module.type_initial[i];
30776 }
30777
30778 /* Insert casting types */
30779 cast = swig_module.cast_initial[i];
30780 while (cast->type) {
30781 /* Don't need to add information already in the list */
30782 ret = 0;
30783 #ifdef SWIGRUNTIME_DEBUG
30784 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
30785 #endif
30786 if (swig_module.next != &swig_module) {
30787 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
30788 #ifdef SWIGRUNTIME_DEBUG
30789 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
30790 #endif
30791 }
30792 if (ret) {
30793 if (type == swig_module.type_initial[i]) {
30794 #ifdef SWIGRUNTIME_DEBUG
30795 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
30796 #endif
30797 cast->type = ret;
30798 ret = 0;
30799 } else {
30800 /* Check for casting already in the list */
30801 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
30802 #ifdef SWIGRUNTIME_DEBUG
30803 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
30804 #endif
30805 if (!ocast) ret = 0;
30806 }
30807 }
30808
30809 if (!ret) {
30810 #ifdef SWIGRUNTIME_DEBUG
30811 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
30812 #endif
30813 if (type->cast) {
30814 type->cast->prev = cast;
30815 cast->next = type->cast;
30816 }
30817 type->cast = cast;
30818 }
30819 cast++;
30820 }
30821 /* Set entry in modules->types array equal to the type */
30822 swig_module.types[i] = type;
30823 }
30824 swig_module.types[i] = 0;
30825
30826 #ifdef SWIGRUNTIME_DEBUG
30827 printf("**** SWIG_InitializeModule: Cast List ******\n");
30828 for (i = 0; i < swig_module.size; ++i) {
30829 int j = 0;
30830 swig_cast_info *cast = swig_module.cast_initial[i];
30831 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
30832 while (cast->type) {
30833 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
30834 cast++;
30835 ++j;
30836 }
30837 printf("---- Total casts: %d\n",j);
30838 }
30839 printf("**** SWIG_InitializeModule: Cast List ******\n");
30840 #endif
30841 }
30842
30843 /* This function will propagate the clientdata field of type to
30844 * any new swig_type_info structures that have been added into the list
30845 * of equivalent types. It is like calling
30846 * SWIG_TypeClientData(type, clientdata) a second time.
30847 */
30848 SWIGRUNTIME void
30849 SWIG_PropagateClientData(void) {
30850 size_t i;
30851 swig_cast_info *equiv;
30852 static int init_run = 0;
30853
30854 if (init_run) return;
30855 init_run = 1;
30856
30857 for (i = 0; i < swig_module.size; i++) {
30858 if (swig_module.types[i]->clientdata) {
30859 equiv = swig_module.types[i]->cast;
30860 while (equiv) {
30861 if (!equiv->converter) {
30862 if (equiv->type && !equiv->type->clientdata)
30863 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
30864 }
30865 equiv = equiv->next;
30866 }
30867 }
30868 }
30869 }
30870
30871 #ifdef __cplusplus
30872 #if 0
30873 {
30874 /* c-mode */
30875 #endif
30876 }
30877 #endif
30878
30879
30880
30881 #ifdef __cplusplus
30882 extern "C" {
30883 #endif
30884
30885 /* Python-specific SWIG API */
30886 #define SWIG_newvarlink() SWIG_Python_newvarlink()
30887 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
30888 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
30889
30890 /* -----------------------------------------------------------------------------
30891 * global variable support code.
30892 * ----------------------------------------------------------------------------- */
30893
30894 typedef struct swig_globalvar {
30895 char *name; /* Name of global variable */
30896 PyObject *(*get_attr)(void); /* Return the current value */
30897 int (*set_attr)(PyObject *); /* Set the value */
30898 struct swig_globalvar *next;
30899 } swig_globalvar;
30900
30901 typedef struct swig_varlinkobject {
30902 PyObject_HEAD
30903 swig_globalvar *vars;
30904 } swig_varlinkobject;
30905
30906 SWIGINTERN PyObject *
30907 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
30908 return PyString_FromString("<Swig global variables>");
30909 }
30910
30911 SWIGINTERN PyObject *
30912 swig_varlink_str(swig_varlinkobject *v) {
30913 PyObject *str = PyString_FromString("(");
30914 swig_globalvar *var;
30915 for (var = v->vars; var; var=var->next) {
30916 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
30917 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
30918 }
30919 PyString_ConcatAndDel(&str,PyString_FromString(")"));
30920 return str;
30921 }
30922
30923 SWIGINTERN int
30924 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
30925 PyObject *str = swig_varlink_str(v);
30926 fprintf(fp,"Swig global variables ");
30927 fprintf(fp,"%s\n", PyString_AsString(str));
30928 Py_DECREF(str);
30929 return 0;
30930 }
30931
30932 SWIGINTERN void
30933 swig_varlink_dealloc(swig_varlinkobject *v) {
30934 swig_globalvar *var = v->vars;
30935 while (var) {
30936 swig_globalvar *n = var->next;
30937 free(var->name);
30938 free(var);
30939 var = n;
30940 }
30941 }
30942
30943 SWIGINTERN PyObject *
30944 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
30945 PyObject *res = NULL;
30946 swig_globalvar *var = v->vars;
30947 while (var) {
30948 if (strcmp(var->name,n) == 0) {
30949 res = (*var->get_attr)();
30950 break;
30951 }
30952 var = var->next;
30953 }
30954 if (res == NULL && !PyErr_Occurred()) {
30955 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30956 }
30957 return res;
30958 }
30959
30960 SWIGINTERN int
30961 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
30962 int res = 1;
30963 swig_globalvar *var = v->vars;
30964 while (var) {
30965 if (strcmp(var->name,n) == 0) {
30966 res = (*var->set_attr)(p);
30967 break;
30968 }
30969 var = var->next;
30970 }
30971 if (res == 1 && !PyErr_Occurred()) {
30972 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
30973 }
30974 return res;
30975 }
30976
30977 SWIGINTERN PyTypeObject*
30978 swig_varlink_type(void) {
30979 static char varlink__doc__[] = "Swig var link object";
30980 static PyTypeObject varlink_type;
30981 static int type_init = 0;
30982 if (!type_init) {
30983 const PyTypeObject tmp
30984 = {
30985 PyObject_HEAD_INIT(NULL)
30986 0, /* Number of items in variable part (ob_size) */
30987 (char *)"swigvarlink", /* Type name (tp_name) */
30988 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
30989 0, /* Itemsize (tp_itemsize) */
30990 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
30991 (printfunc) swig_varlink_print, /* Print (tp_print) */
30992 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
30993 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
30994 0, /* tp_compare */
30995 (reprfunc) swig_varlink_repr, /* tp_repr */
30996 0, /* tp_as_number */
30997 0, /* tp_as_sequence */
30998 0, /* tp_as_mapping */
30999 0, /* tp_hash */
31000 0, /* tp_call */
31001 (reprfunc)swig_varlink_str, /* tp_str */
31002 0, /* tp_getattro */
31003 0, /* tp_setattro */
31004 0, /* tp_as_buffer */
31005 0, /* tp_flags */
31006 varlink__doc__, /* tp_doc */
31007 0, /* tp_traverse */
31008 0, /* tp_clear */
31009 0, /* tp_richcompare */
31010 0, /* tp_weaklistoffset */
31011 #if PY_VERSION_HEX >= 0x02020000
31012 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
31013 #endif
31014 #if PY_VERSION_HEX >= 0x02030000
31015 0, /* tp_del */
31016 #endif
31017 #ifdef COUNT_ALLOCS
31018 0,0,0,0 /* tp_alloc -> tp_next */
31019 #endif
31020 };
31021 varlink_type = tmp;
31022 varlink_type.ob_type = &PyType_Type;
31023 type_init = 1;
31024 }
31025 return &varlink_type;
31026 }
31027
31028 /* Create a variable linking object for use later */
31029 SWIGINTERN PyObject *
31030 SWIG_Python_newvarlink(void) {
31031 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
31032 if (result) {
31033 result->vars = 0;
31034 }
31035 return ((PyObject*) result);
31036 }
31037
31038 SWIGINTERN void
31039 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
31040 swig_varlinkobject *v = (swig_varlinkobject *) p;
31041 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
31042 if (gv) {
31043 size_t size = strlen(name)+1;
31044 gv->name = (char *)malloc(size);
31045 if (gv->name) {
31046 strncpy(gv->name,name,size);
31047 gv->get_attr = get_attr;
31048 gv->set_attr = set_attr;
31049 gv->next = v->vars;
31050 }
31051 }
31052 v->vars = gv;
31053 }
31054
31055 SWIGINTERN PyObject *
31056 SWIG_globals() {
31057 static PyObject *_SWIG_globals = 0;
31058 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
31059 return _SWIG_globals;
31060 }
31061
31062 /* -----------------------------------------------------------------------------
31063 * constants/methods manipulation
31064 * ----------------------------------------------------------------------------- */
31065
31066 /* Install Constants */
31067 SWIGINTERN void
31068 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
31069 PyObject *obj = 0;
31070 size_t i;
31071 for (i = 0; constants[i].type; ++i) {
31072 switch(constants[i].type) {
31073 case SWIG_PY_POINTER:
31074 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
31075 break;
31076 case SWIG_PY_BINARY:
31077 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
31078 break;
31079 default:
31080 obj = 0;
31081 break;
31082 }
31083 if (obj) {
31084 PyDict_SetItemString(d, constants[i].name, obj);
31085 Py_DECREF(obj);
31086 }
31087 }
31088 }
31089
31090 /* -----------------------------------------------------------------------------*/
31091 /* Fix SwigMethods to carry the callback ptrs when needed */
31092 /* -----------------------------------------------------------------------------*/
31093
31094 SWIGINTERN void
31095 SWIG_Python_FixMethods(PyMethodDef *methods,
31096 swig_const_info *const_table,
31097 swig_type_info **types,
31098 swig_type_info **types_initial) {
31099 size_t i;
31100 for (i = 0; methods[i].ml_name; ++i) {
31101 const char *c = methods[i].ml_doc;
31102 if (c && (c = strstr(c, "swig_ptr: "))) {
31103 int j;
31104 swig_const_info *ci = 0;
31105 const char *name = c + 10;
31106 for (j = 0; const_table[j].type; ++j) {
31107 if (strncmp(const_table[j].name, name,
31108 strlen(const_table[j].name)) == 0) {
31109 ci = &(const_table[j]);
31110 break;
31111 }
31112 }
31113 if (ci) {
31114 size_t shift = (ci->ptype) - types;
31115 swig_type_info *ty = types_initial[shift];
31116 size_t ldoc = (c - methods[i].ml_doc);
31117 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
31118 char *ndoc = (char*)malloc(ldoc + lptr + 10);
31119 if (ndoc) {
31120 char *buff = ndoc;
31121 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
31122 if (ptr) {
31123 strncpy(buff, methods[i].ml_doc, ldoc);
31124 buff += ldoc;
31125 strncpy(buff, "swig_ptr: ", 10);
31126 buff += 10;
31127 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
31128 methods[i].ml_doc = ndoc;
31129 }
31130 }
31131 }
31132 }
31133 }
31134 }
31135
31136 #ifdef __cplusplus
31137 }
31138 #endif
31139
31140 /* -----------------------------------------------------------------------------*
31141 * Partial Init method
31142 * -----------------------------------------------------------------------------*/
31143
31144 #ifdef __cplusplus
31145 extern "C"
31146 #endif
31147 SWIGEXPORT void SWIG_init(void) {
31148 PyObject *m, *d;
31149
31150 /* Fix SwigMethods to carry the callback ptrs when needed */
31151 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
31152
31153 m = Py_InitModule((char *) SWIG_name, SwigMethods);
31154 d = PyModule_GetDict(m);
31155
31156 SWIG_InitializeModule(0);
31157 SWIG_InstallConstants(d,swig_const_table);
31158
31159
31160 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
31161 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
31162 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
31163 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
31164 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
31165 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
31166 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
31167 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
31168 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
31169 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
31170 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
31171 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
31172 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
31173 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
31174 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
31175 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
31176 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
31177 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
31178 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
31179 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
31180 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
31181 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
31182 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
31183 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
31184 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
31185 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
31186 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
31187 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
31188 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
31189 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
31190 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
31191 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
31192 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
31193 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
31194 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
31195 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
31196 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
31197 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
31198 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
31199 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
31200 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
31201 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
31202 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
31203 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
31204 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
31205 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
31206 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
31207 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
31208 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
31209 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
31210 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
31211 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
31212 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
31213 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
31214 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
31215 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
31216 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
31217 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
31218 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
31219 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
31220 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
31221 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
31222 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
31223 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
31224 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
31225 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
31226 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
31227 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
31228 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
31229 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
31230 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
31231 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
31232 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
31233 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
31234 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
31235 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
31236 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
31237 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
31238 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
31239 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
31240 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
31241 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
31242 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
31243 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
31244 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
31245 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
31246 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
31247 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
31248 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
31249 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
31250 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
31251 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
31252 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
31253 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
31254 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
31255 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
31256 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
31257 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
31258 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
31259 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
31260 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
31261 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
31262 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
31263 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
31264 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
31265 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
31266 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
31267 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
31268 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
31269 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
31270 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
31271 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
31272 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
31273 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
31274 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
31275 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
31276 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
31277 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
31278 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
31279 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
31280 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
31281 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
31282 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
31283 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
31284 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
31285 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
31286 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
31287 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
31288 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
31289 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
31290
31291 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
31292
31293 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
31294 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
31295 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
31296 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
31297 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
31298 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
31299 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
31300 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
31301 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
31302 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
31303 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
31304 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
31305 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
31306 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
31307 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
31308 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
31309 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
31310 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
31311 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
31312 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
31313 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
31314 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
31315 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
31316 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
31317 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
31318 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
31319 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
31320 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
31321 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
31322 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
31323 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
31324 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
31325 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
31326 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
31327 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
31328 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
31329 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
31330 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
31331 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
31332 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
31333 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
31334 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
31335 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
31336 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
31337 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
31338 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
31339 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
31340 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
31341 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
31342 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
31343 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
31344 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
31345 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
31346 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
31347 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
31348 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
31349 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
31350 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
31351 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
31352 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
31353 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
31354 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
31355 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
31356 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
31357 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
31358 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
31359 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
31360 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
31361 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
31362 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
31363 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
31364 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
31365 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
31366 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
31367 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
31368 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
31369 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
31370 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
31371 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
31372 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
31373 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
31374 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
31375 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
31376 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
31377 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
31378 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
31379 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
31380 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
31381 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
31382 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
31383 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
31384 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
31385 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
31386 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
31387 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
31388 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
31389 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
31390 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
31391 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
31392 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
31393 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
31394 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
31395 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
31396 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
31397 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
31398 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
31399 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
31400 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
31401 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
31402 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
31403 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
31404 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
31405 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
31406 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
31407 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
31408 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
31409 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
31410 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
31411 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
31412 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
31413 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
31414 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
31415 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
31416 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
31417 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
31418 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
31419 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
31420 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
31421 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
31422 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
31423 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
31424 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
31425 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
31426 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
31427 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
31428 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
31429 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
31430 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
31431 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
31432 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
31433 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
31434 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
31435 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
31436 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
31437 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
31438 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
31439 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
31440 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
31441 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
31442 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
31443 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
31444 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
31445 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
31446 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
31447 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
31448 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
31449 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
31450 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
31451 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
31452 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
31453 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
31454 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
31455 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
31456 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
31457 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
31458 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
31459 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
31460 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
31461 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
31462 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
31463 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
31464 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
31465 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
31466 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
31467 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
31468 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
31469 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
31470 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
31471 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
31472 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
31473 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
31474 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
31475 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
31476 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
31477 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
31478 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
31479 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
31480 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
31481 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
31482 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
31483 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
31484 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
31485 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
31486 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
31487 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
31488 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
31489 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
31490 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
31491 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
31492 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
31493 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
31494 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
31495 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
31496 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
31497 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
31498 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
31499 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
31500 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
31501 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
31502 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
31503 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
31504 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
31505 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
31506 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
31507 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
31508 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
31509 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
31510 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
31511 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
31512 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
31513 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
31514 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
31515 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
31516 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
31517 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
31518 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
31519 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
31520 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
31521 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
31522 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
31523 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
31524 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
31525 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
31526 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
31527 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
31528 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
31529 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
31530 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
31531 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
31532 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
31533 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
31534 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
31535 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
31536 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
31537 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
31538 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
31539 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
31540 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
31541 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
31542 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
31543 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
31544 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
31545 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
31546 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
31547 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
31548 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
31549 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
31550 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
31551 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
31552 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
31553 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
31554 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
31555 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
31556 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
31557 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
31558 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
31559 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
31560 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
31561 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
31562 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
31563 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
31564 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
31565 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
31566 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
31567 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
31568 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
31569 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
31570 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
31571 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
31572 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
31573 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
31574 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
31575 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
31576 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
31577 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
31578 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
31579 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
31580 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
31581 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
31582 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
31583 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
31584 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
31585 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
31586 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
31587 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
31588 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
31589 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
31590 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
31591 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
31592 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
31593 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
31594 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
31595 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
31596 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
31597 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
31598 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
31599 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
31600 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
31601 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
31602 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
31603 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
31604 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
31605 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
31606 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
31607
31608 // Work around a chicken/egg problem in drawlist.cpp
31609 wxPyDrawList_SetAPIPtr();
31610
31611 }
31612