]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
Added the PseudoDC class from Paul Lanier. It provides a way to
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 #if PY_VERSION_HEX < 0x02050000
989 typedef int Py_ssize_t;
990 #endif
991
992 /* for raw pointers */
993 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
994 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
995 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
996 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
997 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
998 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
999 #define swig_owntype int
1000
1001 /* for raw packed data */
1002 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1003 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1004
1005 /* for class or struct pointers */
1006 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1007 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1008
1009 /* for C or C++ function pointers */
1010 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1011 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1012
1013 /* for C++ member pointers, ie, member methods */
1014 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1015 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1016
1017
1018 /* Runtime API */
1019
1020 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1021 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1022 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1023
1024 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1025 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1026 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1027 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1028 #define SWIG_fail goto fail
1029
1030
1031 /* Runtime API implementation */
1032
1033 /* Error manipulation */
1034
1035 SWIGINTERN void
1036 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1037 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1038 PyErr_SetObject(errtype, obj);
1039 Py_DECREF(obj);
1040 SWIG_PYTHON_THREAD_END_BLOCK;
1041 }
1042
1043 SWIGINTERN void
1044 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1045 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1046 PyErr_SetString(errtype, (char *) msg);
1047 SWIG_PYTHON_THREAD_END_BLOCK;
1048 }
1049
1050 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1051
1052 /* Set a constant value */
1053
1054 SWIGINTERN void
1055 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1056 PyDict_SetItemString(d, (char*) name, obj);
1057 Py_DECREF(obj);
1058 }
1059
1060 /* Append a value to the result obj */
1061
1062 SWIGINTERN PyObject*
1063 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1064 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1065 if (!result) {
1066 result = obj;
1067 } else if (result == Py_None) {
1068 Py_DECREF(result);
1069 result = obj;
1070 } else {
1071 if (!PyList_Check(result)) {
1072 PyObject *o2 = result;
1073 result = PyList_New(1);
1074 PyList_SetItem(result, 0, o2);
1075 }
1076 PyList_Append(result,obj);
1077 Py_DECREF(obj);
1078 }
1079 return result;
1080 #else
1081 PyObject* o2;
1082 PyObject* o3;
1083 if (!result) {
1084 result = obj;
1085 } else if (result == Py_None) {
1086 Py_DECREF(result);
1087 result = obj;
1088 } else {
1089 if (!PyTuple_Check(result)) {
1090 o2 = result;
1091 result = PyTuple_New(1);
1092 PyTuple_SET_ITEM(result, 0, o2);
1093 }
1094 o3 = PyTuple_New(1);
1095 PyTuple_SET_ITEM(o3, 0, obj);
1096 o2 = result;
1097 result = PySequence_Concat(o2, o3);
1098 Py_DECREF(o2);
1099 Py_DECREF(o3);
1100 }
1101 return result;
1102 #endif
1103 }
1104
1105 /* Unpack the argument tuple */
1106
1107 SWIGINTERN int
1108 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1109 {
1110 if (!args) {
1111 if (!min && !max) {
1112 return 1;
1113 } else {
1114 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1115 name, (min == max ? "" : "at least "), min);
1116 return 0;
1117 }
1118 }
1119 if (!PyTuple_Check(args)) {
1120 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1121 return 0;
1122 } else {
1123 register int l = PyTuple_GET_SIZE(args);
1124 if (l < min) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at least "), min, l);
1127 return 0;
1128 } else if (l > max) {
1129 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1130 name, (min == max ? "" : "at most "), max, l);
1131 return 0;
1132 } else {
1133 register int i;
1134 for (i = 0; i < l; ++i) {
1135 objs[i] = PyTuple_GET_ITEM(args, i);
1136 }
1137 for (; l < max; ++l) {
1138 objs[l] = 0;
1139 }
1140 return i + 1;
1141 }
1142 }
1143 }
1144
1145 /* A functor is a function object with one single object argument */
1146 #if PY_VERSION_HEX >= 0x02020000
1147 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1148 #else
1149 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1150 #endif
1151
1152 /*
1153 Helper for static pointer initialization for both C and C++ code, for example
1154 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1155 */
1156 #ifdef __cplusplus
1157 #define SWIG_STATIC_POINTER(var) var
1158 #else
1159 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1160 #endif
1161
1162 /* -----------------------------------------------------------------------------
1163 * Pointer declarations
1164 * ----------------------------------------------------------------------------- */
1165
1166 /* Flags for new pointer objects */
1167 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1168 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1169
1170 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1171
1172 #ifdef __cplusplus
1173 extern "C" {
1174 #if 0
1175 } /* cc-mode */
1176 #endif
1177 #endif
1178
1179 /* How to access Py_None */
1180 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1181 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1182 # ifndef SWIG_PYTHON_BUILD_NONE
1183 # define SWIG_PYTHON_BUILD_NONE
1184 # endif
1185 # endif
1186 #endif
1187
1188 #ifdef SWIG_PYTHON_BUILD_NONE
1189 # ifdef Py_None
1190 # undef Py_None
1191 # define Py_None SWIG_Py_None()
1192 # endif
1193 SWIGRUNTIMEINLINE PyObject *
1194 _SWIG_Py_None(void)
1195 {
1196 PyObject *none = Py_BuildValue("");
1197 Py_DECREF(none);
1198 return none;
1199 }
1200 SWIGRUNTIME PyObject *
1201 SWIG_Py_None(void)
1202 {
1203 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1204 return none;
1205 }
1206 #endif
1207
1208 /* The python void return value */
1209
1210 SWIGRUNTIMEINLINE PyObject *
1211 SWIG_Py_Void(void)
1212 {
1213 PyObject *none = Py_None;
1214 Py_INCREF(none);
1215 return none;
1216 }
1217
1218 /* PySwigClientData */
1219
1220 typedef struct {
1221 PyObject *klass;
1222 PyObject *newraw;
1223 PyObject *newargs;
1224 PyObject *destroy;
1225 int delargs;
1226 int implicitconv;
1227 } PySwigClientData;
1228
1229 SWIGRUNTIMEINLINE int
1230 SWIG_Python_CheckImplicit(swig_type_info *ty)
1231 {
1232 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1233 return data ? data->implicitconv : 0;
1234 }
1235
1236 SWIGRUNTIMEINLINE PyObject *
1237 SWIG_Python_ExceptionType(swig_type_info *desc) {
1238 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1239 PyObject *klass = data ? data->klass : 0;
1240 return (klass ? klass : PyExc_RuntimeError);
1241 }
1242
1243
1244 SWIGRUNTIME PySwigClientData *
1245 PySwigClientData_New(PyObject* obj)
1246 {
1247 if (!obj) {
1248 return 0;
1249 } else {
1250 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1251 /* the klass element */
1252 data->klass = obj;
1253 Py_INCREF(data->klass);
1254 /* the newraw method and newargs arguments used to create a new raw instance */
1255 if (PyClass_Check(obj)) {
1256 data->newraw = 0;
1257 data->newargs = obj;
1258 Py_INCREF(obj);
1259 } else {
1260 #if (PY_VERSION_HEX < 0x02020000)
1261 data->newraw = 0;
1262 #else
1263 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1264 #endif
1265 if (data->newraw) {
1266 Py_INCREF(data->newraw);
1267 data->newargs = PyTuple_New(1);
1268 PyTuple_SetItem(data->newargs, 0, obj);
1269 } else {
1270 data->newargs = obj;
1271 }
1272 Py_INCREF(data->newargs);
1273 }
1274 /* the destroy method, aka as the C++ delete method */
1275 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1276 if (PyErr_Occurred()) {
1277 PyErr_Clear();
1278 data->destroy = 0;
1279 }
1280 if (data->destroy) {
1281 int flags;
1282 Py_INCREF(data->destroy);
1283 flags = PyCFunction_GET_FLAGS(data->destroy);
1284 #ifdef METH_O
1285 data->delargs = !(flags & (METH_O));
1286 #else
1287 data->delargs = 0;
1288 #endif
1289 } else {
1290 data->delargs = 0;
1291 }
1292 data->implicitconv = 0;
1293 return data;
1294 }
1295 }
1296
1297 SWIGRUNTIME void
1298 PySwigClientData_Del(PySwigClientData* data)
1299 {
1300 Py_XDECREF(data->newraw);
1301 Py_XDECREF(data->newargs);
1302 Py_XDECREF(data->destroy);
1303 }
1304
1305 /* =============== PySwigObject =====================*/
1306
1307 typedef struct {
1308 PyObject_HEAD
1309 void *ptr;
1310 swig_type_info *ty;
1311 int own;
1312 PyObject *next;
1313 } PySwigObject;
1314
1315 SWIGRUNTIME PyObject *
1316 PySwigObject_long(PySwigObject *v)
1317 {
1318 return PyLong_FromVoidPtr(v->ptr);
1319 }
1320
1321 SWIGRUNTIME PyObject *
1322 PySwigObject_format(const char* fmt, PySwigObject *v)
1323 {
1324 PyObject *res = NULL;
1325 PyObject *args = PyTuple_New(1);
1326 if (args) {
1327 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1328 PyObject *ofmt = PyString_FromString(fmt);
1329 if (ofmt) {
1330 res = PyString_Format(ofmt,args);
1331 Py_DECREF(ofmt);
1332 }
1333 Py_DECREF(args);
1334 }
1335 }
1336 return res;
1337 }
1338
1339 SWIGRUNTIME PyObject *
1340 PySwigObject_oct(PySwigObject *v)
1341 {
1342 return PySwigObject_format("%o",v);
1343 }
1344
1345 SWIGRUNTIME PyObject *
1346 PySwigObject_hex(PySwigObject *v)
1347 {
1348 return PySwigObject_format("%x",v);
1349 }
1350
1351 SWIGRUNTIME PyObject *
1352 #ifdef METH_NOARGS
1353 PySwigObject_repr(PySwigObject *v)
1354 #else
1355 PySwigObject_repr(PySwigObject *v, PyObject *args)
1356 #endif
1357 {
1358 const char *name = SWIG_TypePrettyName(v->ty);
1359 PyObject *hex = PySwigObject_hex(v);
1360 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1361 Py_DECREF(hex);
1362 if (v->next) {
1363 #ifdef METH_NOARGS
1364 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1365 #else
1366 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1367 #endif
1368 PyString_ConcatAndDel(&repr,nrep);
1369 }
1370 return repr;
1371 }
1372
1373 SWIGRUNTIME int
1374 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1375 {
1376 #ifdef METH_NOARGS
1377 PyObject *repr = PySwigObject_repr(v);
1378 #else
1379 PyObject *repr = PySwigObject_repr(v, NULL);
1380 #endif
1381 if (repr) {
1382 fputs(PyString_AsString(repr), fp);
1383 Py_DECREF(repr);
1384 return 0;
1385 } else {
1386 return 1;
1387 }
1388 }
1389
1390 SWIGRUNTIME PyObject *
1391 PySwigObject_str(PySwigObject *v)
1392 {
1393 char result[SWIG_BUFFER_SIZE];
1394 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1395 PyString_FromString(result) : 0;
1396 }
1397
1398 SWIGRUNTIME int
1399 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1400 {
1401 void *i = v->ptr;
1402 void *j = w->ptr;
1403 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1404 }
1405
1406 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1407
1408 SWIGRUNTIME PyTypeObject*
1409 PySwigObject_type(void) {
1410 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1411 return type;
1412 }
1413
1414 SWIGRUNTIMEINLINE int
1415 PySwigObject_Check(PyObject *op) {
1416 return ((op)->ob_type == PySwigObject_type())
1417 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1418 }
1419
1420 SWIGRUNTIME PyObject *
1421 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1422
1423 SWIGRUNTIME void
1424 PySwigObject_dealloc(PyObject *v)
1425 {
1426 PySwigObject *sobj = (PySwigObject *) v;
1427 PyObject *next = sobj->next;
1428 if (sobj->own) {
1429 swig_type_info *ty = sobj->ty;
1430 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1431 PyObject *destroy = data ? data->destroy : 0;
1432 if (destroy) {
1433 /* destroy is always a VARARGS method */
1434 PyObject *res;
1435 if (data->delargs) {
1436 /* we need to create a temporal object to carry the destroy operation */
1437 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1438 res = SWIG_Python_CallFunctor(destroy, tmp);
1439 Py_DECREF(tmp);
1440 } else {
1441 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1442 PyObject *mself = PyCFunction_GET_SELF(destroy);
1443 res = ((*meth)(mself, v));
1444 }
1445 Py_XDECREF(res);
1446 } else {
1447 const char *name = SWIG_TypePrettyName(ty);
1448 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1449 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1450 #endif
1451 }
1452 }
1453 Py_XDECREF(next);
1454 PyObject_DEL(v);
1455 }
1456
1457 SWIGRUNTIME PyObject*
1458 PySwigObject_append(PyObject* v, PyObject* next)
1459 {
1460 PySwigObject *sobj = (PySwigObject *) v;
1461 #ifndef METH_O
1462 PyObject *tmp = 0;
1463 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1464 next = tmp;
1465 #endif
1466 if (!PySwigObject_Check(next)) {
1467 return NULL;
1468 }
1469 sobj->next = next;
1470 Py_INCREF(next);
1471 return SWIG_Py_Void();
1472 }
1473
1474 SWIGRUNTIME PyObject*
1475 #ifdef METH_NOARGS
1476 PySwigObject_next(PyObject* v)
1477 #else
1478 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1479 #endif
1480 {
1481 PySwigObject *sobj = (PySwigObject *) v;
1482 if (sobj->next) {
1483 Py_INCREF(sobj->next);
1484 return sobj->next;
1485 } else {
1486 return SWIG_Py_Void();
1487 }
1488 }
1489
1490 SWIGINTERN PyObject*
1491 #ifdef METH_NOARGS
1492 PySwigObject_disown(PyObject *v)
1493 #else
1494 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1495 #endif
1496 {
1497 PySwigObject *sobj = (PySwigObject *)v;
1498 sobj->own = 0;
1499 return SWIG_Py_Void();
1500 }
1501
1502 SWIGINTERN PyObject*
1503 #ifdef METH_NOARGS
1504 PySwigObject_acquire(PyObject *v)
1505 #else
1506 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1507 #endif
1508 {
1509 PySwigObject *sobj = (PySwigObject *)v;
1510 sobj->own = SWIG_POINTER_OWN;
1511 return SWIG_Py_Void();
1512 }
1513
1514 SWIGINTERN PyObject*
1515 PySwigObject_own(PyObject *v, PyObject *args)
1516 {
1517 PyObject *val = 0;
1518 #if (PY_VERSION_HEX < 0x02020000)
1519 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1520 #else
1521 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1522 #endif
1523 {
1524 return NULL;
1525 }
1526 else
1527 {
1528 PySwigObject *sobj = (PySwigObject *)v;
1529 PyObject *obj = PyBool_FromLong(sobj->own);
1530 if (val) {
1531 #ifdef METH_NOARGS
1532 if (PyObject_IsTrue(val)) {
1533 PySwigObject_acquire(v);
1534 } else {
1535 PySwigObject_disown(v);
1536 }
1537 #else
1538 if (PyObject_IsTrue(val)) {
1539 PySwigObject_acquire(v,args);
1540 } else {
1541 PySwigObject_disown(v,args);
1542 }
1543 #endif
1544 }
1545 return obj;
1546 }
1547 }
1548
1549 #ifdef METH_O
1550 static PyMethodDef
1551 swigobject_methods[] = {
1552 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1553 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1554 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1555 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1556 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1557 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1558 {0, 0, 0, 0}
1559 };
1560 #else
1561 static PyMethodDef
1562 swigobject_methods[] = {
1563 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1564 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1565 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1566 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1567 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1568 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1569 {0, 0, 0, 0}
1570 };
1571 #endif
1572
1573 #if PY_VERSION_HEX < 0x02020000
1574 SWIGINTERN PyObject *
1575 PySwigObject_getattr(PySwigObject *sobj,char *name)
1576 {
1577 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1578 }
1579 #endif
1580
1581 SWIGRUNTIME PyTypeObject*
1582 _PySwigObject_type(void) {
1583 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1584
1585 static PyNumberMethods PySwigObject_as_number = {
1586 (binaryfunc)0, /*nb_add*/
1587 (binaryfunc)0, /*nb_subtract*/
1588 (binaryfunc)0, /*nb_multiply*/
1589 (binaryfunc)0, /*nb_divide*/
1590 (binaryfunc)0, /*nb_remainder*/
1591 (binaryfunc)0, /*nb_divmod*/
1592 (ternaryfunc)0,/*nb_power*/
1593 (unaryfunc)0, /*nb_negative*/
1594 (unaryfunc)0, /*nb_positive*/
1595 (unaryfunc)0, /*nb_absolute*/
1596 (inquiry)0, /*nb_nonzero*/
1597 0, /*nb_invert*/
1598 0, /*nb_lshift*/
1599 0, /*nb_rshift*/
1600 0, /*nb_and*/
1601 0, /*nb_xor*/
1602 0, /*nb_or*/
1603 (coercion)0, /*nb_coerce*/
1604 (unaryfunc)PySwigObject_long, /*nb_int*/
1605 (unaryfunc)PySwigObject_long, /*nb_long*/
1606 (unaryfunc)0, /*nb_float*/
1607 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1608 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1609 #if PY_VERSION_HEX >= 0x02020000
1610 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1611 #elif PY_VERSION_HEX >= 0x02000000
1612 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1613 #endif
1614 };
1615
1616 static PyTypeObject pyswigobject_type;
1617 static int type_init = 0;
1618 if (!type_init) {
1619 const PyTypeObject tmp
1620 = {
1621 PyObject_HEAD_INIT(NULL)
1622 0, /* ob_size */
1623 (char *)"PySwigObject", /* tp_name */
1624 sizeof(PySwigObject), /* tp_basicsize */
1625 0, /* tp_itemsize */
1626 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1627 (printfunc)PySwigObject_print, /* tp_print */
1628 #if PY_VERSION_HEX < 0x02020000
1629 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1630 #else
1631 (getattrfunc)0, /* tp_getattr */
1632 #endif
1633 (setattrfunc)0, /* tp_setattr */
1634 (cmpfunc)PySwigObject_compare, /* tp_compare */
1635 (reprfunc)PySwigObject_repr, /* tp_repr */
1636 &PySwigObject_as_number, /* tp_as_number */
1637 0, /* tp_as_sequence */
1638 0, /* tp_as_mapping */
1639 (hashfunc)0, /* tp_hash */
1640 (ternaryfunc)0, /* tp_call */
1641 (reprfunc)PySwigObject_str, /* tp_str */
1642 PyObject_GenericGetAttr, /* tp_getattro */
1643 0, /* tp_setattro */
1644 0, /* tp_as_buffer */
1645 Py_TPFLAGS_DEFAULT, /* tp_flags */
1646 swigobject_doc, /* tp_doc */
1647 0, /* tp_traverse */
1648 0, /* tp_clear */
1649 0, /* tp_richcompare */
1650 0, /* tp_weaklistoffset */
1651 #if PY_VERSION_HEX >= 0x02020000
1652 0, /* tp_iter */
1653 0, /* tp_iternext */
1654 swigobject_methods, /* tp_methods */
1655 0, /* tp_members */
1656 0, /* tp_getset */
1657 0, /* tp_base */
1658 0, /* tp_dict */
1659 0, /* tp_descr_get */
1660 0, /* tp_descr_set */
1661 0, /* tp_dictoffset */
1662 0, /* tp_init */
1663 0, /* tp_alloc */
1664 0, /* tp_new */
1665 0, /* tp_free */
1666 0, /* tp_is_gc */
1667 0, /* tp_bases */
1668 0, /* tp_mro */
1669 0, /* tp_cache */
1670 0, /* tp_subclasses */
1671 0, /* tp_weaklist */
1672 #endif
1673 #if PY_VERSION_HEX >= 0x02030000
1674 0, /* tp_del */
1675 #endif
1676 #ifdef COUNT_ALLOCS
1677 0,0,0,0 /* tp_alloc -> tp_next */
1678 #endif
1679 };
1680 pyswigobject_type = tmp;
1681 pyswigobject_type.ob_type = &PyType_Type;
1682 type_init = 1;
1683 }
1684 return &pyswigobject_type;
1685 }
1686
1687 SWIGRUNTIME PyObject *
1688 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1689 {
1690 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1691 if (sobj) {
1692 sobj->ptr = ptr;
1693 sobj->ty = ty;
1694 sobj->own = own;
1695 sobj->next = 0;
1696 }
1697 return (PyObject *)sobj;
1698 }
1699
1700 /* -----------------------------------------------------------------------------
1701 * Implements a simple Swig Packed type, and use it instead of string
1702 * ----------------------------------------------------------------------------- */
1703
1704 typedef struct {
1705 PyObject_HEAD
1706 void *pack;
1707 swig_type_info *ty;
1708 size_t size;
1709 } PySwigPacked;
1710
1711 SWIGRUNTIME int
1712 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1713 {
1714 char result[SWIG_BUFFER_SIZE];
1715 fputs("<Swig Packed ", fp);
1716 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1717 fputs("at ", fp);
1718 fputs(result, fp);
1719 }
1720 fputs(v->ty->name,fp);
1721 fputs(">", fp);
1722 return 0;
1723 }
1724
1725 SWIGRUNTIME PyObject *
1726 PySwigPacked_repr(PySwigPacked *v)
1727 {
1728 char result[SWIG_BUFFER_SIZE];
1729 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1730 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1731 } else {
1732 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1733 }
1734 }
1735
1736 SWIGRUNTIME PyObject *
1737 PySwigPacked_str(PySwigPacked *v)
1738 {
1739 char result[SWIG_BUFFER_SIZE];
1740 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1741 return PyString_FromFormat("%s%s", result, v->ty->name);
1742 } else {
1743 return PyString_FromString(v->ty->name);
1744 }
1745 }
1746
1747 SWIGRUNTIME int
1748 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1749 {
1750 size_t i = v->size;
1751 size_t j = w->size;
1752 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1753 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1754 }
1755
1756 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1757
1758 SWIGRUNTIME PyTypeObject*
1759 PySwigPacked_type(void) {
1760 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1761 return type;
1762 }
1763
1764 SWIGRUNTIMEINLINE int
1765 PySwigPacked_Check(PyObject *op) {
1766 return ((op)->ob_type == _PySwigPacked_type())
1767 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1768 }
1769
1770 SWIGRUNTIME void
1771 PySwigPacked_dealloc(PyObject *v)
1772 {
1773 if (PySwigPacked_Check(v)) {
1774 PySwigPacked *sobj = (PySwigPacked *) v;
1775 free(sobj->pack);
1776 }
1777 PyObject_DEL(v);
1778 }
1779
1780 SWIGRUNTIME PyTypeObject*
1781 _PySwigPacked_type(void) {
1782 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1783 static PyTypeObject pyswigpacked_type;
1784 static int type_init = 0;
1785 if (!type_init) {
1786 const PyTypeObject tmp
1787 = {
1788 PyObject_HEAD_INIT(NULL)
1789 0, /* ob_size */
1790 (char *)"PySwigPacked", /* tp_name */
1791 sizeof(PySwigPacked), /* tp_basicsize */
1792 0, /* tp_itemsize */
1793 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1794 (printfunc)PySwigPacked_print, /* tp_print */
1795 (getattrfunc)0, /* tp_getattr */
1796 (setattrfunc)0, /* tp_setattr */
1797 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1798 (reprfunc)PySwigPacked_repr, /* tp_repr */
1799 0, /* tp_as_number */
1800 0, /* tp_as_sequence */
1801 0, /* tp_as_mapping */
1802 (hashfunc)0, /* tp_hash */
1803 (ternaryfunc)0, /* tp_call */
1804 (reprfunc)PySwigPacked_str, /* tp_str */
1805 PyObject_GenericGetAttr, /* tp_getattro */
1806 0, /* tp_setattro */
1807 0, /* tp_as_buffer */
1808 Py_TPFLAGS_DEFAULT, /* tp_flags */
1809 swigpacked_doc, /* tp_doc */
1810 0, /* tp_traverse */
1811 0, /* tp_clear */
1812 0, /* tp_richcompare */
1813 0, /* tp_weaklistoffset */
1814 #if PY_VERSION_HEX >= 0x02020000
1815 0, /* tp_iter */
1816 0, /* tp_iternext */
1817 0, /* tp_methods */
1818 0, /* tp_members */
1819 0, /* tp_getset */
1820 0, /* tp_base */
1821 0, /* tp_dict */
1822 0, /* tp_descr_get */
1823 0, /* tp_descr_set */
1824 0, /* tp_dictoffset */
1825 0, /* tp_init */
1826 0, /* tp_alloc */
1827 0, /* tp_new */
1828 0, /* tp_free */
1829 0, /* tp_is_gc */
1830 0, /* tp_bases */
1831 0, /* tp_mro */
1832 0, /* tp_cache */
1833 0, /* tp_subclasses */
1834 0, /* tp_weaklist */
1835 #endif
1836 #if PY_VERSION_HEX >= 0x02030000
1837 0, /* tp_del */
1838 #endif
1839 #ifdef COUNT_ALLOCS
1840 0,0,0,0 /* tp_alloc -> tp_next */
1841 #endif
1842 };
1843 pyswigpacked_type = tmp;
1844 pyswigpacked_type.ob_type = &PyType_Type;
1845 type_init = 1;
1846 }
1847 return &pyswigpacked_type;
1848 }
1849
1850 SWIGRUNTIME PyObject *
1851 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1852 {
1853 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1854 if (sobj) {
1855 void *pack = malloc(size);
1856 if (pack) {
1857 memcpy(pack, ptr, size);
1858 sobj->pack = pack;
1859 sobj->ty = ty;
1860 sobj->size = size;
1861 } else {
1862 PyObject_DEL((PyObject *) sobj);
1863 sobj = 0;
1864 }
1865 }
1866 return (PyObject *) sobj;
1867 }
1868
1869 SWIGRUNTIME swig_type_info *
1870 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1871 {
1872 if (PySwigPacked_Check(obj)) {
1873 PySwigPacked *sobj = (PySwigPacked *)obj;
1874 if (sobj->size != size) return 0;
1875 memcpy(ptr, sobj->pack, size);
1876 return sobj->ty;
1877 } else {
1878 return 0;
1879 }
1880 }
1881
1882 /* -----------------------------------------------------------------------------
1883 * pointers/data manipulation
1884 * ----------------------------------------------------------------------------- */
1885
1886 SWIGRUNTIMEINLINE PyObject *
1887 _SWIG_This(void)
1888 {
1889 return PyString_FromString("this");
1890 }
1891
1892 SWIGRUNTIME PyObject *
1893 SWIG_This(void)
1894 {
1895 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1896 return swig_this;
1897 }
1898
1899 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1900
1901 SWIGRUNTIME PySwigObject *
1902 SWIG_Python_GetSwigThis(PyObject *pyobj)
1903 {
1904 if (PySwigObject_Check(pyobj)) {
1905 return (PySwigObject *) pyobj;
1906 } else {
1907 PyObject *obj = 0;
1908 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1909 if (PyInstance_Check(pyobj)) {
1910 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1911 } else {
1912 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1913 if (dictptr != NULL) {
1914 PyObject *dict = *dictptr;
1915 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1916 } else {
1917 #ifdef PyWeakref_CheckProxy
1918 if (PyWeakref_CheckProxy(pyobj)) {
1919 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1920 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1921 }
1922 #endif
1923 obj = PyObject_GetAttr(pyobj,SWIG_This());
1924 if (obj) {
1925 Py_DECREF(obj);
1926 } else {
1927 if (PyErr_Occurred()) PyErr_Clear();
1928 return 0;
1929 }
1930 }
1931 }
1932 #else
1933 obj = PyObject_GetAttr(pyobj,SWIG_This());
1934 if (obj) {
1935 Py_DECREF(obj);
1936 } else {
1937 if (PyErr_Occurred()) PyErr_Clear();
1938 return 0;
1939 }
1940 #endif
1941 if (obj && !PySwigObject_Check(obj)) {
1942 /* a PyObject is called 'this', try to get the 'real this'
1943 PySwigObject from it */
1944 return SWIG_Python_GetSwigThis(obj);
1945 }
1946 return (PySwigObject *)obj;
1947 }
1948 }
1949
1950 /* Acquire a pointer value */
1951
1952 SWIGRUNTIME int
1953 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1954 if (own) {
1955 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1956 if (sobj) {
1957 int oldown = sobj->own;
1958 sobj->own = own;
1959 return oldown;
1960 }
1961 }
1962 return 0;
1963 }
1964
1965 /* Convert a pointer value */
1966
1967 SWIGRUNTIME int
1968 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1969 if (!obj) return SWIG_ERROR;
1970 if (obj == Py_None) {
1971 if (ptr) *ptr = 0;
1972 return SWIG_OK;
1973 } else {
1974 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1975 while (sobj) {
1976 void *vptr = sobj->ptr;
1977 if (ty) {
1978 swig_type_info *to = sobj->ty;
1979 if (to == ty) {
1980 /* no type cast needed */
1981 if (ptr) *ptr = vptr;
1982 break;
1983 } else {
1984 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1985 if (!tc) {
1986 sobj = (PySwigObject *)sobj->next;
1987 } else {
1988 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1989 break;
1990 }
1991 }
1992 } else {
1993 if (ptr) *ptr = vptr;
1994 break;
1995 }
1996 }
1997 if (sobj) {
1998 if (own) *own = sobj->own;
1999 if (flags & SWIG_POINTER_DISOWN) {
2000 sobj->own = 0;
2001 }
2002 return SWIG_OK;
2003 } else {
2004 int res = SWIG_ERROR;
2005 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2006 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2007 if (data && !data->implicitconv) {
2008 PyObject *klass = data->klass;
2009 if (klass) {
2010 PyObject *impconv;
2011 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2012 impconv = SWIG_Python_CallFunctor(klass, obj);
2013 data->implicitconv = 0;
2014 if (PyErr_Occurred()) {
2015 PyErr_Clear();
2016 impconv = 0;
2017 }
2018 if (impconv) {
2019 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2020 if (iobj) {
2021 void *vptr;
2022 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2023 if (SWIG_IsOK(res)) {
2024 if (ptr) {
2025 *ptr = vptr;
2026 /* transfer the ownership to 'ptr' */
2027 iobj->own = 0;
2028 res = SWIG_AddCast(res);
2029 res = SWIG_AddNewMask(res);
2030 } else {
2031 res = SWIG_AddCast(res);
2032 }
2033 }
2034 }
2035 Py_DECREF(impconv);
2036 }
2037 }
2038 }
2039 }
2040 return res;
2041 }
2042 }
2043 }
2044
2045 /* Convert a function ptr value */
2046
2047 SWIGRUNTIME int
2048 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2049 if (!PyCFunction_Check(obj)) {
2050 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2051 } else {
2052 void *vptr = 0;
2053
2054 /* here we get the method pointer for callbacks */
2055 const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2056 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2057 if (desc) {
2058 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2059 if (!desc) return SWIG_ERROR;
2060 }
2061 if (ty) {
2062 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2063 if (!tc) return SWIG_ERROR;
2064 *ptr = SWIG_TypeCast(tc,vptr);
2065 } else {
2066 *ptr = vptr;
2067 }
2068 return SWIG_OK;
2069 }
2070 }
2071
2072 /* Convert a packed value value */
2073
2074 SWIGRUNTIME int
2075 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2076 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2077 if (!to) return SWIG_ERROR;
2078 if (ty) {
2079 if (to != ty) {
2080 /* check type cast? */
2081 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2082 if (!tc) return SWIG_ERROR;
2083 }
2084 }
2085 return SWIG_OK;
2086 }
2087
2088 /* -----------------------------------------------------------------------------
2089 * Create a new pointer object
2090 * ----------------------------------------------------------------------------- */
2091
2092 /*
2093 Create a new instance object, whitout calling __init__, and set the
2094 'this' attribute.
2095 */
2096
2097 SWIGRUNTIME PyObject*
2098 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2099 {
2100 #if (PY_VERSION_HEX >= 0x02020000)
2101 PyObject *inst = 0;
2102 PyObject *newraw = data->newraw;
2103 if (newraw) {
2104 inst = PyObject_Call(newraw, data->newargs, NULL);
2105 if (inst) {
2106 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2107 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2108 if (dictptr != NULL) {
2109 PyObject *dict = *dictptr;
2110 if (dict == NULL) {
2111 dict = PyDict_New();
2112 *dictptr = dict;
2113 PyDict_SetItem(dict, SWIG_This(), swig_this);
2114 }
2115 }
2116 #else
2117 PyObject *key = SWIG_This();
2118 PyObject_SetAttr(inst, key, swig_this);
2119 #endif
2120 }
2121 } else {
2122 PyObject *dict = PyDict_New();
2123 PyDict_SetItem(dict, SWIG_This(), swig_this);
2124 inst = PyInstance_NewRaw(data->newargs, dict);
2125 Py_DECREF(dict);
2126 }
2127 return inst;
2128 #else
2129 #if (PY_VERSION_HEX >= 0x02010000)
2130 PyObject *inst;
2131 PyObject *dict = PyDict_New();
2132 PyDict_SetItem(dict, SWIG_This(), swig_this);
2133 inst = PyInstance_NewRaw(data->newargs, dict);
2134 Py_DECREF(dict);
2135 return (PyObject *) inst;
2136 #else
2137 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2138 if (inst == NULL) {
2139 return NULL;
2140 }
2141 inst->in_class = (PyClassObject *)data->newargs;
2142 Py_INCREF(inst->in_class);
2143 inst->in_dict = PyDict_New();
2144 if (inst->in_dict == NULL) {
2145 Py_DECREF(inst);
2146 return NULL;
2147 }
2148 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2149 inst->in_weakreflist = NULL;
2150 #endif
2151 #ifdef Py_TPFLAGS_GC
2152 PyObject_GC_Init(inst);
2153 #endif
2154 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2155 return (PyObject *) inst;
2156 #endif
2157 #endif
2158 }
2159
2160 SWIGRUNTIME void
2161 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2162 {
2163 PyObject *dict;
2164 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2165 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2166 if (dictptr != NULL) {
2167 dict = *dictptr;
2168 if (dict == NULL) {
2169 dict = PyDict_New();
2170 *dictptr = dict;
2171 }
2172 PyDict_SetItem(dict, SWIG_This(), swig_this);
2173 return;
2174 }
2175 #endif
2176 dict = PyObject_GetAttrString(inst, "__dict__");
2177 PyDict_SetItem(dict, SWIG_This(), swig_this);
2178 Py_DECREF(dict);
2179 }
2180
2181
2182 SWIGINTERN PyObject *
2183 SWIG_Python_InitShadowInstance(PyObject *args) {
2184 PyObject *obj[2];
2185 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2186 return NULL;
2187 } else {
2188 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2189 if (sthis) {
2190 PySwigObject_append((PyObject*) sthis, obj[1]);
2191 } else {
2192 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2193 }
2194 return SWIG_Py_Void();
2195 }
2196 }
2197
2198 /* Create a new pointer object */
2199
2200 SWIGRUNTIME PyObject *
2201 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2202 if (!ptr) {
2203 return SWIG_Py_Void();
2204 } else {
2205 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2206 PyObject *robj = PySwigObject_New(ptr, type, own);
2207 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2208 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2209 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2210 if (inst) {
2211 Py_DECREF(robj);
2212 robj = inst;
2213 }
2214 }
2215 return robj;
2216 }
2217 }
2218
2219 /* Create a new packed object */
2220
2221 SWIGRUNTIMEINLINE PyObject *
2222 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2223 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2224 }
2225
2226 /* -----------------------------------------------------------------------------*
2227 * Get type list
2228 * -----------------------------------------------------------------------------*/
2229
2230 #ifdef SWIG_LINK_RUNTIME
2231 void *SWIG_ReturnGlobalTypeList(void *);
2232 #endif
2233
2234 SWIGRUNTIME swig_module_info *
2235 SWIG_Python_GetModule(void) {
2236 static void *type_pointer = (void *)0;
2237 /* first check if module already created */
2238 if (!type_pointer) {
2239 #ifdef SWIG_LINK_RUNTIME
2240 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2241 #else
2242 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2243 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2244 if (PyErr_Occurred()) {
2245 PyErr_Clear();
2246 type_pointer = (void *)0;
2247 }
2248 #endif
2249 }
2250 return (swig_module_info *) type_pointer;
2251 }
2252
2253 #if PY_MAJOR_VERSION < 2
2254 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2255 is copied out of Python/modsupport.c in python version 2.3.4 */
2256 SWIGINTERN int
2257 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2258 {
2259 PyObject *dict;
2260 if (!PyModule_Check(m)) {
2261 PyErr_SetString(PyExc_TypeError,
2262 "PyModule_AddObject() needs module as first arg");
2263 return SWIG_ERROR;
2264 }
2265 if (!o) {
2266 PyErr_SetString(PyExc_TypeError,
2267 "PyModule_AddObject() needs non-NULL value");
2268 return SWIG_ERROR;
2269 }
2270
2271 dict = PyModule_GetDict(m);
2272 if (dict == NULL) {
2273 /* Internal error -- modules must have a dict! */
2274 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2275 PyModule_GetName(m));
2276 return SWIG_ERROR;
2277 }
2278 if (PyDict_SetItemString(dict, name, o))
2279 return SWIG_ERROR;
2280 Py_DECREF(o);
2281 return SWIG_OK;
2282 }
2283 #endif
2284
2285 SWIGRUNTIME void
2286 SWIG_Python_DestroyModule(void *vptr)
2287 {
2288 swig_module_info *swig_module = (swig_module_info *) vptr;
2289 swig_type_info **types = swig_module->types;
2290 size_t i;
2291 for (i =0; i < swig_module->size; ++i) {
2292 swig_type_info *ty = types[i];
2293 if (ty->owndata) {
2294 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2295 if (data) PySwigClientData_Del(data);
2296 }
2297 }
2298 Py_DECREF(SWIG_This());
2299 }
2300
2301 SWIGRUNTIME void
2302 SWIG_Python_SetModule(swig_module_info *swig_module) {
2303 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2304
2305 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2306 swig_empty_runtime_method_table);
2307 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2308 if (pointer && module) {
2309 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2310 } else {
2311 Py_XDECREF(pointer);
2312 }
2313 }
2314
2315 /* The python cached type query */
2316 SWIGRUNTIME PyObject *
2317 SWIG_Python_TypeCache() {
2318 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2319 return cache;
2320 }
2321
2322 SWIGRUNTIME swig_type_info *
2323 SWIG_Python_TypeQuery(const char *type)
2324 {
2325 PyObject *cache = SWIG_Python_TypeCache();
2326 PyObject *key = PyString_FromString(type);
2327 PyObject *obj = PyDict_GetItem(cache, key);
2328 swig_type_info *descriptor;
2329 if (obj) {
2330 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2331 } else {
2332 swig_module_info *swig_module = SWIG_Python_GetModule();
2333 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2334 if (descriptor) {
2335 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2336 PyDict_SetItem(cache, key, obj);
2337 Py_DECREF(obj);
2338 }
2339 }
2340 Py_DECREF(key);
2341 return descriptor;
2342 }
2343
2344 /*
2345 For backward compatibility only
2346 */
2347 #define SWIG_POINTER_EXCEPTION 0
2348 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2349 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2350
2351 SWIGRUNTIME int
2352 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2353 {
2354 if (PyErr_Occurred()) {
2355 PyObject *type = 0;
2356 PyObject *value = 0;
2357 PyObject *traceback = 0;
2358 PyErr_Fetch(&type, &value, &traceback);
2359 if (value) {
2360 PyObject *old_str = PyObject_Str(value);
2361 Py_XINCREF(type);
2362 PyErr_Clear();
2363 if (infront) {
2364 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2365 } else {
2366 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2367 }
2368 Py_DECREF(old_str);
2369 }
2370 return 1;
2371 } else {
2372 return 0;
2373 }
2374 }
2375
2376 SWIGRUNTIME int
2377 SWIG_Python_ArgFail(int argnum)
2378 {
2379 if (PyErr_Occurred()) {
2380 /* add information about failing argument */
2381 char mesg[256];
2382 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2383 return SWIG_Python_AddErrMesg(mesg, 1);
2384 } else {
2385 return 0;
2386 }
2387 }
2388
2389 SWIGRUNTIMEINLINE const char *
2390 PySwigObject_GetDesc(PyObject *self)
2391 {
2392 PySwigObject *v = (PySwigObject *)self;
2393 swig_type_info *ty = v ? v->ty : 0;
2394 return ty ? ty->str : (char*)"";
2395 }
2396
2397 SWIGRUNTIME void
2398 SWIG_Python_TypeError(const char *type, PyObject *obj)
2399 {
2400 if (type) {
2401 #if defined(SWIG_COBJECT_TYPES)
2402 if (obj && PySwigObject_Check(obj)) {
2403 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2404 if (otype) {
2405 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2406 type, otype);
2407 return;
2408 }
2409 } else
2410 #endif
2411 {
2412 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2413 if (otype) {
2414 PyObject *str = PyObject_Str(obj);
2415 const char *cstr = str ? PyString_AsString(str) : 0;
2416 if (cstr) {
2417 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2418 type, otype, cstr);
2419 } else {
2420 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2421 type, otype);
2422 }
2423 Py_XDECREF(str);
2424 return;
2425 }
2426 }
2427 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2428 } else {
2429 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2430 }
2431 }
2432
2433
2434 /* Convert a pointer value, signal an exception on a type mismatch */
2435 SWIGRUNTIME void *
2436 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2437 void *result;
2438 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2439 PyErr_Clear();
2440 if (flags & SWIG_POINTER_EXCEPTION) {
2441 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2442 SWIG_Python_ArgFail(argnum);
2443 }
2444 }
2445 return result;
2446 }
2447
2448
2449 #ifdef __cplusplus
2450 #if 0
2451 { /* cc-mode */
2452 #endif
2453 }
2454 #endif
2455
2456
2457
2458 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2459
2460 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2461
2462
2463
2464 /* -------- TYPES TABLE (BEGIN) -------- */
2465
2466 #define SWIGTYPE_p_char swig_types[0]
2467 #define SWIGTYPE_p_double swig_types[1]
2468 #define SWIGTYPE_p_form_ops_t swig_types[2]
2469 #define SWIGTYPE_p_int swig_types[3]
2470 #define SWIGTYPE_p_unsigned_char swig_types[4]
2471 #define SWIGTYPE_p_unsigned_int swig_types[5]
2472 #define SWIGTYPE_p_unsigned_long swig_types[6]
2473 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2474 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2475 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2476 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2477 #define SWIGTYPE_p_wxBitmap swig_types[11]
2478 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2479 #define SWIGTYPE_p_wxBrush swig_types[13]
2480 #define SWIGTYPE_p_wxBrushList swig_types[14]
2481 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2482 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2483 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2484 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2485 #define SWIGTYPE_p_wxClientDC swig_types[19]
2486 #define SWIGTYPE_p_wxClipboardTextEvent swig_types[20]
2487 #define SWIGTYPE_p_wxCloseEvent swig_types[21]
2488 #define SWIGTYPE_p_wxColour swig_types[22]
2489 #define SWIGTYPE_p_wxColourDatabase swig_types[23]
2490 #define SWIGTYPE_p_wxCommandEvent swig_types[24]
2491 #define SWIGTYPE_p_wxContextMenuEvent swig_types[25]
2492 #define SWIGTYPE_p_wxControl swig_types[26]
2493 #define SWIGTYPE_p_wxControlWithItems swig_types[27]
2494 #define SWIGTYPE_p_wxCursor swig_types[28]
2495 #define SWIGTYPE_p_wxDC swig_types[29]
2496 #define SWIGTYPE_p_wxDash swig_types[30]
2497 #define SWIGTYPE_p_wxDateEvent swig_types[31]
2498 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[32]
2499 #define SWIGTYPE_p_wxDropFilesEvent swig_types[33]
2500 #define SWIGTYPE_p_wxDuplexMode swig_types[34]
2501 #define SWIGTYPE_p_wxEffects swig_types[35]
2502 #define SWIGTYPE_p_wxEncodingConverter swig_types[36]
2503 #define SWIGTYPE_p_wxEraseEvent swig_types[37]
2504 #define SWIGTYPE_p_wxEvent swig_types[38]
2505 #define SWIGTYPE_p_wxEvtHandler swig_types[39]
2506 #define SWIGTYPE_p_wxFSFile swig_types[40]
2507 #define SWIGTYPE_p_wxFileSystem swig_types[41]
2508 #define SWIGTYPE_p_wxFlexGridSizer swig_types[42]
2509 #define SWIGTYPE_p_wxFocusEvent swig_types[43]
2510 #define SWIGTYPE_p_wxFont swig_types[44]
2511 #define SWIGTYPE_p_wxFontList swig_types[45]
2512 #define SWIGTYPE_p_wxFontMapper swig_types[46]
2513 #define SWIGTYPE_p_wxGBSizerItem swig_types[47]
2514 #define SWIGTYPE_p_wxGDIObjListBase swig_types[48]
2515 #define SWIGTYPE_p_wxGDIObject swig_types[49]
2516 #define SWIGTYPE_p_wxGIFHandler swig_types[50]
2517 #define SWIGTYPE_p_wxGridBagSizer swig_types[51]
2518 #define SWIGTYPE_p_wxGridSizer swig_types[52]
2519 #define SWIGTYPE_p_wxICOHandler swig_types[53]
2520 #define SWIGTYPE_p_wxIcon swig_types[54]
2521 #define SWIGTYPE_p_wxIconBundle swig_types[55]
2522 #define SWIGTYPE_p_wxIconLocation swig_types[56]
2523 #define SWIGTYPE_p_wxIconizeEvent swig_types[57]
2524 #define SWIGTYPE_p_wxIdleEvent swig_types[58]
2525 #define SWIGTYPE_p_wxImage swig_types[59]
2526 #define SWIGTYPE_p_wxImageHandler swig_types[60]
2527 #define SWIGTYPE_p_wxImageList swig_types[61]
2528 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[62]
2529 #define SWIGTYPE_p_wxInitDialogEvent swig_types[63]
2530 #define SWIGTYPE_p_wxJPEGHandler swig_types[64]
2531 #define SWIGTYPE_p_wxKeyEvent swig_types[65]
2532 #define SWIGTYPE_p_wxLanguageInfo swig_types[66]
2533 #define SWIGTYPE_p_wxLayoutConstraints swig_types[67]
2534 #define SWIGTYPE_p_wxLocale swig_types[68]
2535 #define SWIGTYPE_p_wxMask swig_types[69]
2536 #define SWIGTYPE_p_wxMaximizeEvent swig_types[70]
2537 #define SWIGTYPE_p_wxMemoryDC swig_types[71]
2538 #define SWIGTYPE_p_wxMenu swig_types[72]
2539 #define SWIGTYPE_p_wxMenuBar swig_types[73]
2540 #define SWIGTYPE_p_wxMenuEvent swig_types[74]
2541 #define SWIGTYPE_p_wxMenuItem swig_types[75]
2542 #define SWIGTYPE_p_wxMetaFile swig_types[76]
2543 #define SWIGTYPE_p_wxMetaFileDC swig_types[77]
2544 #define SWIGTYPE_p_wxMirrorDC swig_types[78]
2545 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[79]
2546 #define SWIGTYPE_p_wxMouseEvent swig_types[80]
2547 #define SWIGTYPE_p_wxMoveEvent swig_types[81]
2548 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[82]
2549 #define SWIGTYPE_p_wxNativeFontInfo swig_types[83]
2550 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[84]
2551 #define SWIGTYPE_p_wxNcPaintEvent swig_types[85]
2552 #define SWIGTYPE_p_wxNotifyEvent swig_types[86]
2553 #define SWIGTYPE_p_wxObject swig_types[87]
2554 #define SWIGTYPE_p_wxPCXHandler swig_types[88]
2555 #define SWIGTYPE_p_wxPNGHandler swig_types[89]
2556 #define SWIGTYPE_p_wxPNMHandler swig_types[90]
2557 #define SWIGTYPE_p_wxPaintDC swig_types[91]
2558 #define SWIGTYPE_p_wxPaintEvent swig_types[92]
2559 #define SWIGTYPE_p_wxPalette swig_types[93]
2560 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[94]
2561 #define SWIGTYPE_p_wxPaperSize swig_types[95]
2562 #define SWIGTYPE_p_wxPen swig_types[96]
2563 #define SWIGTYPE_p_wxPenList swig_types[97]
2564 #define SWIGTYPE_p_wxPoint swig_types[98]
2565 #define SWIGTYPE_p_wxPostScriptDC swig_types[99]
2566 #define SWIGTYPE_p_wxPrintData swig_types[100]
2567 #define SWIGTYPE_p_wxPrinterDC swig_types[101]
2568 #define SWIGTYPE_p_wxPyApp swig_types[102]
2569 #define SWIGTYPE_p_wxPyCommandEvent swig_types[103]
2570 #define SWIGTYPE_p_wxPyEvent swig_types[104]
2571 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[105]
2572 #define SWIGTYPE_p_wxPyImageHandler swig_types[106]
2573 #define SWIGTYPE_p_wxPySizer swig_types[107]
2574 #define SWIGTYPE_p_wxPyValidator swig_types[108]
2575 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[109]
2576 #define SWIGTYPE_p_wxRect swig_types[110]
2577 #define SWIGTYPE_p_wxRegion swig_types[111]
2578 #define SWIGTYPE_p_wxRegionIterator swig_types[112]
2579 #define SWIGTYPE_p_wxRendererNative swig_types[113]
2580 #define SWIGTYPE_p_wxRendererVersion swig_types[114]
2581 #define SWIGTYPE_p_wxScreenDC swig_types[115]
2582 #define SWIGTYPE_p_wxScrollEvent swig_types[116]
2583 #define SWIGTYPE_p_wxScrollWinEvent swig_types[117]
2584 #define SWIGTYPE_p_wxSetCursorEvent swig_types[118]
2585 #define SWIGTYPE_p_wxShowEvent swig_types[119]
2586 #define SWIGTYPE_p_wxSize swig_types[120]
2587 #define SWIGTYPE_p_wxSizeEvent swig_types[121]
2588 #define SWIGTYPE_p_wxSizer swig_types[122]
2589 #define SWIGTYPE_p_wxSizerItem swig_types[123]
2590 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[124]
2591 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[125]
2592 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[126]
2593 #define SWIGTYPE_p_wxStockGDI swig_types[127]
2594 #define SWIGTYPE_p_wxString swig_types[128]
2595 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[129]
2596 #define SWIGTYPE_p_wxTIFFHandler swig_types[130]
2597 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[131]
2598 #define SWIGTYPE_p_wxValidator swig_types[132]
2599 #define SWIGTYPE_p_wxWindow swig_types[133]
2600 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[134]
2601 #define SWIGTYPE_p_wxWindowDC swig_types[135]
2602 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[136]
2603 #define SWIGTYPE_p_wxXPMHandler swig_types[137]
2604 static swig_type_info *swig_types[139];
2605 static swig_module_info swig_module = {swig_types, 138, 0, 0, 0, 0};
2606 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2607 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2608
2609 /* -------- TYPES TABLE (END) -------- */
2610
2611 #if (PY_VERSION_HEX <= 0x02000000)
2612 # if !defined(SWIG_PYTHON_CLASSIC)
2613 # error "This python version requires to use swig with the '-classic' option"
2614 # endif
2615 #endif
2616 #if (PY_VERSION_HEX <= 0x02020000)
2617 # error "This python version requires to use swig with the '-nomodern' option"
2618 #endif
2619 #if (PY_VERSION_HEX <= 0x02020000)
2620 # error "This python version requires to use swig with the '-nomodernargs' option"
2621 #endif
2622 #ifndef METH_O
2623 # error "This python version requires to use swig with the '-nofastunpack' option"
2624 #endif
2625
2626 /*-----------------------------------------------
2627 @(target):= _gdi_.so
2628 ------------------------------------------------*/
2629 #define SWIG_init init_gdi_
2630
2631 #define SWIG_name "_gdi_"
2632
2633 #define SWIGVERSION 0x010329
2634
2635
2636 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2637 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2638
2639
2640 #include <stdexcept>
2641
2642
2643 namespace swig {
2644 class PyObject_ptr {
2645 protected:
2646 PyObject *_obj;
2647
2648 public:
2649 PyObject_ptr() :_obj(0)
2650 {
2651 }
2652
2653 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2654 {
2655 Py_XINCREF(_obj);
2656 }
2657
2658 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2659 {
2660 if (initial_ref) Py_XINCREF(_obj);
2661 }
2662
2663 PyObject_ptr & operator=(const PyObject_ptr& item)
2664 {
2665 Py_XINCREF(item._obj);
2666 Py_XDECREF(_obj);
2667 _obj = item._obj;
2668 return *this;
2669 }
2670
2671 ~PyObject_ptr()
2672 {
2673 Py_XDECREF(_obj);
2674 }
2675
2676 operator PyObject *() const
2677 {
2678 return _obj;
2679 }
2680
2681 PyObject *operator->() const
2682 {
2683 return _obj;
2684 }
2685 };
2686 }
2687
2688
2689 namespace swig {
2690 struct PyObject_var : PyObject_ptr {
2691 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2692
2693 PyObject_var & operator = (PyObject* obj)
2694 {
2695 Py_XDECREF(_obj);
2696 _obj = obj;
2697 return *this;
2698 }
2699 };
2700 }
2701
2702
2703 #include "wx/wxPython/wxPython.h"
2704 #include "wx/wxPython/pyclasses.h"
2705
2706
2707 static const wxString wxPyEmptyString(wxEmptyString);
2708
2709 #define SWIG_From_long PyInt_FromLong
2710
2711
2712 SWIGINTERNINLINE PyObject *
2713 SWIG_From_int (int value)
2714 {
2715 return SWIG_From_long (value);
2716 }
2717
2718
2719 #include <limits.h>
2720 #ifndef LLONG_MIN
2721 # define LLONG_MIN LONG_LONG_MIN
2722 #endif
2723 #ifndef LLONG_MAX
2724 # define LLONG_MAX LONG_LONG_MAX
2725 #endif
2726 #ifndef ULLONG_MAX
2727 # define ULLONG_MAX ULONG_LONG_MAX
2728 #endif
2729
2730
2731 SWIGINTERN int
2732 SWIG_AsVal_long (PyObject* obj, long* val)
2733 {
2734 if (PyNumber_Check(obj)) {
2735 if (val) *val = PyInt_AsLong(obj);
2736 return SWIG_OK;
2737 }
2738 return SWIG_TypeError;
2739 }
2740
2741
2742 SWIGINTERN int
2743 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2744 {
2745 long v = 0;
2746 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2747 return SWIG_TypeError;
2748 }
2749 else if (val)
2750 *val = (unsigned long)v;
2751 return SWIG_OK;
2752 }
2753
2754
2755 SWIGINTERN int
2756 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2757 {
2758 unsigned long v;
2759 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2760 if (SWIG_IsOK(res)) {
2761 if ((v > UCHAR_MAX)) {
2762 return SWIG_OverflowError;
2763 } else {
2764 if (val) *val = static_cast< unsigned char >(v);
2765 }
2766 }
2767 return res;
2768 }
2769
2770
2771 SWIGINTERNINLINE PyObject*
2772 SWIG_From_unsigned_SS_long (unsigned long value)
2773 {
2774 return (value > LONG_MAX) ?
2775 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2776 }
2777
2778
2779 SWIGINTERNINLINE PyObject *
2780 SWIG_From_unsigned_SS_char (unsigned char value)
2781 {
2782 return SWIG_From_unsigned_SS_long (value);
2783 }
2784
2785 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2786 wxColour temp, *obj = &temp;
2787 if ( other == Py_None ) return false;
2788 if ( ! wxColour_helper(other, &obj) ) {
2789 PyErr_Clear();
2790 return false;
2791 }
2792 return self->operator==(*obj);
2793 }
2794 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2795 wxColour temp, *obj = &temp;
2796 if ( other == Py_None ) return true;
2797 if ( ! wxColour_helper(other, &obj)) {
2798 PyErr_Clear();
2799 return true;
2800 }
2801 return self->operator!=(*obj);
2802 }
2803 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2804 PyObject* rv = PyTuple_New(3);
2805 int red = -1;
2806 int green = -1;
2807 int blue = -1;
2808 if (self->Ok()) {
2809 red = self->Red();
2810 green = self->Green();
2811 blue = self->Blue();
2812 }
2813 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2814 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2815 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2816 return rv;
2817 }
2818 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2819 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2820 }
2821
2822 SWIGINTERN int
2823 SWIG_AsVal_int (PyObject * obj, int *val)
2824 {
2825 long v;
2826 int res = SWIG_AsVal_long (obj, &v);
2827 if (SWIG_IsOK(res)) {
2828 if ((v < INT_MIN || v > INT_MAX)) {
2829 return SWIG_OverflowError;
2830 } else {
2831 if (val) *val = static_cast< int >(v);
2832 }
2833 }
2834 return res;
2835 }
2836
2837 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2838 wxDash* dashes;
2839 int count = self->GetDashes(&dashes);
2840 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2841 PyObject* retval = PyList_New(0);
2842 for (int x=0; x<count; x++) {
2843 PyObject* pyint = PyInt_FromLong(dashes[x]);
2844 PyList_Append(retval, pyint);
2845 Py_DECREF(pyint);
2846 }
2847 wxPyEndBlockThreads(blocked);
2848 return retval;
2849 }
2850 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2851 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2852 int size = PyList_Size(pyDashes);
2853 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2854
2855 // black magic warning! The array of wxDashes needs to exist as
2856 // long as the pen does because wxPen does not copy the array. So
2857 // stick a copy in a Python string object and attach it to _self,
2858 // and then call SetDashes with a pointer to that array. Then
2859 // when the Python pen object is destroyed the array will be
2860 // cleaned up too.
2861 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2862 PyObject_SetAttrString(_self, "_dashes", strDashes);
2863
2864 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2865 delete [] dashes;
2866 Py_DECREF(strDashes);
2867 wxPyEndBlockThreads(blocked);
2868 }
2869 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2870 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2871
2872 #include <wx/image.h>
2873
2874 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2875 char** cArray = NULL;
2876 int count;
2877
2878 if (!PyList_Check(listOfStrings)) {
2879 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2880 return NULL;
2881 }
2882 count = PyList_Size(listOfStrings);
2883 cArray = new char*[count];
2884
2885 for(int x=0; x<count; x++) {
2886 // TODO: Need some validation and error checking here
2887 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2888 }
2889 return cArray;
2890 }
2891
2892
2893 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2894 char** cArray = NULL;
2895 wxBitmap* bmp;
2896
2897 cArray = ConvertListOfStrings(listOfStrings);
2898 if (! cArray)
2899 return NULL;
2900 bmp = new wxBitmap(cArray);
2901 delete [] cArray;
2902 return bmp;
2903 }
2904 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2905 char* buf;
2906 Py_ssize_t length;
2907 PyString_AsStringAndSize(bits, &buf, &length);
2908 return new wxBitmap(buf, width, height, depth);
2909 }
2910 SWIGINTERN void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2911 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2912 wxSize size(self->GetWidth(), self->GetHeight());
2913 return size;
2914 }
2915 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2916 wxMask *mask = new wxMask(*self, colour);
2917 self->SetMask(mask);
2918 }
2919 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2920 self->SetWidth(size.x);
2921 self->SetHeight(size.y);
2922 }
2923 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2924 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2925 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2926 if ( !colour.Ok() )
2927 return new wxMask(bitmap, *wxBLACK);
2928 else
2929 return new wxMask(bitmap, colour);
2930 }
2931
2932 #include <wx/iconbndl.h>
2933
2934 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2935 wxIcon* icon = new wxIcon();
2936 icon->CopyFromBitmap(bmp);
2937 return icon;
2938 }
2939 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2940 char** cArray = NULL;
2941 wxIcon* icon;
2942
2943 cArray = ConvertListOfStrings(listOfStrings);
2944 if (! cArray)
2945 return NULL;
2946 icon = new wxIcon(cArray);
2947 delete [] cArray;
2948 return icon;
2949 }
2950 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2951 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2952
2953 return new wxIconLocation(*filename, num);
2954
2955
2956
2957 }
2958 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2959
2960 self->SetIndex(num);
2961
2962
2963
2964 }
2965 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2966
2967 return self->GetIndex();
2968
2969
2970
2971 }
2972 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2973 #ifdef __WXGTK__
2974 wxImage img(cursorName, type);
2975 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2976 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2977 return new wxCursor(img);
2978 #else
2979 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2980 #endif
2981 }
2982 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2983
2984
2985 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2986 (*self) ++;
2987 }
2988 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2989 return self->operator bool();
2990 }
2991
2992 #include <wx/fontutil.h>
2993 #include <wx/fontmap.h>
2994 #include <wx/fontenum.h>
2995
2996
2997 SWIGINTERN int
2998 SWIG_AsVal_bool (PyObject *obj, bool *val)
2999 {
3000 if (obj == Py_True) {
3001 if (val) *val = true;
3002 return SWIG_OK;
3003 } else if (obj == Py_False) {
3004 if (val) *val = false;
3005 return SWIG_OK;
3006 } else {
3007 long v = 0;
3008 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3009 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3010 return res;
3011 }
3012 }
3013
3014 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3015 return self->ToString();
3016 }
3017
3018 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3019 { wxPyRaiseNotImplemented(); return NULL; }
3020
3021 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3022 { wxPyRaiseNotImplemented(); return false; }
3023
3024
3025 SWIGINTERNINLINE PyObject *
3026 SWIG_From_size_t (size_t value)
3027 {
3028 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3029 }
3030
3031
3032 SWIGINTERNINLINE int
3033 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3034 {
3035 unsigned long v;
3036 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3037 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3038 return res;
3039 }
3040
3041 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3042 wxFontEncoding alt_enc;
3043 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3044 return PyInt_FromLong(alt_enc);
3045 else {
3046 Py_INCREF(Py_None);
3047 return Py_None;
3048 }
3049 }
3050 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3051 wxNativeFontInfo nfi;
3052 nfi.FromString(info);
3053 return new wxFont(nfi);
3054 }
3055 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3056 return wxFont::New(pointSize, family, flags, face, encoding);
3057 }
3058 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3059 return wxFontBase::New(pixelSize, family,
3060 style, weight, underlined,
3061 face, encoding);
3062 }
3063 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3064 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3065 }
3066 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3067 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3068
3069 class wxPyFontEnumerator : public wxFontEnumerator {
3070 public:
3071 wxPyFontEnumerator() {}
3072 ~wxPyFontEnumerator() {}
3073
3074 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3075 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3076
3077 PYPRIVATE;
3078 };
3079
3080 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3081 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3082
3083
3084 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(){
3085 PyObject* ret;
3086 wxArrayString arr = wxFontEnumerator::GetEncodings();
3087 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3088 ret = wxArrayString2PyList_helper(arr);
3089 wxPyEndBlockThreads(blocked);
3090 return ret;
3091 }
3092 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(){
3093 PyObject* ret;
3094 wxArrayString arr = wxFontEnumerator::GetFacenames();
3095 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3096 ret = wxArrayString2PyList_helper(arr);
3097 wxPyEndBlockThreads(blocked);
3098 return ret;
3099 }
3100
3101 #include <locale.h>
3102
3103 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3104 wxLocale* loc;
3105 if (language == -1)
3106 loc = new wxLocale();
3107 else
3108 loc = new wxLocale(language, flags);
3109 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3110 // for the floating point conversions and such to work right.
3111 #if PY_VERSION_HEX < 0x02040000
3112 setlocale(LC_NUMERIC, "C");
3113 #endif
3114 return loc;
3115 }
3116 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3117 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3118 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3119 // for the floating point conversions and such to work right.
3120 #if PY_VERSION_HEX < 0x02040000
3121 setlocale(LC_NUMERIC, "C");
3122 #endif
3123 return rc;
3124 }
3125 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3126 bool rc = self->Init(language, flags);
3127 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3128 // for the floating point conversions and such to work right.
3129 #if PY_VERSION_HEX < 0x02040000
3130 setlocale(LC_NUMERIC, "C");
3131 #endif
3132 return rc;
3133 }
3134
3135 #include "wx/wxPython/pydrawxxx.h"
3136
3137 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3138 wxColour col;
3139 self->GetPixel(x, y, &col);
3140 return col;
3141 }
3142 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3143 wxColour col;
3144 self->GetPixel(pt, &col);
3145 return col;
3146 }
3147
3148 SWIGINTERN int
3149 SWIG_AsVal_double (PyObject *obj, double* val)
3150 {
3151 if (PyNumber_Check(obj)) {
3152 if (val) *val = PyFloat_AsDouble(obj);
3153 return SWIG_OK;
3154 }
3155 return SWIG_TypeError;
3156 }
3157
3158 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3159 wxRect rv;
3160 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3161 return rv;
3162 }
3163 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3164 wxRect rect;
3165 self->GetClippingBox(rect);
3166 return rect;
3167 }
3168 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3169 wxArrayInt widths;
3170 self->GetPartialTextExtents(text, widths);
3171 return widths;
3172 }
3173
3174 #define SWIG_From_double PyFloat_FromDouble
3175
3176 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3177 self->SetLogicalOrigin(point.x, point.y);
3178 }
3179 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3180 self->SetDeviceOrigin(point.x, point.y);
3181 }
3182 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3183 self->CalcBoundingBox(point.x, point.y);
3184 }
3185 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3186 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3187 }
3188 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3189 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3190 }
3191 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3192 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3193 }
3194 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3195 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3196 }
3197 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3198 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3199 }
3200 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3201 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3202 }
3203
3204 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3205 *x1 = dc->MinX();
3206 *y1 = dc->MinY();
3207 *x2 = dc->MaxX();
3208 *y2 = dc->MaxY();
3209 }
3210
3211
3212 #include <wx/dcbuffer.h>
3213
3214
3215 #include <wx/dcps.h>
3216
3217
3218 #include <wx/metafile.h>
3219
3220
3221
3222 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3223 self->AddColour(name, wxColour(red, green, blue));
3224 }
3225
3226 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3227 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3228 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3229 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3230
3231
3232 #include <wx/effects.h>
3233
3234
3235 #include "wx/renderer.h"
3236
3237
3238 SWIGINTERNINLINE PyObject*
3239 SWIG_From_bool (bool value)
3240 {
3241 return PyBool_FromLong(value ? 1 : 0);
3242 }
3243
3244 #ifdef __cplusplus
3245 extern "C" {
3246 #endif
3247 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3248 PyObject *resultobj = 0;
3249 wxGDIObject *result = 0 ;
3250
3251 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3252 {
3253 if (!wxPyCheckForApp()) SWIG_fail;
3254 PyThreadState* __tstate = wxPyBeginAllowThreads();
3255 result = (wxGDIObject *)new wxGDIObject();
3256 wxPyEndAllowThreads(__tstate);
3257 if (PyErr_Occurred()) SWIG_fail;
3258 }
3259 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3260 return resultobj;
3261 fail:
3262 return NULL;
3263 }
3264
3265
3266 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3267 PyObject *resultobj = 0;
3268 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3269 void *argp1 = 0 ;
3270 int res1 = 0 ;
3271 PyObject *swig_obj[1] ;
3272
3273 if (!args) SWIG_fail;
3274 swig_obj[0] = args;
3275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3276 if (!SWIG_IsOK(res1)) {
3277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3278 }
3279 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3280 {
3281 PyThreadState* __tstate = wxPyBeginAllowThreads();
3282 delete arg1;
3283
3284 wxPyEndAllowThreads(__tstate);
3285 if (PyErr_Occurred()) SWIG_fail;
3286 }
3287 resultobj = SWIG_Py_Void();
3288 return resultobj;
3289 fail:
3290 return NULL;
3291 }
3292
3293
3294 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3295 PyObject *resultobj = 0;
3296 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3297 bool result;
3298 void *argp1 = 0 ;
3299 int res1 = 0 ;
3300 PyObject *swig_obj[1] ;
3301
3302 if (!args) SWIG_fail;
3303 swig_obj[0] = args;
3304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3305 if (!SWIG_IsOK(res1)) {
3306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3307 }
3308 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3309 {
3310 PyThreadState* __tstate = wxPyBeginAllowThreads();
3311 result = (bool)(arg1)->IsNull();
3312 wxPyEndAllowThreads(__tstate);
3313 if (PyErr_Occurred()) SWIG_fail;
3314 }
3315 {
3316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3317 }
3318 return resultobj;
3319 fail:
3320 return NULL;
3321 }
3322
3323
3324 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3325 PyObject *obj;
3326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3327 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3328 return SWIG_Py_Void();
3329 }
3330
3331 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3332 return SWIG_Python_InitShadowInstance(args);
3333 }
3334
3335 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3336 PyObject *resultobj = 0;
3337 byte arg1 = (byte) 0 ;
3338 byte arg2 = (byte) 0 ;
3339 byte arg3 = (byte) 0 ;
3340 wxColour *result = 0 ;
3341 unsigned char val1 ;
3342 int ecode1 = 0 ;
3343 unsigned char val2 ;
3344 int ecode2 = 0 ;
3345 unsigned char val3 ;
3346 int ecode3 = 0 ;
3347 PyObject * obj0 = 0 ;
3348 PyObject * obj1 = 0 ;
3349 PyObject * obj2 = 0 ;
3350 char * kwnames[] = {
3351 (char *) "red",(char *) "green",(char *) "blue", NULL
3352 };
3353
3354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3355 if (obj0) {
3356 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3357 if (!SWIG_IsOK(ecode1)) {
3358 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3359 }
3360 arg1 = static_cast< byte >(val1);
3361 }
3362 if (obj1) {
3363 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3364 if (!SWIG_IsOK(ecode2)) {
3365 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3366 }
3367 arg2 = static_cast< byte >(val2);
3368 }
3369 if (obj2) {
3370 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3371 if (!SWIG_IsOK(ecode3)) {
3372 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3373 }
3374 arg3 = static_cast< byte >(val3);
3375 }
3376 {
3377 PyThreadState* __tstate = wxPyBeginAllowThreads();
3378 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3379 wxPyEndAllowThreads(__tstate);
3380 if (PyErr_Occurred()) SWIG_fail;
3381 }
3382 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3383 return resultobj;
3384 fail:
3385 return NULL;
3386 }
3387
3388
3389 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3390 PyObject *resultobj = 0;
3391 wxString *arg1 = 0 ;
3392 wxColour *result = 0 ;
3393 bool temp1 = false ;
3394 PyObject * obj0 = 0 ;
3395 char * kwnames[] = {
3396 (char *) "colorName", NULL
3397 };
3398
3399 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3400 {
3401 arg1 = wxString_in_helper(obj0);
3402 if (arg1 == NULL) SWIG_fail;
3403 temp1 = true;
3404 }
3405 {
3406 if (!wxPyCheckForApp()) SWIG_fail;
3407 PyThreadState* __tstate = wxPyBeginAllowThreads();
3408 result = (wxColour *)new wxColour((wxString const &)*arg1);
3409 wxPyEndAllowThreads(__tstate);
3410 if (PyErr_Occurred()) SWIG_fail;
3411 }
3412 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3413 {
3414 if (temp1)
3415 delete arg1;
3416 }
3417 return resultobj;
3418 fail:
3419 {
3420 if (temp1)
3421 delete arg1;
3422 }
3423 return NULL;
3424 }
3425
3426
3427 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3428 PyObject *resultobj = 0;
3429 unsigned long arg1 ;
3430 wxColour *result = 0 ;
3431 unsigned long val1 ;
3432 int ecode1 = 0 ;
3433 PyObject * obj0 = 0 ;
3434 char * kwnames[] = {
3435 (char *) "colRGB", NULL
3436 };
3437
3438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3439 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3440 if (!SWIG_IsOK(ecode1)) {
3441 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3442 }
3443 arg1 = static_cast< unsigned long >(val1);
3444 {
3445 PyThreadState* __tstate = wxPyBeginAllowThreads();
3446 result = (wxColour *)new wxColour(arg1);
3447 wxPyEndAllowThreads(__tstate);
3448 if (PyErr_Occurred()) SWIG_fail;
3449 }
3450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3451 return resultobj;
3452 fail:
3453 return NULL;
3454 }
3455
3456
3457 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3458 PyObject *resultobj = 0;
3459 wxColour *arg1 = (wxColour *) 0 ;
3460 void *argp1 = 0 ;
3461 int res1 = 0 ;
3462 PyObject *swig_obj[1] ;
3463
3464 if (!args) SWIG_fail;
3465 swig_obj[0] = args;
3466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3467 if (!SWIG_IsOK(res1)) {
3468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3469 }
3470 arg1 = reinterpret_cast< wxColour * >(argp1);
3471 {
3472 PyThreadState* __tstate = wxPyBeginAllowThreads();
3473 delete arg1;
3474
3475 wxPyEndAllowThreads(__tstate);
3476 if (PyErr_Occurred()) SWIG_fail;
3477 }
3478 resultobj = SWIG_Py_Void();
3479 return resultobj;
3480 fail:
3481 return NULL;
3482 }
3483
3484
3485 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3486 PyObject *resultobj = 0;
3487 wxColour *arg1 = (wxColour *) 0 ;
3488 byte result;
3489 void *argp1 = 0 ;
3490 int res1 = 0 ;
3491 PyObject *swig_obj[1] ;
3492
3493 if (!args) SWIG_fail;
3494 swig_obj[0] = args;
3495 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3496 if (!SWIG_IsOK(res1)) {
3497 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3498 }
3499 arg1 = reinterpret_cast< wxColour * >(argp1);
3500 {
3501 PyThreadState* __tstate = wxPyBeginAllowThreads();
3502 result = (byte)(arg1)->Red();
3503 wxPyEndAllowThreads(__tstate);
3504 if (PyErr_Occurred()) SWIG_fail;
3505 }
3506 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3507 return resultobj;
3508 fail:
3509 return NULL;
3510 }
3511
3512
3513 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3514 PyObject *resultobj = 0;
3515 wxColour *arg1 = (wxColour *) 0 ;
3516 byte result;
3517 void *argp1 = 0 ;
3518 int res1 = 0 ;
3519 PyObject *swig_obj[1] ;
3520
3521 if (!args) SWIG_fail;
3522 swig_obj[0] = args;
3523 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3524 if (!SWIG_IsOK(res1)) {
3525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3526 }
3527 arg1 = reinterpret_cast< wxColour * >(argp1);
3528 {
3529 PyThreadState* __tstate = wxPyBeginAllowThreads();
3530 result = (byte)(arg1)->Green();
3531 wxPyEndAllowThreads(__tstate);
3532 if (PyErr_Occurred()) SWIG_fail;
3533 }
3534 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3535 return resultobj;
3536 fail:
3537 return NULL;
3538 }
3539
3540
3541 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3542 PyObject *resultobj = 0;
3543 wxColour *arg1 = (wxColour *) 0 ;
3544 byte result;
3545 void *argp1 = 0 ;
3546 int res1 = 0 ;
3547 PyObject *swig_obj[1] ;
3548
3549 if (!args) SWIG_fail;
3550 swig_obj[0] = args;
3551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3552 if (!SWIG_IsOK(res1)) {
3553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3554 }
3555 arg1 = reinterpret_cast< wxColour * >(argp1);
3556 {
3557 PyThreadState* __tstate = wxPyBeginAllowThreads();
3558 result = (byte)(arg1)->Blue();
3559 wxPyEndAllowThreads(__tstate);
3560 if (PyErr_Occurred()) SWIG_fail;
3561 }
3562 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3563 return resultobj;
3564 fail:
3565 return NULL;
3566 }
3567
3568
3569 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3570 PyObject *resultobj = 0;
3571 wxColour *arg1 = (wxColour *) 0 ;
3572 bool result;
3573 void *argp1 = 0 ;
3574 int res1 = 0 ;
3575 PyObject *swig_obj[1] ;
3576
3577 if (!args) SWIG_fail;
3578 swig_obj[0] = args;
3579 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3580 if (!SWIG_IsOK(res1)) {
3581 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3582 }
3583 arg1 = reinterpret_cast< wxColour * >(argp1);
3584 {
3585 PyThreadState* __tstate = wxPyBeginAllowThreads();
3586 result = (bool)(arg1)->Ok();
3587 wxPyEndAllowThreads(__tstate);
3588 if (PyErr_Occurred()) SWIG_fail;
3589 }
3590 {
3591 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3592 }
3593 return resultobj;
3594 fail:
3595 return NULL;
3596 }
3597
3598
3599 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3600 PyObject *resultobj = 0;
3601 wxColour *arg1 = (wxColour *) 0 ;
3602 byte arg2 ;
3603 byte arg3 ;
3604 byte arg4 ;
3605 void *argp1 = 0 ;
3606 int res1 = 0 ;
3607 unsigned char val2 ;
3608 int ecode2 = 0 ;
3609 unsigned char val3 ;
3610 int ecode3 = 0 ;
3611 unsigned char val4 ;
3612 int ecode4 = 0 ;
3613 PyObject * obj0 = 0 ;
3614 PyObject * obj1 = 0 ;
3615 PyObject * obj2 = 0 ;
3616 PyObject * obj3 = 0 ;
3617 char * kwnames[] = {
3618 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3619 };
3620
3621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3623 if (!SWIG_IsOK(res1)) {
3624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3625 }
3626 arg1 = reinterpret_cast< wxColour * >(argp1);
3627 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3628 if (!SWIG_IsOK(ecode2)) {
3629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3630 }
3631 arg2 = static_cast< byte >(val2);
3632 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3633 if (!SWIG_IsOK(ecode3)) {
3634 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3635 }
3636 arg3 = static_cast< byte >(val3);
3637 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3638 if (!SWIG_IsOK(ecode4)) {
3639 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3640 }
3641 arg4 = static_cast< byte >(val4);
3642 {
3643 PyThreadState* __tstate = wxPyBeginAllowThreads();
3644 (arg1)->Set(arg2,arg3,arg4);
3645 wxPyEndAllowThreads(__tstate);
3646 if (PyErr_Occurred()) SWIG_fail;
3647 }
3648 resultobj = SWIG_Py_Void();
3649 return resultobj;
3650 fail:
3651 return NULL;
3652 }
3653
3654
3655 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3656 PyObject *resultobj = 0;
3657 wxColour *arg1 = (wxColour *) 0 ;
3658 unsigned long arg2 ;
3659 void *argp1 = 0 ;
3660 int res1 = 0 ;
3661 unsigned long val2 ;
3662 int ecode2 = 0 ;
3663 PyObject * obj0 = 0 ;
3664 PyObject * obj1 = 0 ;
3665 char * kwnames[] = {
3666 (char *) "self",(char *) "colRGB", NULL
3667 };
3668
3669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3671 if (!SWIG_IsOK(res1)) {
3672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3673 }
3674 arg1 = reinterpret_cast< wxColour * >(argp1);
3675 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3676 if (!SWIG_IsOK(ecode2)) {
3677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3678 }
3679 arg2 = static_cast< unsigned long >(val2);
3680 {
3681 PyThreadState* __tstate = wxPyBeginAllowThreads();
3682 (arg1)->Set(arg2);
3683 wxPyEndAllowThreads(__tstate);
3684 if (PyErr_Occurred()) SWIG_fail;
3685 }
3686 resultobj = SWIG_Py_Void();
3687 return resultobj;
3688 fail:
3689 return NULL;
3690 }
3691
3692
3693 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3694 PyObject *resultobj = 0;
3695 wxColour *arg1 = (wxColour *) 0 ;
3696 wxString *arg2 = 0 ;
3697 void *argp1 = 0 ;
3698 int res1 = 0 ;
3699 bool temp2 = false ;
3700 PyObject * obj0 = 0 ;
3701 PyObject * obj1 = 0 ;
3702 char * kwnames[] = {
3703 (char *) "self",(char *) "colourName", NULL
3704 };
3705
3706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3708 if (!SWIG_IsOK(res1)) {
3709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3710 }
3711 arg1 = reinterpret_cast< wxColour * >(argp1);
3712 {
3713 arg2 = wxString_in_helper(obj1);
3714 if (arg2 == NULL) SWIG_fail;
3715 temp2 = true;
3716 }
3717 {
3718 PyThreadState* __tstate = wxPyBeginAllowThreads();
3719 (arg1)->InitFromName((wxString const &)*arg2);
3720 wxPyEndAllowThreads(__tstate);
3721 if (PyErr_Occurred()) SWIG_fail;
3722 }
3723 resultobj = SWIG_Py_Void();
3724 {
3725 if (temp2)
3726 delete arg2;
3727 }
3728 return resultobj;
3729 fail:
3730 {
3731 if (temp2)
3732 delete arg2;
3733 }
3734 return NULL;
3735 }
3736
3737
3738 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3739 PyObject *resultobj = 0;
3740 wxColour *arg1 = (wxColour *) 0 ;
3741 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3742 wxString result;
3743 void *argp1 = 0 ;
3744 int res1 = 0 ;
3745 long val2 ;
3746 int ecode2 = 0 ;
3747 PyObject * obj0 = 0 ;
3748 PyObject * obj1 = 0 ;
3749 char * kwnames[] = {
3750 (char *) "self",(char *) "flags", NULL
3751 };
3752
3753 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3754 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3755 if (!SWIG_IsOK(res1)) {
3756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3757 }
3758 arg1 = reinterpret_cast< wxColour * >(argp1);
3759 if (obj1) {
3760 ecode2 = SWIG_AsVal_long(obj1, &val2);
3761 if (!SWIG_IsOK(ecode2)) {
3762 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3763 }
3764 arg2 = static_cast< long >(val2);
3765 }
3766 {
3767 PyThreadState* __tstate = wxPyBeginAllowThreads();
3768 result = ((wxColour const *)arg1)->GetAsString(arg2);
3769 wxPyEndAllowThreads(__tstate);
3770 if (PyErr_Occurred()) SWIG_fail;
3771 }
3772 {
3773 #if wxUSE_UNICODE
3774 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3775 #else
3776 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3777 #endif
3778 }
3779 return resultobj;
3780 fail:
3781 return NULL;
3782 }
3783
3784
3785 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3786 PyObject *resultobj = 0;
3787 wxColour *arg1 = (wxColour *) 0 ;
3788 long result;
3789 void *argp1 = 0 ;
3790 int res1 = 0 ;
3791 PyObject *swig_obj[1] ;
3792
3793 if (!args) SWIG_fail;
3794 swig_obj[0] = args;
3795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3796 if (!SWIG_IsOK(res1)) {
3797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3798 }
3799 arg1 = reinterpret_cast< wxColour * >(argp1);
3800 {
3801 PyThreadState* __tstate = wxPyBeginAllowThreads();
3802 result = (long)((wxColour const *)arg1)->GetPixel();
3803 wxPyEndAllowThreads(__tstate);
3804 if (PyErr_Occurred()) SWIG_fail;
3805 }
3806 resultobj = SWIG_From_long(static_cast< long >(result));
3807 return resultobj;
3808 fail:
3809 return NULL;
3810 }
3811
3812
3813 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3814 PyObject *resultobj = 0;
3815 wxColour *arg1 = (wxColour *) 0 ;
3816 PyObject *arg2 = (PyObject *) 0 ;
3817 bool result;
3818 void *argp1 = 0 ;
3819 int res1 = 0 ;
3820 PyObject * obj0 = 0 ;
3821 PyObject * obj1 = 0 ;
3822 char * kwnames[] = {
3823 (char *) "self",(char *) "other", NULL
3824 };
3825
3826 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3827 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3828 if (!SWIG_IsOK(res1)) {
3829 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3830 }
3831 arg1 = reinterpret_cast< wxColour * >(argp1);
3832 arg2 = obj1;
3833 {
3834 result = (bool)wxColour___eq__(arg1,arg2);
3835 if (PyErr_Occurred()) SWIG_fail;
3836 }
3837 {
3838 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3839 }
3840 return resultobj;
3841 fail:
3842 return NULL;
3843 }
3844
3845
3846 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3847 PyObject *resultobj = 0;
3848 wxColour *arg1 = (wxColour *) 0 ;
3849 PyObject *arg2 = (PyObject *) 0 ;
3850 bool result;
3851 void *argp1 = 0 ;
3852 int res1 = 0 ;
3853 PyObject * obj0 = 0 ;
3854 PyObject * obj1 = 0 ;
3855 char * kwnames[] = {
3856 (char *) "self",(char *) "other", NULL
3857 };
3858
3859 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3860 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3861 if (!SWIG_IsOK(res1)) {
3862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3863 }
3864 arg1 = reinterpret_cast< wxColour * >(argp1);
3865 arg2 = obj1;
3866 {
3867 result = (bool)wxColour___ne__(arg1,arg2);
3868 if (PyErr_Occurred()) SWIG_fail;
3869 }
3870 {
3871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3872 }
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3880 PyObject *resultobj = 0;
3881 wxColour *arg1 = (wxColour *) 0 ;
3882 PyObject *result = 0 ;
3883 void *argp1 = 0 ;
3884 int res1 = 0 ;
3885 PyObject *swig_obj[1] ;
3886
3887 if (!args) SWIG_fail;
3888 swig_obj[0] = args;
3889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3890 if (!SWIG_IsOK(res1)) {
3891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3892 }
3893 arg1 = reinterpret_cast< wxColour * >(argp1);
3894 {
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
3896 result = (PyObject *)wxColour_Get(arg1);
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 resultobj = result;
3901 return resultobj;
3902 fail:
3903 return NULL;
3904 }
3905
3906
3907 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3908 PyObject *resultobj = 0;
3909 wxColour *arg1 = (wxColour *) 0 ;
3910 unsigned long result;
3911 void *argp1 = 0 ;
3912 int res1 = 0 ;
3913 PyObject *swig_obj[1] ;
3914
3915 if (!args) SWIG_fail;
3916 swig_obj[0] = args;
3917 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3918 if (!SWIG_IsOK(res1)) {
3919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3920 }
3921 arg1 = reinterpret_cast< wxColour * >(argp1);
3922 {
3923 PyThreadState* __tstate = wxPyBeginAllowThreads();
3924 result = (unsigned long)wxColour_GetRGB(arg1);
3925 wxPyEndAllowThreads(__tstate);
3926 if (PyErr_Occurred()) SWIG_fail;
3927 }
3928 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3929 return resultobj;
3930 fail:
3931 return NULL;
3932 }
3933
3934
3935 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3936 PyObject *obj;
3937 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3938 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3939 return SWIG_Py_Void();
3940 }
3941
3942 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3943 return SWIG_Python_InitShadowInstance(args);
3944 }
3945
3946 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3947 PyObject *resultobj = 0;
3948 int arg1 ;
3949 unsigned char *arg2 = (unsigned char *) 0 ;
3950 unsigned char *arg3 = (unsigned char *) 0 ;
3951 unsigned char *arg4 = (unsigned char *) 0 ;
3952 wxPalette *result = 0 ;
3953 int val1 ;
3954 int ecode1 = 0 ;
3955 void *argp2 = 0 ;
3956 int res2 = 0 ;
3957 void *argp3 = 0 ;
3958 int res3 = 0 ;
3959 void *argp4 = 0 ;
3960 int res4 = 0 ;
3961 PyObject * obj0 = 0 ;
3962 PyObject * obj1 = 0 ;
3963 PyObject * obj2 = 0 ;
3964 PyObject * obj3 = 0 ;
3965 char * kwnames[] = {
3966 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3967 };
3968
3969 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3970 ecode1 = SWIG_AsVal_int(obj0, &val1);
3971 if (!SWIG_IsOK(ecode1)) {
3972 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3973 }
3974 arg1 = static_cast< int >(val1);
3975 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3976 if (!SWIG_IsOK(res2)) {
3977 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3978 }
3979 arg2 = reinterpret_cast< unsigned char * >(argp2);
3980 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3981 if (!SWIG_IsOK(res3)) {
3982 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3983 }
3984 arg3 = reinterpret_cast< unsigned char * >(argp3);
3985 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3986 if (!SWIG_IsOK(res4)) {
3987 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3988 }
3989 arg4 = reinterpret_cast< unsigned char * >(argp4);
3990 {
3991 if (!wxPyCheckForApp()) SWIG_fail;
3992 PyThreadState* __tstate = wxPyBeginAllowThreads();
3993 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3998 return resultobj;
3999 fail:
4000 return NULL;
4001 }
4002
4003
4004 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4005 PyObject *resultobj = 0;
4006 wxPalette *arg1 = (wxPalette *) 0 ;
4007 void *argp1 = 0 ;
4008 int res1 = 0 ;
4009 PyObject *swig_obj[1] ;
4010
4011 if (!args) SWIG_fail;
4012 swig_obj[0] = args;
4013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4014 if (!SWIG_IsOK(res1)) {
4015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4016 }
4017 arg1 = reinterpret_cast< wxPalette * >(argp1);
4018 {
4019 PyThreadState* __tstate = wxPyBeginAllowThreads();
4020 delete arg1;
4021
4022 wxPyEndAllowThreads(__tstate);
4023 if (PyErr_Occurred()) SWIG_fail;
4024 }
4025 resultobj = SWIG_Py_Void();
4026 return resultobj;
4027 fail:
4028 return NULL;
4029 }
4030
4031
4032 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4033 PyObject *resultobj = 0;
4034 wxPalette *arg1 = (wxPalette *) 0 ;
4035 byte arg2 ;
4036 byte arg3 ;
4037 byte arg4 ;
4038 int result;
4039 void *argp1 = 0 ;
4040 int res1 = 0 ;
4041 unsigned char val2 ;
4042 int ecode2 = 0 ;
4043 unsigned char val3 ;
4044 int ecode3 = 0 ;
4045 unsigned char val4 ;
4046 int ecode4 = 0 ;
4047 PyObject * obj0 = 0 ;
4048 PyObject * obj1 = 0 ;
4049 PyObject * obj2 = 0 ;
4050 PyObject * obj3 = 0 ;
4051 char * kwnames[] = {
4052 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4053 };
4054
4055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4057 if (!SWIG_IsOK(res1)) {
4058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4059 }
4060 arg1 = reinterpret_cast< wxPalette * >(argp1);
4061 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4062 if (!SWIG_IsOK(ecode2)) {
4063 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4064 }
4065 arg2 = static_cast< byte >(val2);
4066 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4067 if (!SWIG_IsOK(ecode3)) {
4068 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4069 }
4070 arg3 = static_cast< byte >(val3);
4071 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4072 if (!SWIG_IsOK(ecode4)) {
4073 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4074 }
4075 arg4 = static_cast< byte >(val4);
4076 {
4077 PyThreadState* __tstate = wxPyBeginAllowThreads();
4078 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4079 wxPyEndAllowThreads(__tstate);
4080 if (PyErr_Occurred()) SWIG_fail;
4081 }
4082 resultobj = SWIG_From_int(static_cast< int >(result));
4083 return resultobj;
4084 fail:
4085 return NULL;
4086 }
4087
4088
4089 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4090 PyObject *resultobj = 0;
4091 wxPalette *arg1 = (wxPalette *) 0 ;
4092 int arg2 ;
4093 byte *arg3 = (byte *) 0 ;
4094 byte *arg4 = (byte *) 0 ;
4095 byte *arg5 = (byte *) 0 ;
4096 bool result;
4097 void *argp1 = 0 ;
4098 int res1 = 0 ;
4099 int val2 ;
4100 int ecode2 = 0 ;
4101 byte temp3 ;
4102 int res3 = SWIG_TMPOBJ ;
4103 byte temp4 ;
4104 int res4 = SWIG_TMPOBJ ;
4105 byte temp5 ;
4106 int res5 = SWIG_TMPOBJ ;
4107 PyObject * obj0 = 0 ;
4108 PyObject * obj1 = 0 ;
4109 char * kwnames[] = {
4110 (char *) "self",(char *) "pixel", NULL
4111 };
4112
4113 arg3 = &temp3;
4114 arg4 = &temp4;
4115 arg5 = &temp5;
4116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4118 if (!SWIG_IsOK(res1)) {
4119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4120 }
4121 arg1 = reinterpret_cast< wxPalette * >(argp1);
4122 ecode2 = SWIG_AsVal_int(obj1, &val2);
4123 if (!SWIG_IsOK(ecode2)) {
4124 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4125 }
4126 arg2 = static_cast< int >(val2);
4127 {
4128 PyThreadState* __tstate = wxPyBeginAllowThreads();
4129 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4130 wxPyEndAllowThreads(__tstate);
4131 if (PyErr_Occurred()) SWIG_fail;
4132 }
4133 {
4134 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4135 }
4136 if (SWIG_IsTmpObj(res3)) {
4137 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4138 } else {
4139 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4140 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4141 }
4142 if (SWIG_IsTmpObj(res4)) {
4143 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4144 } else {
4145 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4147 }
4148 if (SWIG_IsTmpObj(res5)) {
4149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4150 } else {
4151 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4153 }
4154 return resultobj;
4155 fail:
4156 return NULL;
4157 }
4158
4159
4160 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4161 PyObject *resultobj = 0;
4162 wxPalette *arg1 = (wxPalette *) 0 ;
4163 int result;
4164 void *argp1 = 0 ;
4165 int res1 = 0 ;
4166 PyObject *swig_obj[1] ;
4167
4168 if (!args) SWIG_fail;
4169 swig_obj[0] = args;
4170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4171 if (!SWIG_IsOK(res1)) {
4172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4173 }
4174 arg1 = reinterpret_cast< wxPalette * >(argp1);
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
4181 resultobj = SWIG_From_int(static_cast< int >(result));
4182 return resultobj;
4183 fail:
4184 return NULL;
4185 }
4186
4187
4188 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4189 PyObject *resultobj = 0;
4190 wxPalette *arg1 = (wxPalette *) 0 ;
4191 bool result;
4192 void *argp1 = 0 ;
4193 int res1 = 0 ;
4194 PyObject *swig_obj[1] ;
4195
4196 if (!args) SWIG_fail;
4197 swig_obj[0] = args;
4198 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4199 if (!SWIG_IsOK(res1)) {
4200 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4201 }
4202 arg1 = reinterpret_cast< wxPalette * >(argp1);
4203 {
4204 PyThreadState* __tstate = wxPyBeginAllowThreads();
4205 result = (bool)(arg1)->Ok();
4206 wxPyEndAllowThreads(__tstate);
4207 if (PyErr_Occurred()) SWIG_fail;
4208 }
4209 {
4210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4211 }
4212 return resultobj;
4213 fail:
4214 return NULL;
4215 }
4216
4217
4218 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4219 PyObject *obj;
4220 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4221 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4222 return SWIG_Py_Void();
4223 }
4224
4225 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4226 return SWIG_Python_InitShadowInstance(args);
4227 }
4228
4229 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4230 PyObject *resultobj = 0;
4231 wxColour *arg1 = 0 ;
4232 int arg2 = (int) 1 ;
4233 int arg3 = (int) wxSOLID ;
4234 wxPen *result = 0 ;
4235 wxColour temp1 ;
4236 int val2 ;
4237 int ecode2 = 0 ;
4238 int val3 ;
4239 int ecode3 = 0 ;
4240 PyObject * obj0 = 0 ;
4241 PyObject * obj1 = 0 ;
4242 PyObject * obj2 = 0 ;
4243 char * kwnames[] = {
4244 (char *) "colour",(char *) "width",(char *) "style", NULL
4245 };
4246
4247 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4248 {
4249 arg1 = &temp1;
4250 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4251 }
4252 if (obj1) {
4253 ecode2 = SWIG_AsVal_int(obj1, &val2);
4254 if (!SWIG_IsOK(ecode2)) {
4255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4256 }
4257 arg2 = static_cast< int >(val2);
4258 }
4259 if (obj2) {
4260 ecode3 = SWIG_AsVal_int(obj2, &val3);
4261 if (!SWIG_IsOK(ecode3)) {
4262 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4263 }
4264 arg3 = static_cast< int >(val3);
4265 }
4266 {
4267 if (!wxPyCheckForApp()) SWIG_fail;
4268 PyThreadState* __tstate = wxPyBeginAllowThreads();
4269 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4281 PyObject *resultobj = 0;
4282 wxPen *arg1 = (wxPen *) 0 ;
4283 void *argp1 = 0 ;
4284 int res1 = 0 ;
4285 PyObject *swig_obj[1] ;
4286
4287 if (!args) SWIG_fail;
4288 swig_obj[0] = args;
4289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4290 if (!SWIG_IsOK(res1)) {
4291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4292 }
4293 arg1 = reinterpret_cast< wxPen * >(argp1);
4294 {
4295 PyThreadState* __tstate = wxPyBeginAllowThreads();
4296 delete arg1;
4297
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_Py_Void();
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxPen *arg1 = (wxPen *) 0 ;
4311 int result;
4312 void *argp1 = 0 ;
4313 int res1 = 0 ;
4314 PyObject *swig_obj[1] ;
4315
4316 if (!args) SWIG_fail;
4317 swig_obj[0] = args;
4318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4319 if (!SWIG_IsOK(res1)) {
4320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4321 }
4322 arg1 = reinterpret_cast< wxPen * >(argp1);
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (int)(arg1)->GetCap();
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 resultobj = SWIG_From_int(static_cast< int >(result));
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 PyObject *resultobj = 0;
4338 wxPen *arg1 = (wxPen *) 0 ;
4339 wxColour result;
4340 void *argp1 = 0 ;
4341 int res1 = 0 ;
4342 PyObject *swig_obj[1] ;
4343
4344 if (!args) SWIG_fail;
4345 swig_obj[0] = args;
4346 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4347 if (!SWIG_IsOK(res1)) {
4348 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4349 }
4350 arg1 = reinterpret_cast< wxPen * >(argp1);
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (arg1)->GetColour();
4354 wxPyEndAllowThreads(__tstate);
4355 if (PyErr_Occurred()) SWIG_fail;
4356 }
4357 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4358 return resultobj;
4359 fail:
4360 return NULL;
4361 }
4362
4363
4364 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4365 PyObject *resultobj = 0;
4366 wxPen *arg1 = (wxPen *) 0 ;
4367 int result;
4368 void *argp1 = 0 ;
4369 int res1 = 0 ;
4370 PyObject *swig_obj[1] ;
4371
4372 if (!args) SWIG_fail;
4373 swig_obj[0] = args;
4374 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4375 if (!SWIG_IsOK(res1)) {
4376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4377 }
4378 arg1 = reinterpret_cast< wxPen * >(argp1);
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (int)(arg1)->GetJoin();
4382 wxPyEndAllowThreads(__tstate);
4383 if (PyErr_Occurred()) SWIG_fail;
4384 }
4385 resultobj = SWIG_From_int(static_cast< int >(result));
4386 return resultobj;
4387 fail:
4388 return NULL;
4389 }
4390
4391
4392 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4393 PyObject *resultobj = 0;
4394 wxPen *arg1 = (wxPen *) 0 ;
4395 int result;
4396 void *argp1 = 0 ;
4397 int res1 = 0 ;
4398 PyObject *swig_obj[1] ;
4399
4400 if (!args) SWIG_fail;
4401 swig_obj[0] = args;
4402 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4403 if (!SWIG_IsOK(res1)) {
4404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4405 }
4406 arg1 = reinterpret_cast< wxPen * >(argp1);
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 result = (int)(arg1)->GetStyle();
4410 wxPyEndAllowThreads(__tstate);
4411 if (PyErr_Occurred()) SWIG_fail;
4412 }
4413 resultobj = SWIG_From_int(static_cast< int >(result));
4414 return resultobj;
4415 fail:
4416 return NULL;
4417 }
4418
4419
4420 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4421 PyObject *resultobj = 0;
4422 wxPen *arg1 = (wxPen *) 0 ;
4423 int result;
4424 void *argp1 = 0 ;
4425 int res1 = 0 ;
4426 PyObject *swig_obj[1] ;
4427
4428 if (!args) SWIG_fail;
4429 swig_obj[0] = args;
4430 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4431 if (!SWIG_IsOK(res1)) {
4432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4433 }
4434 arg1 = reinterpret_cast< wxPen * >(argp1);
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 result = (int)(arg1)->GetWidth();
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 resultobj = SWIG_From_int(static_cast< int >(result));
4442 return resultobj;
4443 fail:
4444 return NULL;
4445 }
4446
4447
4448 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4449 PyObject *resultobj = 0;
4450 wxPen *arg1 = (wxPen *) 0 ;
4451 bool result;
4452 void *argp1 = 0 ;
4453 int res1 = 0 ;
4454 PyObject *swig_obj[1] ;
4455
4456 if (!args) SWIG_fail;
4457 swig_obj[0] = args;
4458 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4459 if (!SWIG_IsOK(res1)) {
4460 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4461 }
4462 arg1 = reinterpret_cast< wxPen * >(argp1);
4463 {
4464 PyThreadState* __tstate = wxPyBeginAllowThreads();
4465 result = (bool)(arg1)->Ok();
4466 wxPyEndAllowThreads(__tstate);
4467 if (PyErr_Occurred()) SWIG_fail;
4468 }
4469 {
4470 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4471 }
4472 return resultobj;
4473 fail:
4474 return NULL;
4475 }
4476
4477
4478 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4479 PyObject *resultobj = 0;
4480 wxPen *arg1 = (wxPen *) 0 ;
4481 int arg2 ;
4482 void *argp1 = 0 ;
4483 int res1 = 0 ;
4484 int val2 ;
4485 int ecode2 = 0 ;
4486 PyObject * obj0 = 0 ;
4487 PyObject * obj1 = 0 ;
4488 char * kwnames[] = {
4489 (char *) "self",(char *) "cap_style", NULL
4490 };
4491
4492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4494 if (!SWIG_IsOK(res1)) {
4495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4496 }
4497 arg1 = reinterpret_cast< wxPen * >(argp1);
4498 ecode2 = SWIG_AsVal_int(obj1, &val2);
4499 if (!SWIG_IsOK(ecode2)) {
4500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4501 }
4502 arg2 = static_cast< int >(val2);
4503 {
4504 PyThreadState* __tstate = wxPyBeginAllowThreads();
4505 (arg1)->SetCap(arg2);
4506 wxPyEndAllowThreads(__tstate);
4507 if (PyErr_Occurred()) SWIG_fail;
4508 }
4509 resultobj = SWIG_Py_Void();
4510 return resultobj;
4511 fail:
4512 return NULL;
4513 }
4514
4515
4516 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4517 PyObject *resultobj = 0;
4518 wxPen *arg1 = (wxPen *) 0 ;
4519 wxColour *arg2 = 0 ;
4520 void *argp1 = 0 ;
4521 int res1 = 0 ;
4522 wxColour temp2 ;
4523 PyObject * obj0 = 0 ;
4524 PyObject * obj1 = 0 ;
4525 char * kwnames[] = {
4526 (char *) "self",(char *) "colour", NULL
4527 };
4528
4529 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4530 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4531 if (!SWIG_IsOK(res1)) {
4532 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4533 }
4534 arg1 = reinterpret_cast< wxPen * >(argp1);
4535 {
4536 arg2 = &temp2;
4537 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4538 }
4539 {
4540 PyThreadState* __tstate = wxPyBeginAllowThreads();
4541 (arg1)->SetColour(*arg2);
4542 wxPyEndAllowThreads(__tstate);
4543 if (PyErr_Occurred()) SWIG_fail;
4544 }
4545 resultobj = SWIG_Py_Void();
4546 return resultobj;
4547 fail:
4548 return NULL;
4549 }
4550
4551
4552 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4553 PyObject *resultobj = 0;
4554 wxPen *arg1 = (wxPen *) 0 ;
4555 int arg2 ;
4556 void *argp1 = 0 ;
4557 int res1 = 0 ;
4558 int val2 ;
4559 int ecode2 = 0 ;
4560 PyObject * obj0 = 0 ;
4561 PyObject * obj1 = 0 ;
4562 char * kwnames[] = {
4563 (char *) "self",(char *) "join_style", NULL
4564 };
4565
4566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4568 if (!SWIG_IsOK(res1)) {
4569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4570 }
4571 arg1 = reinterpret_cast< wxPen * >(argp1);
4572 ecode2 = SWIG_AsVal_int(obj1, &val2);
4573 if (!SWIG_IsOK(ecode2)) {
4574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4575 }
4576 arg2 = static_cast< int >(val2);
4577 {
4578 PyThreadState* __tstate = wxPyBeginAllowThreads();
4579 (arg1)->SetJoin(arg2);
4580 wxPyEndAllowThreads(__tstate);
4581 if (PyErr_Occurred()) SWIG_fail;
4582 }
4583 resultobj = SWIG_Py_Void();
4584 return resultobj;
4585 fail:
4586 return NULL;
4587 }
4588
4589
4590 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4591 PyObject *resultobj = 0;
4592 wxPen *arg1 = (wxPen *) 0 ;
4593 int arg2 ;
4594 void *argp1 = 0 ;
4595 int res1 = 0 ;
4596 int val2 ;
4597 int ecode2 = 0 ;
4598 PyObject * obj0 = 0 ;
4599 PyObject * obj1 = 0 ;
4600 char * kwnames[] = {
4601 (char *) "self",(char *) "style", NULL
4602 };
4603
4604 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4605 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4606 if (!SWIG_IsOK(res1)) {
4607 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4608 }
4609 arg1 = reinterpret_cast< wxPen * >(argp1);
4610 ecode2 = SWIG_AsVal_int(obj1, &val2);
4611 if (!SWIG_IsOK(ecode2)) {
4612 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4613 }
4614 arg2 = static_cast< int >(val2);
4615 {
4616 PyThreadState* __tstate = wxPyBeginAllowThreads();
4617 (arg1)->SetStyle(arg2);
4618 wxPyEndAllowThreads(__tstate);
4619 if (PyErr_Occurred()) SWIG_fail;
4620 }
4621 resultobj = SWIG_Py_Void();
4622 return resultobj;
4623 fail:
4624 return NULL;
4625 }
4626
4627
4628 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4629 PyObject *resultobj = 0;
4630 wxPen *arg1 = (wxPen *) 0 ;
4631 int arg2 ;
4632 void *argp1 = 0 ;
4633 int res1 = 0 ;
4634 int val2 ;
4635 int ecode2 = 0 ;
4636 PyObject * obj0 = 0 ;
4637 PyObject * obj1 = 0 ;
4638 char * kwnames[] = {
4639 (char *) "self",(char *) "width", NULL
4640 };
4641
4642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4644 if (!SWIG_IsOK(res1)) {
4645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4646 }
4647 arg1 = reinterpret_cast< wxPen * >(argp1);
4648 ecode2 = SWIG_AsVal_int(obj1, &val2);
4649 if (!SWIG_IsOK(ecode2)) {
4650 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4651 }
4652 arg2 = static_cast< int >(val2);
4653 {
4654 PyThreadState* __tstate = wxPyBeginAllowThreads();
4655 (arg1)->SetWidth(arg2);
4656 wxPyEndAllowThreads(__tstate);
4657 if (PyErr_Occurred()) SWIG_fail;
4658 }
4659 resultobj = SWIG_Py_Void();
4660 return resultobj;
4661 fail:
4662 return NULL;
4663 }
4664
4665
4666 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4667 PyObject *resultobj = 0;
4668 wxPen *arg1 = (wxPen *) 0 ;
4669 int arg2 ;
4670 wxDash *arg3 = (wxDash *) 0 ;
4671 void *argp1 = 0 ;
4672 int res1 = 0 ;
4673 PyObject * obj0 = 0 ;
4674 PyObject * obj1 = 0 ;
4675 char * kwnames[] = {
4676 (char *) "self",(char *) "dashes", NULL
4677 };
4678
4679 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4680 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4681 if (!SWIG_IsOK(res1)) {
4682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4683 }
4684 arg1 = reinterpret_cast< wxPen * >(argp1);
4685 {
4686 arg2 = PyList_Size(obj1);
4687 arg3 = (wxDash*)byte_LIST_helper(obj1);
4688 if (arg3 == NULL) SWIG_fail;
4689 }
4690 {
4691 PyThreadState* __tstate = wxPyBeginAllowThreads();
4692 (arg1)->SetDashes(arg2,arg3);
4693 wxPyEndAllowThreads(__tstate);
4694 if (PyErr_Occurred()) SWIG_fail;
4695 }
4696 resultobj = SWIG_Py_Void();
4697 {
4698 if (arg3) delete [] arg3;
4699 }
4700 return resultobj;
4701 fail:
4702 {
4703 if (arg3) delete [] arg3;
4704 }
4705 return NULL;
4706 }
4707
4708
4709 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4710 PyObject *resultobj = 0;
4711 wxPen *arg1 = (wxPen *) 0 ;
4712 PyObject *result = 0 ;
4713 void *argp1 = 0 ;
4714 int res1 = 0 ;
4715 PyObject *swig_obj[1] ;
4716
4717 if (!args) SWIG_fail;
4718 swig_obj[0] = args;
4719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4720 if (!SWIG_IsOK(res1)) {
4721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4722 }
4723 arg1 = reinterpret_cast< wxPen * >(argp1);
4724 {
4725 PyThreadState* __tstate = wxPyBeginAllowThreads();
4726 result = (PyObject *)wxPen_GetDashes(arg1);
4727 wxPyEndAllowThreads(__tstate);
4728 if (PyErr_Occurred()) SWIG_fail;
4729 }
4730 resultobj = result;
4731 return resultobj;
4732 fail:
4733 return NULL;
4734 }
4735
4736
4737 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4738 PyObject *resultobj = 0;
4739 wxPen *arg1 = (wxPen *) 0 ;
4740 PyObject *arg2 = (PyObject *) 0 ;
4741 PyObject *arg3 = (PyObject *) 0 ;
4742 void *argp1 = 0 ;
4743 int res1 = 0 ;
4744 PyObject * obj0 = 0 ;
4745 PyObject * obj1 = 0 ;
4746 PyObject * obj2 = 0 ;
4747 char * kwnames[] = {
4748 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4749 };
4750
4751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4753 if (!SWIG_IsOK(res1)) {
4754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4755 }
4756 arg1 = reinterpret_cast< wxPen * >(argp1);
4757 arg2 = obj1;
4758 arg3 = obj2;
4759 {
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 wxPen__SetDashes(arg1,arg2,arg3);
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 resultobj = SWIG_Py_Void();
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4773 PyObject *resultobj = 0;
4774 wxPen *arg1 = (wxPen *) 0 ;
4775 int result;
4776 void *argp1 = 0 ;
4777 int res1 = 0 ;
4778 PyObject *swig_obj[1] ;
4779
4780 if (!args) SWIG_fail;
4781 swig_obj[0] = args;
4782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4783 if (!SWIG_IsOK(res1)) {
4784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4785 }
4786 arg1 = reinterpret_cast< wxPen * >(argp1);
4787 {
4788 PyThreadState* __tstate = wxPyBeginAllowThreads();
4789 result = (int)((wxPen const *)arg1)->GetDashCount();
4790 wxPyEndAllowThreads(__tstate);
4791 if (PyErr_Occurred()) SWIG_fail;
4792 }
4793 resultobj = SWIG_From_int(static_cast< int >(result));
4794 return resultobj;
4795 fail:
4796 return NULL;
4797 }
4798
4799
4800 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4801 PyObject *resultobj = 0;
4802 wxPen *arg1 = (wxPen *) 0 ;
4803 wxBitmap *result = 0 ;
4804 void *argp1 = 0 ;
4805 int res1 = 0 ;
4806 PyObject *swig_obj[1] ;
4807
4808 if (!args) SWIG_fail;
4809 swig_obj[0] = args;
4810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4811 if (!SWIG_IsOK(res1)) {
4812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4813 }
4814 arg1 = reinterpret_cast< wxPen * >(argp1);
4815 {
4816 PyThreadState* __tstate = wxPyBeginAllowThreads();
4817 result = (wxBitmap *)(arg1)->GetStipple();
4818 wxPyEndAllowThreads(__tstate);
4819 if (PyErr_Occurred()) SWIG_fail;
4820 }
4821 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4822 return resultobj;
4823 fail:
4824 return NULL;
4825 }
4826
4827
4828 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4829 PyObject *resultobj = 0;
4830 wxPen *arg1 = (wxPen *) 0 ;
4831 wxBitmap *arg2 = 0 ;
4832 void *argp1 = 0 ;
4833 int res1 = 0 ;
4834 void *argp2 = 0 ;
4835 int res2 = 0 ;
4836 PyObject * obj0 = 0 ;
4837 PyObject * obj1 = 0 ;
4838 char * kwnames[] = {
4839 (char *) "self",(char *) "stipple", NULL
4840 };
4841
4842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4844 if (!SWIG_IsOK(res1)) {
4845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4846 }
4847 arg1 = reinterpret_cast< wxPen * >(argp1);
4848 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4849 if (!SWIG_IsOK(res2)) {
4850 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4851 }
4852 if (!argp2) {
4853 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4854 }
4855 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4856 {
4857 PyThreadState* __tstate = wxPyBeginAllowThreads();
4858 (arg1)->SetStipple(*arg2);
4859 wxPyEndAllowThreads(__tstate);
4860 if (PyErr_Occurred()) SWIG_fail;
4861 }
4862 resultobj = SWIG_Py_Void();
4863 return resultobj;
4864 fail:
4865 return NULL;
4866 }
4867
4868
4869 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4870 PyObject *resultobj = 0;
4871 wxPen *arg1 = (wxPen *) 0 ;
4872 wxPen *arg2 = (wxPen *) 0 ;
4873 bool result;
4874 void *argp1 = 0 ;
4875 int res1 = 0 ;
4876 void *argp2 = 0 ;
4877 int res2 = 0 ;
4878 PyObject * obj0 = 0 ;
4879 PyObject * obj1 = 0 ;
4880 char * kwnames[] = {
4881 (char *) "self",(char *) "other", NULL
4882 };
4883
4884 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4885 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4886 if (!SWIG_IsOK(res1)) {
4887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4888 }
4889 arg1 = reinterpret_cast< wxPen * >(argp1);
4890 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4891 if (!SWIG_IsOK(res2)) {
4892 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4893 }
4894 arg2 = reinterpret_cast< wxPen * >(argp2);
4895 {
4896 PyThreadState* __tstate = wxPyBeginAllowThreads();
4897 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4898 wxPyEndAllowThreads(__tstate);
4899 if (PyErr_Occurred()) SWIG_fail;
4900 }
4901 {
4902 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4903 }
4904 return resultobj;
4905 fail:
4906 return NULL;
4907 }
4908
4909
4910 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4911 PyObject *resultobj = 0;
4912 wxPen *arg1 = (wxPen *) 0 ;
4913 wxPen *arg2 = (wxPen *) 0 ;
4914 bool result;
4915 void *argp1 = 0 ;
4916 int res1 = 0 ;
4917 void *argp2 = 0 ;
4918 int res2 = 0 ;
4919 PyObject * obj0 = 0 ;
4920 PyObject * obj1 = 0 ;
4921 char * kwnames[] = {
4922 (char *) "self",(char *) "other", NULL
4923 };
4924
4925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4927 if (!SWIG_IsOK(res1)) {
4928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4929 }
4930 arg1 = reinterpret_cast< wxPen * >(argp1);
4931 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4932 if (!SWIG_IsOK(res2)) {
4933 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4934 }
4935 arg2 = reinterpret_cast< wxPen * >(argp2);
4936 {
4937 PyThreadState* __tstate = wxPyBeginAllowThreads();
4938 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4939 wxPyEndAllowThreads(__tstate);
4940 if (PyErr_Occurred()) SWIG_fail;
4941 }
4942 {
4943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4944 }
4945 return resultobj;
4946 fail:
4947 return NULL;
4948 }
4949
4950
4951 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4952 PyObject *obj;
4953 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4954 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4955 return SWIG_Py_Void();
4956 }
4957
4958 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4959 return SWIG_Python_InitShadowInstance(args);
4960 }
4961
4962 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4963 PyObject *resultobj = 0;
4964 wxColour *arg1 = 0 ;
4965 int arg2 = (int) wxSOLID ;
4966 wxBrush *result = 0 ;
4967 wxColour temp1 ;
4968 int val2 ;
4969 int ecode2 = 0 ;
4970 PyObject * obj0 = 0 ;
4971 PyObject * obj1 = 0 ;
4972 char * kwnames[] = {
4973 (char *) "colour",(char *) "style", NULL
4974 };
4975
4976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4977 {
4978 arg1 = &temp1;
4979 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4980 }
4981 if (obj1) {
4982 ecode2 = SWIG_AsVal_int(obj1, &val2);
4983 if (!SWIG_IsOK(ecode2)) {
4984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4985 }
4986 arg2 = static_cast< int >(val2);
4987 }
4988 {
4989 if (!wxPyCheckForApp()) SWIG_fail;
4990 PyThreadState* __tstate = wxPyBeginAllowThreads();
4991 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4992 wxPyEndAllowThreads(__tstate);
4993 if (PyErr_Occurred()) SWIG_fail;
4994 }
4995 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4996 return resultobj;
4997 fail:
4998 return NULL;
4999 }
5000
5001
5002 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5003 PyObject *resultobj = 0;
5004 wxBitmap *arg1 = 0 ;
5005 wxBrush *result = 0 ;
5006 void *argp1 = 0 ;
5007 int res1 = 0 ;
5008 PyObject * obj0 = 0 ;
5009 char * kwnames[] = {
5010 (char *) "stippleBitmap", NULL
5011 };
5012
5013 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5014 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5015 if (!SWIG_IsOK(res1)) {
5016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5017 }
5018 if (!argp1) {
5019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5020 }
5021 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5022 {
5023 if (!wxPyCheckForApp()) SWIG_fail;
5024 PyThreadState* __tstate = wxPyBeginAllowThreads();
5025 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5026 wxPyEndAllowThreads(__tstate);
5027 if (PyErr_Occurred()) SWIG_fail;
5028 }
5029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5030 return resultobj;
5031 fail:
5032 return NULL;
5033 }
5034
5035
5036 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5037 PyObject *resultobj = 0;
5038 wxBrush *arg1 = (wxBrush *) 0 ;
5039 void *argp1 = 0 ;
5040 int res1 = 0 ;
5041 PyObject *swig_obj[1] ;
5042
5043 if (!args) SWIG_fail;
5044 swig_obj[0] = args;
5045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5046 if (!SWIG_IsOK(res1)) {
5047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5048 }
5049 arg1 = reinterpret_cast< wxBrush * >(argp1);
5050 {
5051 PyThreadState* __tstate = wxPyBeginAllowThreads();
5052 delete arg1;
5053
5054 wxPyEndAllowThreads(__tstate);
5055 if (PyErr_Occurred()) SWIG_fail;
5056 }
5057 resultobj = SWIG_Py_Void();
5058 return resultobj;
5059 fail:
5060 return NULL;
5061 }
5062
5063
5064 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5065 PyObject *resultobj = 0;
5066 wxBrush *arg1 = (wxBrush *) 0 ;
5067 wxColour *arg2 = 0 ;
5068 void *argp1 = 0 ;
5069 int res1 = 0 ;
5070 wxColour temp2 ;
5071 PyObject * obj0 = 0 ;
5072 PyObject * obj1 = 0 ;
5073 char * kwnames[] = {
5074 (char *) "self",(char *) "col", NULL
5075 };
5076
5077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5078 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5079 if (!SWIG_IsOK(res1)) {
5080 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5081 }
5082 arg1 = reinterpret_cast< wxBrush * >(argp1);
5083 {
5084 arg2 = &temp2;
5085 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5086 }
5087 {
5088 PyThreadState* __tstate = wxPyBeginAllowThreads();
5089 (arg1)->SetColour((wxColour const &)*arg2);
5090 wxPyEndAllowThreads(__tstate);
5091 if (PyErr_Occurred()) SWIG_fail;
5092 }
5093 resultobj = SWIG_Py_Void();
5094 return resultobj;
5095 fail:
5096 return NULL;
5097 }
5098
5099
5100 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5101 PyObject *resultobj = 0;
5102 wxBrush *arg1 = (wxBrush *) 0 ;
5103 int arg2 ;
5104 void *argp1 = 0 ;
5105 int res1 = 0 ;
5106 int val2 ;
5107 int ecode2 = 0 ;
5108 PyObject * obj0 = 0 ;
5109 PyObject * obj1 = 0 ;
5110 char * kwnames[] = {
5111 (char *) "self",(char *) "style", NULL
5112 };
5113
5114 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5115 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5116 if (!SWIG_IsOK(res1)) {
5117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5118 }
5119 arg1 = reinterpret_cast< wxBrush * >(argp1);
5120 ecode2 = SWIG_AsVal_int(obj1, &val2);
5121 if (!SWIG_IsOK(ecode2)) {
5122 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5123 }
5124 arg2 = static_cast< int >(val2);
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 (arg1)->SetStyle(arg2);
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_Py_Void();
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5139 PyObject *resultobj = 0;
5140 wxBrush *arg1 = (wxBrush *) 0 ;
5141 wxBitmap *arg2 = 0 ;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 void *argp2 = 0 ;
5145 int res2 = 0 ;
5146 PyObject * obj0 = 0 ;
5147 PyObject * obj1 = 0 ;
5148 char * kwnames[] = {
5149 (char *) "self",(char *) "stipple", NULL
5150 };
5151
5152 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5153 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5154 if (!SWIG_IsOK(res1)) {
5155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5156 }
5157 arg1 = reinterpret_cast< wxBrush * >(argp1);
5158 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5159 if (!SWIG_IsOK(res2)) {
5160 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5161 }
5162 if (!argp2) {
5163 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5164 }
5165 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5166 {
5167 PyThreadState* __tstate = wxPyBeginAllowThreads();
5168 (arg1)->SetStipple((wxBitmap const &)*arg2);
5169 wxPyEndAllowThreads(__tstate);
5170 if (PyErr_Occurred()) SWIG_fail;
5171 }
5172 resultobj = SWIG_Py_Void();
5173 return resultobj;
5174 fail:
5175 return NULL;
5176 }
5177
5178
5179 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5180 PyObject *resultobj = 0;
5181 wxBrush *arg1 = (wxBrush *) 0 ;
5182 wxColour result;
5183 void *argp1 = 0 ;
5184 int res1 = 0 ;
5185 PyObject *swig_obj[1] ;
5186
5187 if (!args) SWIG_fail;
5188 swig_obj[0] = args;
5189 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5190 if (!SWIG_IsOK(res1)) {
5191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5192 }
5193 arg1 = reinterpret_cast< wxBrush * >(argp1);
5194 {
5195 PyThreadState* __tstate = wxPyBeginAllowThreads();
5196 result = ((wxBrush const *)arg1)->GetColour();
5197 wxPyEndAllowThreads(__tstate);
5198 if (PyErr_Occurred()) SWIG_fail;
5199 }
5200 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5201 return resultobj;
5202 fail:
5203 return NULL;
5204 }
5205
5206
5207 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5208 PyObject *resultobj = 0;
5209 wxBrush *arg1 = (wxBrush *) 0 ;
5210 int result;
5211 void *argp1 = 0 ;
5212 int res1 = 0 ;
5213 PyObject *swig_obj[1] ;
5214
5215 if (!args) SWIG_fail;
5216 swig_obj[0] = args;
5217 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5218 if (!SWIG_IsOK(res1)) {
5219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5220 }
5221 arg1 = reinterpret_cast< wxBrush * >(argp1);
5222 {
5223 PyThreadState* __tstate = wxPyBeginAllowThreads();
5224 result = (int)((wxBrush const *)arg1)->GetStyle();
5225 wxPyEndAllowThreads(__tstate);
5226 if (PyErr_Occurred()) SWIG_fail;
5227 }
5228 resultobj = SWIG_From_int(static_cast< int >(result));
5229 return resultobj;
5230 fail:
5231 return NULL;
5232 }
5233
5234
5235 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5236 PyObject *resultobj = 0;
5237 wxBrush *arg1 = (wxBrush *) 0 ;
5238 wxBitmap *result = 0 ;
5239 void *argp1 = 0 ;
5240 int res1 = 0 ;
5241 PyObject *swig_obj[1] ;
5242
5243 if (!args) SWIG_fail;
5244 swig_obj[0] = args;
5245 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5246 if (!SWIG_IsOK(res1)) {
5247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5248 }
5249 arg1 = reinterpret_cast< wxBrush * >(argp1);
5250 {
5251 PyThreadState* __tstate = wxPyBeginAllowThreads();
5252 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5253 wxPyEndAllowThreads(__tstate);
5254 if (PyErr_Occurred()) SWIG_fail;
5255 }
5256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5257 return resultobj;
5258 fail:
5259 return NULL;
5260 }
5261
5262
5263 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5264 PyObject *resultobj = 0;
5265 wxBrush *arg1 = (wxBrush *) 0 ;
5266 bool result;
5267 void *argp1 = 0 ;
5268 int res1 = 0 ;
5269 PyObject *swig_obj[1] ;
5270
5271 if (!args) SWIG_fail;
5272 swig_obj[0] = args;
5273 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5274 if (!SWIG_IsOK(res1)) {
5275 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5276 }
5277 arg1 = reinterpret_cast< wxBrush * >(argp1);
5278 {
5279 PyThreadState* __tstate = wxPyBeginAllowThreads();
5280 result = (bool)((wxBrush const *)arg1)->IsHatch();
5281 wxPyEndAllowThreads(__tstate);
5282 if (PyErr_Occurred()) SWIG_fail;
5283 }
5284 {
5285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5286 }
5287 return resultobj;
5288 fail:
5289 return NULL;
5290 }
5291
5292
5293 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5294 PyObject *resultobj = 0;
5295 wxBrush *arg1 = (wxBrush *) 0 ;
5296 bool result;
5297 void *argp1 = 0 ;
5298 int res1 = 0 ;
5299 PyObject *swig_obj[1] ;
5300
5301 if (!args) SWIG_fail;
5302 swig_obj[0] = args;
5303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5304 if (!SWIG_IsOK(res1)) {
5305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5306 }
5307 arg1 = reinterpret_cast< wxBrush * >(argp1);
5308 {
5309 PyThreadState* __tstate = wxPyBeginAllowThreads();
5310 result = (bool)(arg1)->Ok();
5311 wxPyEndAllowThreads(__tstate);
5312 if (PyErr_Occurred()) SWIG_fail;
5313 }
5314 {
5315 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5316 }
5317 return resultobj;
5318 fail:
5319 return NULL;
5320 }
5321
5322
5323 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5324 PyObject *obj;
5325 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5326 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5327 return SWIG_Py_Void();
5328 }
5329
5330 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5331 return SWIG_Python_InitShadowInstance(args);
5332 }
5333
5334 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5335 PyObject *resultobj = 0;
5336 wxString *arg1 = 0 ;
5337 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5338 wxBitmap *result = 0 ;
5339 bool temp1 = false ;
5340 int val2 ;
5341 int ecode2 = 0 ;
5342 PyObject * obj0 = 0 ;
5343 PyObject * obj1 = 0 ;
5344 char * kwnames[] = {
5345 (char *) "name",(char *) "type", NULL
5346 };
5347
5348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5349 {
5350 arg1 = wxString_in_helper(obj0);
5351 if (arg1 == NULL) SWIG_fail;
5352 temp1 = true;
5353 }
5354 if (obj1) {
5355 ecode2 = SWIG_AsVal_int(obj1, &val2);
5356 if (!SWIG_IsOK(ecode2)) {
5357 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5358 }
5359 arg2 = static_cast< wxBitmapType >(val2);
5360 }
5361 {
5362 if (!wxPyCheckForApp()) SWIG_fail;
5363 PyThreadState* __tstate = wxPyBeginAllowThreads();
5364 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5365 wxPyEndAllowThreads(__tstate);
5366 if (PyErr_Occurred()) SWIG_fail;
5367 }
5368 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5369 {
5370 if (temp1)
5371 delete arg1;
5372 }
5373 return resultobj;
5374 fail:
5375 {
5376 if (temp1)
5377 delete arg1;
5378 }
5379 return NULL;
5380 }
5381
5382
5383 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5384 PyObject *resultobj = 0;
5385 wxBitmap *arg1 = (wxBitmap *) 0 ;
5386 void *argp1 = 0 ;
5387 int res1 = 0 ;
5388 PyObject *swig_obj[1] ;
5389
5390 if (!args) SWIG_fail;
5391 swig_obj[0] = args;
5392 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5393 if (!SWIG_IsOK(res1)) {
5394 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5395 }
5396 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5397 {
5398 PyThreadState* __tstate = wxPyBeginAllowThreads();
5399 delete arg1;
5400
5401 wxPyEndAllowThreads(__tstate);
5402 if (PyErr_Occurred()) SWIG_fail;
5403 }
5404 resultobj = SWIG_Py_Void();
5405 return resultobj;
5406 fail:
5407 return NULL;
5408 }
5409
5410
5411 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5412 PyObject *resultobj = 0;
5413 int arg1 ;
5414 int arg2 ;
5415 int arg3 = (int) -1 ;
5416 wxBitmap *result = 0 ;
5417 int val1 ;
5418 int ecode1 = 0 ;
5419 int val2 ;
5420 int ecode2 = 0 ;
5421 int val3 ;
5422 int ecode3 = 0 ;
5423 PyObject * obj0 = 0 ;
5424 PyObject * obj1 = 0 ;
5425 PyObject * obj2 = 0 ;
5426 char * kwnames[] = {
5427 (char *) "width",(char *) "height",(char *) "depth", NULL
5428 };
5429
5430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5431 ecode1 = SWIG_AsVal_int(obj0, &val1);
5432 if (!SWIG_IsOK(ecode1)) {
5433 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5434 }
5435 arg1 = static_cast< int >(val1);
5436 ecode2 = SWIG_AsVal_int(obj1, &val2);
5437 if (!SWIG_IsOK(ecode2)) {
5438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5439 }
5440 arg2 = static_cast< int >(val2);
5441 if (obj2) {
5442 ecode3 = SWIG_AsVal_int(obj2, &val3);
5443 if (!SWIG_IsOK(ecode3)) {
5444 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5445 }
5446 arg3 = static_cast< int >(val3);
5447 }
5448 {
5449 if (!wxPyCheckForApp()) SWIG_fail;
5450 PyThreadState* __tstate = wxPyBeginAllowThreads();
5451 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5452 wxPyEndAllowThreads(__tstate);
5453 if (PyErr_Occurred()) SWIG_fail;
5454 }
5455 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5456 return resultobj;
5457 fail:
5458 return NULL;
5459 }
5460
5461
5462 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5463 PyObject *resultobj = 0;
5464 wxIcon *arg1 = 0 ;
5465 wxBitmap *result = 0 ;
5466 void *argp1 = 0 ;
5467 int res1 = 0 ;
5468 PyObject * obj0 = 0 ;
5469 char * kwnames[] = {
5470 (char *) "icon", NULL
5471 };
5472
5473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5474 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5475 if (!SWIG_IsOK(res1)) {
5476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5477 }
5478 if (!argp1) {
5479 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5480 }
5481 arg1 = reinterpret_cast< wxIcon * >(argp1);
5482 {
5483 if (!wxPyCheckForApp()) SWIG_fail;
5484 PyThreadState* __tstate = wxPyBeginAllowThreads();
5485 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5486 wxPyEndAllowThreads(__tstate);
5487 if (PyErr_Occurred()) SWIG_fail;
5488 }
5489 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5490 return resultobj;
5491 fail:
5492 return NULL;
5493 }
5494
5495
5496 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5497 PyObject *resultobj = 0;
5498 wxImage *arg1 = 0 ;
5499 int arg2 = (int) -1 ;
5500 wxBitmap *result = 0 ;
5501 void *argp1 = 0 ;
5502 int res1 = 0 ;
5503 int val2 ;
5504 int ecode2 = 0 ;
5505 PyObject * obj0 = 0 ;
5506 PyObject * obj1 = 0 ;
5507 char * kwnames[] = {
5508 (char *) "image",(char *) "depth", NULL
5509 };
5510
5511 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5512 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5513 if (!SWIG_IsOK(res1)) {
5514 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5515 }
5516 if (!argp1) {
5517 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5518 }
5519 arg1 = reinterpret_cast< wxImage * >(argp1);
5520 if (obj1) {
5521 ecode2 = SWIG_AsVal_int(obj1, &val2);
5522 if (!SWIG_IsOK(ecode2)) {
5523 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5524 }
5525 arg2 = static_cast< int >(val2);
5526 }
5527 {
5528 if (!wxPyCheckForApp()) SWIG_fail;
5529 PyThreadState* __tstate = wxPyBeginAllowThreads();
5530 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5531 wxPyEndAllowThreads(__tstate);
5532 if (PyErr_Occurred()) SWIG_fail;
5533 }
5534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5535 return resultobj;
5536 fail:
5537 return NULL;
5538 }
5539
5540
5541 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5542 PyObject *resultobj = 0;
5543 PyObject *arg1 = (PyObject *) 0 ;
5544 wxBitmap *result = 0 ;
5545 PyObject * obj0 = 0 ;
5546 char * kwnames[] = {
5547 (char *) "listOfStrings", NULL
5548 };
5549
5550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5551 arg1 = obj0;
5552 {
5553 if (!wxPyCheckForApp()) SWIG_fail;
5554 PyThreadState* __tstate = wxPyBeginAllowThreads();
5555 result = (wxBitmap *)new_wxBitmap(arg1);
5556 wxPyEndAllowThreads(__tstate);
5557 if (PyErr_Occurred()) SWIG_fail;
5558 }
5559 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5560 return resultobj;
5561 fail:
5562 return NULL;
5563 }
5564
5565
5566 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5567 PyObject *resultobj = 0;
5568 PyObject *arg1 = (PyObject *) 0 ;
5569 int arg2 ;
5570 int arg3 ;
5571 int arg4 = (int) 1 ;
5572 wxBitmap *result = 0 ;
5573 int val2 ;
5574 int ecode2 = 0 ;
5575 int val3 ;
5576 int ecode3 = 0 ;
5577 int val4 ;
5578 int ecode4 = 0 ;
5579 PyObject * obj0 = 0 ;
5580 PyObject * obj1 = 0 ;
5581 PyObject * obj2 = 0 ;
5582 PyObject * obj3 = 0 ;
5583 char * kwnames[] = {
5584 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5585 };
5586
5587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5588 arg1 = obj0;
5589 ecode2 = SWIG_AsVal_int(obj1, &val2);
5590 if (!SWIG_IsOK(ecode2)) {
5591 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5592 }
5593 arg2 = static_cast< int >(val2);
5594 ecode3 = SWIG_AsVal_int(obj2, &val3);
5595 if (!SWIG_IsOK(ecode3)) {
5596 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5597 }
5598 arg3 = static_cast< int >(val3);
5599 if (obj3) {
5600 ecode4 = SWIG_AsVal_int(obj3, &val4);
5601 if (!SWIG_IsOK(ecode4)) {
5602 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5603 }
5604 arg4 = static_cast< int >(val4);
5605 }
5606 {
5607 if (!wxPyCheckForApp()) SWIG_fail;
5608 PyThreadState* __tstate = wxPyBeginAllowThreads();
5609 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5610 wxPyEndAllowThreads(__tstate);
5611 if (PyErr_Occurred()) SWIG_fail;
5612 }
5613 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5614 return resultobj;
5615 fail:
5616 return NULL;
5617 }
5618
5619
5620 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5621 PyObject *resultobj = 0;
5622 wxBitmap *arg1 = (wxBitmap *) 0 ;
5623 long result;
5624 void *argp1 = 0 ;
5625 int res1 = 0 ;
5626 PyObject *swig_obj[1] ;
5627
5628 if (!args) SWIG_fail;
5629 swig_obj[0] = args;
5630 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5631 if (!SWIG_IsOK(res1)) {
5632 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5633 }
5634 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5635 {
5636 PyThreadState* __tstate = wxPyBeginAllowThreads();
5637 result = (long)(arg1)->GetHandle();
5638 wxPyEndAllowThreads(__tstate);
5639 if (PyErr_Occurred()) SWIG_fail;
5640 }
5641 resultobj = SWIG_From_long(static_cast< long >(result));
5642 return resultobj;
5643 fail:
5644 return NULL;
5645 }
5646
5647
5648 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5649 PyObject *resultobj = 0;
5650 wxBitmap *arg1 = (wxBitmap *) 0 ;
5651 long arg2 ;
5652 void *argp1 = 0 ;
5653 int res1 = 0 ;
5654 long val2 ;
5655 int ecode2 = 0 ;
5656 PyObject * obj0 = 0 ;
5657 PyObject * obj1 = 0 ;
5658 char * kwnames[] = {
5659 (char *) "self",(char *) "handle", NULL
5660 };
5661
5662 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5663 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5664 if (!SWIG_IsOK(res1)) {
5665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5666 }
5667 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5668 ecode2 = SWIG_AsVal_long(obj1, &val2);
5669 if (!SWIG_IsOK(ecode2)) {
5670 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5671 }
5672 arg2 = static_cast< long >(val2);
5673 {
5674 PyThreadState* __tstate = wxPyBeginAllowThreads();
5675 wxBitmap_SetHandle(arg1,arg2);
5676 wxPyEndAllowThreads(__tstate);
5677 if (PyErr_Occurred()) SWIG_fail;
5678 }
5679 resultobj = SWIG_Py_Void();
5680 return resultobj;
5681 fail:
5682 return NULL;
5683 }
5684
5685
5686 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5687 PyObject *resultobj = 0;
5688 wxBitmap *arg1 = (wxBitmap *) 0 ;
5689 bool result;
5690 void *argp1 = 0 ;
5691 int res1 = 0 ;
5692 PyObject *swig_obj[1] ;
5693
5694 if (!args) SWIG_fail;
5695 swig_obj[0] = args;
5696 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5697 if (!SWIG_IsOK(res1)) {
5698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5699 }
5700 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5701 {
5702 PyThreadState* __tstate = wxPyBeginAllowThreads();
5703 result = (bool)(arg1)->Ok();
5704 wxPyEndAllowThreads(__tstate);
5705 if (PyErr_Occurred()) SWIG_fail;
5706 }
5707 {
5708 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5709 }
5710 return resultobj;
5711 fail:
5712 return NULL;
5713 }
5714
5715
5716 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5717 PyObject *resultobj = 0;
5718 wxBitmap *arg1 = (wxBitmap *) 0 ;
5719 int result;
5720 void *argp1 = 0 ;
5721 int res1 = 0 ;
5722 PyObject *swig_obj[1] ;
5723
5724 if (!args) SWIG_fail;
5725 swig_obj[0] = args;
5726 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5727 if (!SWIG_IsOK(res1)) {
5728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5729 }
5730 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5731 {
5732 PyThreadState* __tstate = wxPyBeginAllowThreads();
5733 result = (int)(arg1)->GetWidth();
5734 wxPyEndAllowThreads(__tstate);
5735 if (PyErr_Occurred()) SWIG_fail;
5736 }
5737 resultobj = SWIG_From_int(static_cast< int >(result));
5738 return resultobj;
5739 fail:
5740 return NULL;
5741 }
5742
5743
5744 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5745 PyObject *resultobj = 0;
5746 wxBitmap *arg1 = (wxBitmap *) 0 ;
5747 int result;
5748 void *argp1 = 0 ;
5749 int res1 = 0 ;
5750 PyObject *swig_obj[1] ;
5751
5752 if (!args) SWIG_fail;
5753 swig_obj[0] = args;
5754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5755 if (!SWIG_IsOK(res1)) {
5756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5757 }
5758 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5759 {
5760 PyThreadState* __tstate = wxPyBeginAllowThreads();
5761 result = (int)(arg1)->GetHeight();
5762 wxPyEndAllowThreads(__tstate);
5763 if (PyErr_Occurred()) SWIG_fail;
5764 }
5765 resultobj = SWIG_From_int(static_cast< int >(result));
5766 return resultobj;
5767 fail:
5768 return NULL;
5769 }
5770
5771
5772 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5773 PyObject *resultobj = 0;
5774 wxBitmap *arg1 = (wxBitmap *) 0 ;
5775 int result;
5776 void *argp1 = 0 ;
5777 int res1 = 0 ;
5778 PyObject *swig_obj[1] ;
5779
5780 if (!args) SWIG_fail;
5781 swig_obj[0] = args;
5782 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5783 if (!SWIG_IsOK(res1)) {
5784 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5785 }
5786 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5787 {
5788 PyThreadState* __tstate = wxPyBeginAllowThreads();
5789 result = (int)(arg1)->GetDepth();
5790 wxPyEndAllowThreads(__tstate);
5791 if (PyErr_Occurred()) SWIG_fail;
5792 }
5793 resultobj = SWIG_From_int(static_cast< int >(result));
5794 return resultobj;
5795 fail:
5796 return NULL;
5797 }
5798
5799
5800 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5801 PyObject *resultobj = 0;
5802 wxBitmap *arg1 = (wxBitmap *) 0 ;
5803 wxSize result;
5804 void *argp1 = 0 ;
5805 int res1 = 0 ;
5806 PyObject *swig_obj[1] ;
5807
5808 if (!args) SWIG_fail;
5809 swig_obj[0] = args;
5810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5811 if (!SWIG_IsOK(res1)) {
5812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5813 }
5814 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5815 {
5816 PyThreadState* __tstate = wxPyBeginAllowThreads();
5817 result = wxBitmap_GetSize(arg1);
5818 wxPyEndAllowThreads(__tstate);
5819 if (PyErr_Occurred()) SWIG_fail;
5820 }
5821 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5822 return resultobj;
5823 fail:
5824 return NULL;
5825 }
5826
5827
5828 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5829 PyObject *resultobj = 0;
5830 wxBitmap *arg1 = (wxBitmap *) 0 ;
5831 SwigValueWrapper<wxImage > result;
5832 void *argp1 = 0 ;
5833 int res1 = 0 ;
5834 PyObject *swig_obj[1] ;
5835
5836 if (!args) SWIG_fail;
5837 swig_obj[0] = args;
5838 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5839 if (!SWIG_IsOK(res1)) {
5840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5841 }
5842 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5843 {
5844 PyThreadState* __tstate = wxPyBeginAllowThreads();
5845 result = ((wxBitmap const *)arg1)->ConvertToImage();
5846 wxPyEndAllowThreads(__tstate);
5847 if (PyErr_Occurred()) SWIG_fail;
5848 }
5849 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5850 return resultobj;
5851 fail:
5852 return NULL;
5853 }
5854
5855
5856 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5857 PyObject *resultobj = 0;
5858 wxBitmap *arg1 = (wxBitmap *) 0 ;
5859 wxMask *result = 0 ;
5860 void *argp1 = 0 ;
5861 int res1 = 0 ;
5862 PyObject *swig_obj[1] ;
5863
5864 if (!args) SWIG_fail;
5865 swig_obj[0] = args;
5866 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5867 if (!SWIG_IsOK(res1)) {
5868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5869 }
5870 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5871 {
5872 PyThreadState* __tstate = wxPyBeginAllowThreads();
5873 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5874 wxPyEndAllowThreads(__tstate);
5875 if (PyErr_Occurred()) SWIG_fail;
5876 }
5877 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5878 return resultobj;
5879 fail:
5880 return NULL;
5881 }
5882
5883
5884 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5885 PyObject *resultobj = 0;
5886 wxBitmap *arg1 = (wxBitmap *) 0 ;
5887 wxMask *arg2 = (wxMask *) 0 ;
5888 void *argp1 = 0 ;
5889 int res1 = 0 ;
5890 int res2 = 0 ;
5891 PyObject * obj0 = 0 ;
5892 PyObject * obj1 = 0 ;
5893 char * kwnames[] = {
5894 (char *) "self",(char *) "mask", NULL
5895 };
5896
5897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5899 if (!SWIG_IsOK(res1)) {
5900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5901 }
5902 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5903 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5904 if (!SWIG_IsOK(res2)) {
5905 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5906 }
5907 {
5908 PyThreadState* __tstate = wxPyBeginAllowThreads();
5909 (arg1)->SetMask(arg2);
5910 wxPyEndAllowThreads(__tstate);
5911 if (PyErr_Occurred()) SWIG_fail;
5912 }
5913 resultobj = SWIG_Py_Void();
5914 return resultobj;
5915 fail:
5916 return NULL;
5917 }
5918
5919
5920 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5921 PyObject *resultobj = 0;
5922 wxBitmap *arg1 = (wxBitmap *) 0 ;
5923 wxColour *arg2 = 0 ;
5924 void *argp1 = 0 ;
5925 int res1 = 0 ;
5926 wxColour temp2 ;
5927 PyObject * obj0 = 0 ;
5928 PyObject * obj1 = 0 ;
5929 char * kwnames[] = {
5930 (char *) "self",(char *) "colour", NULL
5931 };
5932
5933 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5934 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5935 if (!SWIG_IsOK(res1)) {
5936 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5937 }
5938 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5939 {
5940 arg2 = &temp2;
5941 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5942 }
5943 {
5944 PyThreadState* __tstate = wxPyBeginAllowThreads();
5945 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5946 wxPyEndAllowThreads(__tstate);
5947 if (PyErr_Occurred()) SWIG_fail;
5948 }
5949 resultobj = SWIG_Py_Void();
5950 return resultobj;
5951 fail:
5952 return NULL;
5953 }
5954
5955
5956 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5957 PyObject *resultobj = 0;
5958 wxBitmap *arg1 = (wxBitmap *) 0 ;
5959 wxRect *arg2 = 0 ;
5960 SwigValueWrapper<wxBitmap > result;
5961 void *argp1 = 0 ;
5962 int res1 = 0 ;
5963 wxRect temp2 ;
5964 PyObject * obj0 = 0 ;
5965 PyObject * obj1 = 0 ;
5966 char * kwnames[] = {
5967 (char *) "self",(char *) "rect", NULL
5968 };
5969
5970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5971 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5972 if (!SWIG_IsOK(res1)) {
5973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5974 }
5975 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5976 {
5977 arg2 = &temp2;
5978 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5979 }
5980 {
5981 PyThreadState* __tstate = wxPyBeginAllowThreads();
5982 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5983 wxPyEndAllowThreads(__tstate);
5984 if (PyErr_Occurred()) SWIG_fail;
5985 }
5986 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5987 return resultobj;
5988 fail:
5989 return NULL;
5990 }
5991
5992
5993 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5994 PyObject *resultobj = 0;
5995 wxBitmap *arg1 = (wxBitmap *) 0 ;
5996 wxString *arg2 = 0 ;
5997 wxBitmapType arg3 ;
5998 wxPalette *arg4 = (wxPalette *) NULL ;
5999 bool result;
6000 void *argp1 = 0 ;
6001 int res1 = 0 ;
6002 bool temp2 = false ;
6003 int val3 ;
6004 int ecode3 = 0 ;
6005 void *argp4 = 0 ;
6006 int res4 = 0 ;
6007 PyObject * obj0 = 0 ;
6008 PyObject * obj1 = 0 ;
6009 PyObject * obj2 = 0 ;
6010 PyObject * obj3 = 0 ;
6011 char * kwnames[] = {
6012 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6013 };
6014
6015 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6016 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6017 if (!SWIG_IsOK(res1)) {
6018 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6019 }
6020 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6021 {
6022 arg2 = wxString_in_helper(obj1);
6023 if (arg2 == NULL) SWIG_fail;
6024 temp2 = true;
6025 }
6026 ecode3 = SWIG_AsVal_int(obj2, &val3);
6027 if (!SWIG_IsOK(ecode3)) {
6028 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6029 }
6030 arg3 = static_cast< wxBitmapType >(val3);
6031 if (obj3) {
6032 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6033 if (!SWIG_IsOK(res4)) {
6034 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6035 }
6036 arg4 = reinterpret_cast< wxPalette * >(argp4);
6037 }
6038 {
6039 PyThreadState* __tstate = wxPyBeginAllowThreads();
6040 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6041 wxPyEndAllowThreads(__tstate);
6042 if (PyErr_Occurred()) SWIG_fail;
6043 }
6044 {
6045 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6046 }
6047 {
6048 if (temp2)
6049 delete arg2;
6050 }
6051 return resultobj;
6052 fail:
6053 {
6054 if (temp2)
6055 delete arg2;
6056 }
6057 return NULL;
6058 }
6059
6060
6061 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6062 PyObject *resultobj = 0;
6063 wxBitmap *arg1 = (wxBitmap *) 0 ;
6064 wxString *arg2 = 0 ;
6065 wxBitmapType arg3 ;
6066 bool result;
6067 void *argp1 = 0 ;
6068 int res1 = 0 ;
6069 bool temp2 = false ;
6070 int val3 ;
6071 int ecode3 = 0 ;
6072 PyObject * obj0 = 0 ;
6073 PyObject * obj1 = 0 ;
6074 PyObject * obj2 = 0 ;
6075 char * kwnames[] = {
6076 (char *) "self",(char *) "name",(char *) "type", NULL
6077 };
6078
6079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6081 if (!SWIG_IsOK(res1)) {
6082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6083 }
6084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6085 {
6086 arg2 = wxString_in_helper(obj1);
6087 if (arg2 == NULL) SWIG_fail;
6088 temp2 = true;
6089 }
6090 ecode3 = SWIG_AsVal_int(obj2, &val3);
6091 if (!SWIG_IsOK(ecode3)) {
6092 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6093 }
6094 arg3 = static_cast< wxBitmapType >(val3);
6095 {
6096 PyThreadState* __tstate = wxPyBeginAllowThreads();
6097 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6098 wxPyEndAllowThreads(__tstate);
6099 if (PyErr_Occurred()) SWIG_fail;
6100 }
6101 {
6102 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6103 }
6104 {
6105 if (temp2)
6106 delete arg2;
6107 }
6108 return resultobj;
6109 fail:
6110 {
6111 if (temp2)
6112 delete arg2;
6113 }
6114 return NULL;
6115 }
6116
6117
6118 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6119 PyObject *resultobj = 0;
6120 wxBitmap *arg1 = (wxBitmap *) 0 ;
6121 wxPalette *result = 0 ;
6122 void *argp1 = 0 ;
6123 int res1 = 0 ;
6124 PyObject *swig_obj[1] ;
6125
6126 if (!args) SWIG_fail;
6127 swig_obj[0] = args;
6128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6129 if (!SWIG_IsOK(res1)) {
6130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6131 }
6132 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6133 {
6134 PyThreadState* __tstate = wxPyBeginAllowThreads();
6135 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6136 wxPyEndAllowThreads(__tstate);
6137 if (PyErr_Occurred()) SWIG_fail;
6138 }
6139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6140 return resultobj;
6141 fail:
6142 return NULL;
6143 }
6144
6145
6146 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6147 PyObject *resultobj = 0;
6148 wxBitmap *arg1 = (wxBitmap *) 0 ;
6149 wxPalette *arg2 = 0 ;
6150 void *argp1 = 0 ;
6151 int res1 = 0 ;
6152 void *argp2 = 0 ;
6153 int res2 = 0 ;
6154 PyObject * obj0 = 0 ;
6155 PyObject * obj1 = 0 ;
6156 char * kwnames[] = {
6157 (char *) "self",(char *) "palette", NULL
6158 };
6159
6160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6162 if (!SWIG_IsOK(res1)) {
6163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6164 }
6165 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6166 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6167 if (!SWIG_IsOK(res2)) {
6168 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6169 }
6170 if (!argp2) {
6171 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6172 }
6173 arg2 = reinterpret_cast< wxPalette * >(argp2);
6174 {
6175 PyThreadState* __tstate = wxPyBeginAllowThreads();
6176 (arg1)->SetPalette((wxPalette const &)*arg2);
6177 wxPyEndAllowThreads(__tstate);
6178 if (PyErr_Occurred()) SWIG_fail;
6179 }
6180 resultobj = SWIG_Py_Void();
6181 return resultobj;
6182 fail:
6183 return NULL;
6184 }
6185
6186
6187 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6188 PyObject *resultobj = 0;
6189 wxBitmap *arg1 = (wxBitmap *) 0 ;
6190 wxIcon *arg2 = 0 ;
6191 bool result;
6192 void *argp1 = 0 ;
6193 int res1 = 0 ;
6194 void *argp2 = 0 ;
6195 int res2 = 0 ;
6196 PyObject * obj0 = 0 ;
6197 PyObject * obj1 = 0 ;
6198 char * kwnames[] = {
6199 (char *) "self",(char *) "icon", NULL
6200 };
6201
6202 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6203 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6204 if (!SWIG_IsOK(res1)) {
6205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6206 }
6207 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6208 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6209 if (!SWIG_IsOK(res2)) {
6210 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6211 }
6212 if (!argp2) {
6213 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6214 }
6215 arg2 = reinterpret_cast< wxIcon * >(argp2);
6216 {
6217 PyThreadState* __tstate = wxPyBeginAllowThreads();
6218 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6219 wxPyEndAllowThreads(__tstate);
6220 if (PyErr_Occurred()) SWIG_fail;
6221 }
6222 {
6223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6224 }
6225 return resultobj;
6226 fail:
6227 return NULL;
6228 }
6229
6230
6231 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6232 PyObject *resultobj = 0;
6233 wxBitmap *arg1 = (wxBitmap *) 0 ;
6234 int arg2 ;
6235 void *argp1 = 0 ;
6236 int res1 = 0 ;
6237 int val2 ;
6238 int ecode2 = 0 ;
6239 PyObject * obj0 = 0 ;
6240 PyObject * obj1 = 0 ;
6241 char * kwnames[] = {
6242 (char *) "self",(char *) "height", NULL
6243 };
6244
6245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6247 if (!SWIG_IsOK(res1)) {
6248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6249 }
6250 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6251 ecode2 = SWIG_AsVal_int(obj1, &val2);
6252 if (!SWIG_IsOK(ecode2)) {
6253 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6254 }
6255 arg2 = static_cast< int >(val2);
6256 {
6257 PyThreadState* __tstate = wxPyBeginAllowThreads();
6258 (arg1)->SetHeight(arg2);
6259 wxPyEndAllowThreads(__tstate);
6260 if (PyErr_Occurred()) SWIG_fail;
6261 }
6262 resultobj = SWIG_Py_Void();
6263 return resultobj;
6264 fail:
6265 return NULL;
6266 }
6267
6268
6269 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6270 PyObject *resultobj = 0;
6271 wxBitmap *arg1 = (wxBitmap *) 0 ;
6272 int arg2 ;
6273 void *argp1 = 0 ;
6274 int res1 = 0 ;
6275 int val2 ;
6276 int ecode2 = 0 ;
6277 PyObject * obj0 = 0 ;
6278 PyObject * obj1 = 0 ;
6279 char * kwnames[] = {
6280 (char *) "self",(char *) "width", NULL
6281 };
6282
6283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6285 if (!SWIG_IsOK(res1)) {
6286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6287 }
6288 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6289 ecode2 = SWIG_AsVal_int(obj1, &val2);
6290 if (!SWIG_IsOK(ecode2)) {
6291 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6292 }
6293 arg2 = static_cast< int >(val2);
6294 {
6295 PyThreadState* __tstate = wxPyBeginAllowThreads();
6296 (arg1)->SetWidth(arg2);
6297 wxPyEndAllowThreads(__tstate);
6298 if (PyErr_Occurred()) SWIG_fail;
6299 }
6300 resultobj = SWIG_Py_Void();
6301 return resultobj;
6302 fail:
6303 return NULL;
6304 }
6305
6306
6307 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6308 PyObject *resultobj = 0;
6309 wxBitmap *arg1 = (wxBitmap *) 0 ;
6310 int arg2 ;
6311 void *argp1 = 0 ;
6312 int res1 = 0 ;
6313 int val2 ;
6314 int ecode2 = 0 ;
6315 PyObject * obj0 = 0 ;
6316 PyObject * obj1 = 0 ;
6317 char * kwnames[] = {
6318 (char *) "self",(char *) "depth", NULL
6319 };
6320
6321 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6322 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6323 if (!SWIG_IsOK(res1)) {
6324 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6325 }
6326 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6327 ecode2 = SWIG_AsVal_int(obj1, &val2);
6328 if (!SWIG_IsOK(ecode2)) {
6329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6330 }
6331 arg2 = static_cast< int >(val2);
6332 {
6333 PyThreadState* __tstate = wxPyBeginAllowThreads();
6334 (arg1)->SetDepth(arg2);
6335 wxPyEndAllowThreads(__tstate);
6336 if (PyErr_Occurred()) SWIG_fail;
6337 }
6338 resultobj = SWIG_Py_Void();
6339 return resultobj;
6340 fail:
6341 return NULL;
6342 }
6343
6344
6345 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6346 PyObject *resultobj = 0;
6347 wxBitmap *arg1 = (wxBitmap *) 0 ;
6348 wxSize *arg2 = 0 ;
6349 void *argp1 = 0 ;
6350 int res1 = 0 ;
6351 wxSize temp2 ;
6352 PyObject * obj0 = 0 ;
6353 PyObject * obj1 = 0 ;
6354 char * kwnames[] = {
6355 (char *) "self",(char *) "size", NULL
6356 };
6357
6358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6360 if (!SWIG_IsOK(res1)) {
6361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6362 }
6363 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6364 {
6365 arg2 = &temp2;
6366 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6367 }
6368 {
6369 PyThreadState* __tstate = wxPyBeginAllowThreads();
6370 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6371 wxPyEndAllowThreads(__tstate);
6372 if (PyErr_Occurred()) SWIG_fail;
6373 }
6374 resultobj = SWIG_Py_Void();
6375 return resultobj;
6376 fail:
6377 return NULL;
6378 }
6379
6380
6381 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6382 PyObject *resultobj = 0;
6383 wxBitmap *arg1 = (wxBitmap *) 0 ;
6384 wxCursor *arg2 = 0 ;
6385 bool result;
6386 void *argp1 = 0 ;
6387 int res1 = 0 ;
6388 void *argp2 = 0 ;
6389 int res2 = 0 ;
6390 PyObject * obj0 = 0 ;
6391 PyObject * obj1 = 0 ;
6392 char * kwnames[] = {
6393 (char *) "self",(char *) "cursor", NULL
6394 };
6395
6396 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6397 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6398 if (!SWIG_IsOK(res1)) {
6399 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6400 }
6401 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6402 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6403 if (!SWIG_IsOK(res2)) {
6404 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6405 }
6406 if (!argp2) {
6407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6408 }
6409 arg2 = reinterpret_cast< wxCursor * >(argp2);
6410 {
6411 PyThreadState* __tstate = wxPyBeginAllowThreads();
6412 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6413 wxPyEndAllowThreads(__tstate);
6414 if (PyErr_Occurred()) SWIG_fail;
6415 }
6416 {
6417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6418 }
6419 return resultobj;
6420 fail:
6421 return NULL;
6422 }
6423
6424
6425 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6426 PyObject *resultobj = 0;
6427 wxBitmap *arg1 = (wxBitmap *) 0 ;
6428 wxBitmap *arg2 = (wxBitmap *) 0 ;
6429 bool result;
6430 void *argp1 = 0 ;
6431 int res1 = 0 ;
6432 void *argp2 = 0 ;
6433 int res2 = 0 ;
6434 PyObject * obj0 = 0 ;
6435 PyObject * obj1 = 0 ;
6436 char * kwnames[] = {
6437 (char *) "self",(char *) "other", NULL
6438 };
6439
6440 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6441 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6442 if (!SWIG_IsOK(res1)) {
6443 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6444 }
6445 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6446 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6447 if (!SWIG_IsOK(res2)) {
6448 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6449 }
6450 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6451 {
6452 PyThreadState* __tstate = wxPyBeginAllowThreads();
6453 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6454 wxPyEndAllowThreads(__tstate);
6455 if (PyErr_Occurred()) SWIG_fail;
6456 }
6457 {
6458 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6459 }
6460 return resultobj;
6461 fail:
6462 return NULL;
6463 }
6464
6465
6466 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6467 PyObject *resultobj = 0;
6468 wxBitmap *arg1 = (wxBitmap *) 0 ;
6469 wxBitmap *arg2 = (wxBitmap *) 0 ;
6470 bool result;
6471 void *argp1 = 0 ;
6472 int res1 = 0 ;
6473 void *argp2 = 0 ;
6474 int res2 = 0 ;
6475 PyObject * obj0 = 0 ;
6476 PyObject * obj1 = 0 ;
6477 char * kwnames[] = {
6478 (char *) "self",(char *) "other", NULL
6479 };
6480
6481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6483 if (!SWIG_IsOK(res1)) {
6484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6485 }
6486 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6487 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6488 if (!SWIG_IsOK(res2)) {
6489 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6490 }
6491 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6492 {
6493 PyThreadState* __tstate = wxPyBeginAllowThreads();
6494 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6495 wxPyEndAllowThreads(__tstate);
6496 if (PyErr_Occurred()) SWIG_fail;
6497 }
6498 {
6499 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6500 }
6501 return resultobj;
6502 fail:
6503 return NULL;
6504 }
6505
6506
6507 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6508 PyObject *obj;
6509 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6510 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6511 return SWIG_Py_Void();
6512 }
6513
6514 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6515 return SWIG_Python_InitShadowInstance(args);
6516 }
6517
6518 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6519 PyObject *resultobj = 0;
6520 wxBitmap *arg1 = 0 ;
6521 wxColour const &arg2_defvalue = wxNullColour ;
6522 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6523 wxMask *result = 0 ;
6524 void *argp1 = 0 ;
6525 int res1 = 0 ;
6526 wxColour temp2 ;
6527 PyObject * obj0 = 0 ;
6528 PyObject * obj1 = 0 ;
6529 char * kwnames[] = {
6530 (char *) "bitmap",(char *) "colour", NULL
6531 };
6532
6533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6534 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6535 if (!SWIG_IsOK(res1)) {
6536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6537 }
6538 if (!argp1) {
6539 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6540 }
6541 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6542 if (obj1) {
6543 {
6544 arg2 = &temp2;
6545 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6546 }
6547 }
6548 {
6549 if (!wxPyCheckForApp()) SWIG_fail;
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6563 PyObject *resultobj = 0;
6564 wxMask *arg1 = (wxMask *) 0 ;
6565 void *argp1 = 0 ;
6566 int res1 = 0 ;
6567 PyObject *swig_obj[1] ;
6568
6569 if (!args) SWIG_fail;
6570 swig_obj[0] = args;
6571 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6572 if (!SWIG_IsOK(res1)) {
6573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6574 }
6575 arg1 = reinterpret_cast< wxMask * >(argp1);
6576 {
6577 PyThreadState* __tstate = wxPyBeginAllowThreads();
6578 delete arg1;
6579
6580 wxPyEndAllowThreads(__tstate);
6581 if (PyErr_Occurred()) SWIG_fail;
6582 }
6583 resultobj = SWIG_Py_Void();
6584 return resultobj;
6585 fail:
6586 return NULL;
6587 }
6588
6589
6590 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6591 PyObject *obj;
6592 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6593 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6594 return SWIG_Py_Void();
6595 }
6596
6597 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6598 return SWIG_Python_InitShadowInstance(args);
6599 }
6600
6601 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6602 PyObject *resultobj = 0;
6603 wxString *arg1 = 0 ;
6604 wxBitmapType arg2 ;
6605 int arg3 = (int) -1 ;
6606 int arg4 = (int) -1 ;
6607 wxIcon *result = 0 ;
6608 bool temp1 = false ;
6609 int val2 ;
6610 int ecode2 = 0 ;
6611 int val3 ;
6612 int ecode3 = 0 ;
6613 int val4 ;
6614 int ecode4 = 0 ;
6615 PyObject * obj0 = 0 ;
6616 PyObject * obj1 = 0 ;
6617 PyObject * obj2 = 0 ;
6618 PyObject * obj3 = 0 ;
6619 char * kwnames[] = {
6620 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6621 };
6622
6623 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6624 {
6625 arg1 = wxString_in_helper(obj0);
6626 if (arg1 == NULL) SWIG_fail;
6627 temp1 = true;
6628 }
6629 ecode2 = SWIG_AsVal_int(obj1, &val2);
6630 if (!SWIG_IsOK(ecode2)) {
6631 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6632 }
6633 arg2 = static_cast< wxBitmapType >(val2);
6634 if (obj2) {
6635 ecode3 = SWIG_AsVal_int(obj2, &val3);
6636 if (!SWIG_IsOK(ecode3)) {
6637 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6638 }
6639 arg3 = static_cast< int >(val3);
6640 }
6641 if (obj3) {
6642 ecode4 = SWIG_AsVal_int(obj3, &val4);
6643 if (!SWIG_IsOK(ecode4)) {
6644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6645 }
6646 arg4 = static_cast< int >(val4);
6647 }
6648 {
6649 if (!wxPyCheckForApp()) SWIG_fail;
6650 PyThreadState* __tstate = wxPyBeginAllowThreads();
6651 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6652 wxPyEndAllowThreads(__tstate);
6653 if (PyErr_Occurred()) SWIG_fail;
6654 }
6655 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6656 {
6657 if (temp1)
6658 delete arg1;
6659 }
6660 return resultobj;
6661 fail:
6662 {
6663 if (temp1)
6664 delete arg1;
6665 }
6666 return NULL;
6667 }
6668
6669
6670 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6671 PyObject *resultobj = 0;
6672 wxIcon *arg1 = (wxIcon *) 0 ;
6673 void *argp1 = 0 ;
6674 int res1 = 0 ;
6675 PyObject *swig_obj[1] ;
6676
6677 if (!args) SWIG_fail;
6678 swig_obj[0] = args;
6679 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6680 if (!SWIG_IsOK(res1)) {
6681 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6682 }
6683 arg1 = reinterpret_cast< wxIcon * >(argp1);
6684 {
6685 PyThreadState* __tstate = wxPyBeginAllowThreads();
6686 delete arg1;
6687
6688 wxPyEndAllowThreads(__tstate);
6689 if (PyErr_Occurred()) SWIG_fail;
6690 }
6691 resultobj = SWIG_Py_Void();
6692 return resultobj;
6693 fail:
6694 return NULL;
6695 }
6696
6697
6698 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6699 PyObject *resultobj = 0;
6700 wxIcon *result = 0 ;
6701
6702 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6703 {
6704 if (!wxPyCheckForApp()) SWIG_fail;
6705 PyThreadState* __tstate = wxPyBeginAllowThreads();
6706 result = (wxIcon *)new wxIcon();
6707 wxPyEndAllowThreads(__tstate);
6708 if (PyErr_Occurred()) SWIG_fail;
6709 }
6710 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6711 return resultobj;
6712 fail:
6713 return NULL;
6714 }
6715
6716
6717 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6718 PyObject *resultobj = 0;
6719 wxIconLocation *arg1 = 0 ;
6720 wxIcon *result = 0 ;
6721 void *argp1 = 0 ;
6722 int res1 = 0 ;
6723 PyObject * obj0 = 0 ;
6724 char * kwnames[] = {
6725 (char *) "loc", NULL
6726 };
6727
6728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6729 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6730 if (!SWIG_IsOK(res1)) {
6731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6732 }
6733 if (!argp1) {
6734 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6735 }
6736 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6737 {
6738 if (!wxPyCheckForApp()) SWIG_fail;
6739 PyThreadState* __tstate = wxPyBeginAllowThreads();
6740 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6741 wxPyEndAllowThreads(__tstate);
6742 if (PyErr_Occurred()) SWIG_fail;
6743 }
6744 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6745 return resultobj;
6746 fail:
6747 return NULL;
6748 }
6749
6750
6751 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6752 PyObject *resultobj = 0;
6753 wxBitmap *arg1 = 0 ;
6754 wxIcon *result = 0 ;
6755 void *argp1 = 0 ;
6756 int res1 = 0 ;
6757 PyObject * obj0 = 0 ;
6758 char * kwnames[] = {
6759 (char *) "bmp", NULL
6760 };
6761
6762 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6763 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6764 if (!SWIG_IsOK(res1)) {
6765 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6766 }
6767 if (!argp1) {
6768 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6769 }
6770 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6771 {
6772 if (!wxPyCheckForApp()) SWIG_fail;
6773 PyThreadState* __tstate = wxPyBeginAllowThreads();
6774 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6775 wxPyEndAllowThreads(__tstate);
6776 if (PyErr_Occurred()) SWIG_fail;
6777 }
6778 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6779 return resultobj;
6780 fail:
6781 return NULL;
6782 }
6783
6784
6785 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6786 PyObject *resultobj = 0;
6787 PyObject *arg1 = (PyObject *) 0 ;
6788 wxIcon *result = 0 ;
6789 PyObject * obj0 = 0 ;
6790 char * kwnames[] = {
6791 (char *) "listOfStrings", NULL
6792 };
6793
6794 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6795 arg1 = obj0;
6796 {
6797 if (!wxPyCheckForApp()) SWIG_fail;
6798 PyThreadState* __tstate = wxPyBeginAllowThreads();
6799 result = (wxIcon *)new_wxIcon(arg1);
6800 wxPyEndAllowThreads(__tstate);
6801 if (PyErr_Occurred()) SWIG_fail;
6802 }
6803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6804 return resultobj;
6805 fail:
6806 return NULL;
6807 }
6808
6809
6810 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6811 PyObject *resultobj = 0;
6812 wxIcon *arg1 = (wxIcon *) 0 ;
6813 wxString *arg2 = 0 ;
6814 wxBitmapType arg3 ;
6815 bool result;
6816 void *argp1 = 0 ;
6817 int res1 = 0 ;
6818 bool temp2 = false ;
6819 int val3 ;
6820 int ecode3 = 0 ;
6821 PyObject * obj0 = 0 ;
6822 PyObject * obj1 = 0 ;
6823 PyObject * obj2 = 0 ;
6824 char * kwnames[] = {
6825 (char *) "self",(char *) "name",(char *) "type", NULL
6826 };
6827
6828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6830 if (!SWIG_IsOK(res1)) {
6831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6832 }
6833 arg1 = reinterpret_cast< wxIcon * >(argp1);
6834 {
6835 arg2 = wxString_in_helper(obj1);
6836 if (arg2 == NULL) SWIG_fail;
6837 temp2 = true;
6838 }
6839 ecode3 = SWIG_AsVal_int(obj2, &val3);
6840 if (!SWIG_IsOK(ecode3)) {
6841 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6842 }
6843 arg3 = static_cast< wxBitmapType >(val3);
6844 {
6845 PyThreadState* __tstate = wxPyBeginAllowThreads();
6846 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6847 wxPyEndAllowThreads(__tstate);
6848 if (PyErr_Occurred()) SWIG_fail;
6849 }
6850 {
6851 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6852 }
6853 {
6854 if (temp2)
6855 delete arg2;
6856 }
6857 return resultobj;
6858 fail:
6859 {
6860 if (temp2)
6861 delete arg2;
6862 }
6863 return NULL;
6864 }
6865
6866
6867 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6868 PyObject *resultobj = 0;
6869 wxIcon *arg1 = (wxIcon *) 0 ;
6870 long result;
6871 void *argp1 = 0 ;
6872 int res1 = 0 ;
6873 PyObject *swig_obj[1] ;
6874
6875 if (!args) SWIG_fail;
6876 swig_obj[0] = args;
6877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6878 if (!SWIG_IsOK(res1)) {
6879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6880 }
6881 arg1 = reinterpret_cast< wxIcon * >(argp1);
6882 {
6883 PyThreadState* __tstate = wxPyBeginAllowThreads();
6884 result = (long)(arg1)->GetHandle();
6885 wxPyEndAllowThreads(__tstate);
6886 if (PyErr_Occurred()) SWIG_fail;
6887 }
6888 resultobj = SWIG_From_long(static_cast< long >(result));
6889 return resultobj;
6890 fail:
6891 return NULL;
6892 }
6893
6894
6895 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6896 PyObject *resultobj = 0;
6897 wxIcon *arg1 = (wxIcon *) 0 ;
6898 long arg2 ;
6899 void *argp1 = 0 ;
6900 int res1 = 0 ;
6901 long val2 ;
6902 int ecode2 = 0 ;
6903 PyObject * obj0 = 0 ;
6904 PyObject * obj1 = 0 ;
6905 char * kwnames[] = {
6906 (char *) "self",(char *) "handle", NULL
6907 };
6908
6909 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6910 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6911 if (!SWIG_IsOK(res1)) {
6912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6913 }
6914 arg1 = reinterpret_cast< wxIcon * >(argp1);
6915 ecode2 = SWIG_AsVal_long(obj1, &val2);
6916 if (!SWIG_IsOK(ecode2)) {
6917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6918 }
6919 arg2 = static_cast< long >(val2);
6920 {
6921 PyThreadState* __tstate = wxPyBeginAllowThreads();
6922 wxIcon_SetHandle(arg1,arg2);
6923 wxPyEndAllowThreads(__tstate);
6924 if (PyErr_Occurred()) SWIG_fail;
6925 }
6926 resultobj = SWIG_Py_Void();
6927 return resultobj;
6928 fail:
6929 return NULL;
6930 }
6931
6932
6933 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6934 PyObject *resultobj = 0;
6935 wxIcon *arg1 = (wxIcon *) 0 ;
6936 bool result;
6937 void *argp1 = 0 ;
6938 int res1 = 0 ;
6939 PyObject *swig_obj[1] ;
6940
6941 if (!args) SWIG_fail;
6942 swig_obj[0] = args;
6943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6944 if (!SWIG_IsOK(res1)) {
6945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6946 }
6947 arg1 = reinterpret_cast< wxIcon * >(argp1);
6948 {
6949 PyThreadState* __tstate = wxPyBeginAllowThreads();
6950 result = (bool)(arg1)->Ok();
6951 wxPyEndAllowThreads(__tstate);
6952 if (PyErr_Occurred()) SWIG_fail;
6953 }
6954 {
6955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6956 }
6957 return resultobj;
6958 fail:
6959 return NULL;
6960 }
6961
6962
6963 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6964 PyObject *resultobj = 0;
6965 wxIcon *arg1 = (wxIcon *) 0 ;
6966 int result;
6967 void *argp1 = 0 ;
6968 int res1 = 0 ;
6969 PyObject *swig_obj[1] ;
6970
6971 if (!args) SWIG_fail;
6972 swig_obj[0] = args;
6973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6974 if (!SWIG_IsOK(res1)) {
6975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6976 }
6977 arg1 = reinterpret_cast< wxIcon * >(argp1);
6978 {
6979 PyThreadState* __tstate = wxPyBeginAllowThreads();
6980 result = (int)(arg1)->GetWidth();
6981 wxPyEndAllowThreads(__tstate);
6982 if (PyErr_Occurred()) SWIG_fail;
6983 }
6984 resultobj = SWIG_From_int(static_cast< int >(result));
6985 return resultobj;
6986 fail:
6987 return NULL;
6988 }
6989
6990
6991 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6992 PyObject *resultobj = 0;
6993 wxIcon *arg1 = (wxIcon *) 0 ;
6994 int result;
6995 void *argp1 = 0 ;
6996 int res1 = 0 ;
6997 PyObject *swig_obj[1] ;
6998
6999 if (!args) SWIG_fail;
7000 swig_obj[0] = args;
7001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7002 if (!SWIG_IsOK(res1)) {
7003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7004 }
7005 arg1 = reinterpret_cast< wxIcon * >(argp1);
7006 {
7007 PyThreadState* __tstate = wxPyBeginAllowThreads();
7008 result = (int)(arg1)->GetHeight();
7009 wxPyEndAllowThreads(__tstate);
7010 if (PyErr_Occurred()) SWIG_fail;
7011 }
7012 resultobj = SWIG_From_int(static_cast< int >(result));
7013 return resultobj;
7014 fail:
7015 return NULL;
7016 }
7017
7018
7019 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7020 PyObject *resultobj = 0;
7021 wxIcon *arg1 = (wxIcon *) 0 ;
7022 int result;
7023 void *argp1 = 0 ;
7024 int res1 = 0 ;
7025 PyObject *swig_obj[1] ;
7026
7027 if (!args) SWIG_fail;
7028 swig_obj[0] = args;
7029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7030 if (!SWIG_IsOK(res1)) {
7031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7032 }
7033 arg1 = reinterpret_cast< wxIcon * >(argp1);
7034 {
7035 PyThreadState* __tstate = wxPyBeginAllowThreads();
7036 result = (int)(arg1)->GetDepth();
7037 wxPyEndAllowThreads(__tstate);
7038 if (PyErr_Occurred()) SWIG_fail;
7039 }
7040 resultobj = SWIG_From_int(static_cast< int >(result));
7041 return resultobj;
7042 fail:
7043 return NULL;
7044 }
7045
7046
7047 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7048 PyObject *resultobj = 0;
7049 wxIcon *arg1 = (wxIcon *) 0 ;
7050 int arg2 ;
7051 void *argp1 = 0 ;
7052 int res1 = 0 ;
7053 int val2 ;
7054 int ecode2 = 0 ;
7055 PyObject * obj0 = 0 ;
7056 PyObject * obj1 = 0 ;
7057 char * kwnames[] = {
7058 (char *) "self",(char *) "w", NULL
7059 };
7060
7061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7065 }
7066 arg1 = reinterpret_cast< wxIcon * >(argp1);
7067 ecode2 = SWIG_AsVal_int(obj1, &val2);
7068 if (!SWIG_IsOK(ecode2)) {
7069 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7070 }
7071 arg2 = static_cast< int >(val2);
7072 {
7073 PyThreadState* __tstate = wxPyBeginAllowThreads();
7074 (arg1)->SetWidth(arg2);
7075 wxPyEndAllowThreads(__tstate);
7076 if (PyErr_Occurred()) SWIG_fail;
7077 }
7078 resultobj = SWIG_Py_Void();
7079 return resultobj;
7080 fail:
7081 return NULL;
7082 }
7083
7084
7085 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7086 PyObject *resultobj = 0;
7087 wxIcon *arg1 = (wxIcon *) 0 ;
7088 int arg2 ;
7089 void *argp1 = 0 ;
7090 int res1 = 0 ;
7091 int val2 ;
7092 int ecode2 = 0 ;
7093 PyObject * obj0 = 0 ;
7094 PyObject * obj1 = 0 ;
7095 char * kwnames[] = {
7096 (char *) "self",(char *) "h", NULL
7097 };
7098
7099 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7100 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7101 if (!SWIG_IsOK(res1)) {
7102 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7103 }
7104 arg1 = reinterpret_cast< wxIcon * >(argp1);
7105 ecode2 = SWIG_AsVal_int(obj1, &val2);
7106 if (!SWIG_IsOK(ecode2)) {
7107 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7108 }
7109 arg2 = static_cast< int >(val2);
7110 {
7111 PyThreadState* __tstate = wxPyBeginAllowThreads();
7112 (arg1)->SetHeight(arg2);
7113 wxPyEndAllowThreads(__tstate);
7114 if (PyErr_Occurred()) SWIG_fail;
7115 }
7116 resultobj = SWIG_Py_Void();
7117 return resultobj;
7118 fail:
7119 return NULL;
7120 }
7121
7122
7123 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7124 PyObject *resultobj = 0;
7125 wxIcon *arg1 = (wxIcon *) 0 ;
7126 int arg2 ;
7127 void *argp1 = 0 ;
7128 int res1 = 0 ;
7129 int val2 ;
7130 int ecode2 = 0 ;
7131 PyObject * obj0 = 0 ;
7132 PyObject * obj1 = 0 ;
7133 char * kwnames[] = {
7134 (char *) "self",(char *) "d", NULL
7135 };
7136
7137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7138 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7139 if (!SWIG_IsOK(res1)) {
7140 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7141 }
7142 arg1 = reinterpret_cast< wxIcon * >(argp1);
7143 ecode2 = SWIG_AsVal_int(obj1, &val2);
7144 if (!SWIG_IsOK(ecode2)) {
7145 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7146 }
7147 arg2 = static_cast< int >(val2);
7148 {
7149 PyThreadState* __tstate = wxPyBeginAllowThreads();
7150 (arg1)->SetDepth(arg2);
7151 wxPyEndAllowThreads(__tstate);
7152 if (PyErr_Occurred()) SWIG_fail;
7153 }
7154 resultobj = SWIG_Py_Void();
7155 return resultobj;
7156 fail:
7157 return NULL;
7158 }
7159
7160
7161 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7162 PyObject *resultobj = 0;
7163 wxIcon *arg1 = (wxIcon *) 0 ;
7164 wxSize *arg2 = 0 ;
7165 void *argp1 = 0 ;
7166 int res1 = 0 ;
7167 wxSize temp2 ;
7168 PyObject * obj0 = 0 ;
7169 PyObject * obj1 = 0 ;
7170 char * kwnames[] = {
7171 (char *) "self",(char *) "size", NULL
7172 };
7173
7174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7176 if (!SWIG_IsOK(res1)) {
7177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7178 }
7179 arg1 = reinterpret_cast< wxIcon * >(argp1);
7180 {
7181 arg2 = &temp2;
7182 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7183 }
7184 {
7185 PyThreadState* __tstate = wxPyBeginAllowThreads();
7186 (arg1)->SetSize((wxSize const &)*arg2);
7187 wxPyEndAllowThreads(__tstate);
7188 if (PyErr_Occurred()) SWIG_fail;
7189 }
7190 resultobj = SWIG_Py_Void();
7191 return resultobj;
7192 fail:
7193 return NULL;
7194 }
7195
7196
7197 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7198 PyObject *resultobj = 0;
7199 wxIcon *arg1 = (wxIcon *) 0 ;
7200 wxBitmap *arg2 = 0 ;
7201 void *argp1 = 0 ;
7202 int res1 = 0 ;
7203 void *argp2 = 0 ;
7204 int res2 = 0 ;
7205 PyObject * obj0 = 0 ;
7206 PyObject * obj1 = 0 ;
7207 char * kwnames[] = {
7208 (char *) "self",(char *) "bmp", NULL
7209 };
7210
7211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7213 if (!SWIG_IsOK(res1)) {
7214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7215 }
7216 arg1 = reinterpret_cast< wxIcon * >(argp1);
7217 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7218 if (!SWIG_IsOK(res2)) {
7219 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7220 }
7221 if (!argp2) {
7222 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7223 }
7224 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7225 {
7226 PyThreadState* __tstate = wxPyBeginAllowThreads();
7227 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7228 wxPyEndAllowThreads(__tstate);
7229 if (PyErr_Occurred()) SWIG_fail;
7230 }
7231 resultobj = SWIG_Py_Void();
7232 return resultobj;
7233 fail:
7234 return NULL;
7235 }
7236
7237
7238 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7239 PyObject *obj;
7240 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7241 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7242 return SWIG_Py_Void();
7243 }
7244
7245 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7246 return SWIG_Python_InitShadowInstance(args);
7247 }
7248
7249 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7250 PyObject *resultobj = 0;
7251 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7252 int arg2 = (int) 0 ;
7253 wxIconLocation *result = 0 ;
7254 bool temp1 = false ;
7255 int val2 ;
7256 int ecode2 = 0 ;
7257 PyObject * obj0 = 0 ;
7258 PyObject * obj1 = 0 ;
7259 char * kwnames[] = {
7260 (char *) "filename",(char *) "num", NULL
7261 };
7262
7263 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7264 if (obj0) {
7265 {
7266 arg1 = wxString_in_helper(obj0);
7267 if (arg1 == NULL) SWIG_fail;
7268 temp1 = true;
7269 }
7270 }
7271 if (obj1) {
7272 ecode2 = SWIG_AsVal_int(obj1, &val2);
7273 if (!SWIG_IsOK(ecode2)) {
7274 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7275 }
7276 arg2 = static_cast< int >(val2);
7277 }
7278 {
7279 PyThreadState* __tstate = wxPyBeginAllowThreads();
7280 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7285 {
7286 if (temp1)
7287 delete arg1;
7288 }
7289 return resultobj;
7290 fail:
7291 {
7292 if (temp1)
7293 delete arg1;
7294 }
7295 return NULL;
7296 }
7297
7298
7299 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7300 PyObject *resultobj = 0;
7301 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7302 void *argp1 = 0 ;
7303 int res1 = 0 ;
7304 PyObject *swig_obj[1] ;
7305
7306 if (!args) SWIG_fail;
7307 swig_obj[0] = args;
7308 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7309 if (!SWIG_IsOK(res1)) {
7310 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7311 }
7312 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7313 {
7314 PyThreadState* __tstate = wxPyBeginAllowThreads();
7315 delete arg1;
7316
7317 wxPyEndAllowThreads(__tstate);
7318 if (PyErr_Occurred()) SWIG_fail;
7319 }
7320 resultobj = SWIG_Py_Void();
7321 return resultobj;
7322 fail:
7323 return NULL;
7324 }
7325
7326
7327 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7328 PyObject *resultobj = 0;
7329 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7330 bool result;
7331 void *argp1 = 0 ;
7332 int res1 = 0 ;
7333 PyObject *swig_obj[1] ;
7334
7335 if (!args) SWIG_fail;
7336 swig_obj[0] = args;
7337 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7338 if (!SWIG_IsOK(res1)) {
7339 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7340 }
7341 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7342 {
7343 PyThreadState* __tstate = wxPyBeginAllowThreads();
7344 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7345 wxPyEndAllowThreads(__tstate);
7346 if (PyErr_Occurred()) SWIG_fail;
7347 }
7348 {
7349 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7350 }
7351 return resultobj;
7352 fail:
7353 return NULL;
7354 }
7355
7356
7357 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7358 PyObject *resultobj = 0;
7359 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7360 wxString *arg2 = 0 ;
7361 void *argp1 = 0 ;
7362 int res1 = 0 ;
7363 bool temp2 = false ;
7364 PyObject * obj0 = 0 ;
7365 PyObject * obj1 = 0 ;
7366 char * kwnames[] = {
7367 (char *) "self",(char *) "filename", NULL
7368 };
7369
7370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7372 if (!SWIG_IsOK(res1)) {
7373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7374 }
7375 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7376 {
7377 arg2 = wxString_in_helper(obj1);
7378 if (arg2 == NULL) SWIG_fail;
7379 temp2 = true;
7380 }
7381 {
7382 PyThreadState* __tstate = wxPyBeginAllowThreads();
7383 (arg1)->SetFileName((wxString const &)*arg2);
7384 wxPyEndAllowThreads(__tstate);
7385 if (PyErr_Occurred()) SWIG_fail;
7386 }
7387 resultobj = SWIG_Py_Void();
7388 {
7389 if (temp2)
7390 delete arg2;
7391 }
7392 return resultobj;
7393 fail:
7394 {
7395 if (temp2)
7396 delete arg2;
7397 }
7398 return NULL;
7399 }
7400
7401
7402 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7403 PyObject *resultobj = 0;
7404 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7405 wxString *result = 0 ;
7406 void *argp1 = 0 ;
7407 int res1 = 0 ;
7408 PyObject *swig_obj[1] ;
7409
7410 if (!args) SWIG_fail;
7411 swig_obj[0] = args;
7412 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7413 if (!SWIG_IsOK(res1)) {
7414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7415 }
7416 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7417 {
7418 PyThreadState* __tstate = wxPyBeginAllowThreads();
7419 {
7420 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7421 result = (wxString *) &_result_ref;
7422 }
7423 wxPyEndAllowThreads(__tstate);
7424 if (PyErr_Occurred()) SWIG_fail;
7425 }
7426 {
7427 #if wxUSE_UNICODE
7428 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7429 #else
7430 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7431 #endif
7432 }
7433 return resultobj;
7434 fail:
7435 return NULL;
7436 }
7437
7438
7439 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7440 PyObject *resultobj = 0;
7441 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7442 int arg2 ;
7443 void *argp1 = 0 ;
7444 int res1 = 0 ;
7445 int val2 ;
7446 int ecode2 = 0 ;
7447 PyObject * obj0 = 0 ;
7448 PyObject * obj1 = 0 ;
7449 char * kwnames[] = {
7450 (char *) "self",(char *) "num", NULL
7451 };
7452
7453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7454 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7455 if (!SWIG_IsOK(res1)) {
7456 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7457 }
7458 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7459 ecode2 = SWIG_AsVal_int(obj1, &val2);
7460 if (!SWIG_IsOK(ecode2)) {
7461 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7462 }
7463 arg2 = static_cast< int >(val2);
7464 {
7465 PyThreadState* __tstate = wxPyBeginAllowThreads();
7466 wxIconLocation_SetIndex(arg1,arg2);
7467 wxPyEndAllowThreads(__tstate);
7468 if (PyErr_Occurred()) SWIG_fail;
7469 }
7470 resultobj = SWIG_Py_Void();
7471 return resultobj;
7472 fail:
7473 return NULL;
7474 }
7475
7476
7477 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7478 PyObject *resultobj = 0;
7479 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7480 int result;
7481 void *argp1 = 0 ;
7482 int res1 = 0 ;
7483 PyObject *swig_obj[1] ;
7484
7485 if (!args) SWIG_fail;
7486 swig_obj[0] = args;
7487 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7488 if (!SWIG_IsOK(res1)) {
7489 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7490 }
7491 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7492 {
7493 PyThreadState* __tstate = wxPyBeginAllowThreads();
7494 result = (int)wxIconLocation_GetIndex(arg1);
7495 wxPyEndAllowThreads(__tstate);
7496 if (PyErr_Occurred()) SWIG_fail;
7497 }
7498 resultobj = SWIG_From_int(static_cast< int >(result));
7499 return resultobj;
7500 fail:
7501 return NULL;
7502 }
7503
7504
7505 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7506 PyObject *obj;
7507 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7508 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7509 return SWIG_Py_Void();
7510 }
7511
7512 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7513 return SWIG_Python_InitShadowInstance(args);
7514 }
7515
7516 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7517 PyObject *resultobj = 0;
7518 wxIconBundle *result = 0 ;
7519
7520 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7521 {
7522 PyThreadState* __tstate = wxPyBeginAllowThreads();
7523 result = (wxIconBundle *)new wxIconBundle();
7524 wxPyEndAllowThreads(__tstate);
7525 if (PyErr_Occurred()) SWIG_fail;
7526 }
7527 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7528 return resultobj;
7529 fail:
7530 return NULL;
7531 }
7532
7533
7534 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7535 PyObject *resultobj = 0;
7536 wxString *arg1 = 0 ;
7537 long arg2 ;
7538 wxIconBundle *result = 0 ;
7539 bool temp1 = false ;
7540 long val2 ;
7541 int ecode2 = 0 ;
7542 PyObject * obj0 = 0 ;
7543 PyObject * obj1 = 0 ;
7544 char * kwnames[] = {
7545 (char *) "file",(char *) "type", NULL
7546 };
7547
7548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7549 {
7550 arg1 = wxString_in_helper(obj0);
7551 if (arg1 == NULL) SWIG_fail;
7552 temp1 = true;
7553 }
7554 ecode2 = SWIG_AsVal_long(obj1, &val2);
7555 if (!SWIG_IsOK(ecode2)) {
7556 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7557 }
7558 arg2 = static_cast< long >(val2);
7559 {
7560 PyThreadState* __tstate = wxPyBeginAllowThreads();
7561 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7562 wxPyEndAllowThreads(__tstate);
7563 if (PyErr_Occurred()) SWIG_fail;
7564 }
7565 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7566 {
7567 if (temp1)
7568 delete arg1;
7569 }
7570 return resultobj;
7571 fail:
7572 {
7573 if (temp1)
7574 delete arg1;
7575 }
7576 return NULL;
7577 }
7578
7579
7580 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7581 PyObject *resultobj = 0;
7582 wxIcon *arg1 = 0 ;
7583 wxIconBundle *result = 0 ;
7584 void *argp1 = 0 ;
7585 int res1 = 0 ;
7586 PyObject * obj0 = 0 ;
7587 char * kwnames[] = {
7588 (char *) "icon", NULL
7589 };
7590
7591 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7592 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7593 if (!SWIG_IsOK(res1)) {
7594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7595 }
7596 if (!argp1) {
7597 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7598 }
7599 arg1 = reinterpret_cast< wxIcon * >(argp1);
7600 {
7601 PyThreadState* __tstate = wxPyBeginAllowThreads();
7602 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7603 wxPyEndAllowThreads(__tstate);
7604 if (PyErr_Occurred()) SWIG_fail;
7605 }
7606 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7607 return resultobj;
7608 fail:
7609 return NULL;
7610 }
7611
7612
7613 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7614 PyObject *resultobj = 0;
7615 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7616 void *argp1 = 0 ;
7617 int res1 = 0 ;
7618 PyObject *swig_obj[1] ;
7619
7620 if (!args) SWIG_fail;
7621 swig_obj[0] = args;
7622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7623 if (!SWIG_IsOK(res1)) {
7624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7625 }
7626 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7627 {
7628 PyThreadState* __tstate = wxPyBeginAllowThreads();
7629 delete arg1;
7630
7631 wxPyEndAllowThreads(__tstate);
7632 if (PyErr_Occurred()) SWIG_fail;
7633 }
7634 resultobj = SWIG_Py_Void();
7635 return resultobj;
7636 fail:
7637 return NULL;
7638 }
7639
7640
7641 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7642 PyObject *resultobj = 0;
7643 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7644 wxIcon *arg2 = 0 ;
7645 void *argp1 = 0 ;
7646 int res1 = 0 ;
7647 void *argp2 = 0 ;
7648 int res2 = 0 ;
7649 PyObject * obj0 = 0 ;
7650 PyObject * obj1 = 0 ;
7651 char * kwnames[] = {
7652 (char *) "self",(char *) "icon", NULL
7653 };
7654
7655 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7656 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7657 if (!SWIG_IsOK(res1)) {
7658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7659 }
7660 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7661 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7662 if (!SWIG_IsOK(res2)) {
7663 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7664 }
7665 if (!argp2) {
7666 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7667 }
7668 arg2 = reinterpret_cast< wxIcon * >(argp2);
7669 {
7670 PyThreadState* __tstate = wxPyBeginAllowThreads();
7671 (arg1)->AddIcon((wxIcon const &)*arg2);
7672 wxPyEndAllowThreads(__tstate);
7673 if (PyErr_Occurred()) SWIG_fail;
7674 }
7675 resultobj = SWIG_Py_Void();
7676 return resultobj;
7677 fail:
7678 return NULL;
7679 }
7680
7681
7682 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7683 PyObject *resultobj = 0;
7684 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7685 wxString *arg2 = 0 ;
7686 long arg3 ;
7687 void *argp1 = 0 ;
7688 int res1 = 0 ;
7689 bool temp2 = false ;
7690 long val3 ;
7691 int ecode3 = 0 ;
7692 PyObject * obj0 = 0 ;
7693 PyObject * obj1 = 0 ;
7694 PyObject * obj2 = 0 ;
7695 char * kwnames[] = {
7696 (char *) "self",(char *) "file",(char *) "type", NULL
7697 };
7698
7699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7701 if (!SWIG_IsOK(res1)) {
7702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7703 }
7704 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7705 {
7706 arg2 = wxString_in_helper(obj1);
7707 if (arg2 == NULL) SWIG_fail;
7708 temp2 = true;
7709 }
7710 ecode3 = SWIG_AsVal_long(obj2, &val3);
7711 if (!SWIG_IsOK(ecode3)) {
7712 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7713 }
7714 arg3 = static_cast< long >(val3);
7715 {
7716 PyThreadState* __tstate = wxPyBeginAllowThreads();
7717 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7718 wxPyEndAllowThreads(__tstate);
7719 if (PyErr_Occurred()) SWIG_fail;
7720 }
7721 resultobj = SWIG_Py_Void();
7722 {
7723 if (temp2)
7724 delete arg2;
7725 }
7726 return resultobj;
7727 fail:
7728 {
7729 if (temp2)
7730 delete arg2;
7731 }
7732 return NULL;
7733 }
7734
7735
7736 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7737 PyObject *resultobj = 0;
7738 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7739 wxSize *arg2 = 0 ;
7740 wxIcon *result = 0 ;
7741 void *argp1 = 0 ;
7742 int res1 = 0 ;
7743 wxSize temp2 ;
7744 PyObject * obj0 = 0 ;
7745 PyObject * obj1 = 0 ;
7746 char * kwnames[] = {
7747 (char *) "self",(char *) "size", NULL
7748 };
7749
7750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7752 if (!SWIG_IsOK(res1)) {
7753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7754 }
7755 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7756 {
7757 arg2 = &temp2;
7758 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7759 }
7760 {
7761 PyThreadState* __tstate = wxPyBeginAllowThreads();
7762 {
7763 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7764 result = (wxIcon *) &_result_ref;
7765 }
7766 wxPyEndAllowThreads(__tstate);
7767 if (PyErr_Occurred()) SWIG_fail;
7768 }
7769 {
7770 wxIcon* resultptr = new wxIcon(*result);
7771 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7772 }
7773 return resultobj;
7774 fail:
7775 return NULL;
7776 }
7777
7778
7779 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7780 PyObject *obj;
7781 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7782 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7783 return SWIG_Py_Void();
7784 }
7785
7786 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7787 return SWIG_Python_InitShadowInstance(args);
7788 }
7789
7790 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7791 PyObject *resultobj = 0;
7792 wxString *arg1 = 0 ;
7793 long arg2 ;
7794 int arg3 = (int) 0 ;
7795 int arg4 = (int) 0 ;
7796 wxCursor *result = 0 ;
7797 bool temp1 = false ;
7798 long val2 ;
7799 int ecode2 = 0 ;
7800 int val3 ;
7801 int ecode3 = 0 ;
7802 int val4 ;
7803 int ecode4 = 0 ;
7804 PyObject * obj0 = 0 ;
7805 PyObject * obj1 = 0 ;
7806 PyObject * obj2 = 0 ;
7807 PyObject * obj3 = 0 ;
7808 char * kwnames[] = {
7809 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7810 };
7811
7812 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7813 {
7814 arg1 = wxString_in_helper(obj0);
7815 if (arg1 == NULL) SWIG_fail;
7816 temp1 = true;
7817 }
7818 ecode2 = SWIG_AsVal_long(obj1, &val2);
7819 if (!SWIG_IsOK(ecode2)) {
7820 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7821 }
7822 arg2 = static_cast< long >(val2);
7823 if (obj2) {
7824 ecode3 = SWIG_AsVal_int(obj2, &val3);
7825 if (!SWIG_IsOK(ecode3)) {
7826 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7827 }
7828 arg3 = static_cast< int >(val3);
7829 }
7830 if (obj3) {
7831 ecode4 = SWIG_AsVal_int(obj3, &val4);
7832 if (!SWIG_IsOK(ecode4)) {
7833 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7834 }
7835 arg4 = static_cast< int >(val4);
7836 }
7837 {
7838 if (!wxPyCheckForApp()) SWIG_fail;
7839 PyThreadState* __tstate = wxPyBeginAllowThreads();
7840 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7841 wxPyEndAllowThreads(__tstate);
7842 if (PyErr_Occurred()) SWIG_fail;
7843 }
7844 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7845 {
7846 if (temp1)
7847 delete arg1;
7848 }
7849 return resultobj;
7850 fail:
7851 {
7852 if (temp1)
7853 delete arg1;
7854 }
7855 return NULL;
7856 }
7857
7858
7859 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7860 PyObject *resultobj = 0;
7861 wxCursor *arg1 = (wxCursor *) 0 ;
7862 void *argp1 = 0 ;
7863 int res1 = 0 ;
7864 PyObject *swig_obj[1] ;
7865
7866 if (!args) SWIG_fail;
7867 swig_obj[0] = args;
7868 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7869 if (!SWIG_IsOK(res1)) {
7870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7871 }
7872 arg1 = reinterpret_cast< wxCursor * >(argp1);
7873 {
7874 PyThreadState* __tstate = wxPyBeginAllowThreads();
7875 delete arg1;
7876
7877 wxPyEndAllowThreads(__tstate);
7878 if (PyErr_Occurred()) SWIG_fail;
7879 }
7880 resultobj = SWIG_Py_Void();
7881 return resultobj;
7882 fail:
7883 return NULL;
7884 }
7885
7886
7887 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7888 PyObject *resultobj = 0;
7889 int arg1 ;
7890 wxCursor *result = 0 ;
7891 int val1 ;
7892 int ecode1 = 0 ;
7893 PyObject * obj0 = 0 ;
7894 char * kwnames[] = {
7895 (char *) "id", NULL
7896 };
7897
7898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7899 ecode1 = SWIG_AsVal_int(obj0, &val1);
7900 if (!SWIG_IsOK(ecode1)) {
7901 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7902 }
7903 arg1 = static_cast< int >(val1);
7904 {
7905 if (!wxPyCheckForApp()) SWIG_fail;
7906 PyThreadState* __tstate = wxPyBeginAllowThreads();
7907 result = (wxCursor *)new wxCursor(arg1);
7908 wxPyEndAllowThreads(__tstate);
7909 if (PyErr_Occurred()) SWIG_fail;
7910 }
7911 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7912 return resultobj;
7913 fail:
7914 return NULL;
7915 }
7916
7917
7918 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7919 PyObject *resultobj = 0;
7920 wxImage *arg1 = 0 ;
7921 wxCursor *result = 0 ;
7922 void *argp1 = 0 ;
7923 int res1 = 0 ;
7924 PyObject * obj0 = 0 ;
7925 char * kwnames[] = {
7926 (char *) "image", NULL
7927 };
7928
7929 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7930 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7931 if (!SWIG_IsOK(res1)) {
7932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7933 }
7934 if (!argp1) {
7935 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7936 }
7937 arg1 = reinterpret_cast< wxImage * >(argp1);
7938 {
7939 if (!wxPyCheckForApp()) SWIG_fail;
7940 PyThreadState* __tstate = wxPyBeginAllowThreads();
7941 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7942 wxPyEndAllowThreads(__tstate);
7943 if (PyErr_Occurred()) SWIG_fail;
7944 }
7945 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7946 return resultobj;
7947 fail:
7948 return NULL;
7949 }
7950
7951
7952 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7953 PyObject *resultobj = 0;
7954 wxCursor *arg1 = (wxCursor *) 0 ;
7955 long result;
7956 void *argp1 = 0 ;
7957 int res1 = 0 ;
7958 PyObject *swig_obj[1] ;
7959
7960 if (!args) SWIG_fail;
7961 swig_obj[0] = args;
7962 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7963 if (!SWIG_IsOK(res1)) {
7964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7965 }
7966 arg1 = reinterpret_cast< wxCursor * >(argp1);
7967 {
7968 PyThreadState* __tstate = wxPyBeginAllowThreads();
7969 result = (long)(arg1)->GetHandle();
7970 wxPyEndAllowThreads(__tstate);
7971 if (PyErr_Occurred()) SWIG_fail;
7972 }
7973 resultobj = SWIG_From_long(static_cast< long >(result));
7974 return resultobj;
7975 fail:
7976 return NULL;
7977 }
7978
7979
7980 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7981 PyObject *resultobj = 0;
7982 wxCursor *arg1 = (wxCursor *) 0 ;
7983 long arg2 ;
7984 void *argp1 = 0 ;
7985 int res1 = 0 ;
7986 long val2 ;
7987 int ecode2 = 0 ;
7988 PyObject * obj0 = 0 ;
7989 PyObject * obj1 = 0 ;
7990 char * kwnames[] = {
7991 (char *) "self",(char *) "handle", NULL
7992 };
7993
7994 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
7995 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7996 if (!SWIG_IsOK(res1)) {
7997 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7998 }
7999 arg1 = reinterpret_cast< wxCursor * >(argp1);
8000 ecode2 = SWIG_AsVal_long(obj1, &val2);
8001 if (!SWIG_IsOK(ecode2)) {
8002 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
8003 }
8004 arg2 = static_cast< long >(val2);
8005 {
8006 PyThreadState* __tstate = wxPyBeginAllowThreads();
8007 wxCursor_SetHandle(arg1,arg2);
8008 wxPyEndAllowThreads(__tstate);
8009 if (PyErr_Occurred()) SWIG_fail;
8010 }
8011 resultobj = SWIG_Py_Void();
8012 return resultobj;
8013 fail:
8014 return NULL;
8015 }
8016
8017
8018 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8019 PyObject *resultobj = 0;
8020 wxCursor *arg1 = (wxCursor *) 0 ;
8021 bool result;
8022 void *argp1 = 0 ;
8023 int res1 = 0 ;
8024 PyObject *swig_obj[1] ;
8025
8026 if (!args) SWIG_fail;
8027 swig_obj[0] = args;
8028 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8029 if (!SWIG_IsOK(res1)) {
8030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8031 }
8032 arg1 = reinterpret_cast< wxCursor * >(argp1);
8033 {
8034 PyThreadState* __tstate = wxPyBeginAllowThreads();
8035 result = (bool)(arg1)->Ok();
8036 wxPyEndAllowThreads(__tstate);
8037 if (PyErr_Occurred()) SWIG_fail;
8038 }
8039 {
8040 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8041 }
8042 return resultobj;
8043 fail:
8044 return NULL;
8045 }
8046
8047
8048 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8049 PyObject *resultobj = 0;
8050 wxCursor *arg1 = (wxCursor *) 0 ;
8051 int result;
8052 void *argp1 = 0 ;
8053 int res1 = 0 ;
8054 PyObject *swig_obj[1] ;
8055
8056 if (!args) SWIG_fail;
8057 swig_obj[0] = args;
8058 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8059 if (!SWIG_IsOK(res1)) {
8060 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8061 }
8062 arg1 = reinterpret_cast< wxCursor * >(argp1);
8063 {
8064 PyThreadState* __tstate = wxPyBeginAllowThreads();
8065 result = (int)(arg1)->GetWidth();
8066 wxPyEndAllowThreads(__tstate);
8067 if (PyErr_Occurred()) SWIG_fail;
8068 }
8069 resultobj = SWIG_From_int(static_cast< int >(result));
8070 return resultobj;
8071 fail:
8072 return NULL;
8073 }
8074
8075
8076 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8077 PyObject *resultobj = 0;
8078 wxCursor *arg1 = (wxCursor *) 0 ;
8079 int result;
8080 void *argp1 = 0 ;
8081 int res1 = 0 ;
8082 PyObject *swig_obj[1] ;
8083
8084 if (!args) SWIG_fail;
8085 swig_obj[0] = args;
8086 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8087 if (!SWIG_IsOK(res1)) {
8088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8089 }
8090 arg1 = reinterpret_cast< wxCursor * >(argp1);
8091 {
8092 PyThreadState* __tstate = wxPyBeginAllowThreads();
8093 result = (int)(arg1)->GetHeight();
8094 wxPyEndAllowThreads(__tstate);
8095 if (PyErr_Occurred()) SWIG_fail;
8096 }
8097 resultobj = SWIG_From_int(static_cast< int >(result));
8098 return resultobj;
8099 fail:
8100 return NULL;
8101 }
8102
8103
8104 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8105 PyObject *resultobj = 0;
8106 wxCursor *arg1 = (wxCursor *) 0 ;
8107 int result;
8108 void *argp1 = 0 ;
8109 int res1 = 0 ;
8110 PyObject *swig_obj[1] ;
8111
8112 if (!args) SWIG_fail;
8113 swig_obj[0] = args;
8114 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8115 if (!SWIG_IsOK(res1)) {
8116 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8117 }
8118 arg1 = reinterpret_cast< wxCursor * >(argp1);
8119 {
8120 PyThreadState* __tstate = wxPyBeginAllowThreads();
8121 result = (int)(arg1)->GetDepth();
8122 wxPyEndAllowThreads(__tstate);
8123 if (PyErr_Occurred()) SWIG_fail;
8124 }
8125 resultobj = SWIG_From_int(static_cast< int >(result));
8126 return resultobj;
8127 fail:
8128 return NULL;
8129 }
8130
8131
8132 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8133 PyObject *resultobj = 0;
8134 wxCursor *arg1 = (wxCursor *) 0 ;
8135 int arg2 ;
8136 void *argp1 = 0 ;
8137 int res1 = 0 ;
8138 int val2 ;
8139 int ecode2 = 0 ;
8140 PyObject * obj0 = 0 ;
8141 PyObject * obj1 = 0 ;
8142 char * kwnames[] = {
8143 (char *) "self",(char *) "w", NULL
8144 };
8145
8146 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8147 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8148 if (!SWIG_IsOK(res1)) {
8149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8150 }
8151 arg1 = reinterpret_cast< wxCursor * >(argp1);
8152 ecode2 = SWIG_AsVal_int(obj1, &val2);
8153 if (!SWIG_IsOK(ecode2)) {
8154 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8155 }
8156 arg2 = static_cast< int >(val2);
8157 {
8158 PyThreadState* __tstate = wxPyBeginAllowThreads();
8159 (arg1)->SetWidth(arg2);
8160 wxPyEndAllowThreads(__tstate);
8161 if (PyErr_Occurred()) SWIG_fail;
8162 }
8163 resultobj = SWIG_Py_Void();
8164 return resultobj;
8165 fail:
8166 return NULL;
8167 }
8168
8169
8170 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8171 PyObject *resultobj = 0;
8172 wxCursor *arg1 = (wxCursor *) 0 ;
8173 int arg2 ;
8174 void *argp1 = 0 ;
8175 int res1 = 0 ;
8176 int val2 ;
8177 int ecode2 = 0 ;
8178 PyObject * obj0 = 0 ;
8179 PyObject * obj1 = 0 ;
8180 char * kwnames[] = {
8181 (char *) "self",(char *) "h", NULL
8182 };
8183
8184 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8185 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8186 if (!SWIG_IsOK(res1)) {
8187 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8188 }
8189 arg1 = reinterpret_cast< wxCursor * >(argp1);
8190 ecode2 = SWIG_AsVal_int(obj1, &val2);
8191 if (!SWIG_IsOK(ecode2)) {
8192 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8193 }
8194 arg2 = static_cast< int >(val2);
8195 {
8196 PyThreadState* __tstate = wxPyBeginAllowThreads();
8197 (arg1)->SetHeight(arg2);
8198 wxPyEndAllowThreads(__tstate);
8199 if (PyErr_Occurred()) SWIG_fail;
8200 }
8201 resultobj = SWIG_Py_Void();
8202 return resultobj;
8203 fail:
8204 return NULL;
8205 }
8206
8207
8208 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8209 PyObject *resultobj = 0;
8210 wxCursor *arg1 = (wxCursor *) 0 ;
8211 int arg2 ;
8212 void *argp1 = 0 ;
8213 int res1 = 0 ;
8214 int val2 ;
8215 int ecode2 = 0 ;
8216 PyObject * obj0 = 0 ;
8217 PyObject * obj1 = 0 ;
8218 char * kwnames[] = {
8219 (char *) "self",(char *) "d", NULL
8220 };
8221
8222 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8223 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8224 if (!SWIG_IsOK(res1)) {
8225 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8226 }
8227 arg1 = reinterpret_cast< wxCursor * >(argp1);
8228 ecode2 = SWIG_AsVal_int(obj1, &val2);
8229 if (!SWIG_IsOK(ecode2)) {
8230 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8231 }
8232 arg2 = static_cast< int >(val2);
8233 {
8234 PyThreadState* __tstate = wxPyBeginAllowThreads();
8235 (arg1)->SetDepth(arg2);
8236 wxPyEndAllowThreads(__tstate);
8237 if (PyErr_Occurred()) SWIG_fail;
8238 }
8239 resultobj = SWIG_Py_Void();
8240 return resultobj;
8241 fail:
8242 return NULL;
8243 }
8244
8245
8246 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8247 PyObject *resultobj = 0;
8248 wxCursor *arg1 = (wxCursor *) 0 ;
8249 wxSize *arg2 = 0 ;
8250 void *argp1 = 0 ;
8251 int res1 = 0 ;
8252 wxSize temp2 ;
8253 PyObject * obj0 = 0 ;
8254 PyObject * obj1 = 0 ;
8255 char * kwnames[] = {
8256 (char *) "self",(char *) "size", NULL
8257 };
8258
8259 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8260 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8261 if (!SWIG_IsOK(res1)) {
8262 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8263 }
8264 arg1 = reinterpret_cast< wxCursor * >(argp1);
8265 {
8266 arg2 = &temp2;
8267 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8268 }
8269 {
8270 PyThreadState* __tstate = wxPyBeginAllowThreads();
8271 (arg1)->SetSize((wxSize const &)*arg2);
8272 wxPyEndAllowThreads(__tstate);
8273 if (PyErr_Occurred()) SWIG_fail;
8274 }
8275 resultobj = SWIG_Py_Void();
8276 return resultobj;
8277 fail:
8278 return NULL;
8279 }
8280
8281
8282 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8283 PyObject *obj;
8284 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8285 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8286 return SWIG_Py_Void();
8287 }
8288
8289 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8290 return SWIG_Python_InitShadowInstance(args);
8291 }
8292
8293 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8294 PyObject *resultobj = 0;
8295 int arg1 = (int) 0 ;
8296 int arg2 = (int) 0 ;
8297 int arg3 = (int) 0 ;
8298 int arg4 = (int) 0 ;
8299 wxRegion *result = 0 ;
8300 int val1 ;
8301 int ecode1 = 0 ;
8302 int val2 ;
8303 int ecode2 = 0 ;
8304 int val3 ;
8305 int ecode3 = 0 ;
8306 int val4 ;
8307 int ecode4 = 0 ;
8308 PyObject * obj0 = 0 ;
8309 PyObject * obj1 = 0 ;
8310 PyObject * obj2 = 0 ;
8311 PyObject * obj3 = 0 ;
8312 char * kwnames[] = {
8313 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8314 };
8315
8316 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8317 if (obj0) {
8318 ecode1 = SWIG_AsVal_int(obj0, &val1);
8319 if (!SWIG_IsOK(ecode1)) {
8320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8321 }
8322 arg1 = static_cast< int >(val1);
8323 }
8324 if (obj1) {
8325 ecode2 = SWIG_AsVal_int(obj1, &val2);
8326 if (!SWIG_IsOK(ecode2)) {
8327 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8328 }
8329 arg2 = static_cast< int >(val2);
8330 }
8331 if (obj2) {
8332 ecode3 = SWIG_AsVal_int(obj2, &val3);
8333 if (!SWIG_IsOK(ecode3)) {
8334 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8335 }
8336 arg3 = static_cast< int >(val3);
8337 }
8338 if (obj3) {
8339 ecode4 = SWIG_AsVal_int(obj3, &val4);
8340 if (!SWIG_IsOK(ecode4)) {
8341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8342 }
8343 arg4 = static_cast< int >(val4);
8344 }
8345 {
8346 if (!wxPyCheckForApp()) SWIG_fail;
8347 PyThreadState* __tstate = wxPyBeginAllowThreads();
8348 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8349 wxPyEndAllowThreads(__tstate);
8350 if (PyErr_Occurred()) SWIG_fail;
8351 }
8352 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8353 return resultobj;
8354 fail:
8355 return NULL;
8356 }
8357
8358
8359 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8360 PyObject *resultobj = 0;
8361 wxBitmap *arg1 = 0 ;
8362 wxRegion *result = 0 ;
8363 void *argp1 = 0 ;
8364 int res1 = 0 ;
8365 PyObject * obj0 = 0 ;
8366 char * kwnames[] = {
8367 (char *) "bmp", NULL
8368 };
8369
8370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8371 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8372 if (!SWIG_IsOK(res1)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8374 }
8375 if (!argp1) {
8376 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8377 }
8378 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8379 {
8380 if (!wxPyCheckForApp()) SWIG_fail;
8381 PyThreadState* __tstate = wxPyBeginAllowThreads();
8382 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8383 wxPyEndAllowThreads(__tstate);
8384 if (PyErr_Occurred()) SWIG_fail;
8385 }
8386 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8387 return resultobj;
8388 fail:
8389 return NULL;
8390 }
8391
8392
8393 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8394 PyObject *resultobj = 0;
8395 wxBitmap *arg1 = 0 ;
8396 wxColour *arg2 = 0 ;
8397 int arg3 = (int) 0 ;
8398 wxRegion *result = 0 ;
8399 void *argp1 = 0 ;
8400 int res1 = 0 ;
8401 wxColour temp2 ;
8402 int val3 ;
8403 int ecode3 = 0 ;
8404 PyObject * obj0 = 0 ;
8405 PyObject * obj1 = 0 ;
8406 PyObject * obj2 = 0 ;
8407 char * kwnames[] = {
8408 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8409 };
8410
8411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8412 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8413 if (!SWIG_IsOK(res1)) {
8414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8415 }
8416 if (!argp1) {
8417 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8418 }
8419 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8420 {
8421 arg2 = &temp2;
8422 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8423 }
8424 if (obj2) {
8425 ecode3 = SWIG_AsVal_int(obj2, &val3);
8426 if (!SWIG_IsOK(ecode3)) {
8427 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8428 }
8429 arg3 = static_cast< int >(val3);
8430 }
8431 {
8432 if (!wxPyCheckForApp()) SWIG_fail;
8433 PyThreadState* __tstate = wxPyBeginAllowThreads();
8434 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8435 wxPyEndAllowThreads(__tstate);
8436 if (PyErr_Occurred()) SWIG_fail;
8437 }
8438 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8439 return resultobj;
8440 fail:
8441 return NULL;
8442 }
8443
8444
8445 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8446 PyObject *resultobj = 0;
8447 int arg1 ;
8448 wxPoint *arg2 = (wxPoint *) 0 ;
8449 int arg3 = (int) wxWINDING_RULE ;
8450 wxRegion *result = 0 ;
8451 int val3 ;
8452 int ecode3 = 0 ;
8453 PyObject * obj0 = 0 ;
8454 PyObject * obj1 = 0 ;
8455 char * kwnames[] = {
8456 (char *) "points",(char *) "fillStyle", NULL
8457 };
8458
8459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8460 {
8461 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8462 if (arg2 == NULL) SWIG_fail;
8463 }
8464 if (obj1) {
8465 ecode3 = SWIG_AsVal_int(obj1, &val3);
8466 if (!SWIG_IsOK(ecode3)) {
8467 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8468 }
8469 arg3 = static_cast< int >(val3);
8470 }
8471 {
8472 if (!wxPyCheckForApp()) SWIG_fail;
8473 PyThreadState* __tstate = wxPyBeginAllowThreads();
8474 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8475 wxPyEndAllowThreads(__tstate);
8476 if (PyErr_Occurred()) SWIG_fail;
8477 }
8478 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8479 {
8480 if (arg2) delete [] arg2;
8481 }
8482 return resultobj;
8483 fail:
8484 {
8485 if (arg2) delete [] arg2;
8486 }
8487 return NULL;
8488 }
8489
8490
8491 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8492 PyObject *resultobj = 0;
8493 wxRegion *arg1 = (wxRegion *) 0 ;
8494 void *argp1 = 0 ;
8495 int res1 = 0 ;
8496 PyObject *swig_obj[1] ;
8497
8498 if (!args) SWIG_fail;
8499 swig_obj[0] = args;
8500 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8501 if (!SWIG_IsOK(res1)) {
8502 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8503 }
8504 arg1 = reinterpret_cast< wxRegion * >(argp1);
8505 {
8506 PyThreadState* __tstate = wxPyBeginAllowThreads();
8507 delete arg1;
8508
8509 wxPyEndAllowThreads(__tstate);
8510 if (PyErr_Occurred()) SWIG_fail;
8511 }
8512 resultobj = SWIG_Py_Void();
8513 return resultobj;
8514 fail:
8515 return NULL;
8516 }
8517
8518
8519 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8520 PyObject *resultobj = 0;
8521 wxRegion *arg1 = (wxRegion *) 0 ;
8522 void *argp1 = 0 ;
8523 int res1 = 0 ;
8524 PyObject *swig_obj[1] ;
8525
8526 if (!args) SWIG_fail;
8527 swig_obj[0] = args;
8528 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8529 if (!SWIG_IsOK(res1)) {
8530 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8531 }
8532 arg1 = reinterpret_cast< wxRegion * >(argp1);
8533 {
8534 PyThreadState* __tstate = wxPyBeginAllowThreads();
8535 (arg1)->Clear();
8536 wxPyEndAllowThreads(__tstate);
8537 if (PyErr_Occurred()) SWIG_fail;
8538 }
8539 resultobj = SWIG_Py_Void();
8540 return resultobj;
8541 fail:
8542 return NULL;
8543 }
8544
8545
8546 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8547 PyObject *resultobj = 0;
8548 wxRegion *arg1 = (wxRegion *) 0 ;
8549 int arg2 ;
8550 int arg3 ;
8551 bool result;
8552 void *argp1 = 0 ;
8553 int res1 = 0 ;
8554 int val2 ;
8555 int ecode2 = 0 ;
8556 int val3 ;
8557 int ecode3 = 0 ;
8558 PyObject * obj0 = 0 ;
8559 PyObject * obj1 = 0 ;
8560 PyObject * obj2 = 0 ;
8561 char * kwnames[] = {
8562 (char *) "self",(char *) "x",(char *) "y", NULL
8563 };
8564
8565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8567 if (!SWIG_IsOK(res1)) {
8568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8569 }
8570 arg1 = reinterpret_cast< wxRegion * >(argp1);
8571 ecode2 = SWIG_AsVal_int(obj1, &val2);
8572 if (!SWIG_IsOK(ecode2)) {
8573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8574 }
8575 arg2 = static_cast< int >(val2);
8576 ecode3 = SWIG_AsVal_int(obj2, &val3);
8577 if (!SWIG_IsOK(ecode3)) {
8578 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8579 }
8580 arg3 = static_cast< int >(val3);
8581 {
8582 PyThreadState* __tstate = wxPyBeginAllowThreads();
8583 result = (bool)(arg1)->Offset(arg2,arg3);
8584 wxPyEndAllowThreads(__tstate);
8585 if (PyErr_Occurred()) SWIG_fail;
8586 }
8587 {
8588 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8589 }
8590 return resultobj;
8591 fail:
8592 return NULL;
8593 }
8594
8595
8596 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8597 PyObject *resultobj = 0;
8598 wxRegion *arg1 = (wxRegion *) 0 ;
8599 int arg2 ;
8600 int arg3 ;
8601 wxRegionContain result;
8602 void *argp1 = 0 ;
8603 int res1 = 0 ;
8604 int val2 ;
8605 int ecode2 = 0 ;
8606 int val3 ;
8607 int ecode3 = 0 ;
8608 PyObject * obj0 = 0 ;
8609 PyObject * obj1 = 0 ;
8610 PyObject * obj2 = 0 ;
8611 char * kwnames[] = {
8612 (char *) "self",(char *) "x",(char *) "y", NULL
8613 };
8614
8615 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8616 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8617 if (!SWIG_IsOK(res1)) {
8618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8619 }
8620 arg1 = reinterpret_cast< wxRegion * >(argp1);
8621 ecode2 = SWIG_AsVal_int(obj1, &val2);
8622 if (!SWIG_IsOK(ecode2)) {
8623 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8624 }
8625 arg2 = static_cast< int >(val2);
8626 ecode3 = SWIG_AsVal_int(obj2, &val3);
8627 if (!SWIG_IsOK(ecode3)) {
8628 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8629 }
8630 arg3 = static_cast< int >(val3);
8631 {
8632 PyThreadState* __tstate = wxPyBeginAllowThreads();
8633 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8634 wxPyEndAllowThreads(__tstate);
8635 if (PyErr_Occurred()) SWIG_fail;
8636 }
8637 resultobj = SWIG_From_int(static_cast< int >(result));
8638 return resultobj;
8639 fail:
8640 return NULL;
8641 }
8642
8643
8644 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8645 PyObject *resultobj = 0;
8646 wxRegion *arg1 = (wxRegion *) 0 ;
8647 wxPoint *arg2 = 0 ;
8648 wxRegionContain result;
8649 void *argp1 = 0 ;
8650 int res1 = 0 ;
8651 wxPoint temp2 ;
8652 PyObject * obj0 = 0 ;
8653 PyObject * obj1 = 0 ;
8654 char * kwnames[] = {
8655 (char *) "self",(char *) "pt", NULL
8656 };
8657
8658 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8659 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8660 if (!SWIG_IsOK(res1)) {
8661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8662 }
8663 arg1 = reinterpret_cast< wxRegion * >(argp1);
8664 {
8665 arg2 = &temp2;
8666 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8667 }
8668 {
8669 PyThreadState* __tstate = wxPyBeginAllowThreads();
8670 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8671 wxPyEndAllowThreads(__tstate);
8672 if (PyErr_Occurred()) SWIG_fail;
8673 }
8674 resultobj = SWIG_From_int(static_cast< int >(result));
8675 return resultobj;
8676 fail:
8677 return NULL;
8678 }
8679
8680
8681 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8682 PyObject *resultobj = 0;
8683 wxRegion *arg1 = (wxRegion *) 0 ;
8684 wxRect *arg2 = 0 ;
8685 wxRegionContain result;
8686 void *argp1 = 0 ;
8687 int res1 = 0 ;
8688 wxRect temp2 ;
8689 PyObject * obj0 = 0 ;
8690 PyObject * obj1 = 0 ;
8691 char * kwnames[] = {
8692 (char *) "self",(char *) "rect", NULL
8693 };
8694
8695 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8696 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8697 if (!SWIG_IsOK(res1)) {
8698 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8699 }
8700 arg1 = reinterpret_cast< wxRegion * >(argp1);
8701 {
8702 arg2 = &temp2;
8703 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8704 }
8705 {
8706 PyThreadState* __tstate = wxPyBeginAllowThreads();
8707 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8708 wxPyEndAllowThreads(__tstate);
8709 if (PyErr_Occurred()) SWIG_fail;
8710 }
8711 resultobj = SWIG_From_int(static_cast< int >(result));
8712 return resultobj;
8713 fail:
8714 return NULL;
8715 }
8716
8717
8718 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8719 PyObject *resultobj = 0;
8720 wxRegion *arg1 = (wxRegion *) 0 ;
8721 int arg2 ;
8722 int arg3 ;
8723 int arg4 ;
8724 int arg5 ;
8725 wxRegionContain result;
8726 void *argp1 = 0 ;
8727 int res1 = 0 ;
8728 int val2 ;
8729 int ecode2 = 0 ;
8730 int val3 ;
8731 int ecode3 = 0 ;
8732 int val4 ;
8733 int ecode4 = 0 ;
8734 int val5 ;
8735 int ecode5 = 0 ;
8736 PyObject * obj0 = 0 ;
8737 PyObject * obj1 = 0 ;
8738 PyObject * obj2 = 0 ;
8739 PyObject * obj3 = 0 ;
8740 PyObject * obj4 = 0 ;
8741 char * kwnames[] = {
8742 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8743 };
8744
8745 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8746 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8747 if (!SWIG_IsOK(res1)) {
8748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8749 }
8750 arg1 = reinterpret_cast< wxRegion * >(argp1);
8751 ecode2 = SWIG_AsVal_int(obj1, &val2);
8752 if (!SWIG_IsOK(ecode2)) {
8753 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8754 }
8755 arg2 = static_cast< int >(val2);
8756 ecode3 = SWIG_AsVal_int(obj2, &val3);
8757 if (!SWIG_IsOK(ecode3)) {
8758 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8759 }
8760 arg3 = static_cast< int >(val3);
8761 ecode4 = SWIG_AsVal_int(obj3, &val4);
8762 if (!SWIG_IsOK(ecode4)) {
8763 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8764 }
8765 arg4 = static_cast< int >(val4);
8766 ecode5 = SWIG_AsVal_int(obj4, &val5);
8767 if (!SWIG_IsOK(ecode5)) {
8768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8769 }
8770 arg5 = static_cast< int >(val5);
8771 {
8772 PyThreadState* __tstate = wxPyBeginAllowThreads();
8773 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8774 wxPyEndAllowThreads(__tstate);
8775 if (PyErr_Occurred()) SWIG_fail;
8776 }
8777 resultobj = SWIG_From_int(static_cast< int >(result));
8778 return resultobj;
8779 fail:
8780 return NULL;
8781 }
8782
8783
8784 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8785 PyObject *resultobj = 0;
8786 wxRegion *arg1 = (wxRegion *) 0 ;
8787 wxRect result;
8788 void *argp1 = 0 ;
8789 int res1 = 0 ;
8790 PyObject *swig_obj[1] ;
8791
8792 if (!args) SWIG_fail;
8793 swig_obj[0] = args;
8794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8795 if (!SWIG_IsOK(res1)) {
8796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8797 }
8798 arg1 = reinterpret_cast< wxRegion * >(argp1);
8799 {
8800 PyThreadState* __tstate = wxPyBeginAllowThreads();
8801 result = (arg1)->GetBox();
8802 wxPyEndAllowThreads(__tstate);
8803 if (PyErr_Occurred()) SWIG_fail;
8804 }
8805 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8806 return resultobj;
8807 fail:
8808 return NULL;
8809 }
8810
8811
8812 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8813 PyObject *resultobj = 0;
8814 wxRegion *arg1 = (wxRegion *) 0 ;
8815 int arg2 ;
8816 int arg3 ;
8817 int arg4 ;
8818 int arg5 ;
8819 bool result;
8820 void *argp1 = 0 ;
8821 int res1 = 0 ;
8822 int val2 ;
8823 int ecode2 = 0 ;
8824 int val3 ;
8825 int ecode3 = 0 ;
8826 int val4 ;
8827 int ecode4 = 0 ;
8828 int val5 ;
8829 int ecode5 = 0 ;
8830 PyObject * obj0 = 0 ;
8831 PyObject * obj1 = 0 ;
8832 PyObject * obj2 = 0 ;
8833 PyObject * obj3 = 0 ;
8834 PyObject * obj4 = 0 ;
8835 char * kwnames[] = {
8836 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8837 };
8838
8839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8841 if (!SWIG_IsOK(res1)) {
8842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8843 }
8844 arg1 = reinterpret_cast< wxRegion * >(argp1);
8845 ecode2 = SWIG_AsVal_int(obj1, &val2);
8846 if (!SWIG_IsOK(ecode2)) {
8847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8848 }
8849 arg2 = static_cast< int >(val2);
8850 ecode3 = SWIG_AsVal_int(obj2, &val3);
8851 if (!SWIG_IsOK(ecode3)) {
8852 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8853 }
8854 arg3 = static_cast< int >(val3);
8855 ecode4 = SWIG_AsVal_int(obj3, &val4);
8856 if (!SWIG_IsOK(ecode4)) {
8857 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8858 }
8859 arg4 = static_cast< int >(val4);
8860 ecode5 = SWIG_AsVal_int(obj4, &val5);
8861 if (!SWIG_IsOK(ecode5)) {
8862 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8863 }
8864 arg5 = static_cast< int >(val5);
8865 {
8866 PyThreadState* __tstate = wxPyBeginAllowThreads();
8867 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8868 wxPyEndAllowThreads(__tstate);
8869 if (PyErr_Occurred()) SWIG_fail;
8870 }
8871 {
8872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8873 }
8874 return resultobj;
8875 fail:
8876 return NULL;
8877 }
8878
8879
8880 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8881 PyObject *resultobj = 0;
8882 wxRegion *arg1 = (wxRegion *) 0 ;
8883 wxRect *arg2 = 0 ;
8884 bool result;
8885 void *argp1 = 0 ;
8886 int res1 = 0 ;
8887 wxRect temp2 ;
8888 PyObject * obj0 = 0 ;
8889 PyObject * obj1 = 0 ;
8890 char * kwnames[] = {
8891 (char *) "self",(char *) "rect", NULL
8892 };
8893
8894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8895 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8896 if (!SWIG_IsOK(res1)) {
8897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8898 }
8899 arg1 = reinterpret_cast< wxRegion * >(argp1);
8900 {
8901 arg2 = &temp2;
8902 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8903 }
8904 {
8905 PyThreadState* __tstate = wxPyBeginAllowThreads();
8906 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8907 wxPyEndAllowThreads(__tstate);
8908 if (PyErr_Occurred()) SWIG_fail;
8909 }
8910 {
8911 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8912 }
8913 return resultobj;
8914 fail:
8915 return NULL;
8916 }
8917
8918
8919 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8920 PyObject *resultobj = 0;
8921 wxRegion *arg1 = (wxRegion *) 0 ;
8922 wxRegion *arg2 = 0 ;
8923 bool result;
8924 void *argp1 = 0 ;
8925 int res1 = 0 ;
8926 void *argp2 = 0 ;
8927 int res2 = 0 ;
8928 PyObject * obj0 = 0 ;
8929 PyObject * obj1 = 0 ;
8930 char * kwnames[] = {
8931 (char *) "self",(char *) "region", NULL
8932 };
8933
8934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8936 if (!SWIG_IsOK(res1)) {
8937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8938 }
8939 arg1 = reinterpret_cast< wxRegion * >(argp1);
8940 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8941 if (!SWIG_IsOK(res2)) {
8942 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8943 }
8944 if (!argp2) {
8945 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8946 }
8947 arg2 = reinterpret_cast< wxRegion * >(argp2);
8948 {
8949 PyThreadState* __tstate = wxPyBeginAllowThreads();
8950 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8951 wxPyEndAllowThreads(__tstate);
8952 if (PyErr_Occurred()) SWIG_fail;
8953 }
8954 {
8955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8956 }
8957 return resultobj;
8958 fail:
8959 return NULL;
8960 }
8961
8962
8963 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8964 PyObject *resultobj = 0;
8965 wxRegion *arg1 = (wxRegion *) 0 ;
8966 bool result;
8967 void *argp1 = 0 ;
8968 int res1 = 0 ;
8969 PyObject *swig_obj[1] ;
8970
8971 if (!args) SWIG_fail;
8972 swig_obj[0] = args;
8973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8974 if (!SWIG_IsOK(res1)) {
8975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8976 }
8977 arg1 = reinterpret_cast< wxRegion * >(argp1);
8978 {
8979 PyThreadState* __tstate = wxPyBeginAllowThreads();
8980 result = (bool)(arg1)->IsEmpty();
8981 wxPyEndAllowThreads(__tstate);
8982 if (PyErr_Occurred()) SWIG_fail;
8983 }
8984 {
8985 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8986 }
8987 return resultobj;
8988 fail:
8989 return NULL;
8990 }
8991
8992
8993 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8994 PyObject *resultobj = 0;
8995 wxRegion *arg1 = (wxRegion *) 0 ;
8996 int arg2 ;
8997 int arg3 ;
8998 int arg4 ;
8999 int arg5 ;
9000 bool result;
9001 void *argp1 = 0 ;
9002 int res1 = 0 ;
9003 int val2 ;
9004 int ecode2 = 0 ;
9005 int val3 ;
9006 int ecode3 = 0 ;
9007 int val4 ;
9008 int ecode4 = 0 ;
9009 int val5 ;
9010 int ecode5 = 0 ;
9011 PyObject * obj0 = 0 ;
9012 PyObject * obj1 = 0 ;
9013 PyObject * obj2 = 0 ;
9014 PyObject * obj3 = 0 ;
9015 PyObject * obj4 = 0 ;
9016 char * kwnames[] = {
9017 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9018 };
9019
9020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9022 if (!SWIG_IsOK(res1)) {
9023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9024 }
9025 arg1 = reinterpret_cast< wxRegion * >(argp1);
9026 ecode2 = SWIG_AsVal_int(obj1, &val2);
9027 if (!SWIG_IsOK(ecode2)) {
9028 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9029 }
9030 arg2 = static_cast< int >(val2);
9031 ecode3 = SWIG_AsVal_int(obj2, &val3);
9032 if (!SWIG_IsOK(ecode3)) {
9033 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9034 }
9035 arg3 = static_cast< int >(val3);
9036 ecode4 = SWIG_AsVal_int(obj3, &val4);
9037 if (!SWIG_IsOK(ecode4)) {
9038 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9039 }
9040 arg4 = static_cast< int >(val4);
9041 ecode5 = SWIG_AsVal_int(obj4, &val5);
9042 if (!SWIG_IsOK(ecode5)) {
9043 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9044 }
9045 arg5 = static_cast< int >(val5);
9046 {
9047 PyThreadState* __tstate = wxPyBeginAllowThreads();
9048 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 {
9053 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9054 }
9055 return resultobj;
9056 fail:
9057 return NULL;
9058 }
9059
9060
9061 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9062 PyObject *resultobj = 0;
9063 wxRegion *arg1 = (wxRegion *) 0 ;
9064 wxRect *arg2 = 0 ;
9065 bool result;
9066 void *argp1 = 0 ;
9067 int res1 = 0 ;
9068 wxRect temp2 ;
9069 PyObject * obj0 = 0 ;
9070 PyObject * obj1 = 0 ;
9071 char * kwnames[] = {
9072 (char *) "self",(char *) "rect", NULL
9073 };
9074
9075 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9076 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9077 if (!SWIG_IsOK(res1)) {
9078 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9079 }
9080 arg1 = reinterpret_cast< wxRegion * >(argp1);
9081 {
9082 arg2 = &temp2;
9083 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9084 }
9085 {
9086 PyThreadState* __tstate = wxPyBeginAllowThreads();
9087 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9088 wxPyEndAllowThreads(__tstate);
9089 if (PyErr_Occurred()) SWIG_fail;
9090 }
9091 {
9092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9093 }
9094 return resultobj;
9095 fail:
9096 return NULL;
9097 }
9098
9099
9100 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9101 PyObject *resultobj = 0;
9102 wxRegion *arg1 = (wxRegion *) 0 ;
9103 wxRegion *arg2 = 0 ;
9104 bool result;
9105 void *argp1 = 0 ;
9106 int res1 = 0 ;
9107 void *argp2 = 0 ;
9108 int res2 = 0 ;
9109 PyObject * obj0 = 0 ;
9110 PyObject * obj1 = 0 ;
9111 char * kwnames[] = {
9112 (char *) "self",(char *) "region", NULL
9113 };
9114
9115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9117 if (!SWIG_IsOK(res1)) {
9118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9119 }
9120 arg1 = reinterpret_cast< wxRegion * >(argp1);
9121 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9122 if (!SWIG_IsOK(res2)) {
9123 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9124 }
9125 if (!argp2) {
9126 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9127 }
9128 arg2 = reinterpret_cast< wxRegion * >(argp2);
9129 {
9130 PyThreadState* __tstate = wxPyBeginAllowThreads();
9131 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9132 wxPyEndAllowThreads(__tstate);
9133 if (PyErr_Occurred()) SWIG_fail;
9134 }
9135 {
9136 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9137 }
9138 return resultobj;
9139 fail:
9140 return NULL;
9141 }
9142
9143
9144 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9145 PyObject *resultobj = 0;
9146 wxRegion *arg1 = (wxRegion *) 0 ;
9147 int arg2 ;
9148 int arg3 ;
9149 int arg4 ;
9150 int arg5 ;
9151 bool result;
9152 void *argp1 = 0 ;
9153 int res1 = 0 ;
9154 int val2 ;
9155 int ecode2 = 0 ;
9156 int val3 ;
9157 int ecode3 = 0 ;
9158 int val4 ;
9159 int ecode4 = 0 ;
9160 int val5 ;
9161 int ecode5 = 0 ;
9162 PyObject * obj0 = 0 ;
9163 PyObject * obj1 = 0 ;
9164 PyObject * obj2 = 0 ;
9165 PyObject * obj3 = 0 ;
9166 PyObject * obj4 = 0 ;
9167 char * kwnames[] = {
9168 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9169 };
9170
9171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9173 if (!SWIG_IsOK(res1)) {
9174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9175 }
9176 arg1 = reinterpret_cast< wxRegion * >(argp1);
9177 ecode2 = SWIG_AsVal_int(obj1, &val2);
9178 if (!SWIG_IsOK(ecode2)) {
9179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9180 }
9181 arg2 = static_cast< int >(val2);
9182 ecode3 = SWIG_AsVal_int(obj2, &val3);
9183 if (!SWIG_IsOK(ecode3)) {
9184 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9185 }
9186 arg3 = static_cast< int >(val3);
9187 ecode4 = SWIG_AsVal_int(obj3, &val4);
9188 if (!SWIG_IsOK(ecode4)) {
9189 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9190 }
9191 arg4 = static_cast< int >(val4);
9192 ecode5 = SWIG_AsVal_int(obj4, &val5);
9193 if (!SWIG_IsOK(ecode5)) {
9194 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9195 }
9196 arg5 = static_cast< int >(val5);
9197 {
9198 PyThreadState* __tstate = wxPyBeginAllowThreads();
9199 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9200 wxPyEndAllowThreads(__tstate);
9201 if (PyErr_Occurred()) SWIG_fail;
9202 }
9203 {
9204 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9205 }
9206 return resultobj;
9207 fail:
9208 return NULL;
9209 }
9210
9211
9212 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9213 PyObject *resultobj = 0;
9214 wxRegion *arg1 = (wxRegion *) 0 ;
9215 wxRect *arg2 = 0 ;
9216 bool result;
9217 void *argp1 = 0 ;
9218 int res1 = 0 ;
9219 wxRect temp2 ;
9220 PyObject * obj0 = 0 ;
9221 PyObject * obj1 = 0 ;
9222 char * kwnames[] = {
9223 (char *) "self",(char *) "rect", NULL
9224 };
9225
9226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9228 if (!SWIG_IsOK(res1)) {
9229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9230 }
9231 arg1 = reinterpret_cast< wxRegion * >(argp1);
9232 {
9233 arg2 = &temp2;
9234 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9235 }
9236 {
9237 PyThreadState* __tstate = wxPyBeginAllowThreads();
9238 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9239 wxPyEndAllowThreads(__tstate);
9240 if (PyErr_Occurred()) SWIG_fail;
9241 }
9242 {
9243 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9244 }
9245 return resultobj;
9246 fail:
9247 return NULL;
9248 }
9249
9250
9251 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9252 PyObject *resultobj = 0;
9253 wxRegion *arg1 = (wxRegion *) 0 ;
9254 wxRegion *arg2 = 0 ;
9255 bool result;
9256 void *argp1 = 0 ;
9257 int res1 = 0 ;
9258 void *argp2 = 0 ;
9259 int res2 = 0 ;
9260 PyObject * obj0 = 0 ;
9261 PyObject * obj1 = 0 ;
9262 char * kwnames[] = {
9263 (char *) "self",(char *) "region", NULL
9264 };
9265
9266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9268 if (!SWIG_IsOK(res1)) {
9269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9270 }
9271 arg1 = reinterpret_cast< wxRegion * >(argp1);
9272 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9273 if (!SWIG_IsOK(res2)) {
9274 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9275 }
9276 if (!argp2) {
9277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9278 }
9279 arg2 = reinterpret_cast< wxRegion * >(argp2);
9280 {
9281 PyThreadState* __tstate = wxPyBeginAllowThreads();
9282 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9283 wxPyEndAllowThreads(__tstate);
9284 if (PyErr_Occurred()) SWIG_fail;
9285 }
9286 {
9287 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9288 }
9289 return resultobj;
9290 fail:
9291 return NULL;
9292 }
9293
9294
9295 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9296 PyObject *resultobj = 0;
9297 wxRegion *arg1 = (wxRegion *) 0 ;
9298 int arg2 ;
9299 int arg3 ;
9300 int arg4 ;
9301 int arg5 ;
9302 bool result;
9303 void *argp1 = 0 ;
9304 int res1 = 0 ;
9305 int val2 ;
9306 int ecode2 = 0 ;
9307 int val3 ;
9308 int ecode3 = 0 ;
9309 int val4 ;
9310 int ecode4 = 0 ;
9311 int val5 ;
9312 int ecode5 = 0 ;
9313 PyObject * obj0 = 0 ;
9314 PyObject * obj1 = 0 ;
9315 PyObject * obj2 = 0 ;
9316 PyObject * obj3 = 0 ;
9317 PyObject * obj4 = 0 ;
9318 char * kwnames[] = {
9319 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9320 };
9321
9322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9324 if (!SWIG_IsOK(res1)) {
9325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9326 }
9327 arg1 = reinterpret_cast< wxRegion * >(argp1);
9328 ecode2 = SWIG_AsVal_int(obj1, &val2);
9329 if (!SWIG_IsOK(ecode2)) {
9330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9331 }
9332 arg2 = static_cast< int >(val2);
9333 ecode3 = SWIG_AsVal_int(obj2, &val3);
9334 if (!SWIG_IsOK(ecode3)) {
9335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9336 }
9337 arg3 = static_cast< int >(val3);
9338 ecode4 = SWIG_AsVal_int(obj3, &val4);
9339 if (!SWIG_IsOK(ecode4)) {
9340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9341 }
9342 arg4 = static_cast< int >(val4);
9343 ecode5 = SWIG_AsVal_int(obj4, &val5);
9344 if (!SWIG_IsOK(ecode5)) {
9345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9346 }
9347 arg5 = static_cast< int >(val5);
9348 {
9349 PyThreadState* __tstate = wxPyBeginAllowThreads();
9350 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9351 wxPyEndAllowThreads(__tstate);
9352 if (PyErr_Occurred()) SWIG_fail;
9353 }
9354 {
9355 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9356 }
9357 return resultobj;
9358 fail:
9359 return NULL;
9360 }
9361
9362
9363 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9364 PyObject *resultobj = 0;
9365 wxRegion *arg1 = (wxRegion *) 0 ;
9366 wxRect *arg2 = 0 ;
9367 bool result;
9368 void *argp1 = 0 ;
9369 int res1 = 0 ;
9370 wxRect temp2 ;
9371 PyObject * obj0 = 0 ;
9372 PyObject * obj1 = 0 ;
9373 char * kwnames[] = {
9374 (char *) "self",(char *) "rect", NULL
9375 };
9376
9377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9379 if (!SWIG_IsOK(res1)) {
9380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9381 }
9382 arg1 = reinterpret_cast< wxRegion * >(argp1);
9383 {
9384 arg2 = &temp2;
9385 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9386 }
9387 {
9388 PyThreadState* __tstate = wxPyBeginAllowThreads();
9389 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9390 wxPyEndAllowThreads(__tstate);
9391 if (PyErr_Occurred()) SWIG_fail;
9392 }
9393 {
9394 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9395 }
9396 return resultobj;
9397 fail:
9398 return NULL;
9399 }
9400
9401
9402 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9403 PyObject *resultobj = 0;
9404 wxRegion *arg1 = (wxRegion *) 0 ;
9405 wxRegion *arg2 = 0 ;
9406 bool result;
9407 void *argp1 = 0 ;
9408 int res1 = 0 ;
9409 void *argp2 = 0 ;
9410 int res2 = 0 ;
9411 PyObject * obj0 = 0 ;
9412 PyObject * obj1 = 0 ;
9413 char * kwnames[] = {
9414 (char *) "self",(char *) "region", NULL
9415 };
9416
9417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9419 if (!SWIG_IsOK(res1)) {
9420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9421 }
9422 arg1 = reinterpret_cast< wxRegion * >(argp1);
9423 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9424 if (!SWIG_IsOK(res2)) {
9425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9426 }
9427 if (!argp2) {
9428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9429 }
9430 arg2 = reinterpret_cast< wxRegion * >(argp2);
9431 {
9432 PyThreadState* __tstate = wxPyBeginAllowThreads();
9433 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9434 wxPyEndAllowThreads(__tstate);
9435 if (PyErr_Occurred()) SWIG_fail;
9436 }
9437 {
9438 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9439 }
9440 return resultobj;
9441 fail:
9442 return NULL;
9443 }
9444
9445
9446 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9447 PyObject *resultobj = 0;
9448 wxRegion *arg1 = (wxRegion *) 0 ;
9449 SwigValueWrapper<wxBitmap > result;
9450 void *argp1 = 0 ;
9451 int res1 = 0 ;
9452 PyObject *swig_obj[1] ;
9453
9454 if (!args) SWIG_fail;
9455 swig_obj[0] = args;
9456 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9457 if (!SWIG_IsOK(res1)) {
9458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9459 }
9460 arg1 = reinterpret_cast< wxRegion * >(argp1);
9461 {
9462 PyThreadState* __tstate = wxPyBeginAllowThreads();
9463 result = (arg1)->ConvertToBitmap();
9464 wxPyEndAllowThreads(__tstate);
9465 if (PyErr_Occurred()) SWIG_fail;
9466 }
9467 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9468 return resultobj;
9469 fail:
9470 return NULL;
9471 }
9472
9473
9474 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9475 PyObject *resultobj = 0;
9476 wxRegion *arg1 = (wxRegion *) 0 ;
9477 wxBitmap *arg2 = 0 ;
9478 bool result;
9479 void *argp1 = 0 ;
9480 int res1 = 0 ;
9481 void *argp2 = 0 ;
9482 int res2 = 0 ;
9483 PyObject * obj0 = 0 ;
9484 PyObject * obj1 = 0 ;
9485 char * kwnames[] = {
9486 (char *) "self",(char *) "bmp", NULL
9487 };
9488
9489 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9490 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9491 if (!SWIG_IsOK(res1)) {
9492 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9493 }
9494 arg1 = reinterpret_cast< wxRegion * >(argp1);
9495 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9496 if (!SWIG_IsOK(res2)) {
9497 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9498 }
9499 if (!argp2) {
9500 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9501 }
9502 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9503 {
9504 PyThreadState* __tstate = wxPyBeginAllowThreads();
9505 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9506 wxPyEndAllowThreads(__tstate);
9507 if (PyErr_Occurred()) SWIG_fail;
9508 }
9509 {
9510 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9511 }
9512 return resultobj;
9513 fail:
9514 return NULL;
9515 }
9516
9517
9518 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9519 PyObject *resultobj = 0;
9520 wxRegion *arg1 = (wxRegion *) 0 ;
9521 wxBitmap *arg2 = 0 ;
9522 wxColour *arg3 = 0 ;
9523 int arg4 = (int) 0 ;
9524 bool result;
9525 void *argp1 = 0 ;
9526 int res1 = 0 ;
9527 void *argp2 = 0 ;
9528 int res2 = 0 ;
9529 wxColour temp3 ;
9530 int val4 ;
9531 int ecode4 = 0 ;
9532 PyObject * obj0 = 0 ;
9533 PyObject * obj1 = 0 ;
9534 PyObject * obj2 = 0 ;
9535 PyObject * obj3 = 0 ;
9536 char * kwnames[] = {
9537 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9538 };
9539
9540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9542 if (!SWIG_IsOK(res1)) {
9543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9544 }
9545 arg1 = reinterpret_cast< wxRegion * >(argp1);
9546 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9547 if (!SWIG_IsOK(res2)) {
9548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9549 }
9550 if (!argp2) {
9551 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9552 }
9553 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9554 {
9555 arg3 = &temp3;
9556 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9557 }
9558 if (obj3) {
9559 ecode4 = SWIG_AsVal_int(obj3, &val4);
9560 if (!SWIG_IsOK(ecode4)) {
9561 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9562 }
9563 arg4 = static_cast< int >(val4);
9564 }
9565 {
9566 PyThreadState* __tstate = wxPyBeginAllowThreads();
9567 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9568 wxPyEndAllowThreads(__tstate);
9569 if (PyErr_Occurred()) SWIG_fail;
9570 }
9571 {
9572 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9573 }
9574 return resultobj;
9575 fail:
9576 return NULL;
9577 }
9578
9579
9580 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9581 PyObject *obj;
9582 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9583 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9584 return SWIG_Py_Void();
9585 }
9586
9587 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9588 return SWIG_Python_InitShadowInstance(args);
9589 }
9590
9591 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9592 PyObject *resultobj = 0;
9593 wxRegion *arg1 = 0 ;
9594 wxRegionIterator *result = 0 ;
9595 void *argp1 = 0 ;
9596 int res1 = 0 ;
9597 PyObject * obj0 = 0 ;
9598 char * kwnames[] = {
9599 (char *) "region", NULL
9600 };
9601
9602 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9603 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9604 if (!SWIG_IsOK(res1)) {
9605 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9606 }
9607 if (!argp1) {
9608 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9609 }
9610 arg1 = reinterpret_cast< wxRegion * >(argp1);
9611 {
9612 if (!wxPyCheckForApp()) SWIG_fail;
9613 PyThreadState* __tstate = wxPyBeginAllowThreads();
9614 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9615 wxPyEndAllowThreads(__tstate);
9616 if (PyErr_Occurred()) SWIG_fail;
9617 }
9618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9619 return resultobj;
9620 fail:
9621 return NULL;
9622 }
9623
9624
9625 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9626 PyObject *resultobj = 0;
9627 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9628 void *argp1 = 0 ;
9629 int res1 = 0 ;
9630 PyObject *swig_obj[1] ;
9631
9632 if (!args) SWIG_fail;
9633 swig_obj[0] = args;
9634 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9635 if (!SWIG_IsOK(res1)) {
9636 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9637 }
9638 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9639 {
9640 PyThreadState* __tstate = wxPyBeginAllowThreads();
9641 delete arg1;
9642
9643 wxPyEndAllowThreads(__tstate);
9644 if (PyErr_Occurred()) SWIG_fail;
9645 }
9646 resultobj = SWIG_Py_Void();
9647 return resultobj;
9648 fail:
9649 return NULL;
9650 }
9651
9652
9653 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9654 PyObject *resultobj = 0;
9655 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9656 int result;
9657 void *argp1 = 0 ;
9658 int res1 = 0 ;
9659 PyObject *swig_obj[1] ;
9660
9661 if (!args) SWIG_fail;
9662 swig_obj[0] = args;
9663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9664 if (!SWIG_IsOK(res1)) {
9665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9666 }
9667 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9668 {
9669 PyThreadState* __tstate = wxPyBeginAllowThreads();
9670 result = (int)(arg1)->GetX();
9671 wxPyEndAllowThreads(__tstate);
9672 if (PyErr_Occurred()) SWIG_fail;
9673 }
9674 resultobj = SWIG_From_int(static_cast< int >(result));
9675 return resultobj;
9676 fail:
9677 return NULL;
9678 }
9679
9680
9681 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9682 PyObject *resultobj = 0;
9683 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9684 int result;
9685 void *argp1 = 0 ;
9686 int res1 = 0 ;
9687 PyObject *swig_obj[1] ;
9688
9689 if (!args) SWIG_fail;
9690 swig_obj[0] = args;
9691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9692 if (!SWIG_IsOK(res1)) {
9693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9694 }
9695 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9696 {
9697 PyThreadState* __tstate = wxPyBeginAllowThreads();
9698 result = (int)(arg1)->GetY();
9699 wxPyEndAllowThreads(__tstate);
9700 if (PyErr_Occurred()) SWIG_fail;
9701 }
9702 resultobj = SWIG_From_int(static_cast< int >(result));
9703 return resultobj;
9704 fail:
9705 return NULL;
9706 }
9707
9708
9709 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9710 PyObject *resultobj = 0;
9711 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9712 int result;
9713 void *argp1 = 0 ;
9714 int res1 = 0 ;
9715 PyObject *swig_obj[1] ;
9716
9717 if (!args) SWIG_fail;
9718 swig_obj[0] = args;
9719 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9720 if (!SWIG_IsOK(res1)) {
9721 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9722 }
9723 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9724 {
9725 PyThreadState* __tstate = wxPyBeginAllowThreads();
9726 result = (int)(arg1)->GetW();
9727 wxPyEndAllowThreads(__tstate);
9728 if (PyErr_Occurred()) SWIG_fail;
9729 }
9730 resultobj = SWIG_From_int(static_cast< int >(result));
9731 return resultobj;
9732 fail:
9733 return NULL;
9734 }
9735
9736
9737 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9738 PyObject *resultobj = 0;
9739 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9740 int result;
9741 void *argp1 = 0 ;
9742 int res1 = 0 ;
9743 PyObject *swig_obj[1] ;
9744
9745 if (!args) SWIG_fail;
9746 swig_obj[0] = args;
9747 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9748 if (!SWIG_IsOK(res1)) {
9749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9750 }
9751 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9752 {
9753 PyThreadState* __tstate = wxPyBeginAllowThreads();
9754 result = (int)(arg1)->GetWidth();
9755 wxPyEndAllowThreads(__tstate);
9756 if (PyErr_Occurred()) SWIG_fail;
9757 }
9758 resultobj = SWIG_From_int(static_cast< int >(result));
9759 return resultobj;
9760 fail:
9761 return NULL;
9762 }
9763
9764
9765 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9766 PyObject *resultobj = 0;
9767 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9768 int result;
9769 void *argp1 = 0 ;
9770 int res1 = 0 ;
9771 PyObject *swig_obj[1] ;
9772
9773 if (!args) SWIG_fail;
9774 swig_obj[0] = args;
9775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9776 if (!SWIG_IsOK(res1)) {
9777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9778 }
9779 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9780 {
9781 PyThreadState* __tstate = wxPyBeginAllowThreads();
9782 result = (int)(arg1)->GetH();
9783 wxPyEndAllowThreads(__tstate);
9784 if (PyErr_Occurred()) SWIG_fail;
9785 }
9786 resultobj = SWIG_From_int(static_cast< int >(result));
9787 return resultobj;
9788 fail:
9789 return NULL;
9790 }
9791
9792
9793 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9794 PyObject *resultobj = 0;
9795 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9796 int result;
9797 void *argp1 = 0 ;
9798 int res1 = 0 ;
9799 PyObject *swig_obj[1] ;
9800
9801 if (!args) SWIG_fail;
9802 swig_obj[0] = args;
9803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9804 if (!SWIG_IsOK(res1)) {
9805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9806 }
9807 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9808 {
9809 PyThreadState* __tstate = wxPyBeginAllowThreads();
9810 result = (int)(arg1)->GetHeight();
9811 wxPyEndAllowThreads(__tstate);
9812 if (PyErr_Occurred()) SWIG_fail;
9813 }
9814 resultobj = SWIG_From_int(static_cast< int >(result));
9815 return resultobj;
9816 fail:
9817 return NULL;
9818 }
9819
9820
9821 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9822 PyObject *resultobj = 0;
9823 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9824 wxRect result;
9825 void *argp1 = 0 ;
9826 int res1 = 0 ;
9827 PyObject *swig_obj[1] ;
9828
9829 if (!args) SWIG_fail;
9830 swig_obj[0] = args;
9831 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9832 if (!SWIG_IsOK(res1)) {
9833 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9834 }
9835 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9836 {
9837 PyThreadState* __tstate = wxPyBeginAllowThreads();
9838 result = (arg1)->GetRect();
9839 wxPyEndAllowThreads(__tstate);
9840 if (PyErr_Occurred()) SWIG_fail;
9841 }
9842 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9843 return resultobj;
9844 fail:
9845 return NULL;
9846 }
9847
9848
9849 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9850 PyObject *resultobj = 0;
9851 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9852 bool result;
9853 void *argp1 = 0 ;
9854 int res1 = 0 ;
9855 PyObject *swig_obj[1] ;
9856
9857 if (!args) SWIG_fail;
9858 swig_obj[0] = args;
9859 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9860 if (!SWIG_IsOK(res1)) {
9861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9862 }
9863 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9864 {
9865 PyThreadState* __tstate = wxPyBeginAllowThreads();
9866 result = (bool)(arg1)->HaveRects();
9867 wxPyEndAllowThreads(__tstate);
9868 if (PyErr_Occurred()) SWIG_fail;
9869 }
9870 {
9871 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9872 }
9873 return resultobj;
9874 fail:
9875 return NULL;
9876 }
9877
9878
9879 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9880 PyObject *resultobj = 0;
9881 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9882 void *argp1 = 0 ;
9883 int res1 = 0 ;
9884 PyObject *swig_obj[1] ;
9885
9886 if (!args) SWIG_fail;
9887 swig_obj[0] = args;
9888 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9889 if (!SWIG_IsOK(res1)) {
9890 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9891 }
9892 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9893 {
9894 PyThreadState* __tstate = wxPyBeginAllowThreads();
9895 (arg1)->Reset();
9896 wxPyEndAllowThreads(__tstate);
9897 if (PyErr_Occurred()) SWIG_fail;
9898 }
9899 resultobj = SWIG_Py_Void();
9900 return resultobj;
9901 fail:
9902 return NULL;
9903 }
9904
9905
9906 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9907 PyObject *resultobj = 0;
9908 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9909 void *argp1 = 0 ;
9910 int res1 = 0 ;
9911 PyObject *swig_obj[1] ;
9912
9913 if (!args) SWIG_fail;
9914 swig_obj[0] = args;
9915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9916 if (!SWIG_IsOK(res1)) {
9917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9918 }
9919 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9920 {
9921 PyThreadState* __tstate = wxPyBeginAllowThreads();
9922 wxRegionIterator_Next(arg1);
9923 wxPyEndAllowThreads(__tstate);
9924 if (PyErr_Occurred()) SWIG_fail;
9925 }
9926 resultobj = SWIG_Py_Void();
9927 return resultobj;
9928 fail:
9929 return NULL;
9930 }
9931
9932
9933 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9934 PyObject *resultobj = 0;
9935 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9936 bool result;
9937 void *argp1 = 0 ;
9938 int res1 = 0 ;
9939 PyObject *swig_obj[1] ;
9940
9941 if (!args) SWIG_fail;
9942 swig_obj[0] = args;
9943 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9944 if (!SWIG_IsOK(res1)) {
9945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9946 }
9947 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9948 {
9949 PyThreadState* __tstate = wxPyBeginAllowThreads();
9950 result = (bool)wxRegionIterator___nonzero__(arg1);
9951 wxPyEndAllowThreads(__tstate);
9952 if (PyErr_Occurred()) SWIG_fail;
9953 }
9954 {
9955 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9956 }
9957 return resultobj;
9958 fail:
9959 return NULL;
9960 }
9961
9962
9963 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9964 PyObject *obj;
9965 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9966 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9967 return SWIG_Py_Void();
9968 }
9969
9970 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9971 return SWIG_Python_InitShadowInstance(args);
9972 }
9973
9974 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9975 PyObject *resultobj = 0;
9976 wxNativeFontInfo *result = 0 ;
9977
9978 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9979 {
9980 PyThreadState* __tstate = wxPyBeginAllowThreads();
9981 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9982 wxPyEndAllowThreads(__tstate);
9983 if (PyErr_Occurred()) SWIG_fail;
9984 }
9985 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9986 return resultobj;
9987 fail:
9988 return NULL;
9989 }
9990
9991
9992 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9993 PyObject *resultobj = 0;
9994 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9995 void *argp1 = 0 ;
9996 int res1 = 0 ;
9997 PyObject *swig_obj[1] ;
9998
9999 if (!args) SWIG_fail;
10000 swig_obj[0] = args;
10001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
10002 if (!SWIG_IsOK(res1)) {
10003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10004 }
10005 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10006 {
10007 PyThreadState* __tstate = wxPyBeginAllowThreads();
10008 delete arg1;
10009
10010 wxPyEndAllowThreads(__tstate);
10011 if (PyErr_Occurred()) SWIG_fail;
10012 }
10013 resultobj = SWIG_Py_Void();
10014 return resultobj;
10015 fail:
10016 return NULL;
10017 }
10018
10019
10020 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10021 PyObject *resultobj = 0;
10022 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10023 void *argp1 = 0 ;
10024 int res1 = 0 ;
10025 PyObject *swig_obj[1] ;
10026
10027 if (!args) SWIG_fail;
10028 swig_obj[0] = args;
10029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10030 if (!SWIG_IsOK(res1)) {
10031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10032 }
10033 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10034 {
10035 PyThreadState* __tstate = wxPyBeginAllowThreads();
10036 (arg1)->Init();
10037 wxPyEndAllowThreads(__tstate);
10038 if (PyErr_Occurred()) SWIG_fail;
10039 }
10040 resultobj = SWIG_Py_Void();
10041 return resultobj;
10042 fail:
10043 return NULL;
10044 }
10045
10046
10047 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10048 PyObject *resultobj = 0;
10049 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10050 wxFont *arg2 = 0 ;
10051 void *argp1 = 0 ;
10052 int res1 = 0 ;
10053 void *argp2 = 0 ;
10054 int res2 = 0 ;
10055 PyObject * obj0 = 0 ;
10056 PyObject * obj1 = 0 ;
10057 char * kwnames[] = {
10058 (char *) "self",(char *) "font", NULL
10059 };
10060
10061 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10062 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10063 if (!SWIG_IsOK(res1)) {
10064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10065 }
10066 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10067 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10068 if (!SWIG_IsOK(res2)) {
10069 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10070 }
10071 if (!argp2) {
10072 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10073 }
10074 arg2 = reinterpret_cast< wxFont * >(argp2);
10075 {
10076 PyThreadState* __tstate = wxPyBeginAllowThreads();
10077 (arg1)->InitFromFont((wxFont const &)*arg2);
10078 wxPyEndAllowThreads(__tstate);
10079 if (PyErr_Occurred()) SWIG_fail;
10080 }
10081 resultobj = SWIG_Py_Void();
10082 return resultobj;
10083 fail:
10084 return NULL;
10085 }
10086
10087
10088 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10089 PyObject *resultobj = 0;
10090 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10091 int result;
10092 void *argp1 = 0 ;
10093 int res1 = 0 ;
10094 PyObject *swig_obj[1] ;
10095
10096 if (!args) SWIG_fail;
10097 swig_obj[0] = args;
10098 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10099 if (!SWIG_IsOK(res1)) {
10100 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10101 }
10102 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10103 {
10104 PyThreadState* __tstate = wxPyBeginAllowThreads();
10105 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10106 wxPyEndAllowThreads(__tstate);
10107 if (PyErr_Occurred()) SWIG_fail;
10108 }
10109 resultobj = SWIG_From_int(static_cast< int >(result));
10110 return resultobj;
10111 fail:
10112 return NULL;
10113 }
10114
10115
10116 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10117 PyObject *resultobj = 0;
10118 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10119 wxSize result;
10120 void *argp1 = 0 ;
10121 int res1 = 0 ;
10122 PyObject *swig_obj[1] ;
10123
10124 if (!args) SWIG_fail;
10125 swig_obj[0] = args;
10126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10127 if (!SWIG_IsOK(res1)) {
10128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10129 }
10130 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10131 {
10132 PyThreadState* __tstate = wxPyBeginAllowThreads();
10133 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10134 wxPyEndAllowThreads(__tstate);
10135 if (PyErr_Occurred()) SWIG_fail;
10136 }
10137 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10138 return resultobj;
10139 fail:
10140 return NULL;
10141 }
10142
10143
10144 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10145 PyObject *resultobj = 0;
10146 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10147 wxFontStyle result;
10148 void *argp1 = 0 ;
10149 int res1 = 0 ;
10150 PyObject *swig_obj[1] ;
10151
10152 if (!args) SWIG_fail;
10153 swig_obj[0] = args;
10154 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10155 if (!SWIG_IsOK(res1)) {
10156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10157 }
10158 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10159 {
10160 PyThreadState* __tstate = wxPyBeginAllowThreads();
10161 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10162 wxPyEndAllowThreads(__tstate);
10163 if (PyErr_Occurred()) SWIG_fail;
10164 }
10165 resultobj = SWIG_From_int(static_cast< int >(result));
10166 return resultobj;
10167 fail:
10168 return NULL;
10169 }
10170
10171
10172 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10173 PyObject *resultobj = 0;
10174 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10175 wxFontWeight result;
10176 void *argp1 = 0 ;
10177 int res1 = 0 ;
10178 PyObject *swig_obj[1] ;
10179
10180 if (!args) SWIG_fail;
10181 swig_obj[0] = args;
10182 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10183 if (!SWIG_IsOK(res1)) {
10184 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10185 }
10186 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10187 {
10188 PyThreadState* __tstate = wxPyBeginAllowThreads();
10189 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10190 wxPyEndAllowThreads(__tstate);
10191 if (PyErr_Occurred()) SWIG_fail;
10192 }
10193 resultobj = SWIG_From_int(static_cast< int >(result));
10194 return resultobj;
10195 fail:
10196 return NULL;
10197 }
10198
10199
10200 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10201 PyObject *resultobj = 0;
10202 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10203 bool result;
10204 void *argp1 = 0 ;
10205 int res1 = 0 ;
10206 PyObject *swig_obj[1] ;
10207
10208 if (!args) SWIG_fail;
10209 swig_obj[0] = args;
10210 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10211 if (!SWIG_IsOK(res1)) {
10212 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10213 }
10214 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10215 {
10216 PyThreadState* __tstate = wxPyBeginAllowThreads();
10217 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10218 wxPyEndAllowThreads(__tstate);
10219 if (PyErr_Occurred()) SWIG_fail;
10220 }
10221 {
10222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10223 }
10224 return resultobj;
10225 fail:
10226 return NULL;
10227 }
10228
10229
10230 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10231 PyObject *resultobj = 0;
10232 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10233 wxString result;
10234 void *argp1 = 0 ;
10235 int res1 = 0 ;
10236 PyObject *swig_obj[1] ;
10237
10238 if (!args) SWIG_fail;
10239 swig_obj[0] = args;
10240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10241 if (!SWIG_IsOK(res1)) {
10242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10243 }
10244 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10245 {
10246 PyThreadState* __tstate = wxPyBeginAllowThreads();
10247 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10248 wxPyEndAllowThreads(__tstate);
10249 if (PyErr_Occurred()) SWIG_fail;
10250 }
10251 {
10252 #if wxUSE_UNICODE
10253 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10254 #else
10255 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10256 #endif
10257 }
10258 return resultobj;
10259 fail:
10260 return NULL;
10261 }
10262
10263
10264 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10265 PyObject *resultobj = 0;
10266 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10267 wxFontFamily result;
10268 void *argp1 = 0 ;
10269 int res1 = 0 ;
10270 PyObject *swig_obj[1] ;
10271
10272 if (!args) SWIG_fail;
10273 swig_obj[0] = args;
10274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10275 if (!SWIG_IsOK(res1)) {
10276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10277 }
10278 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10279 {
10280 PyThreadState* __tstate = wxPyBeginAllowThreads();
10281 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10282 wxPyEndAllowThreads(__tstate);
10283 if (PyErr_Occurred()) SWIG_fail;
10284 }
10285 resultobj = SWIG_From_int(static_cast< int >(result));
10286 return resultobj;
10287 fail:
10288 return NULL;
10289 }
10290
10291
10292 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10293 PyObject *resultobj = 0;
10294 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10295 wxFontEncoding result;
10296 void *argp1 = 0 ;
10297 int res1 = 0 ;
10298 PyObject *swig_obj[1] ;
10299
10300 if (!args) SWIG_fail;
10301 swig_obj[0] = args;
10302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10303 if (!SWIG_IsOK(res1)) {
10304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10305 }
10306 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10307 {
10308 PyThreadState* __tstate = wxPyBeginAllowThreads();
10309 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10310 wxPyEndAllowThreads(__tstate);
10311 if (PyErr_Occurred()) SWIG_fail;
10312 }
10313 resultobj = SWIG_From_int(static_cast< int >(result));
10314 return resultobj;
10315 fail:
10316 return NULL;
10317 }
10318
10319
10320 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10321 PyObject *resultobj = 0;
10322 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10323 int arg2 ;
10324 void *argp1 = 0 ;
10325 int res1 = 0 ;
10326 int val2 ;
10327 int ecode2 = 0 ;
10328 PyObject * obj0 = 0 ;
10329 PyObject * obj1 = 0 ;
10330 char * kwnames[] = {
10331 (char *) "self",(char *) "pointsize", NULL
10332 };
10333
10334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10335 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10336 if (!SWIG_IsOK(res1)) {
10337 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10338 }
10339 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10340 ecode2 = SWIG_AsVal_int(obj1, &val2);
10341 if (!SWIG_IsOK(ecode2)) {
10342 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10343 }
10344 arg2 = static_cast< int >(val2);
10345 {
10346 PyThreadState* __tstate = wxPyBeginAllowThreads();
10347 (arg1)->SetPointSize(arg2);
10348 wxPyEndAllowThreads(__tstate);
10349 if (PyErr_Occurred()) SWIG_fail;
10350 }
10351 resultobj = SWIG_Py_Void();
10352 return resultobj;
10353 fail:
10354 return NULL;
10355 }
10356
10357
10358 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10359 PyObject *resultobj = 0;
10360 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10361 wxSize *arg2 = 0 ;
10362 void *argp1 = 0 ;
10363 int res1 = 0 ;
10364 wxSize temp2 ;
10365 PyObject * obj0 = 0 ;
10366 PyObject * obj1 = 0 ;
10367 char * kwnames[] = {
10368 (char *) "self",(char *) "pixelSize", NULL
10369 };
10370
10371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10373 if (!SWIG_IsOK(res1)) {
10374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10375 }
10376 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10377 {
10378 arg2 = &temp2;
10379 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10380 }
10381 {
10382 PyThreadState* __tstate = wxPyBeginAllowThreads();
10383 (arg1)->SetPixelSize((wxSize const &)*arg2);
10384 wxPyEndAllowThreads(__tstate);
10385 if (PyErr_Occurred()) SWIG_fail;
10386 }
10387 resultobj = SWIG_Py_Void();
10388 return resultobj;
10389 fail:
10390 return NULL;
10391 }
10392
10393
10394 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10395 PyObject *resultobj = 0;
10396 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10397 wxFontStyle arg2 ;
10398 void *argp1 = 0 ;
10399 int res1 = 0 ;
10400 int val2 ;
10401 int ecode2 = 0 ;
10402 PyObject * obj0 = 0 ;
10403 PyObject * obj1 = 0 ;
10404 char * kwnames[] = {
10405 (char *) "self",(char *) "style", NULL
10406 };
10407
10408 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10409 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10410 if (!SWIG_IsOK(res1)) {
10411 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10412 }
10413 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10414 ecode2 = SWIG_AsVal_int(obj1, &val2);
10415 if (!SWIG_IsOK(ecode2)) {
10416 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10417 }
10418 arg2 = static_cast< wxFontStyle >(val2);
10419 {
10420 PyThreadState* __tstate = wxPyBeginAllowThreads();
10421 (arg1)->SetStyle(arg2);
10422 wxPyEndAllowThreads(__tstate);
10423 if (PyErr_Occurred()) SWIG_fail;
10424 }
10425 resultobj = SWIG_Py_Void();
10426 return resultobj;
10427 fail:
10428 return NULL;
10429 }
10430
10431
10432 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10433 PyObject *resultobj = 0;
10434 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10435 wxFontWeight arg2 ;
10436 void *argp1 = 0 ;
10437 int res1 = 0 ;
10438 int val2 ;
10439 int ecode2 = 0 ;
10440 PyObject * obj0 = 0 ;
10441 PyObject * obj1 = 0 ;
10442 char * kwnames[] = {
10443 (char *) "self",(char *) "weight", NULL
10444 };
10445
10446 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10447 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10448 if (!SWIG_IsOK(res1)) {
10449 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10450 }
10451 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10452 ecode2 = SWIG_AsVal_int(obj1, &val2);
10453 if (!SWIG_IsOK(ecode2)) {
10454 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10455 }
10456 arg2 = static_cast< wxFontWeight >(val2);
10457 {
10458 PyThreadState* __tstate = wxPyBeginAllowThreads();
10459 (arg1)->SetWeight(arg2);
10460 wxPyEndAllowThreads(__tstate);
10461 if (PyErr_Occurred()) SWIG_fail;
10462 }
10463 resultobj = SWIG_Py_Void();
10464 return resultobj;
10465 fail:
10466 return NULL;
10467 }
10468
10469
10470 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10471 PyObject *resultobj = 0;
10472 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10473 bool arg2 ;
10474 void *argp1 = 0 ;
10475 int res1 = 0 ;
10476 bool val2 ;
10477 int ecode2 = 0 ;
10478 PyObject * obj0 = 0 ;
10479 PyObject * obj1 = 0 ;
10480 char * kwnames[] = {
10481 (char *) "self",(char *) "underlined", NULL
10482 };
10483
10484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10486 if (!SWIG_IsOK(res1)) {
10487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10488 }
10489 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10490 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10491 if (!SWIG_IsOK(ecode2)) {
10492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10493 }
10494 arg2 = static_cast< bool >(val2);
10495 {
10496 PyThreadState* __tstate = wxPyBeginAllowThreads();
10497 (arg1)->SetUnderlined(arg2);
10498 wxPyEndAllowThreads(__tstate);
10499 if (PyErr_Occurred()) SWIG_fail;
10500 }
10501 resultobj = SWIG_Py_Void();
10502 return resultobj;
10503 fail:
10504 return NULL;
10505 }
10506
10507
10508 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10509 PyObject *resultobj = 0;
10510 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10511 wxString arg2 ;
10512 bool result;
10513 void *argp1 = 0 ;
10514 int res1 = 0 ;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10517 char * kwnames[] = {
10518 (char *) "self",(char *) "facename", NULL
10519 };
10520
10521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10523 if (!SWIG_IsOK(res1)) {
10524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10525 }
10526 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10527 {
10528 wxString* sptr = wxString_in_helper(obj1);
10529 if (sptr == NULL) SWIG_fail;
10530 arg2 = *sptr;
10531 delete sptr;
10532 }
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 result = (bool)(arg1)->SetFaceName(arg2);
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 {
10540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10541 }
10542 return resultobj;
10543 fail:
10544 return NULL;
10545 }
10546
10547
10548 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10549 PyObject *resultobj = 0;
10550 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10551 wxFontFamily arg2 ;
10552 void *argp1 = 0 ;
10553 int res1 = 0 ;
10554 int val2 ;
10555 int ecode2 = 0 ;
10556 PyObject * obj0 = 0 ;
10557 PyObject * obj1 = 0 ;
10558 char * kwnames[] = {
10559 (char *) "self",(char *) "family", NULL
10560 };
10561
10562 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10563 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10564 if (!SWIG_IsOK(res1)) {
10565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10566 }
10567 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10568 ecode2 = SWIG_AsVal_int(obj1, &val2);
10569 if (!SWIG_IsOK(ecode2)) {
10570 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10571 }
10572 arg2 = static_cast< wxFontFamily >(val2);
10573 {
10574 PyThreadState* __tstate = wxPyBeginAllowThreads();
10575 (arg1)->SetFamily(arg2);
10576 wxPyEndAllowThreads(__tstate);
10577 if (PyErr_Occurred()) SWIG_fail;
10578 }
10579 resultobj = SWIG_Py_Void();
10580 return resultobj;
10581 fail:
10582 return NULL;
10583 }
10584
10585
10586 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10587 PyObject *resultobj = 0;
10588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10589 wxFontEncoding arg2 ;
10590 void *argp1 = 0 ;
10591 int res1 = 0 ;
10592 int val2 ;
10593 int ecode2 = 0 ;
10594 PyObject * obj0 = 0 ;
10595 PyObject * obj1 = 0 ;
10596 char * kwnames[] = {
10597 (char *) "self",(char *) "encoding", NULL
10598 };
10599
10600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10602 if (!SWIG_IsOK(res1)) {
10603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10604 }
10605 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10606 ecode2 = SWIG_AsVal_int(obj1, &val2);
10607 if (!SWIG_IsOK(ecode2)) {
10608 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10609 }
10610 arg2 = static_cast< wxFontEncoding >(val2);
10611 {
10612 PyThreadState* __tstate = wxPyBeginAllowThreads();
10613 (arg1)->SetEncoding(arg2);
10614 wxPyEndAllowThreads(__tstate);
10615 if (PyErr_Occurred()) SWIG_fail;
10616 }
10617 resultobj = SWIG_Py_Void();
10618 return resultobj;
10619 fail:
10620 return NULL;
10621 }
10622
10623
10624 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10625 PyObject *resultobj = 0;
10626 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10627 wxString *arg2 = 0 ;
10628 bool result;
10629 void *argp1 = 0 ;
10630 int res1 = 0 ;
10631 bool temp2 = false ;
10632 PyObject * obj0 = 0 ;
10633 PyObject * obj1 = 0 ;
10634 char * kwnames[] = {
10635 (char *) "self",(char *) "s", NULL
10636 };
10637
10638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10640 if (!SWIG_IsOK(res1)) {
10641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10642 }
10643 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10644 {
10645 arg2 = wxString_in_helper(obj1);
10646 if (arg2 == NULL) SWIG_fail;
10647 temp2 = true;
10648 }
10649 {
10650 PyThreadState* __tstate = wxPyBeginAllowThreads();
10651 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10652 wxPyEndAllowThreads(__tstate);
10653 if (PyErr_Occurred()) SWIG_fail;
10654 }
10655 {
10656 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10657 }
10658 {
10659 if (temp2)
10660 delete arg2;
10661 }
10662 return resultobj;
10663 fail:
10664 {
10665 if (temp2)
10666 delete arg2;
10667 }
10668 return NULL;
10669 }
10670
10671
10672 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10673 PyObject *resultobj = 0;
10674 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10675 wxString result;
10676 void *argp1 = 0 ;
10677 int res1 = 0 ;
10678 PyObject *swig_obj[1] ;
10679
10680 if (!args) SWIG_fail;
10681 swig_obj[0] = args;
10682 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10683 if (!SWIG_IsOK(res1)) {
10684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10685 }
10686 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10687 {
10688 PyThreadState* __tstate = wxPyBeginAllowThreads();
10689 result = ((wxNativeFontInfo const *)arg1)->ToString();
10690 wxPyEndAllowThreads(__tstate);
10691 if (PyErr_Occurred()) SWIG_fail;
10692 }
10693 {
10694 #if wxUSE_UNICODE
10695 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10696 #else
10697 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10698 #endif
10699 }
10700 return resultobj;
10701 fail:
10702 return NULL;
10703 }
10704
10705
10706 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10707 PyObject *resultobj = 0;
10708 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10709 wxString result;
10710 void *argp1 = 0 ;
10711 int res1 = 0 ;
10712 PyObject *swig_obj[1] ;
10713
10714 if (!args) SWIG_fail;
10715 swig_obj[0] = args;
10716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10717 if (!SWIG_IsOK(res1)) {
10718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10719 }
10720 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10721 {
10722 PyThreadState* __tstate = wxPyBeginAllowThreads();
10723 result = wxNativeFontInfo___str__(arg1);
10724 wxPyEndAllowThreads(__tstate);
10725 if (PyErr_Occurred()) SWIG_fail;
10726 }
10727 {
10728 #if wxUSE_UNICODE
10729 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10730 #else
10731 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10732 #endif
10733 }
10734 return resultobj;
10735 fail:
10736 return NULL;
10737 }
10738
10739
10740 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10741 PyObject *resultobj = 0;
10742 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10743 wxString *arg2 = 0 ;
10744 bool result;
10745 void *argp1 = 0 ;
10746 int res1 = 0 ;
10747 bool temp2 = false ;
10748 PyObject * obj0 = 0 ;
10749 PyObject * obj1 = 0 ;
10750 char * kwnames[] = {
10751 (char *) "self",(char *) "s", NULL
10752 };
10753
10754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10756 if (!SWIG_IsOK(res1)) {
10757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10758 }
10759 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10760 {
10761 arg2 = wxString_in_helper(obj1);
10762 if (arg2 == NULL) SWIG_fail;
10763 temp2 = true;
10764 }
10765 {
10766 PyThreadState* __tstate = wxPyBeginAllowThreads();
10767 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10768 wxPyEndAllowThreads(__tstate);
10769 if (PyErr_Occurred()) SWIG_fail;
10770 }
10771 {
10772 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10773 }
10774 {
10775 if (temp2)
10776 delete arg2;
10777 }
10778 return resultobj;
10779 fail:
10780 {
10781 if (temp2)
10782 delete arg2;
10783 }
10784 return NULL;
10785 }
10786
10787
10788 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10789 PyObject *resultobj = 0;
10790 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10791 wxString result;
10792 void *argp1 = 0 ;
10793 int res1 = 0 ;
10794 PyObject *swig_obj[1] ;
10795
10796 if (!args) SWIG_fail;
10797 swig_obj[0] = args;
10798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10799 if (!SWIG_IsOK(res1)) {
10800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10801 }
10802 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10803 {
10804 PyThreadState* __tstate = wxPyBeginAllowThreads();
10805 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10806 wxPyEndAllowThreads(__tstate);
10807 if (PyErr_Occurred()) SWIG_fail;
10808 }
10809 {
10810 #if wxUSE_UNICODE
10811 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10812 #else
10813 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10814 #endif
10815 }
10816 return resultobj;
10817 fail:
10818 return NULL;
10819 }
10820
10821
10822 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10823 PyObject *obj;
10824 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10825 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10826 return SWIG_Py_Void();
10827 }
10828
10829 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10830 return SWIG_Python_InitShadowInstance(args);
10831 }
10832
10833 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10834 PyObject *resultobj = 0;
10835 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10836 wxString *arg2 = (wxString *) 0 ;
10837 void *argp1 = 0 ;
10838 int res1 = 0 ;
10839 bool temp2 = false ;
10840 PyObject *swig_obj[2] ;
10841
10842 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10843 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10844 if (!SWIG_IsOK(res1)) {
10845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10846 }
10847 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10848 {
10849 arg2 = wxString_in_helper(swig_obj[1]);
10850 if (arg2 == NULL) SWIG_fail;
10851 temp2 = true;
10852 }
10853 if (arg1) (arg1)->facename = *arg2;
10854
10855 resultobj = SWIG_Py_Void();
10856 {
10857 if (temp2)
10858 delete arg2;
10859 }
10860 return resultobj;
10861 fail:
10862 {
10863 if (temp2)
10864 delete arg2;
10865 }
10866 return NULL;
10867 }
10868
10869
10870 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10871 PyObject *resultobj = 0;
10872 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10873 wxString *result = 0 ;
10874 void *argp1 = 0 ;
10875 int res1 = 0 ;
10876 PyObject *swig_obj[1] ;
10877
10878 if (!args) SWIG_fail;
10879 swig_obj[0] = args;
10880 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10881 if (!SWIG_IsOK(res1)) {
10882 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10883 }
10884 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10885 result = (wxString *)& ((arg1)->facename);
10886 {
10887 #if wxUSE_UNICODE
10888 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10889 #else
10890 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10891 #endif
10892 }
10893 return resultobj;
10894 fail:
10895 return NULL;
10896 }
10897
10898
10899 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10900 PyObject *resultobj = 0;
10901 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10902 wxFontEncoding arg2 ;
10903 void *argp1 = 0 ;
10904 int res1 = 0 ;
10905 int val2 ;
10906 int ecode2 = 0 ;
10907 PyObject *swig_obj[2] ;
10908
10909 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10910 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10911 if (!SWIG_IsOK(res1)) {
10912 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10913 }
10914 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10915 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10916 if (!SWIG_IsOK(ecode2)) {
10917 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10918 }
10919 arg2 = static_cast< wxFontEncoding >(val2);
10920 if (arg1) (arg1)->encoding = arg2;
10921
10922 resultobj = SWIG_Py_Void();
10923 return resultobj;
10924 fail:
10925 return NULL;
10926 }
10927
10928
10929 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10930 PyObject *resultobj = 0;
10931 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10932 wxFontEncoding result;
10933 void *argp1 = 0 ;
10934 int res1 = 0 ;
10935 PyObject *swig_obj[1] ;
10936
10937 if (!args) SWIG_fail;
10938 swig_obj[0] = args;
10939 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10940 if (!SWIG_IsOK(res1)) {
10941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10942 }
10943 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10944 result = (wxFontEncoding) ((arg1)->encoding);
10945 resultobj = SWIG_From_int(static_cast< int >(result));
10946 return resultobj;
10947 fail:
10948 return NULL;
10949 }
10950
10951
10952 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10953 PyObject *resultobj = 0;
10954 wxNativeEncodingInfo *result = 0 ;
10955
10956 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10957 {
10958 PyThreadState* __tstate = wxPyBeginAllowThreads();
10959 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10960 wxPyEndAllowThreads(__tstate);
10961 if (PyErr_Occurred()) SWIG_fail;
10962 }
10963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10964 return resultobj;
10965 fail:
10966 return NULL;
10967 }
10968
10969
10970 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10971 PyObject *resultobj = 0;
10972 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10973 void *argp1 = 0 ;
10974 int res1 = 0 ;
10975 PyObject *swig_obj[1] ;
10976
10977 if (!args) SWIG_fail;
10978 swig_obj[0] = args;
10979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10980 if (!SWIG_IsOK(res1)) {
10981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10982 }
10983 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10984 {
10985 PyThreadState* __tstate = wxPyBeginAllowThreads();
10986 delete arg1;
10987
10988 wxPyEndAllowThreads(__tstate);
10989 if (PyErr_Occurred()) SWIG_fail;
10990 }
10991 resultobj = SWIG_Py_Void();
10992 return resultobj;
10993 fail:
10994 return NULL;
10995 }
10996
10997
10998 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10999 PyObject *resultobj = 0;
11000 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11001 wxString *arg2 = 0 ;
11002 bool result;
11003 void *argp1 = 0 ;
11004 int res1 = 0 ;
11005 bool temp2 = false ;
11006 PyObject * obj0 = 0 ;
11007 PyObject * obj1 = 0 ;
11008 char * kwnames[] = {
11009 (char *) "self",(char *) "s", NULL
11010 };
11011
11012 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11013 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11014 if (!SWIG_IsOK(res1)) {
11015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11016 }
11017 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11018 {
11019 arg2 = wxString_in_helper(obj1);
11020 if (arg2 == NULL) SWIG_fail;
11021 temp2 = true;
11022 }
11023 {
11024 PyThreadState* __tstate = wxPyBeginAllowThreads();
11025 result = (bool)(arg1)->FromString((wxString const &)*arg2);
11026 wxPyEndAllowThreads(__tstate);
11027 if (PyErr_Occurred()) SWIG_fail;
11028 }
11029 {
11030 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11031 }
11032 {
11033 if (temp2)
11034 delete arg2;
11035 }
11036 return resultobj;
11037 fail:
11038 {
11039 if (temp2)
11040 delete arg2;
11041 }
11042 return NULL;
11043 }
11044
11045
11046 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11047 PyObject *resultobj = 0;
11048 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11049 wxString result;
11050 void *argp1 = 0 ;
11051 int res1 = 0 ;
11052 PyObject *swig_obj[1] ;
11053
11054 if (!args) SWIG_fail;
11055 swig_obj[0] = args;
11056 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11057 if (!SWIG_IsOK(res1)) {
11058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11059 }
11060 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11061 {
11062 PyThreadState* __tstate = wxPyBeginAllowThreads();
11063 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11064 wxPyEndAllowThreads(__tstate);
11065 if (PyErr_Occurred()) SWIG_fail;
11066 }
11067 {
11068 #if wxUSE_UNICODE
11069 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11070 #else
11071 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11072 #endif
11073 }
11074 return resultobj;
11075 fail:
11076 return NULL;
11077 }
11078
11079
11080 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11081 PyObject *obj;
11082 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11083 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11084 return SWIG_Py_Void();
11085 }
11086
11087 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11088 return SWIG_Python_InitShadowInstance(args);
11089 }
11090
11091 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11092 PyObject *resultobj = 0;
11093 wxFontEncoding arg1 ;
11094 wxNativeEncodingInfo *result = 0 ;
11095 int val1 ;
11096 int ecode1 = 0 ;
11097 PyObject * obj0 = 0 ;
11098 char * kwnames[] = {
11099 (char *) "encoding", NULL
11100 };
11101
11102 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11103 ecode1 = SWIG_AsVal_int(obj0, &val1);
11104 if (!SWIG_IsOK(ecode1)) {
11105 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11106 }
11107 arg1 = static_cast< wxFontEncoding >(val1);
11108 {
11109 PyThreadState* __tstate = wxPyBeginAllowThreads();
11110 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11111 wxPyEndAllowThreads(__tstate);
11112 if (PyErr_Occurred()) SWIG_fail;
11113 }
11114 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11115 return resultobj;
11116 fail:
11117 return NULL;
11118 }
11119
11120
11121 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11122 PyObject *resultobj = 0;
11123 wxNativeEncodingInfo *arg1 = 0 ;
11124 bool result;
11125 void *argp1 = 0 ;
11126 int res1 = 0 ;
11127 PyObject * obj0 = 0 ;
11128 char * kwnames[] = {
11129 (char *) "info", NULL
11130 };
11131
11132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11133 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11134 if (!SWIG_IsOK(res1)) {
11135 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11136 }
11137 if (!argp1) {
11138 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11139 }
11140 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11141 {
11142 PyThreadState* __tstate = wxPyBeginAllowThreads();
11143 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11144 wxPyEndAllowThreads(__tstate);
11145 if (PyErr_Occurred()) SWIG_fail;
11146 }
11147 {
11148 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11149 }
11150 return resultobj;
11151 fail:
11152 return NULL;
11153 }
11154
11155
11156 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11157 PyObject *resultobj = 0;
11158 wxFontMapper *result = 0 ;
11159
11160 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11161 {
11162 PyThreadState* __tstate = wxPyBeginAllowThreads();
11163 result = (wxFontMapper *)new wxFontMapper();
11164 wxPyEndAllowThreads(__tstate);
11165 if (PyErr_Occurred()) SWIG_fail;
11166 }
11167 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11168 return resultobj;
11169 fail:
11170 return NULL;
11171 }
11172
11173
11174 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11175 PyObject *resultobj = 0;
11176 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11177 void *argp1 = 0 ;
11178 int res1 = 0 ;
11179 PyObject *swig_obj[1] ;
11180
11181 if (!args) SWIG_fail;
11182 swig_obj[0] = args;
11183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11184 if (!SWIG_IsOK(res1)) {
11185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11186 }
11187 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11188 {
11189 PyThreadState* __tstate = wxPyBeginAllowThreads();
11190 delete arg1;
11191
11192 wxPyEndAllowThreads(__tstate);
11193 if (PyErr_Occurred()) SWIG_fail;
11194 }
11195 resultobj = SWIG_Py_Void();
11196 return resultobj;
11197 fail:
11198 return NULL;
11199 }
11200
11201
11202 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11203 PyObject *resultobj = 0;
11204 wxFontMapper *result = 0 ;
11205
11206 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11207 {
11208 PyThreadState* __tstate = wxPyBeginAllowThreads();
11209 result = (wxFontMapper *)wxFontMapper::Get();
11210 wxPyEndAllowThreads(__tstate);
11211 if (PyErr_Occurred()) SWIG_fail;
11212 }
11213 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11214 return resultobj;
11215 fail:
11216 return NULL;
11217 }
11218
11219
11220 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11221 PyObject *resultobj = 0;
11222 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11223 wxFontMapper *result = 0 ;
11224 void *argp1 = 0 ;
11225 int res1 = 0 ;
11226 PyObject * obj0 = 0 ;
11227 char * kwnames[] = {
11228 (char *) "mapper", NULL
11229 };
11230
11231 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11232 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11233 if (!SWIG_IsOK(res1)) {
11234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11235 }
11236 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11237 {
11238 PyThreadState* __tstate = wxPyBeginAllowThreads();
11239 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11240 wxPyEndAllowThreads(__tstate);
11241 if (PyErr_Occurred()) SWIG_fail;
11242 }
11243 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11244 return resultobj;
11245 fail:
11246 return NULL;
11247 }
11248
11249
11250 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11251 PyObject *resultobj = 0;
11252 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11253 wxString *arg2 = 0 ;
11254 bool arg3 = (bool) true ;
11255 wxFontEncoding result;
11256 void *argp1 = 0 ;
11257 int res1 = 0 ;
11258 bool temp2 = false ;
11259 bool val3 ;
11260 int ecode3 = 0 ;
11261 PyObject * obj0 = 0 ;
11262 PyObject * obj1 = 0 ;
11263 PyObject * obj2 = 0 ;
11264 char * kwnames[] = {
11265 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11266 };
11267
11268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11270 if (!SWIG_IsOK(res1)) {
11271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11272 }
11273 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11274 {
11275 arg2 = wxString_in_helper(obj1);
11276 if (arg2 == NULL) SWIG_fail;
11277 temp2 = true;
11278 }
11279 if (obj2) {
11280 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11281 if (!SWIG_IsOK(ecode3)) {
11282 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11283 }
11284 arg3 = static_cast< bool >(val3);
11285 }
11286 {
11287 PyThreadState* __tstate = wxPyBeginAllowThreads();
11288 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11289 wxPyEndAllowThreads(__tstate);
11290 if (PyErr_Occurred()) SWIG_fail;
11291 }
11292 resultobj = SWIG_From_int(static_cast< int >(result));
11293 {
11294 if (temp2)
11295 delete arg2;
11296 }
11297 return resultobj;
11298 fail:
11299 {
11300 if (temp2)
11301 delete arg2;
11302 }
11303 return NULL;
11304 }
11305
11306
11307 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11308 PyObject *resultobj = 0;
11309 size_t result;
11310
11311 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11312 {
11313 PyThreadState* __tstate = wxPyBeginAllowThreads();
11314 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11315 wxPyEndAllowThreads(__tstate);
11316 if (PyErr_Occurred()) SWIG_fail;
11317 }
11318 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11319 return resultobj;
11320 fail:
11321 return NULL;
11322 }
11323
11324
11325 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11326 PyObject *resultobj = 0;
11327 size_t arg1 ;
11328 wxFontEncoding result;
11329 size_t val1 ;
11330 int ecode1 = 0 ;
11331 PyObject * obj0 = 0 ;
11332 char * kwnames[] = {
11333 (char *) "n", NULL
11334 };
11335
11336 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11337 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11338 if (!SWIG_IsOK(ecode1)) {
11339 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11340 }
11341 arg1 = static_cast< size_t >(val1);
11342 {
11343 PyThreadState* __tstate = wxPyBeginAllowThreads();
11344 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11345 wxPyEndAllowThreads(__tstate);
11346 if (PyErr_Occurred()) SWIG_fail;
11347 }
11348 resultobj = SWIG_From_int(static_cast< int >(result));
11349 return resultobj;
11350 fail:
11351 return NULL;
11352 }
11353
11354
11355 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11356 PyObject *resultobj = 0;
11357 wxFontEncoding arg1 ;
11358 wxString result;
11359 int val1 ;
11360 int ecode1 = 0 ;
11361 PyObject * obj0 = 0 ;
11362 char * kwnames[] = {
11363 (char *) "encoding", NULL
11364 };
11365
11366 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11367 ecode1 = SWIG_AsVal_int(obj0, &val1);
11368 if (!SWIG_IsOK(ecode1)) {
11369 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11370 }
11371 arg1 = static_cast< wxFontEncoding >(val1);
11372 {
11373 PyThreadState* __tstate = wxPyBeginAllowThreads();
11374 result = wxFontMapper::GetEncodingName(arg1);
11375 wxPyEndAllowThreads(__tstate);
11376 if (PyErr_Occurred()) SWIG_fail;
11377 }
11378 {
11379 #if wxUSE_UNICODE
11380 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11381 #else
11382 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11383 #endif
11384 }
11385 return resultobj;
11386 fail:
11387 return NULL;
11388 }
11389
11390
11391 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11392 PyObject *resultobj = 0;
11393 wxFontEncoding arg1 ;
11394 wxString result;
11395 int val1 ;
11396 int ecode1 = 0 ;
11397 PyObject * obj0 = 0 ;
11398 char * kwnames[] = {
11399 (char *) "encoding", NULL
11400 };
11401
11402 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11403 ecode1 = SWIG_AsVal_int(obj0, &val1);
11404 if (!SWIG_IsOK(ecode1)) {
11405 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11406 }
11407 arg1 = static_cast< wxFontEncoding >(val1);
11408 {
11409 PyThreadState* __tstate = wxPyBeginAllowThreads();
11410 result = wxFontMapper::GetEncodingDescription(arg1);
11411 wxPyEndAllowThreads(__tstate);
11412 if (PyErr_Occurred()) SWIG_fail;
11413 }
11414 {
11415 #if wxUSE_UNICODE
11416 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11417 #else
11418 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11419 #endif
11420 }
11421 return resultobj;
11422 fail:
11423 return NULL;
11424 }
11425
11426
11427 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11428 PyObject *resultobj = 0;
11429 wxString *arg1 = 0 ;
11430 wxFontEncoding result;
11431 bool temp1 = false ;
11432 PyObject * obj0 = 0 ;
11433 char * kwnames[] = {
11434 (char *) "name", NULL
11435 };
11436
11437 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11438 {
11439 arg1 = wxString_in_helper(obj0);
11440 if (arg1 == NULL) SWIG_fail;
11441 temp1 = true;
11442 }
11443 {
11444 PyThreadState* __tstate = wxPyBeginAllowThreads();
11445 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11446 wxPyEndAllowThreads(__tstate);
11447 if (PyErr_Occurred()) SWIG_fail;
11448 }
11449 resultobj = SWIG_From_int(static_cast< int >(result));
11450 {
11451 if (temp1)
11452 delete arg1;
11453 }
11454 return resultobj;
11455 fail:
11456 {
11457 if (temp1)
11458 delete arg1;
11459 }
11460 return NULL;
11461 }
11462
11463
11464 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11465 PyObject *resultobj = 0;
11466 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11467 wxString *arg2 = 0 ;
11468 void *argp1 = 0 ;
11469 int res1 = 0 ;
11470 bool temp2 = false ;
11471 PyObject * obj0 = 0 ;
11472 PyObject * obj1 = 0 ;
11473 char * kwnames[] = {
11474 (char *) "self",(char *) "prefix", NULL
11475 };
11476
11477 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11478 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11479 if (!SWIG_IsOK(res1)) {
11480 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11481 }
11482 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11483 {
11484 arg2 = wxString_in_helper(obj1);
11485 if (arg2 == NULL) SWIG_fail;
11486 temp2 = true;
11487 }
11488 {
11489 PyThreadState* __tstate = wxPyBeginAllowThreads();
11490 (arg1)->SetConfigPath((wxString const &)*arg2);
11491 wxPyEndAllowThreads(__tstate);
11492 if (PyErr_Occurred()) SWIG_fail;
11493 }
11494 resultobj = SWIG_Py_Void();
11495 {
11496 if (temp2)
11497 delete arg2;
11498 }
11499 return resultobj;
11500 fail:
11501 {
11502 if (temp2)
11503 delete arg2;
11504 }
11505 return NULL;
11506 }
11507
11508
11509 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11510 PyObject *resultobj = 0;
11511 wxString result;
11512
11513 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11514 {
11515 PyThreadState* __tstate = wxPyBeginAllowThreads();
11516 result = wxFontMapper::GetDefaultConfigPath();
11517 wxPyEndAllowThreads(__tstate);
11518 if (PyErr_Occurred()) SWIG_fail;
11519 }
11520 {
11521 #if wxUSE_UNICODE
11522 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11523 #else
11524 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11525 #endif
11526 }
11527 return resultobj;
11528 fail:
11529 return NULL;
11530 }
11531
11532
11533 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11534 PyObject *resultobj = 0;
11535 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11536 wxFontEncoding arg2 ;
11537 wxString const &arg3_defvalue = wxPyEmptyString ;
11538 wxString *arg3 = (wxString *) &arg3_defvalue ;
11539 bool arg4 = (bool) true ;
11540 PyObject *result = 0 ;
11541 void *argp1 = 0 ;
11542 int res1 = 0 ;
11543 int val2 ;
11544 int ecode2 = 0 ;
11545 bool temp3 = false ;
11546 bool val4 ;
11547 int ecode4 = 0 ;
11548 PyObject * obj0 = 0 ;
11549 PyObject * obj1 = 0 ;
11550 PyObject * obj2 = 0 ;
11551 PyObject * obj3 = 0 ;
11552 char * kwnames[] = {
11553 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11554 };
11555
11556 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11557 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11558 if (!SWIG_IsOK(res1)) {
11559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11560 }
11561 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11562 ecode2 = SWIG_AsVal_int(obj1, &val2);
11563 if (!SWIG_IsOK(ecode2)) {
11564 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11565 }
11566 arg2 = static_cast< wxFontEncoding >(val2);
11567 if (obj2) {
11568 {
11569 arg3 = wxString_in_helper(obj2);
11570 if (arg3 == NULL) SWIG_fail;
11571 temp3 = true;
11572 }
11573 }
11574 if (obj3) {
11575 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11576 if (!SWIG_IsOK(ecode4)) {
11577 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11578 }
11579 arg4 = static_cast< bool >(val4);
11580 }
11581 {
11582 PyThreadState* __tstate = wxPyBeginAllowThreads();
11583 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11584 wxPyEndAllowThreads(__tstate);
11585 if (PyErr_Occurred()) SWIG_fail;
11586 }
11587 resultobj = result;
11588 {
11589 if (temp3)
11590 delete arg3;
11591 }
11592 return resultobj;
11593 fail:
11594 {
11595 if (temp3)
11596 delete arg3;
11597 }
11598 return NULL;
11599 }
11600
11601
11602 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11603 PyObject *resultobj = 0;
11604 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11605 wxFontEncoding arg2 ;
11606 wxString const &arg3_defvalue = wxPyEmptyString ;
11607 wxString *arg3 = (wxString *) &arg3_defvalue ;
11608 bool result;
11609 void *argp1 = 0 ;
11610 int res1 = 0 ;
11611 int val2 ;
11612 int ecode2 = 0 ;
11613 bool temp3 = false ;
11614 PyObject * obj0 = 0 ;
11615 PyObject * obj1 = 0 ;
11616 PyObject * obj2 = 0 ;
11617 char * kwnames[] = {
11618 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11619 };
11620
11621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11622 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11623 if (!SWIG_IsOK(res1)) {
11624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11625 }
11626 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11627 ecode2 = SWIG_AsVal_int(obj1, &val2);
11628 if (!SWIG_IsOK(ecode2)) {
11629 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11630 }
11631 arg2 = static_cast< wxFontEncoding >(val2);
11632 if (obj2) {
11633 {
11634 arg3 = wxString_in_helper(obj2);
11635 if (arg3 == NULL) SWIG_fail;
11636 temp3 = true;
11637 }
11638 }
11639 {
11640 PyThreadState* __tstate = wxPyBeginAllowThreads();
11641 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11642 wxPyEndAllowThreads(__tstate);
11643 if (PyErr_Occurred()) SWIG_fail;
11644 }
11645 {
11646 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11647 }
11648 {
11649 if (temp3)
11650 delete arg3;
11651 }
11652 return resultobj;
11653 fail:
11654 {
11655 if (temp3)
11656 delete arg3;
11657 }
11658 return NULL;
11659 }
11660
11661
11662 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11663 PyObject *resultobj = 0;
11664 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11665 wxWindow *arg2 = (wxWindow *) 0 ;
11666 void *argp1 = 0 ;
11667 int res1 = 0 ;
11668 void *argp2 = 0 ;
11669 int res2 = 0 ;
11670 PyObject * obj0 = 0 ;
11671 PyObject * obj1 = 0 ;
11672 char * kwnames[] = {
11673 (char *) "self",(char *) "parent", NULL
11674 };
11675
11676 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11677 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11678 if (!SWIG_IsOK(res1)) {
11679 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11680 }
11681 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11682 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11683 if (!SWIG_IsOK(res2)) {
11684 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11685 }
11686 arg2 = reinterpret_cast< wxWindow * >(argp2);
11687 {
11688 PyThreadState* __tstate = wxPyBeginAllowThreads();
11689 (arg1)->SetDialogParent(arg2);
11690 wxPyEndAllowThreads(__tstate);
11691 if (PyErr_Occurred()) SWIG_fail;
11692 }
11693 resultobj = SWIG_Py_Void();
11694 return resultobj;
11695 fail:
11696 return NULL;
11697 }
11698
11699
11700 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11701 PyObject *resultobj = 0;
11702 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11703 wxString *arg2 = 0 ;
11704 void *argp1 = 0 ;
11705 int res1 = 0 ;
11706 bool temp2 = false ;
11707 PyObject * obj0 = 0 ;
11708 PyObject * obj1 = 0 ;
11709 char * kwnames[] = {
11710 (char *) "self",(char *) "title", NULL
11711 };
11712
11713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11715 if (!SWIG_IsOK(res1)) {
11716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11717 }
11718 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11719 {
11720 arg2 = wxString_in_helper(obj1);
11721 if (arg2 == NULL) SWIG_fail;
11722 temp2 = true;
11723 }
11724 {
11725 PyThreadState* __tstate = wxPyBeginAllowThreads();
11726 (arg1)->SetDialogTitle((wxString const &)*arg2);
11727 wxPyEndAllowThreads(__tstate);
11728 if (PyErr_Occurred()) SWIG_fail;
11729 }
11730 resultobj = SWIG_Py_Void();
11731 {
11732 if (temp2)
11733 delete arg2;
11734 }
11735 return resultobj;
11736 fail:
11737 {
11738 if (temp2)
11739 delete arg2;
11740 }
11741 return NULL;
11742 }
11743
11744
11745 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11746 PyObject *obj;
11747 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11748 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11749 return SWIG_Py_Void();
11750 }
11751
11752 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11753 return SWIG_Python_InitShadowInstance(args);
11754 }
11755
11756 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11757 PyObject *resultobj = 0;
11758 int arg1 ;
11759 int arg2 ;
11760 int arg3 ;
11761 int arg4 ;
11762 bool arg5 = (bool) false ;
11763 wxString const &arg6_defvalue = wxPyEmptyString ;
11764 wxString *arg6 = (wxString *) &arg6_defvalue ;
11765 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11766 wxFont *result = 0 ;
11767 int val1 ;
11768 int ecode1 = 0 ;
11769 int val2 ;
11770 int ecode2 = 0 ;
11771 int val3 ;
11772 int ecode3 = 0 ;
11773 int val4 ;
11774 int ecode4 = 0 ;
11775 bool val5 ;
11776 int ecode5 = 0 ;
11777 bool temp6 = false ;
11778 int val7 ;
11779 int ecode7 = 0 ;
11780 PyObject * obj0 = 0 ;
11781 PyObject * obj1 = 0 ;
11782 PyObject * obj2 = 0 ;
11783 PyObject * obj3 = 0 ;
11784 PyObject * obj4 = 0 ;
11785 PyObject * obj5 = 0 ;
11786 PyObject * obj6 = 0 ;
11787 char * kwnames[] = {
11788 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11789 };
11790
11791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11792 ecode1 = SWIG_AsVal_int(obj0, &val1);
11793 if (!SWIG_IsOK(ecode1)) {
11794 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11795 }
11796 arg1 = static_cast< int >(val1);
11797 ecode2 = SWIG_AsVal_int(obj1, &val2);
11798 if (!SWIG_IsOK(ecode2)) {
11799 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11800 }
11801 arg2 = static_cast< int >(val2);
11802 ecode3 = SWIG_AsVal_int(obj2, &val3);
11803 if (!SWIG_IsOK(ecode3)) {
11804 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11805 }
11806 arg3 = static_cast< int >(val3);
11807 ecode4 = SWIG_AsVal_int(obj3, &val4);
11808 if (!SWIG_IsOK(ecode4)) {
11809 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11810 }
11811 arg4 = static_cast< int >(val4);
11812 if (obj4) {
11813 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11814 if (!SWIG_IsOK(ecode5)) {
11815 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11816 }
11817 arg5 = static_cast< bool >(val5);
11818 }
11819 if (obj5) {
11820 {
11821 arg6 = wxString_in_helper(obj5);
11822 if (arg6 == NULL) SWIG_fail;
11823 temp6 = true;
11824 }
11825 }
11826 if (obj6) {
11827 ecode7 = SWIG_AsVal_int(obj6, &val7);
11828 if (!SWIG_IsOK(ecode7)) {
11829 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11830 }
11831 arg7 = static_cast< wxFontEncoding >(val7);
11832 }
11833 {
11834 if (!wxPyCheckForApp()) SWIG_fail;
11835 PyThreadState* __tstate = wxPyBeginAllowThreads();
11836 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11837 wxPyEndAllowThreads(__tstate);
11838 if (PyErr_Occurred()) SWIG_fail;
11839 }
11840 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11841 {
11842 if (temp6)
11843 delete arg6;
11844 }
11845 return resultobj;
11846 fail:
11847 {
11848 if (temp6)
11849 delete arg6;
11850 }
11851 return NULL;
11852 }
11853
11854
11855 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11856 PyObject *resultobj = 0;
11857 wxFont *arg1 = (wxFont *) 0 ;
11858 void *argp1 = 0 ;
11859 int res1 = 0 ;
11860 PyObject *swig_obj[1] ;
11861
11862 if (!args) SWIG_fail;
11863 swig_obj[0] = args;
11864 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11865 if (!SWIG_IsOK(res1)) {
11866 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11867 }
11868 arg1 = reinterpret_cast< wxFont * >(argp1);
11869 {
11870 PyThreadState* __tstate = wxPyBeginAllowThreads();
11871 delete arg1;
11872
11873 wxPyEndAllowThreads(__tstate);
11874 if (PyErr_Occurred()) SWIG_fail;
11875 }
11876 resultobj = SWIG_Py_Void();
11877 return resultobj;
11878 fail:
11879 return NULL;
11880 }
11881
11882
11883 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11884 PyObject *resultobj = 0;
11885 wxNativeFontInfo *arg1 = 0 ;
11886 wxFont *result = 0 ;
11887 void *argp1 = 0 ;
11888 int res1 = 0 ;
11889 PyObject * obj0 = 0 ;
11890 char * kwnames[] = {
11891 (char *) "info", NULL
11892 };
11893
11894 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11895 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11896 if (!SWIG_IsOK(res1)) {
11897 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11898 }
11899 if (!argp1) {
11900 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11901 }
11902 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11903 {
11904 if (!wxPyCheckForApp()) SWIG_fail;
11905 PyThreadState* __tstate = wxPyBeginAllowThreads();
11906 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11907 wxPyEndAllowThreads(__tstate);
11908 if (PyErr_Occurred()) SWIG_fail;
11909 }
11910 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11911 return resultobj;
11912 fail:
11913 return NULL;
11914 }
11915
11916
11917 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11918 PyObject *resultobj = 0;
11919 wxString *arg1 = 0 ;
11920 wxFont *result = 0 ;
11921 bool temp1 = false ;
11922 PyObject * obj0 = 0 ;
11923 char * kwnames[] = {
11924 (char *) "info", NULL
11925 };
11926
11927 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11928 {
11929 arg1 = wxString_in_helper(obj0);
11930 if (arg1 == NULL) SWIG_fail;
11931 temp1 = true;
11932 }
11933 {
11934 if (!wxPyCheckForApp()) SWIG_fail;
11935 PyThreadState* __tstate = wxPyBeginAllowThreads();
11936 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11937 wxPyEndAllowThreads(__tstate);
11938 if (PyErr_Occurred()) SWIG_fail;
11939 }
11940 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11941 {
11942 if (temp1)
11943 delete arg1;
11944 }
11945 return resultobj;
11946 fail:
11947 {
11948 if (temp1)
11949 delete arg1;
11950 }
11951 return NULL;
11952 }
11953
11954
11955 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11956 PyObject *resultobj = 0;
11957 int arg1 ;
11958 wxFontFamily arg2 ;
11959 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11960 wxString const &arg4_defvalue = wxPyEmptyString ;
11961 wxString *arg4 = (wxString *) &arg4_defvalue ;
11962 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11963 wxFont *result = 0 ;
11964 int val1 ;
11965 int ecode1 = 0 ;
11966 int val2 ;
11967 int ecode2 = 0 ;
11968 int val3 ;
11969 int ecode3 = 0 ;
11970 bool temp4 = false ;
11971 int val5 ;
11972 int ecode5 = 0 ;
11973 PyObject * obj0 = 0 ;
11974 PyObject * obj1 = 0 ;
11975 PyObject * obj2 = 0 ;
11976 PyObject * obj3 = 0 ;
11977 PyObject * obj4 = 0 ;
11978 char * kwnames[] = {
11979 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11980 };
11981
11982 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11983 ecode1 = SWIG_AsVal_int(obj0, &val1);
11984 if (!SWIG_IsOK(ecode1)) {
11985 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11986 }
11987 arg1 = static_cast< int >(val1);
11988 ecode2 = SWIG_AsVal_int(obj1, &val2);
11989 if (!SWIG_IsOK(ecode2)) {
11990 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11991 }
11992 arg2 = static_cast< wxFontFamily >(val2);
11993 if (obj2) {
11994 ecode3 = SWIG_AsVal_int(obj2, &val3);
11995 if (!SWIG_IsOK(ecode3)) {
11996 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11997 }
11998 arg3 = static_cast< int >(val3);
11999 }
12000 if (obj3) {
12001 {
12002 arg4 = wxString_in_helper(obj3);
12003 if (arg4 == NULL) SWIG_fail;
12004 temp4 = true;
12005 }
12006 }
12007 if (obj4) {
12008 ecode5 = SWIG_AsVal_int(obj4, &val5);
12009 if (!SWIG_IsOK(ecode5)) {
12010 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12011 }
12012 arg5 = static_cast< wxFontEncoding >(val5);
12013 }
12014 {
12015 if (!wxPyCheckForApp()) SWIG_fail;
12016 PyThreadState* __tstate = wxPyBeginAllowThreads();
12017 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12018 wxPyEndAllowThreads(__tstate);
12019 if (PyErr_Occurred()) SWIG_fail;
12020 }
12021 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12022 {
12023 if (temp4)
12024 delete arg4;
12025 }
12026 return resultobj;
12027 fail:
12028 {
12029 if (temp4)
12030 delete arg4;
12031 }
12032 return NULL;
12033 }
12034
12035
12036 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12037 PyObject *resultobj = 0;
12038 wxSize *arg1 = 0 ;
12039 int arg2 ;
12040 int arg3 ;
12041 int arg4 ;
12042 bool arg5 = (bool) false ;
12043 wxString const &arg6_defvalue = wxEmptyString ;
12044 wxString *arg6 = (wxString *) &arg6_defvalue ;
12045 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12046 wxFont *result = 0 ;
12047 wxSize temp1 ;
12048 int val2 ;
12049 int ecode2 = 0 ;
12050 int val3 ;
12051 int ecode3 = 0 ;
12052 int val4 ;
12053 int ecode4 = 0 ;
12054 bool val5 ;
12055 int ecode5 = 0 ;
12056 bool temp6 = false ;
12057 int val7 ;
12058 int ecode7 = 0 ;
12059 PyObject * obj0 = 0 ;
12060 PyObject * obj1 = 0 ;
12061 PyObject * obj2 = 0 ;
12062 PyObject * obj3 = 0 ;
12063 PyObject * obj4 = 0 ;
12064 PyObject * obj5 = 0 ;
12065 PyObject * obj6 = 0 ;
12066 char * kwnames[] = {
12067 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12068 };
12069
12070 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12071 {
12072 arg1 = &temp1;
12073 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12074 }
12075 ecode2 = SWIG_AsVal_int(obj1, &val2);
12076 if (!SWIG_IsOK(ecode2)) {
12077 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12078 }
12079 arg2 = static_cast< int >(val2);
12080 ecode3 = SWIG_AsVal_int(obj2, &val3);
12081 if (!SWIG_IsOK(ecode3)) {
12082 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12083 }
12084 arg3 = static_cast< int >(val3);
12085 ecode4 = SWIG_AsVal_int(obj3, &val4);
12086 if (!SWIG_IsOK(ecode4)) {
12087 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12088 }
12089 arg4 = static_cast< int >(val4);
12090 if (obj4) {
12091 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12092 if (!SWIG_IsOK(ecode5)) {
12093 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12094 }
12095 arg5 = static_cast< bool >(val5);
12096 }
12097 if (obj5) {
12098 {
12099 arg6 = wxString_in_helper(obj5);
12100 if (arg6 == NULL) SWIG_fail;
12101 temp6 = true;
12102 }
12103 }
12104 if (obj6) {
12105 ecode7 = SWIG_AsVal_int(obj6, &val7);
12106 if (!SWIG_IsOK(ecode7)) {
12107 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12108 }
12109 arg7 = static_cast< wxFontEncoding >(val7);
12110 }
12111 {
12112 if (!wxPyCheckForApp()) SWIG_fail;
12113 PyThreadState* __tstate = wxPyBeginAllowThreads();
12114 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12115 wxPyEndAllowThreads(__tstate);
12116 if (PyErr_Occurred()) SWIG_fail;
12117 }
12118 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12119 {
12120 if (temp6)
12121 delete arg6;
12122 }
12123 return resultobj;
12124 fail:
12125 {
12126 if (temp6)
12127 delete arg6;
12128 }
12129 return NULL;
12130 }
12131
12132
12133 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12134 PyObject *resultobj = 0;
12135 wxSize *arg1 = 0 ;
12136 wxFontFamily arg2 ;
12137 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12138 wxString const &arg4_defvalue = wxEmptyString ;
12139 wxString *arg4 = (wxString *) &arg4_defvalue ;
12140 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12141 wxFont *result = 0 ;
12142 wxSize temp1 ;
12143 int val2 ;
12144 int ecode2 = 0 ;
12145 int val3 ;
12146 int ecode3 = 0 ;
12147 bool temp4 = false ;
12148 int val5 ;
12149 int ecode5 = 0 ;
12150 PyObject * obj0 = 0 ;
12151 PyObject * obj1 = 0 ;
12152 PyObject * obj2 = 0 ;
12153 PyObject * obj3 = 0 ;
12154 PyObject * obj4 = 0 ;
12155 char * kwnames[] = {
12156 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12157 };
12158
12159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12160 {
12161 arg1 = &temp1;
12162 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12163 }
12164 ecode2 = SWIG_AsVal_int(obj1, &val2);
12165 if (!SWIG_IsOK(ecode2)) {
12166 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12167 }
12168 arg2 = static_cast< wxFontFamily >(val2);
12169 if (obj2) {
12170 ecode3 = SWIG_AsVal_int(obj2, &val3);
12171 if (!SWIG_IsOK(ecode3)) {
12172 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12173 }
12174 arg3 = static_cast< int >(val3);
12175 }
12176 if (obj3) {
12177 {
12178 arg4 = wxString_in_helper(obj3);
12179 if (arg4 == NULL) SWIG_fail;
12180 temp4 = true;
12181 }
12182 }
12183 if (obj4) {
12184 ecode5 = SWIG_AsVal_int(obj4, &val5);
12185 if (!SWIG_IsOK(ecode5)) {
12186 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12187 }
12188 arg5 = static_cast< wxFontEncoding >(val5);
12189 }
12190 {
12191 if (!wxPyCheckForApp()) SWIG_fail;
12192 PyThreadState* __tstate = wxPyBeginAllowThreads();
12193 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12194 wxPyEndAllowThreads(__tstate);
12195 if (PyErr_Occurred()) SWIG_fail;
12196 }
12197 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12198 {
12199 if (temp4)
12200 delete arg4;
12201 }
12202 return resultobj;
12203 fail:
12204 {
12205 if (temp4)
12206 delete arg4;
12207 }
12208 return NULL;
12209 }
12210
12211
12212 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12213 PyObject *resultobj = 0;
12214 wxFont *arg1 = (wxFont *) 0 ;
12215 bool result;
12216 void *argp1 = 0 ;
12217 int res1 = 0 ;
12218 PyObject *swig_obj[1] ;
12219
12220 if (!args) SWIG_fail;
12221 swig_obj[0] = args;
12222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12223 if (!SWIG_IsOK(res1)) {
12224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12225 }
12226 arg1 = reinterpret_cast< wxFont * >(argp1);
12227 {
12228 PyThreadState* __tstate = wxPyBeginAllowThreads();
12229 result = (bool)((wxFont const *)arg1)->Ok();
12230 wxPyEndAllowThreads(__tstate);
12231 if (PyErr_Occurred()) SWIG_fail;
12232 }
12233 {
12234 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12235 }
12236 return resultobj;
12237 fail:
12238 return NULL;
12239 }
12240
12241
12242 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12243 PyObject *resultobj = 0;
12244 wxFont *arg1 = (wxFont *) 0 ;
12245 wxFont *arg2 = (wxFont *) 0 ;
12246 bool result;
12247 void *argp1 = 0 ;
12248 int res1 = 0 ;
12249 void *argp2 = 0 ;
12250 int res2 = 0 ;
12251 PyObject * obj0 = 0 ;
12252 PyObject * obj1 = 0 ;
12253 char * kwnames[] = {
12254 (char *) "self",(char *) "other", NULL
12255 };
12256
12257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12259 if (!SWIG_IsOK(res1)) {
12260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12261 }
12262 arg1 = reinterpret_cast< wxFont * >(argp1);
12263 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12264 if (!SWIG_IsOK(res2)) {
12265 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12266 }
12267 arg2 = reinterpret_cast< wxFont * >(argp2);
12268 {
12269 PyThreadState* __tstate = wxPyBeginAllowThreads();
12270 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12271 wxPyEndAllowThreads(__tstate);
12272 if (PyErr_Occurred()) SWIG_fail;
12273 }
12274 {
12275 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12276 }
12277 return resultobj;
12278 fail:
12279 return NULL;
12280 }
12281
12282
12283 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12284 PyObject *resultobj = 0;
12285 wxFont *arg1 = (wxFont *) 0 ;
12286 wxFont *arg2 = (wxFont *) 0 ;
12287 bool result;
12288 void *argp1 = 0 ;
12289 int res1 = 0 ;
12290 void *argp2 = 0 ;
12291 int res2 = 0 ;
12292 PyObject * obj0 = 0 ;
12293 PyObject * obj1 = 0 ;
12294 char * kwnames[] = {
12295 (char *) "self",(char *) "other", NULL
12296 };
12297
12298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12300 if (!SWIG_IsOK(res1)) {
12301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12302 }
12303 arg1 = reinterpret_cast< wxFont * >(argp1);
12304 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12305 if (!SWIG_IsOK(res2)) {
12306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12307 }
12308 arg2 = reinterpret_cast< wxFont * >(argp2);
12309 {
12310 PyThreadState* __tstate = wxPyBeginAllowThreads();
12311 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12312 wxPyEndAllowThreads(__tstate);
12313 if (PyErr_Occurred()) SWIG_fail;
12314 }
12315 {
12316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12317 }
12318 return resultobj;
12319 fail:
12320 return NULL;
12321 }
12322
12323
12324 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12325 PyObject *resultobj = 0;
12326 wxFont *arg1 = (wxFont *) 0 ;
12327 int result;
12328 void *argp1 = 0 ;
12329 int res1 = 0 ;
12330 PyObject *swig_obj[1] ;
12331
12332 if (!args) SWIG_fail;
12333 swig_obj[0] = args;
12334 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12335 if (!SWIG_IsOK(res1)) {
12336 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12337 }
12338 arg1 = reinterpret_cast< wxFont * >(argp1);
12339 {
12340 PyThreadState* __tstate = wxPyBeginAllowThreads();
12341 result = (int)((wxFont const *)arg1)->GetPointSize();
12342 wxPyEndAllowThreads(__tstate);
12343 if (PyErr_Occurred()) SWIG_fail;
12344 }
12345 resultobj = SWIG_From_int(static_cast< int >(result));
12346 return resultobj;
12347 fail:
12348 return NULL;
12349 }
12350
12351
12352 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12353 PyObject *resultobj = 0;
12354 wxFont *arg1 = (wxFont *) 0 ;
12355 wxSize result;
12356 void *argp1 = 0 ;
12357 int res1 = 0 ;
12358 PyObject *swig_obj[1] ;
12359
12360 if (!args) SWIG_fail;
12361 swig_obj[0] = args;
12362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12363 if (!SWIG_IsOK(res1)) {
12364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12365 }
12366 arg1 = reinterpret_cast< wxFont * >(argp1);
12367 {
12368 PyThreadState* __tstate = wxPyBeginAllowThreads();
12369 result = ((wxFont const *)arg1)->GetPixelSize();
12370 wxPyEndAllowThreads(__tstate);
12371 if (PyErr_Occurred()) SWIG_fail;
12372 }
12373 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12374 return resultobj;
12375 fail:
12376 return NULL;
12377 }
12378
12379
12380 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12381 PyObject *resultobj = 0;
12382 wxFont *arg1 = (wxFont *) 0 ;
12383 bool result;
12384 void *argp1 = 0 ;
12385 int res1 = 0 ;
12386 PyObject *swig_obj[1] ;
12387
12388 if (!args) SWIG_fail;
12389 swig_obj[0] = args;
12390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12391 if (!SWIG_IsOK(res1)) {
12392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12393 }
12394 arg1 = reinterpret_cast< wxFont * >(argp1);
12395 {
12396 PyThreadState* __tstate = wxPyBeginAllowThreads();
12397 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12398 wxPyEndAllowThreads(__tstate);
12399 if (PyErr_Occurred()) SWIG_fail;
12400 }
12401 {
12402 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12403 }
12404 return resultobj;
12405 fail:
12406 return NULL;
12407 }
12408
12409
12410 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12411 PyObject *resultobj = 0;
12412 wxFont *arg1 = (wxFont *) 0 ;
12413 int result;
12414 void *argp1 = 0 ;
12415 int res1 = 0 ;
12416 PyObject *swig_obj[1] ;
12417
12418 if (!args) SWIG_fail;
12419 swig_obj[0] = args;
12420 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12421 if (!SWIG_IsOK(res1)) {
12422 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12423 }
12424 arg1 = reinterpret_cast< wxFont * >(argp1);
12425 {
12426 PyThreadState* __tstate = wxPyBeginAllowThreads();
12427 result = (int)((wxFont const *)arg1)->GetFamily();
12428 wxPyEndAllowThreads(__tstate);
12429 if (PyErr_Occurred()) SWIG_fail;
12430 }
12431 resultobj = SWIG_From_int(static_cast< int >(result));
12432 return resultobj;
12433 fail:
12434 return NULL;
12435 }
12436
12437
12438 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12439 PyObject *resultobj = 0;
12440 wxFont *arg1 = (wxFont *) 0 ;
12441 int result;
12442 void *argp1 = 0 ;
12443 int res1 = 0 ;
12444 PyObject *swig_obj[1] ;
12445
12446 if (!args) SWIG_fail;
12447 swig_obj[0] = args;
12448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12449 if (!SWIG_IsOK(res1)) {
12450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12451 }
12452 arg1 = reinterpret_cast< wxFont * >(argp1);
12453 {
12454 PyThreadState* __tstate = wxPyBeginAllowThreads();
12455 result = (int)((wxFont const *)arg1)->GetStyle();
12456 wxPyEndAllowThreads(__tstate);
12457 if (PyErr_Occurred()) SWIG_fail;
12458 }
12459 resultobj = SWIG_From_int(static_cast< int >(result));
12460 return resultobj;
12461 fail:
12462 return NULL;
12463 }
12464
12465
12466 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12467 PyObject *resultobj = 0;
12468 wxFont *arg1 = (wxFont *) 0 ;
12469 int result;
12470 void *argp1 = 0 ;
12471 int res1 = 0 ;
12472 PyObject *swig_obj[1] ;
12473
12474 if (!args) SWIG_fail;
12475 swig_obj[0] = args;
12476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12477 if (!SWIG_IsOK(res1)) {
12478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12479 }
12480 arg1 = reinterpret_cast< wxFont * >(argp1);
12481 {
12482 PyThreadState* __tstate = wxPyBeginAllowThreads();
12483 result = (int)((wxFont const *)arg1)->GetWeight();
12484 wxPyEndAllowThreads(__tstate);
12485 if (PyErr_Occurred()) SWIG_fail;
12486 }
12487 resultobj = SWIG_From_int(static_cast< int >(result));
12488 return resultobj;
12489 fail:
12490 return NULL;
12491 }
12492
12493
12494 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12495 PyObject *resultobj = 0;
12496 wxFont *arg1 = (wxFont *) 0 ;
12497 bool result;
12498 void *argp1 = 0 ;
12499 int res1 = 0 ;
12500 PyObject *swig_obj[1] ;
12501
12502 if (!args) SWIG_fail;
12503 swig_obj[0] = args;
12504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12505 if (!SWIG_IsOK(res1)) {
12506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12507 }
12508 arg1 = reinterpret_cast< wxFont * >(argp1);
12509 {
12510 PyThreadState* __tstate = wxPyBeginAllowThreads();
12511 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12512 wxPyEndAllowThreads(__tstate);
12513 if (PyErr_Occurred()) SWIG_fail;
12514 }
12515 {
12516 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12517 }
12518 return resultobj;
12519 fail:
12520 return NULL;
12521 }
12522
12523
12524 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12525 PyObject *resultobj = 0;
12526 wxFont *arg1 = (wxFont *) 0 ;
12527 wxString result;
12528 void *argp1 = 0 ;
12529 int res1 = 0 ;
12530 PyObject *swig_obj[1] ;
12531
12532 if (!args) SWIG_fail;
12533 swig_obj[0] = args;
12534 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12535 if (!SWIG_IsOK(res1)) {
12536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12537 }
12538 arg1 = reinterpret_cast< wxFont * >(argp1);
12539 {
12540 PyThreadState* __tstate = wxPyBeginAllowThreads();
12541 result = ((wxFont const *)arg1)->GetFaceName();
12542 wxPyEndAllowThreads(__tstate);
12543 if (PyErr_Occurred()) SWIG_fail;
12544 }
12545 {
12546 #if wxUSE_UNICODE
12547 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12548 #else
12549 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12550 #endif
12551 }
12552 return resultobj;
12553 fail:
12554 return NULL;
12555 }
12556
12557
12558 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12559 PyObject *resultobj = 0;
12560 wxFont *arg1 = (wxFont *) 0 ;
12561 wxFontEncoding result;
12562 void *argp1 = 0 ;
12563 int res1 = 0 ;
12564 PyObject *swig_obj[1] ;
12565
12566 if (!args) SWIG_fail;
12567 swig_obj[0] = args;
12568 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12569 if (!SWIG_IsOK(res1)) {
12570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12571 }
12572 arg1 = reinterpret_cast< wxFont * >(argp1);
12573 {
12574 PyThreadState* __tstate = wxPyBeginAllowThreads();
12575 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12576 wxPyEndAllowThreads(__tstate);
12577 if (PyErr_Occurred()) SWIG_fail;
12578 }
12579 resultobj = SWIG_From_int(static_cast< int >(result));
12580 return resultobj;
12581 fail:
12582 return NULL;
12583 }
12584
12585
12586 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12587 PyObject *resultobj = 0;
12588 wxFont *arg1 = (wxFont *) 0 ;
12589 wxNativeFontInfo *result = 0 ;
12590 void *argp1 = 0 ;
12591 int res1 = 0 ;
12592 PyObject *swig_obj[1] ;
12593
12594 if (!args) SWIG_fail;
12595 swig_obj[0] = args;
12596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12597 if (!SWIG_IsOK(res1)) {
12598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12599 }
12600 arg1 = reinterpret_cast< wxFont * >(argp1);
12601 {
12602 PyThreadState* __tstate = wxPyBeginAllowThreads();
12603 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12604 wxPyEndAllowThreads(__tstate);
12605 if (PyErr_Occurred()) SWIG_fail;
12606 }
12607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12608 return resultobj;
12609 fail:
12610 return NULL;
12611 }
12612
12613
12614 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12615 PyObject *resultobj = 0;
12616 wxFont *arg1 = (wxFont *) 0 ;
12617 bool result;
12618 void *argp1 = 0 ;
12619 int res1 = 0 ;
12620 PyObject *swig_obj[1] ;
12621
12622 if (!args) SWIG_fail;
12623 swig_obj[0] = args;
12624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12625 if (!SWIG_IsOK(res1)) {
12626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12627 }
12628 arg1 = reinterpret_cast< wxFont * >(argp1);
12629 {
12630 PyThreadState* __tstate = wxPyBeginAllowThreads();
12631 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12632 wxPyEndAllowThreads(__tstate);
12633 if (PyErr_Occurred()) SWIG_fail;
12634 }
12635 {
12636 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12637 }
12638 return resultobj;
12639 fail:
12640 return NULL;
12641 }
12642
12643
12644 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12645 PyObject *resultobj = 0;
12646 wxFont *arg1 = (wxFont *) 0 ;
12647 wxString result;
12648 void *argp1 = 0 ;
12649 int res1 = 0 ;
12650 PyObject *swig_obj[1] ;
12651
12652 if (!args) SWIG_fail;
12653 swig_obj[0] = args;
12654 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12655 if (!SWIG_IsOK(res1)) {
12656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12657 }
12658 arg1 = reinterpret_cast< wxFont * >(argp1);
12659 {
12660 PyThreadState* __tstate = wxPyBeginAllowThreads();
12661 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12662 wxPyEndAllowThreads(__tstate);
12663 if (PyErr_Occurred()) SWIG_fail;
12664 }
12665 {
12666 #if wxUSE_UNICODE
12667 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12668 #else
12669 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12670 #endif
12671 }
12672 return resultobj;
12673 fail:
12674 return NULL;
12675 }
12676
12677
12678 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12679 PyObject *resultobj = 0;
12680 wxFont *arg1 = (wxFont *) 0 ;
12681 wxString result;
12682 void *argp1 = 0 ;
12683 int res1 = 0 ;
12684 PyObject *swig_obj[1] ;
12685
12686 if (!args) SWIG_fail;
12687 swig_obj[0] = args;
12688 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12689 if (!SWIG_IsOK(res1)) {
12690 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12691 }
12692 arg1 = reinterpret_cast< wxFont * >(argp1);
12693 {
12694 PyThreadState* __tstate = wxPyBeginAllowThreads();
12695 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12696 wxPyEndAllowThreads(__tstate);
12697 if (PyErr_Occurred()) SWIG_fail;
12698 }
12699 {
12700 #if wxUSE_UNICODE
12701 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12702 #else
12703 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12704 #endif
12705 }
12706 return resultobj;
12707 fail:
12708 return NULL;
12709 }
12710
12711
12712 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12713 PyObject *resultobj = 0;
12714 wxFont *arg1 = (wxFont *) 0 ;
12715 int arg2 ;
12716 void *argp1 = 0 ;
12717 int res1 = 0 ;
12718 int val2 ;
12719 int ecode2 = 0 ;
12720 PyObject * obj0 = 0 ;
12721 PyObject * obj1 = 0 ;
12722 char * kwnames[] = {
12723 (char *) "self",(char *) "pointSize", NULL
12724 };
12725
12726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12728 if (!SWIG_IsOK(res1)) {
12729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12730 }
12731 arg1 = reinterpret_cast< wxFont * >(argp1);
12732 ecode2 = SWIG_AsVal_int(obj1, &val2);
12733 if (!SWIG_IsOK(ecode2)) {
12734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12735 }
12736 arg2 = static_cast< int >(val2);
12737 {
12738 PyThreadState* __tstate = wxPyBeginAllowThreads();
12739 (arg1)->SetPointSize(arg2);
12740 wxPyEndAllowThreads(__tstate);
12741 if (PyErr_Occurred()) SWIG_fail;
12742 }
12743 resultobj = SWIG_Py_Void();
12744 return resultobj;
12745 fail:
12746 return NULL;
12747 }
12748
12749
12750 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12751 PyObject *resultobj = 0;
12752 wxFont *arg1 = (wxFont *) 0 ;
12753 wxSize *arg2 = 0 ;
12754 void *argp1 = 0 ;
12755 int res1 = 0 ;
12756 wxSize temp2 ;
12757 PyObject * obj0 = 0 ;
12758 PyObject * obj1 = 0 ;
12759 char * kwnames[] = {
12760 (char *) "self",(char *) "pixelSize", NULL
12761 };
12762
12763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12764 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12765 if (!SWIG_IsOK(res1)) {
12766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12767 }
12768 arg1 = reinterpret_cast< wxFont * >(argp1);
12769 {
12770 arg2 = &temp2;
12771 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12772 }
12773 {
12774 PyThreadState* __tstate = wxPyBeginAllowThreads();
12775 (arg1)->SetPixelSize((wxSize const &)*arg2);
12776 wxPyEndAllowThreads(__tstate);
12777 if (PyErr_Occurred()) SWIG_fail;
12778 }
12779 resultobj = SWIG_Py_Void();
12780 return resultobj;
12781 fail:
12782 return NULL;
12783 }
12784
12785
12786 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12787 PyObject *resultobj = 0;
12788 wxFont *arg1 = (wxFont *) 0 ;
12789 int arg2 ;
12790 void *argp1 = 0 ;
12791 int res1 = 0 ;
12792 int val2 ;
12793 int ecode2 = 0 ;
12794 PyObject * obj0 = 0 ;
12795 PyObject * obj1 = 0 ;
12796 char * kwnames[] = {
12797 (char *) "self",(char *) "family", NULL
12798 };
12799
12800 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12801 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12802 if (!SWIG_IsOK(res1)) {
12803 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12804 }
12805 arg1 = reinterpret_cast< wxFont * >(argp1);
12806 ecode2 = SWIG_AsVal_int(obj1, &val2);
12807 if (!SWIG_IsOK(ecode2)) {
12808 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12809 }
12810 arg2 = static_cast< int >(val2);
12811 {
12812 PyThreadState* __tstate = wxPyBeginAllowThreads();
12813 (arg1)->SetFamily(arg2);
12814 wxPyEndAllowThreads(__tstate);
12815 if (PyErr_Occurred()) SWIG_fail;
12816 }
12817 resultobj = SWIG_Py_Void();
12818 return resultobj;
12819 fail:
12820 return NULL;
12821 }
12822
12823
12824 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12825 PyObject *resultobj = 0;
12826 wxFont *arg1 = (wxFont *) 0 ;
12827 int arg2 ;
12828 void *argp1 = 0 ;
12829 int res1 = 0 ;
12830 int val2 ;
12831 int ecode2 = 0 ;
12832 PyObject * obj0 = 0 ;
12833 PyObject * obj1 = 0 ;
12834 char * kwnames[] = {
12835 (char *) "self",(char *) "style", NULL
12836 };
12837
12838 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12839 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12840 if (!SWIG_IsOK(res1)) {
12841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12842 }
12843 arg1 = reinterpret_cast< wxFont * >(argp1);
12844 ecode2 = SWIG_AsVal_int(obj1, &val2);
12845 if (!SWIG_IsOK(ecode2)) {
12846 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12847 }
12848 arg2 = static_cast< int >(val2);
12849 {
12850 PyThreadState* __tstate = wxPyBeginAllowThreads();
12851 (arg1)->SetStyle(arg2);
12852 wxPyEndAllowThreads(__tstate);
12853 if (PyErr_Occurred()) SWIG_fail;
12854 }
12855 resultobj = SWIG_Py_Void();
12856 return resultobj;
12857 fail:
12858 return NULL;
12859 }
12860
12861
12862 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12863 PyObject *resultobj = 0;
12864 wxFont *arg1 = (wxFont *) 0 ;
12865 int arg2 ;
12866 void *argp1 = 0 ;
12867 int res1 = 0 ;
12868 int val2 ;
12869 int ecode2 = 0 ;
12870 PyObject * obj0 = 0 ;
12871 PyObject * obj1 = 0 ;
12872 char * kwnames[] = {
12873 (char *) "self",(char *) "weight", NULL
12874 };
12875
12876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12878 if (!SWIG_IsOK(res1)) {
12879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12880 }
12881 arg1 = reinterpret_cast< wxFont * >(argp1);
12882 ecode2 = SWIG_AsVal_int(obj1, &val2);
12883 if (!SWIG_IsOK(ecode2)) {
12884 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12885 }
12886 arg2 = static_cast< int >(val2);
12887 {
12888 PyThreadState* __tstate = wxPyBeginAllowThreads();
12889 (arg1)->SetWeight(arg2);
12890 wxPyEndAllowThreads(__tstate);
12891 if (PyErr_Occurred()) SWIG_fail;
12892 }
12893 resultobj = SWIG_Py_Void();
12894 return resultobj;
12895 fail:
12896 return NULL;
12897 }
12898
12899
12900 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12901 PyObject *resultobj = 0;
12902 wxFont *arg1 = (wxFont *) 0 ;
12903 wxString *arg2 = 0 ;
12904 bool result;
12905 void *argp1 = 0 ;
12906 int res1 = 0 ;
12907 bool temp2 = false ;
12908 PyObject * obj0 = 0 ;
12909 PyObject * obj1 = 0 ;
12910 char * kwnames[] = {
12911 (char *) "self",(char *) "faceName", NULL
12912 };
12913
12914 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12915 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12916 if (!SWIG_IsOK(res1)) {
12917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12918 }
12919 arg1 = reinterpret_cast< wxFont * >(argp1);
12920 {
12921 arg2 = wxString_in_helper(obj1);
12922 if (arg2 == NULL) SWIG_fail;
12923 temp2 = true;
12924 }
12925 {
12926 PyThreadState* __tstate = wxPyBeginAllowThreads();
12927 result = (bool)(arg1)->SetFaceName((wxString const &)*arg2);
12928 wxPyEndAllowThreads(__tstate);
12929 if (PyErr_Occurred()) SWIG_fail;
12930 }
12931 {
12932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12933 }
12934 {
12935 if (temp2)
12936 delete arg2;
12937 }
12938 return resultobj;
12939 fail:
12940 {
12941 if (temp2)
12942 delete arg2;
12943 }
12944 return NULL;
12945 }
12946
12947
12948 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12949 PyObject *resultobj = 0;
12950 wxFont *arg1 = (wxFont *) 0 ;
12951 bool arg2 ;
12952 void *argp1 = 0 ;
12953 int res1 = 0 ;
12954 bool val2 ;
12955 int ecode2 = 0 ;
12956 PyObject * obj0 = 0 ;
12957 PyObject * obj1 = 0 ;
12958 char * kwnames[] = {
12959 (char *) "self",(char *) "underlined", NULL
12960 };
12961
12962 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12963 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12964 if (!SWIG_IsOK(res1)) {
12965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12966 }
12967 arg1 = reinterpret_cast< wxFont * >(argp1);
12968 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12969 if (!SWIG_IsOK(ecode2)) {
12970 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12971 }
12972 arg2 = static_cast< bool >(val2);
12973 {
12974 PyThreadState* __tstate = wxPyBeginAllowThreads();
12975 (arg1)->SetUnderlined(arg2);
12976 wxPyEndAllowThreads(__tstate);
12977 if (PyErr_Occurred()) SWIG_fail;
12978 }
12979 resultobj = SWIG_Py_Void();
12980 return resultobj;
12981 fail:
12982 return NULL;
12983 }
12984
12985
12986 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12987 PyObject *resultobj = 0;
12988 wxFont *arg1 = (wxFont *) 0 ;
12989 wxFontEncoding arg2 ;
12990 void *argp1 = 0 ;
12991 int res1 = 0 ;
12992 int val2 ;
12993 int ecode2 = 0 ;
12994 PyObject * obj0 = 0 ;
12995 PyObject * obj1 = 0 ;
12996 char * kwnames[] = {
12997 (char *) "self",(char *) "encoding", NULL
12998 };
12999
13000 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
13001 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13002 if (!SWIG_IsOK(res1)) {
13003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
13004 }
13005 arg1 = reinterpret_cast< wxFont * >(argp1);
13006 ecode2 = SWIG_AsVal_int(obj1, &val2);
13007 if (!SWIG_IsOK(ecode2)) {
13008 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13009 }
13010 arg2 = static_cast< wxFontEncoding >(val2);
13011 {
13012 PyThreadState* __tstate = wxPyBeginAllowThreads();
13013 (arg1)->SetEncoding(arg2);
13014 wxPyEndAllowThreads(__tstate);
13015 if (PyErr_Occurred()) SWIG_fail;
13016 }
13017 resultobj = SWIG_Py_Void();
13018 return resultobj;
13019 fail:
13020 return NULL;
13021 }
13022
13023
13024 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13025 PyObject *resultobj = 0;
13026 wxFont *arg1 = (wxFont *) 0 ;
13027 wxNativeFontInfo *arg2 = 0 ;
13028 void *argp1 = 0 ;
13029 int res1 = 0 ;
13030 void *argp2 = 0 ;
13031 int res2 = 0 ;
13032 PyObject * obj0 = 0 ;
13033 PyObject * obj1 = 0 ;
13034 char * kwnames[] = {
13035 (char *) "self",(char *) "info", NULL
13036 };
13037
13038 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13039 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13040 if (!SWIG_IsOK(res1)) {
13041 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13042 }
13043 arg1 = reinterpret_cast< wxFont * >(argp1);
13044 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13045 if (!SWIG_IsOK(res2)) {
13046 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13047 }
13048 if (!argp2) {
13049 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13050 }
13051 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13052 {
13053 PyThreadState* __tstate = wxPyBeginAllowThreads();
13054 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13055 wxPyEndAllowThreads(__tstate);
13056 if (PyErr_Occurred()) SWIG_fail;
13057 }
13058 resultobj = SWIG_Py_Void();
13059 return resultobj;
13060 fail:
13061 return NULL;
13062 }
13063
13064
13065 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13066 PyObject *resultobj = 0;
13067 wxFont *arg1 = (wxFont *) 0 ;
13068 wxString *arg2 = 0 ;
13069 bool result;
13070 void *argp1 = 0 ;
13071 int res1 = 0 ;
13072 bool temp2 = false ;
13073 PyObject * obj0 = 0 ;
13074 PyObject * obj1 = 0 ;
13075 char * kwnames[] = {
13076 (char *) "self",(char *) "info", NULL
13077 };
13078
13079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13080 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13081 if (!SWIG_IsOK(res1)) {
13082 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13083 }
13084 arg1 = reinterpret_cast< wxFont * >(argp1);
13085 {
13086 arg2 = wxString_in_helper(obj1);
13087 if (arg2 == NULL) SWIG_fail;
13088 temp2 = true;
13089 }
13090 {
13091 PyThreadState* __tstate = wxPyBeginAllowThreads();
13092 result = (bool)(arg1)->SetNativeFontInfo((wxString const &)*arg2);
13093 wxPyEndAllowThreads(__tstate);
13094 if (PyErr_Occurred()) SWIG_fail;
13095 }
13096 {
13097 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13098 }
13099 {
13100 if (temp2)
13101 delete arg2;
13102 }
13103 return resultobj;
13104 fail:
13105 {
13106 if (temp2)
13107 delete arg2;
13108 }
13109 return NULL;
13110 }
13111
13112
13113 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13114 PyObject *resultobj = 0;
13115 wxFont *arg1 = (wxFont *) 0 ;
13116 wxString *arg2 = 0 ;
13117 bool result;
13118 void *argp1 = 0 ;
13119 int res1 = 0 ;
13120 bool temp2 = false ;
13121 PyObject * obj0 = 0 ;
13122 PyObject * obj1 = 0 ;
13123 char * kwnames[] = {
13124 (char *) "self",(char *) "info", NULL
13125 };
13126
13127 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13128 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13129 if (!SWIG_IsOK(res1)) {
13130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13131 }
13132 arg1 = reinterpret_cast< wxFont * >(argp1);
13133 {
13134 arg2 = wxString_in_helper(obj1);
13135 if (arg2 == NULL) SWIG_fail;
13136 temp2 = true;
13137 }
13138 {
13139 PyThreadState* __tstate = wxPyBeginAllowThreads();
13140 result = (bool)(arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13141 wxPyEndAllowThreads(__tstate);
13142 if (PyErr_Occurred()) SWIG_fail;
13143 }
13144 {
13145 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13146 }
13147 {
13148 if (temp2)
13149 delete arg2;
13150 }
13151 return resultobj;
13152 fail:
13153 {
13154 if (temp2)
13155 delete arg2;
13156 }
13157 return NULL;
13158 }
13159
13160
13161 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13162 PyObject *resultobj = 0;
13163 wxFont *arg1 = (wxFont *) 0 ;
13164 wxString result;
13165 void *argp1 = 0 ;
13166 int res1 = 0 ;
13167 PyObject *swig_obj[1] ;
13168
13169 if (!args) SWIG_fail;
13170 swig_obj[0] = args;
13171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13172 if (!SWIG_IsOK(res1)) {
13173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13174 }
13175 arg1 = reinterpret_cast< wxFont * >(argp1);
13176 {
13177 PyThreadState* __tstate = wxPyBeginAllowThreads();
13178 result = ((wxFont const *)arg1)->GetFamilyString();
13179 wxPyEndAllowThreads(__tstate);
13180 if (PyErr_Occurred()) SWIG_fail;
13181 }
13182 {
13183 #if wxUSE_UNICODE
13184 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13185 #else
13186 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13187 #endif
13188 }
13189 return resultobj;
13190 fail:
13191 return NULL;
13192 }
13193
13194
13195 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13196 PyObject *resultobj = 0;
13197 wxFont *arg1 = (wxFont *) 0 ;
13198 wxString result;
13199 void *argp1 = 0 ;
13200 int res1 = 0 ;
13201 PyObject *swig_obj[1] ;
13202
13203 if (!args) SWIG_fail;
13204 swig_obj[0] = args;
13205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13206 if (!SWIG_IsOK(res1)) {
13207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13208 }
13209 arg1 = reinterpret_cast< wxFont * >(argp1);
13210 {
13211 PyThreadState* __tstate = wxPyBeginAllowThreads();
13212 result = ((wxFont const *)arg1)->GetStyleString();
13213 wxPyEndAllowThreads(__tstate);
13214 if (PyErr_Occurred()) SWIG_fail;
13215 }
13216 {
13217 #if wxUSE_UNICODE
13218 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13219 #else
13220 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13221 #endif
13222 }
13223 return resultobj;
13224 fail:
13225 return NULL;
13226 }
13227
13228
13229 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13230 PyObject *resultobj = 0;
13231 wxFont *arg1 = (wxFont *) 0 ;
13232 wxString result;
13233 void *argp1 = 0 ;
13234 int res1 = 0 ;
13235 PyObject *swig_obj[1] ;
13236
13237 if (!args) SWIG_fail;
13238 swig_obj[0] = args;
13239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13240 if (!SWIG_IsOK(res1)) {
13241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13242 }
13243 arg1 = reinterpret_cast< wxFont * >(argp1);
13244 {
13245 PyThreadState* __tstate = wxPyBeginAllowThreads();
13246 result = ((wxFont const *)arg1)->GetWeightString();
13247 wxPyEndAllowThreads(__tstate);
13248 if (PyErr_Occurred()) SWIG_fail;
13249 }
13250 {
13251 #if wxUSE_UNICODE
13252 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13253 #else
13254 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13255 #endif
13256 }
13257 return resultobj;
13258 fail:
13259 return NULL;
13260 }
13261
13262
13263 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13264 PyObject *resultobj = 0;
13265 wxFont *arg1 = (wxFont *) 0 ;
13266 bool arg2 = (bool) true ;
13267 void *argp1 = 0 ;
13268 int res1 = 0 ;
13269 bool val2 ;
13270 int ecode2 = 0 ;
13271 PyObject * obj0 = 0 ;
13272 PyObject * obj1 = 0 ;
13273 char * kwnames[] = {
13274 (char *) "self",(char *) "no", NULL
13275 };
13276
13277 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13278 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13279 if (!SWIG_IsOK(res1)) {
13280 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13281 }
13282 arg1 = reinterpret_cast< wxFont * >(argp1);
13283 if (obj1) {
13284 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13285 if (!SWIG_IsOK(ecode2)) {
13286 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13287 }
13288 arg2 = static_cast< bool >(val2);
13289 }
13290 {
13291 PyThreadState* __tstate = wxPyBeginAllowThreads();
13292 (arg1)->SetNoAntiAliasing(arg2);
13293 wxPyEndAllowThreads(__tstate);
13294 if (PyErr_Occurred()) SWIG_fail;
13295 }
13296 resultobj = SWIG_Py_Void();
13297 return resultobj;
13298 fail:
13299 return NULL;
13300 }
13301
13302
13303 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13304 PyObject *resultobj = 0;
13305 wxFont *arg1 = (wxFont *) 0 ;
13306 bool result;
13307 void *argp1 = 0 ;
13308 int res1 = 0 ;
13309 PyObject *swig_obj[1] ;
13310
13311 if (!args) SWIG_fail;
13312 swig_obj[0] = args;
13313 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13314 if (!SWIG_IsOK(res1)) {
13315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13316 }
13317 arg1 = reinterpret_cast< wxFont * >(argp1);
13318 {
13319 PyThreadState* __tstate = wxPyBeginAllowThreads();
13320 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13321 wxPyEndAllowThreads(__tstate);
13322 if (PyErr_Occurred()) SWIG_fail;
13323 }
13324 {
13325 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13326 }
13327 return resultobj;
13328 fail:
13329 return NULL;
13330 }
13331
13332
13333 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13334 PyObject *resultobj = 0;
13335 wxFontEncoding result;
13336
13337 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13338 {
13339 if (!wxPyCheckForApp()) SWIG_fail;
13340 PyThreadState* __tstate = wxPyBeginAllowThreads();
13341 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13342 wxPyEndAllowThreads(__tstate);
13343 if (PyErr_Occurred()) SWIG_fail;
13344 }
13345 resultobj = SWIG_From_int(static_cast< int >(result));
13346 return resultobj;
13347 fail:
13348 return NULL;
13349 }
13350
13351
13352 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13353 PyObject *resultobj = 0;
13354 wxFontEncoding arg1 ;
13355 int val1 ;
13356 int ecode1 = 0 ;
13357 PyObject * obj0 = 0 ;
13358 char * kwnames[] = {
13359 (char *) "encoding", NULL
13360 };
13361
13362 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13363 ecode1 = SWIG_AsVal_int(obj0, &val1);
13364 if (!SWIG_IsOK(ecode1)) {
13365 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13366 }
13367 arg1 = static_cast< wxFontEncoding >(val1);
13368 {
13369 if (!wxPyCheckForApp()) SWIG_fail;
13370 PyThreadState* __tstate = wxPyBeginAllowThreads();
13371 wxFont::SetDefaultEncoding(arg1);
13372 wxPyEndAllowThreads(__tstate);
13373 if (PyErr_Occurred()) SWIG_fail;
13374 }
13375 resultobj = SWIG_Py_Void();
13376 return resultobj;
13377 fail:
13378 return NULL;
13379 }
13380
13381
13382 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *obj;
13384 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13385 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13386 return SWIG_Py_Void();
13387 }
13388
13389 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13390 return SWIG_Python_InitShadowInstance(args);
13391 }
13392
13393 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13394 PyObject *resultobj = 0;
13395 wxPyFontEnumerator *result = 0 ;
13396
13397 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13398 {
13399 if (!wxPyCheckForApp()) SWIG_fail;
13400 PyThreadState* __tstate = wxPyBeginAllowThreads();
13401 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13402 wxPyEndAllowThreads(__tstate);
13403 if (PyErr_Occurred()) SWIG_fail;
13404 }
13405 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13406 return resultobj;
13407 fail:
13408 return NULL;
13409 }
13410
13411
13412 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13413 PyObject *resultobj = 0;
13414 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13415 void *argp1 = 0 ;
13416 int res1 = 0 ;
13417 PyObject *swig_obj[1] ;
13418
13419 if (!args) SWIG_fail;
13420 swig_obj[0] = args;
13421 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13422 if (!SWIG_IsOK(res1)) {
13423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13424 }
13425 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13426 {
13427 PyThreadState* __tstate = wxPyBeginAllowThreads();
13428 delete arg1;
13429
13430 wxPyEndAllowThreads(__tstate);
13431 if (PyErr_Occurred()) SWIG_fail;
13432 }
13433 resultobj = SWIG_Py_Void();
13434 return resultobj;
13435 fail:
13436 return NULL;
13437 }
13438
13439
13440 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13441 PyObject *resultobj = 0;
13442 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13443 PyObject *arg2 = (PyObject *) 0 ;
13444 PyObject *arg3 = (PyObject *) 0 ;
13445 bool arg4 ;
13446 void *argp1 = 0 ;
13447 int res1 = 0 ;
13448 bool val4 ;
13449 int ecode4 = 0 ;
13450 PyObject * obj0 = 0 ;
13451 PyObject * obj1 = 0 ;
13452 PyObject * obj2 = 0 ;
13453 PyObject * obj3 = 0 ;
13454 char * kwnames[] = {
13455 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13456 };
13457
13458 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13459 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13460 if (!SWIG_IsOK(res1)) {
13461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13462 }
13463 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13464 arg2 = obj1;
13465 arg3 = obj2;
13466 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13467 if (!SWIG_IsOK(ecode4)) {
13468 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13469 }
13470 arg4 = static_cast< bool >(val4);
13471 {
13472 PyThreadState* __tstate = wxPyBeginAllowThreads();
13473 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13474 wxPyEndAllowThreads(__tstate);
13475 if (PyErr_Occurred()) SWIG_fail;
13476 }
13477 resultobj = SWIG_Py_Void();
13478 return resultobj;
13479 fail:
13480 return NULL;
13481 }
13482
13483
13484 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13485 PyObject *resultobj = 0;
13486 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13487 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13488 bool arg3 = (bool) false ;
13489 bool result;
13490 void *argp1 = 0 ;
13491 int res1 = 0 ;
13492 int val2 ;
13493 int ecode2 = 0 ;
13494 bool val3 ;
13495 int ecode3 = 0 ;
13496 PyObject * obj0 = 0 ;
13497 PyObject * obj1 = 0 ;
13498 PyObject * obj2 = 0 ;
13499 char * kwnames[] = {
13500 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13501 };
13502
13503 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13504 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13505 if (!SWIG_IsOK(res1)) {
13506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13507 }
13508 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13509 if (obj1) {
13510 ecode2 = SWIG_AsVal_int(obj1, &val2);
13511 if (!SWIG_IsOK(ecode2)) {
13512 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13513 }
13514 arg2 = static_cast< wxFontEncoding >(val2);
13515 }
13516 if (obj2) {
13517 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13518 if (!SWIG_IsOK(ecode3)) {
13519 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13520 }
13521 arg3 = static_cast< bool >(val3);
13522 }
13523 {
13524 PyThreadState* __tstate = wxPyBeginAllowThreads();
13525 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13526 wxPyEndAllowThreads(__tstate);
13527 if (PyErr_Occurred()) SWIG_fail;
13528 }
13529 {
13530 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13531 }
13532 return resultobj;
13533 fail:
13534 return NULL;
13535 }
13536
13537
13538 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13539 PyObject *resultobj = 0;
13540 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13541 wxString const &arg2_defvalue = wxPyEmptyString ;
13542 wxString *arg2 = (wxString *) &arg2_defvalue ;
13543 bool result;
13544 void *argp1 = 0 ;
13545 int res1 = 0 ;
13546 bool temp2 = false ;
13547 PyObject * obj0 = 0 ;
13548 PyObject * obj1 = 0 ;
13549 char * kwnames[] = {
13550 (char *) "self",(char *) "facename", NULL
13551 };
13552
13553 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13554 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13555 if (!SWIG_IsOK(res1)) {
13556 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13557 }
13558 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13559 if (obj1) {
13560 {
13561 arg2 = wxString_in_helper(obj1);
13562 if (arg2 == NULL) SWIG_fail;
13563 temp2 = true;
13564 }
13565 }
13566 {
13567 PyThreadState* __tstate = wxPyBeginAllowThreads();
13568 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13569 wxPyEndAllowThreads(__tstate);
13570 if (PyErr_Occurred()) SWIG_fail;
13571 }
13572 {
13573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13574 }
13575 {
13576 if (temp2)
13577 delete arg2;
13578 }
13579 return resultobj;
13580 fail:
13581 {
13582 if (temp2)
13583 delete arg2;
13584 }
13585 return NULL;
13586 }
13587
13588
13589 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13590 PyObject *resultobj = 0;
13591 PyObject *result = 0 ;
13592
13593 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetEncodings",0,0,0)) SWIG_fail;
13594 {
13595 PyThreadState* __tstate = wxPyBeginAllowThreads();
13596 result = (PyObject *)wxPyFontEnumerator_GetEncodings();
13597 wxPyEndAllowThreads(__tstate);
13598 if (PyErr_Occurred()) SWIG_fail;
13599 }
13600 resultobj = result;
13601 return resultobj;
13602 fail:
13603 return NULL;
13604 }
13605
13606
13607 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13608 PyObject *resultobj = 0;
13609 PyObject *result = 0 ;
13610
13611 if (!SWIG_Python_UnpackTuple(args,"FontEnumerator_GetFacenames",0,0,0)) SWIG_fail;
13612 {
13613 PyThreadState* __tstate = wxPyBeginAllowThreads();
13614 result = (PyObject *)wxPyFontEnumerator_GetFacenames();
13615 wxPyEndAllowThreads(__tstate);
13616 if (PyErr_Occurred()) SWIG_fail;
13617 }
13618 resultobj = result;
13619 return resultobj;
13620 fail:
13621 return NULL;
13622 }
13623
13624
13625 SWIGINTERN PyObject *_wrap_FontEnumerator_IsValidFacename(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13626 PyObject *resultobj = 0;
13627 wxString *arg1 = 0 ;
13628 bool result;
13629 bool temp1 = false ;
13630 PyObject * obj0 = 0 ;
13631 char * kwnames[] = {
13632 (char *) "str", NULL
13633 };
13634
13635 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontEnumerator_IsValidFacename",kwnames,&obj0)) SWIG_fail;
13636 {
13637 arg1 = wxString_in_helper(obj0);
13638 if (arg1 == NULL) SWIG_fail;
13639 temp1 = true;
13640 }
13641 {
13642 PyThreadState* __tstate = wxPyBeginAllowThreads();
13643 result = (bool)wxPyFontEnumerator::IsValidFacename((wxString const &)*arg1);
13644 wxPyEndAllowThreads(__tstate);
13645 if (PyErr_Occurred()) SWIG_fail;
13646 }
13647 {
13648 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13649 }
13650 {
13651 if (temp1)
13652 delete arg1;
13653 }
13654 return resultobj;
13655 fail:
13656 {
13657 if (temp1)
13658 delete arg1;
13659 }
13660 return NULL;
13661 }
13662
13663
13664 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13665 PyObject *obj;
13666 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13667 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13668 return SWIG_Py_Void();
13669 }
13670
13671 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13672 return SWIG_Python_InitShadowInstance(args);
13673 }
13674
13675 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13676 PyObject *resultobj = 0;
13677 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13678 int arg2 ;
13679 void *argp1 = 0 ;
13680 int res1 = 0 ;
13681 int val2 ;
13682 int ecode2 = 0 ;
13683 PyObject *swig_obj[2] ;
13684
13685 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13687 if (!SWIG_IsOK(res1)) {
13688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13689 }
13690 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13691 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13692 if (!SWIG_IsOK(ecode2)) {
13693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13694 }
13695 arg2 = static_cast< int >(val2);
13696 if (arg1) (arg1)->Language = arg2;
13697
13698 resultobj = SWIG_Py_Void();
13699 return resultobj;
13700 fail:
13701 return NULL;
13702 }
13703
13704
13705 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13706 PyObject *resultobj = 0;
13707 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13708 int result;
13709 void *argp1 = 0 ;
13710 int res1 = 0 ;
13711 PyObject *swig_obj[1] ;
13712
13713 if (!args) SWIG_fail;
13714 swig_obj[0] = args;
13715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13716 if (!SWIG_IsOK(res1)) {
13717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13718 }
13719 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13720 result = (int) ((arg1)->Language);
13721 resultobj = SWIG_From_int(static_cast< int >(result));
13722 return resultobj;
13723 fail:
13724 return NULL;
13725 }
13726
13727
13728 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13729 PyObject *resultobj = 0;
13730 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13731 wxString *arg2 = (wxString *) 0 ;
13732 void *argp1 = 0 ;
13733 int res1 = 0 ;
13734 bool temp2 = false ;
13735 PyObject *swig_obj[2] ;
13736
13737 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13739 if (!SWIG_IsOK(res1)) {
13740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13741 }
13742 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13743 {
13744 arg2 = wxString_in_helper(swig_obj[1]);
13745 if (arg2 == NULL) SWIG_fail;
13746 temp2 = true;
13747 }
13748 if (arg1) (arg1)->CanonicalName = *arg2;
13749
13750 resultobj = SWIG_Py_Void();
13751 {
13752 if (temp2)
13753 delete arg2;
13754 }
13755 return resultobj;
13756 fail:
13757 {
13758 if (temp2)
13759 delete arg2;
13760 }
13761 return NULL;
13762 }
13763
13764
13765 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13766 PyObject *resultobj = 0;
13767 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13768 wxString *result = 0 ;
13769 void *argp1 = 0 ;
13770 int res1 = 0 ;
13771 PyObject *swig_obj[1] ;
13772
13773 if (!args) SWIG_fail;
13774 swig_obj[0] = args;
13775 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13776 if (!SWIG_IsOK(res1)) {
13777 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13778 }
13779 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13780 result = (wxString *)& ((arg1)->CanonicalName);
13781 {
13782 #if wxUSE_UNICODE
13783 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13784 #else
13785 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13786 #endif
13787 }
13788 return resultobj;
13789 fail:
13790 return NULL;
13791 }
13792
13793
13794 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13795 PyObject *resultobj = 0;
13796 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13797 wxString *arg2 = (wxString *) 0 ;
13798 void *argp1 = 0 ;
13799 int res1 = 0 ;
13800 bool temp2 = false ;
13801 PyObject *swig_obj[2] ;
13802
13803 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13805 if (!SWIG_IsOK(res1)) {
13806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13807 }
13808 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13809 {
13810 arg2 = wxString_in_helper(swig_obj[1]);
13811 if (arg2 == NULL) SWIG_fail;
13812 temp2 = true;
13813 }
13814 if (arg1) (arg1)->Description = *arg2;
13815
13816 resultobj = SWIG_Py_Void();
13817 {
13818 if (temp2)
13819 delete arg2;
13820 }
13821 return resultobj;
13822 fail:
13823 {
13824 if (temp2)
13825 delete arg2;
13826 }
13827 return NULL;
13828 }
13829
13830
13831 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13832 PyObject *resultobj = 0;
13833 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13834 wxString *result = 0 ;
13835 void *argp1 = 0 ;
13836 int res1 = 0 ;
13837 PyObject *swig_obj[1] ;
13838
13839 if (!args) SWIG_fail;
13840 swig_obj[0] = args;
13841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13842 if (!SWIG_IsOK(res1)) {
13843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13844 }
13845 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13846 result = (wxString *)& ((arg1)->Description);
13847 {
13848 #if wxUSE_UNICODE
13849 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13850 #else
13851 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13852 #endif
13853 }
13854 return resultobj;
13855 fail:
13856 return NULL;
13857 }
13858
13859
13860 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13861 PyObject *obj;
13862 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13863 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13864 return SWIG_Py_Void();
13865 }
13866
13867 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13868 PyObject *resultobj = 0;
13869 int arg1 = (int) -1 ;
13870 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13871 wxLocale *result = 0 ;
13872 int val1 ;
13873 int ecode1 = 0 ;
13874 int val2 ;
13875 int ecode2 = 0 ;
13876 PyObject * obj0 = 0 ;
13877 PyObject * obj1 = 0 ;
13878 char * kwnames[] = {
13879 (char *) "language",(char *) "flags", NULL
13880 };
13881
13882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13883 if (obj0) {
13884 ecode1 = SWIG_AsVal_int(obj0, &val1);
13885 if (!SWIG_IsOK(ecode1)) {
13886 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13887 }
13888 arg1 = static_cast< int >(val1);
13889 }
13890 if (obj1) {
13891 ecode2 = SWIG_AsVal_int(obj1, &val2);
13892 if (!SWIG_IsOK(ecode2)) {
13893 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13894 }
13895 arg2 = static_cast< int >(val2);
13896 }
13897 {
13898 PyThreadState* __tstate = wxPyBeginAllowThreads();
13899 result = (wxLocale *)new_wxLocale(arg1,arg2);
13900 wxPyEndAllowThreads(__tstate);
13901 if (PyErr_Occurred()) SWIG_fail;
13902 }
13903 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13904 return resultobj;
13905 fail:
13906 return NULL;
13907 }
13908
13909
13910 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13911 PyObject *resultobj = 0;
13912 wxLocale *arg1 = (wxLocale *) 0 ;
13913 void *argp1 = 0 ;
13914 int res1 = 0 ;
13915 PyObject *swig_obj[1] ;
13916
13917 if (!args) SWIG_fail;
13918 swig_obj[0] = args;
13919 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13920 if (!SWIG_IsOK(res1)) {
13921 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13922 }
13923 arg1 = reinterpret_cast< wxLocale * >(argp1);
13924 {
13925 PyThreadState* __tstate = wxPyBeginAllowThreads();
13926 delete arg1;
13927
13928 wxPyEndAllowThreads(__tstate);
13929 if (PyErr_Occurred()) SWIG_fail;
13930 }
13931 resultobj = SWIG_Py_Void();
13932 return resultobj;
13933 fail:
13934 return NULL;
13935 }
13936
13937
13938 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13939 PyObject *resultobj = 0;
13940 wxLocale *arg1 = (wxLocale *) 0 ;
13941 wxString *arg2 = 0 ;
13942 wxString const &arg3_defvalue = wxPyEmptyString ;
13943 wxString *arg3 = (wxString *) &arg3_defvalue ;
13944 wxString const &arg4_defvalue = wxPyEmptyString ;
13945 wxString *arg4 = (wxString *) &arg4_defvalue ;
13946 bool arg5 = (bool) true ;
13947 bool arg6 = (bool) false ;
13948 bool result;
13949 void *argp1 = 0 ;
13950 int res1 = 0 ;
13951 bool temp2 = false ;
13952 bool temp3 = false ;
13953 bool temp4 = false ;
13954 bool val5 ;
13955 int ecode5 = 0 ;
13956 bool val6 ;
13957 int ecode6 = 0 ;
13958 PyObject * obj0 = 0 ;
13959 PyObject * obj1 = 0 ;
13960 PyObject * obj2 = 0 ;
13961 PyObject * obj3 = 0 ;
13962 PyObject * obj4 = 0 ;
13963 PyObject * obj5 = 0 ;
13964 char * kwnames[] = {
13965 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13966 };
13967
13968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13970 if (!SWIG_IsOK(res1)) {
13971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13972 }
13973 arg1 = reinterpret_cast< wxLocale * >(argp1);
13974 {
13975 arg2 = wxString_in_helper(obj1);
13976 if (arg2 == NULL) SWIG_fail;
13977 temp2 = true;
13978 }
13979 if (obj2) {
13980 {
13981 arg3 = wxString_in_helper(obj2);
13982 if (arg3 == NULL) SWIG_fail;
13983 temp3 = true;
13984 }
13985 }
13986 if (obj3) {
13987 {
13988 arg4 = wxString_in_helper(obj3);
13989 if (arg4 == NULL) SWIG_fail;
13990 temp4 = true;
13991 }
13992 }
13993 if (obj4) {
13994 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13995 if (!SWIG_IsOK(ecode5)) {
13996 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13997 }
13998 arg5 = static_cast< bool >(val5);
13999 }
14000 if (obj5) {
14001 ecode6 = SWIG_AsVal_bool(obj5, &val6);
14002 if (!SWIG_IsOK(ecode6)) {
14003 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
14004 }
14005 arg6 = static_cast< bool >(val6);
14006 }
14007 {
14008 PyThreadState* __tstate = wxPyBeginAllowThreads();
14009 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
14010 wxPyEndAllowThreads(__tstate);
14011 if (PyErr_Occurred()) SWIG_fail;
14012 }
14013 {
14014 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14015 }
14016 {
14017 if (temp2)
14018 delete arg2;
14019 }
14020 {
14021 if (temp3)
14022 delete arg3;
14023 }
14024 {
14025 if (temp4)
14026 delete arg4;
14027 }
14028 return resultobj;
14029 fail:
14030 {
14031 if (temp2)
14032 delete arg2;
14033 }
14034 {
14035 if (temp3)
14036 delete arg3;
14037 }
14038 {
14039 if (temp4)
14040 delete arg4;
14041 }
14042 return NULL;
14043 }
14044
14045
14046 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14047 PyObject *resultobj = 0;
14048 wxLocale *arg1 = (wxLocale *) 0 ;
14049 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14050 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14051 bool result;
14052 void *argp1 = 0 ;
14053 int res1 = 0 ;
14054 int val2 ;
14055 int ecode2 = 0 ;
14056 int val3 ;
14057 int ecode3 = 0 ;
14058 PyObject * obj0 = 0 ;
14059 PyObject * obj1 = 0 ;
14060 PyObject * obj2 = 0 ;
14061 char * kwnames[] = {
14062 (char *) "self",(char *) "language",(char *) "flags", NULL
14063 };
14064
14065 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14066 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14067 if (!SWIG_IsOK(res1)) {
14068 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14069 }
14070 arg1 = reinterpret_cast< wxLocale * >(argp1);
14071 if (obj1) {
14072 ecode2 = SWIG_AsVal_int(obj1, &val2);
14073 if (!SWIG_IsOK(ecode2)) {
14074 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14075 }
14076 arg2 = static_cast< int >(val2);
14077 }
14078 if (obj2) {
14079 ecode3 = SWIG_AsVal_int(obj2, &val3);
14080 if (!SWIG_IsOK(ecode3)) {
14081 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14082 }
14083 arg3 = static_cast< int >(val3);
14084 }
14085 {
14086 PyThreadState* __tstate = wxPyBeginAllowThreads();
14087 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14088 wxPyEndAllowThreads(__tstate);
14089 if (PyErr_Occurred()) SWIG_fail;
14090 }
14091 {
14092 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14093 }
14094 return resultobj;
14095 fail:
14096 return NULL;
14097 }
14098
14099
14100 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14101 PyObject *resultobj = 0;
14102 int result;
14103
14104 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14105 {
14106 PyThreadState* __tstate = wxPyBeginAllowThreads();
14107 result = (int)wxLocale::GetSystemLanguage();
14108 wxPyEndAllowThreads(__tstate);
14109 if (PyErr_Occurred()) SWIG_fail;
14110 }
14111 resultobj = SWIG_From_int(static_cast< int >(result));
14112 return resultobj;
14113 fail:
14114 return NULL;
14115 }
14116
14117
14118 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14119 PyObject *resultobj = 0;
14120 wxFontEncoding result;
14121
14122 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14123 {
14124 PyThreadState* __tstate = wxPyBeginAllowThreads();
14125 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14126 wxPyEndAllowThreads(__tstate);
14127 if (PyErr_Occurred()) SWIG_fail;
14128 }
14129 resultobj = SWIG_From_int(static_cast< int >(result));
14130 return resultobj;
14131 fail:
14132 return NULL;
14133 }
14134
14135
14136 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14137 PyObject *resultobj = 0;
14138 wxString result;
14139
14140 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14141 {
14142 PyThreadState* __tstate = wxPyBeginAllowThreads();
14143 result = wxLocale::GetSystemEncodingName();
14144 wxPyEndAllowThreads(__tstate);
14145 if (PyErr_Occurred()) SWIG_fail;
14146 }
14147 {
14148 #if wxUSE_UNICODE
14149 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14150 #else
14151 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14152 #endif
14153 }
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14161 PyObject *resultobj = 0;
14162 wxLocale *arg1 = (wxLocale *) 0 ;
14163 bool result;
14164 void *argp1 = 0 ;
14165 int res1 = 0 ;
14166 PyObject *swig_obj[1] ;
14167
14168 if (!args) SWIG_fail;
14169 swig_obj[0] = args;
14170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14171 if (!SWIG_IsOK(res1)) {
14172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14173 }
14174 arg1 = reinterpret_cast< wxLocale * >(argp1);
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = (bool)((wxLocale const *)arg1)->IsOk();
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 {
14182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14183 }
14184 return resultobj;
14185 fail:
14186 return NULL;
14187 }
14188
14189
14190 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14191 PyObject *resultobj = 0;
14192 wxLocale *arg1 = (wxLocale *) 0 ;
14193 wxString result;
14194 void *argp1 = 0 ;
14195 int res1 = 0 ;
14196 PyObject *swig_obj[1] ;
14197
14198 if (!args) SWIG_fail;
14199 swig_obj[0] = args;
14200 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14201 if (!SWIG_IsOK(res1)) {
14202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14203 }
14204 arg1 = reinterpret_cast< wxLocale * >(argp1);
14205 {
14206 PyThreadState* __tstate = wxPyBeginAllowThreads();
14207 result = ((wxLocale const *)arg1)->GetLocale();
14208 wxPyEndAllowThreads(__tstate);
14209 if (PyErr_Occurred()) SWIG_fail;
14210 }
14211 {
14212 #if wxUSE_UNICODE
14213 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14214 #else
14215 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14216 #endif
14217 }
14218 return resultobj;
14219 fail:
14220 return NULL;
14221 }
14222
14223
14224 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14225 PyObject *resultobj = 0;
14226 wxLocale *arg1 = (wxLocale *) 0 ;
14227 int result;
14228 void *argp1 = 0 ;
14229 int res1 = 0 ;
14230 PyObject *swig_obj[1] ;
14231
14232 if (!args) SWIG_fail;
14233 swig_obj[0] = args;
14234 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14235 if (!SWIG_IsOK(res1)) {
14236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14237 }
14238 arg1 = reinterpret_cast< wxLocale * >(argp1);
14239 {
14240 PyThreadState* __tstate = wxPyBeginAllowThreads();
14241 result = (int)((wxLocale const *)arg1)->GetLanguage();
14242 wxPyEndAllowThreads(__tstate);
14243 if (PyErr_Occurred()) SWIG_fail;
14244 }
14245 resultobj = SWIG_From_int(static_cast< int >(result));
14246 return resultobj;
14247 fail:
14248 return NULL;
14249 }
14250
14251
14252 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14253 PyObject *resultobj = 0;
14254 wxLocale *arg1 = (wxLocale *) 0 ;
14255 wxString result;
14256 void *argp1 = 0 ;
14257 int res1 = 0 ;
14258 PyObject *swig_obj[1] ;
14259
14260 if (!args) SWIG_fail;
14261 swig_obj[0] = args;
14262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14263 if (!SWIG_IsOK(res1)) {
14264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14265 }
14266 arg1 = reinterpret_cast< wxLocale * >(argp1);
14267 {
14268 PyThreadState* __tstate = wxPyBeginAllowThreads();
14269 result = ((wxLocale const *)arg1)->GetSysName();
14270 wxPyEndAllowThreads(__tstate);
14271 if (PyErr_Occurred()) SWIG_fail;
14272 }
14273 {
14274 #if wxUSE_UNICODE
14275 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14276 #else
14277 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14278 #endif
14279 }
14280 return resultobj;
14281 fail:
14282 return NULL;
14283 }
14284
14285
14286 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14287 PyObject *resultobj = 0;
14288 wxLocale *arg1 = (wxLocale *) 0 ;
14289 wxString result;
14290 void *argp1 = 0 ;
14291 int res1 = 0 ;
14292 PyObject *swig_obj[1] ;
14293
14294 if (!args) SWIG_fail;
14295 swig_obj[0] = args;
14296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14297 if (!SWIG_IsOK(res1)) {
14298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14299 }
14300 arg1 = reinterpret_cast< wxLocale * >(argp1);
14301 {
14302 PyThreadState* __tstate = wxPyBeginAllowThreads();
14303 result = ((wxLocale const *)arg1)->GetCanonicalName();
14304 wxPyEndAllowThreads(__tstate);
14305 if (PyErr_Occurred()) SWIG_fail;
14306 }
14307 {
14308 #if wxUSE_UNICODE
14309 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14310 #else
14311 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14312 #endif
14313 }
14314 return resultobj;
14315 fail:
14316 return NULL;
14317 }
14318
14319
14320 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14321 PyObject *resultobj = 0;
14322 wxString *arg1 = 0 ;
14323 bool temp1 = false ;
14324 PyObject * obj0 = 0 ;
14325 char * kwnames[] = {
14326 (char *) "prefix", NULL
14327 };
14328
14329 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14330 {
14331 arg1 = wxString_in_helper(obj0);
14332 if (arg1 == NULL) SWIG_fail;
14333 temp1 = true;
14334 }
14335 {
14336 PyThreadState* __tstate = wxPyBeginAllowThreads();
14337 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14338 wxPyEndAllowThreads(__tstate);
14339 if (PyErr_Occurred()) SWIG_fail;
14340 }
14341 resultobj = SWIG_Py_Void();
14342 {
14343 if (temp1)
14344 delete arg1;
14345 }
14346 return resultobj;
14347 fail:
14348 {
14349 if (temp1)
14350 delete arg1;
14351 }
14352 return NULL;
14353 }
14354
14355
14356 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14357 PyObject *resultobj = 0;
14358 wxLocale *arg1 = (wxLocale *) 0 ;
14359 wxString *arg2 = 0 ;
14360 bool result;
14361 void *argp1 = 0 ;
14362 int res1 = 0 ;
14363 bool temp2 = false ;
14364 PyObject * obj0 = 0 ;
14365 PyObject * obj1 = 0 ;
14366 char * kwnames[] = {
14367 (char *) "self",(char *) "szDomain", NULL
14368 };
14369
14370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14372 if (!SWIG_IsOK(res1)) {
14373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14374 }
14375 arg1 = reinterpret_cast< wxLocale * >(argp1);
14376 {
14377 arg2 = wxString_in_helper(obj1);
14378 if (arg2 == NULL) SWIG_fail;
14379 temp2 = true;
14380 }
14381 {
14382 PyThreadState* __tstate = wxPyBeginAllowThreads();
14383 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14384 wxPyEndAllowThreads(__tstate);
14385 if (PyErr_Occurred()) SWIG_fail;
14386 }
14387 {
14388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14389 }
14390 {
14391 if (temp2)
14392 delete arg2;
14393 }
14394 return resultobj;
14395 fail:
14396 {
14397 if (temp2)
14398 delete arg2;
14399 }
14400 return NULL;
14401 }
14402
14403
14404 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14405 PyObject *resultobj = 0;
14406 wxLocale *arg1 = (wxLocale *) 0 ;
14407 wxString *arg2 = 0 ;
14408 bool result;
14409 void *argp1 = 0 ;
14410 int res1 = 0 ;
14411 bool temp2 = false ;
14412 PyObject * obj0 = 0 ;
14413 PyObject * obj1 = 0 ;
14414 char * kwnames[] = {
14415 (char *) "self",(char *) "szDomain", NULL
14416 };
14417
14418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14420 if (!SWIG_IsOK(res1)) {
14421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14422 }
14423 arg1 = reinterpret_cast< wxLocale * >(argp1);
14424 {
14425 arg2 = wxString_in_helper(obj1);
14426 if (arg2 == NULL) SWIG_fail;
14427 temp2 = true;
14428 }
14429 {
14430 PyThreadState* __tstate = wxPyBeginAllowThreads();
14431 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14432 wxPyEndAllowThreads(__tstate);
14433 if (PyErr_Occurred()) SWIG_fail;
14434 }
14435 {
14436 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14437 }
14438 {
14439 if (temp2)
14440 delete arg2;
14441 }
14442 return resultobj;
14443 fail:
14444 {
14445 if (temp2)
14446 delete arg2;
14447 }
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 int arg1 ;
14455 wxLanguageInfo *result = 0 ;
14456 int val1 ;
14457 int ecode1 = 0 ;
14458 PyObject * obj0 = 0 ;
14459 char * kwnames[] = {
14460 (char *) "lang", NULL
14461 };
14462
14463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14464 ecode1 = SWIG_AsVal_int(obj0, &val1);
14465 if (!SWIG_IsOK(ecode1)) {
14466 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14467 }
14468 arg1 = static_cast< int >(val1);
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14476 return resultobj;
14477 fail:
14478 return NULL;
14479 }
14480
14481
14482 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14483 PyObject *resultobj = 0;
14484 int arg1 ;
14485 wxString result;
14486 int val1 ;
14487 int ecode1 = 0 ;
14488 PyObject * obj0 = 0 ;
14489 char * kwnames[] = {
14490 (char *) "lang", NULL
14491 };
14492
14493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14494 ecode1 = SWIG_AsVal_int(obj0, &val1);
14495 if (!SWIG_IsOK(ecode1)) {
14496 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14497 }
14498 arg1 = static_cast< int >(val1);
14499 {
14500 PyThreadState* __tstate = wxPyBeginAllowThreads();
14501 result = wxLocale::GetLanguageName(arg1);
14502 wxPyEndAllowThreads(__tstate);
14503 if (PyErr_Occurred()) SWIG_fail;
14504 }
14505 {
14506 #if wxUSE_UNICODE
14507 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14508 #else
14509 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14510 #endif
14511 }
14512 return resultobj;
14513 fail:
14514 return NULL;
14515 }
14516
14517
14518 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14519 PyObject *resultobj = 0;
14520 wxString *arg1 = 0 ;
14521 wxLanguageInfo *result = 0 ;
14522 bool temp1 = false ;
14523 PyObject * obj0 = 0 ;
14524 char * kwnames[] = {
14525 (char *) "locale", NULL
14526 };
14527
14528 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14529 {
14530 arg1 = wxString_in_helper(obj0);
14531 if (arg1 == NULL) SWIG_fail;
14532 temp1 = true;
14533 }
14534 {
14535 PyThreadState* __tstate = wxPyBeginAllowThreads();
14536 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14537 wxPyEndAllowThreads(__tstate);
14538 if (PyErr_Occurred()) SWIG_fail;
14539 }
14540 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14541 {
14542 if (temp1)
14543 delete arg1;
14544 }
14545 return resultobj;
14546 fail:
14547 {
14548 if (temp1)
14549 delete arg1;
14550 }
14551 return NULL;
14552 }
14553
14554
14555 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14556 PyObject *resultobj = 0;
14557 wxLanguageInfo *arg1 = 0 ;
14558 void *argp1 = 0 ;
14559 int res1 = 0 ;
14560 PyObject * obj0 = 0 ;
14561 char * kwnames[] = {
14562 (char *) "info", NULL
14563 };
14564
14565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14566 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14567 if (!SWIG_IsOK(res1)) {
14568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14569 }
14570 if (!argp1) {
14571 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14572 }
14573 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14574 {
14575 PyThreadState* __tstate = wxPyBeginAllowThreads();
14576 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14577 wxPyEndAllowThreads(__tstate);
14578 if (PyErr_Occurred()) SWIG_fail;
14579 }
14580 resultobj = SWIG_Py_Void();
14581 return resultobj;
14582 fail:
14583 return NULL;
14584 }
14585
14586
14587 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14588 PyObject *resultobj = 0;
14589 wxLocale *arg1 = (wxLocale *) 0 ;
14590 wxString *arg2 = 0 ;
14591 wxString const &arg3_defvalue = wxPyEmptyString ;
14592 wxString *arg3 = (wxString *) &arg3_defvalue ;
14593 wxString result;
14594 void *argp1 = 0 ;
14595 int res1 = 0 ;
14596 bool temp2 = false ;
14597 bool temp3 = false ;
14598 PyObject * obj0 = 0 ;
14599 PyObject * obj1 = 0 ;
14600 PyObject * obj2 = 0 ;
14601 char * kwnames[] = {
14602 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14603 };
14604
14605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14607 if (!SWIG_IsOK(res1)) {
14608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14609 }
14610 arg1 = reinterpret_cast< wxLocale * >(argp1);
14611 {
14612 arg2 = wxString_in_helper(obj1);
14613 if (arg2 == NULL) SWIG_fail;
14614 temp2 = true;
14615 }
14616 if (obj2) {
14617 {
14618 arg3 = wxString_in_helper(obj2);
14619 if (arg3 == NULL) SWIG_fail;
14620 temp3 = true;
14621 }
14622 }
14623 {
14624 PyThreadState* __tstate = wxPyBeginAllowThreads();
14625 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14626 wxPyEndAllowThreads(__tstate);
14627 if (PyErr_Occurred()) SWIG_fail;
14628 }
14629 {
14630 #if wxUSE_UNICODE
14631 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14632 #else
14633 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14634 #endif
14635 }
14636 {
14637 if (temp2)
14638 delete arg2;
14639 }
14640 {
14641 if (temp3)
14642 delete arg3;
14643 }
14644 return resultobj;
14645 fail:
14646 {
14647 if (temp2)
14648 delete arg2;
14649 }
14650 {
14651 if (temp3)
14652 delete arg3;
14653 }
14654 return NULL;
14655 }
14656
14657
14658 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14659 PyObject *resultobj = 0;
14660 wxLocale *arg1 = (wxLocale *) 0 ;
14661 wxString *result = 0 ;
14662 void *argp1 = 0 ;
14663 int res1 = 0 ;
14664 PyObject *swig_obj[1] ;
14665
14666 if (!args) SWIG_fail;
14667 swig_obj[0] = args;
14668 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14669 if (!SWIG_IsOK(res1)) {
14670 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14671 }
14672 arg1 = reinterpret_cast< wxLocale * >(argp1);
14673 {
14674 PyThreadState* __tstate = wxPyBeginAllowThreads();
14675 {
14676 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14677 result = (wxString *) &_result_ref;
14678 }
14679 wxPyEndAllowThreads(__tstate);
14680 if (PyErr_Occurred()) SWIG_fail;
14681 }
14682 {
14683 #if wxUSE_UNICODE
14684 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14685 #else
14686 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14687 #endif
14688 }
14689 return resultobj;
14690 fail:
14691 return NULL;
14692 }
14693
14694
14695 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14696 PyObject *obj;
14697 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14698 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14699 return SWIG_Py_Void();
14700 }
14701
14702 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14703 return SWIG_Python_InitShadowInstance(args);
14704 }
14705
14706 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14707 PyObject *resultobj = 0;
14708 wxLocale *result = 0 ;
14709
14710 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14711 {
14712 PyThreadState* __tstate = wxPyBeginAllowThreads();
14713 result = (wxLocale *)wxGetLocale();
14714 wxPyEndAllowThreads(__tstate);
14715 if (PyErr_Occurred()) SWIG_fail;
14716 }
14717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14718 return resultobj;
14719 fail:
14720 return NULL;
14721 }
14722
14723
14724 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14725 PyObject *resultobj = 0;
14726 wxString *arg1 = 0 ;
14727 wxString result;
14728 bool temp1 = false ;
14729
14730 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14731 {
14732 arg1 = wxString_in_helper(swig_obj[0]);
14733 if (arg1 == NULL) SWIG_fail;
14734 temp1 = true;
14735 }
14736 {
14737 PyThreadState* __tstate = wxPyBeginAllowThreads();
14738 result = wxGetTranslation((wxString const &)*arg1);
14739 wxPyEndAllowThreads(__tstate);
14740 if (PyErr_Occurred()) SWIG_fail;
14741 }
14742 {
14743 #if wxUSE_UNICODE
14744 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14745 #else
14746 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14747 #endif
14748 }
14749 {
14750 if (temp1)
14751 delete arg1;
14752 }
14753 return resultobj;
14754 fail:
14755 {
14756 if (temp1)
14757 delete arg1;
14758 }
14759 return NULL;
14760 }
14761
14762
14763 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14764 PyObject *resultobj = 0;
14765 wxString *arg1 = 0 ;
14766 wxString *arg2 = 0 ;
14767 size_t arg3 ;
14768 wxString result;
14769 bool temp1 = false ;
14770 bool temp2 = false ;
14771 size_t val3 ;
14772 int ecode3 = 0 ;
14773
14774 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14775 {
14776 arg1 = wxString_in_helper(swig_obj[0]);
14777 if (arg1 == NULL) SWIG_fail;
14778 temp1 = true;
14779 }
14780 {
14781 arg2 = wxString_in_helper(swig_obj[1]);
14782 if (arg2 == NULL) SWIG_fail;
14783 temp2 = true;
14784 }
14785 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14786 if (!SWIG_IsOK(ecode3)) {
14787 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14788 }
14789 arg3 = static_cast< size_t >(val3);
14790 {
14791 PyThreadState* __tstate = wxPyBeginAllowThreads();
14792 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14793 wxPyEndAllowThreads(__tstate);
14794 if (PyErr_Occurred()) SWIG_fail;
14795 }
14796 {
14797 #if wxUSE_UNICODE
14798 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14799 #else
14800 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14801 #endif
14802 }
14803 {
14804 if (temp1)
14805 delete arg1;
14806 }
14807 {
14808 if (temp2)
14809 delete arg2;
14810 }
14811 return resultobj;
14812 fail:
14813 {
14814 if (temp1)
14815 delete arg1;
14816 }
14817 {
14818 if (temp2)
14819 delete arg2;
14820 }
14821 return NULL;
14822 }
14823
14824
14825 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14826 int argc;
14827 PyObject *argv[4];
14828
14829 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14830 --argc;
14831 if (argc == 1) {
14832 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14833 }
14834 if (argc == 3) {
14835 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14836 }
14837
14838 fail:
14839 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14840 return NULL;
14841 }
14842
14843
14844 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14845 PyObject *resultobj = 0;
14846 wxEncodingConverter *result = 0 ;
14847
14848 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14849 {
14850 PyThreadState* __tstate = wxPyBeginAllowThreads();
14851 result = (wxEncodingConverter *)new wxEncodingConverter();
14852 wxPyEndAllowThreads(__tstate);
14853 if (PyErr_Occurred()) SWIG_fail;
14854 }
14855 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14856 return resultobj;
14857 fail:
14858 return NULL;
14859 }
14860
14861
14862 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14863 PyObject *resultobj = 0;
14864 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14865 void *argp1 = 0 ;
14866 int res1 = 0 ;
14867 PyObject *swig_obj[1] ;
14868
14869 if (!args) SWIG_fail;
14870 swig_obj[0] = args;
14871 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14872 if (!SWIG_IsOK(res1)) {
14873 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14874 }
14875 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14876 {
14877 PyThreadState* __tstate = wxPyBeginAllowThreads();
14878 delete arg1;
14879
14880 wxPyEndAllowThreads(__tstate);
14881 if (PyErr_Occurred()) SWIG_fail;
14882 }
14883 resultobj = SWIG_Py_Void();
14884 return resultobj;
14885 fail:
14886 return NULL;
14887 }
14888
14889
14890 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14891 PyObject *resultobj = 0;
14892 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14893 wxFontEncoding arg2 ;
14894 wxFontEncoding arg3 ;
14895 int arg4 = (int) wxCONVERT_STRICT ;
14896 bool result;
14897 void *argp1 = 0 ;
14898 int res1 = 0 ;
14899 int val2 ;
14900 int ecode2 = 0 ;
14901 int val3 ;
14902 int ecode3 = 0 ;
14903 int val4 ;
14904 int ecode4 = 0 ;
14905 PyObject * obj0 = 0 ;
14906 PyObject * obj1 = 0 ;
14907 PyObject * obj2 = 0 ;
14908 PyObject * obj3 = 0 ;
14909 char * kwnames[] = {
14910 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14911 };
14912
14913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14914 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14915 if (!SWIG_IsOK(res1)) {
14916 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14917 }
14918 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14919 ecode2 = SWIG_AsVal_int(obj1, &val2);
14920 if (!SWIG_IsOK(ecode2)) {
14921 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14922 }
14923 arg2 = static_cast< wxFontEncoding >(val2);
14924 ecode3 = SWIG_AsVal_int(obj2, &val3);
14925 if (!SWIG_IsOK(ecode3)) {
14926 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14927 }
14928 arg3 = static_cast< wxFontEncoding >(val3);
14929 if (obj3) {
14930 ecode4 = SWIG_AsVal_int(obj3, &val4);
14931 if (!SWIG_IsOK(ecode4)) {
14932 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14933 }
14934 arg4 = static_cast< int >(val4);
14935 }
14936 {
14937 PyThreadState* __tstate = wxPyBeginAllowThreads();
14938 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14939 wxPyEndAllowThreads(__tstate);
14940 if (PyErr_Occurred()) SWIG_fail;
14941 }
14942 {
14943 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14944 }
14945 return resultobj;
14946 fail:
14947 return NULL;
14948 }
14949
14950
14951 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14952 PyObject *resultobj = 0;
14953 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14954 wxString *arg2 = 0 ;
14955 wxString result;
14956 void *argp1 = 0 ;
14957 int res1 = 0 ;
14958 bool temp2 = false ;
14959 PyObject * obj0 = 0 ;
14960 PyObject * obj1 = 0 ;
14961 char * kwnames[] = {
14962 (char *) "self",(char *) "input", NULL
14963 };
14964
14965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14967 if (!SWIG_IsOK(res1)) {
14968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14969 }
14970 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14971 {
14972 arg2 = wxString_in_helper(obj1);
14973 if (arg2 == NULL) SWIG_fail;
14974 temp2 = true;
14975 }
14976 {
14977 PyThreadState* __tstate = wxPyBeginAllowThreads();
14978 result = (arg1)->Convert((wxString const &)*arg2);
14979 wxPyEndAllowThreads(__tstate);
14980 if (PyErr_Occurred()) SWIG_fail;
14981 }
14982 {
14983 #if wxUSE_UNICODE
14984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14985 #else
14986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14987 #endif
14988 }
14989 {
14990 if (temp2)
14991 delete arg2;
14992 }
14993 return resultobj;
14994 fail:
14995 {
14996 if (temp2)
14997 delete arg2;
14998 }
14999 return NULL;
15000 }
15001
15002
15003 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15004 PyObject *resultobj = 0;
15005 wxFontEncoding arg1 ;
15006 int arg2 = (int) wxPLATFORM_CURRENT ;
15007 wxFontEncodingArray result;
15008 int val1 ;
15009 int ecode1 = 0 ;
15010 int val2 ;
15011 int ecode2 = 0 ;
15012 PyObject * obj0 = 0 ;
15013 PyObject * obj1 = 0 ;
15014 char * kwnames[] = {
15015 (char *) "enc",(char *) "platform", NULL
15016 };
15017
15018 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
15019 ecode1 = SWIG_AsVal_int(obj0, &val1);
15020 if (!SWIG_IsOK(ecode1)) {
15021 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15022 }
15023 arg1 = static_cast< wxFontEncoding >(val1);
15024 if (obj1) {
15025 ecode2 = SWIG_AsVal_int(obj1, &val2);
15026 if (!SWIG_IsOK(ecode2)) {
15027 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
15028 }
15029 arg2 = static_cast< int >(val2);
15030 }
15031 {
15032 PyThreadState* __tstate = wxPyBeginAllowThreads();
15033 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15034 wxPyEndAllowThreads(__tstate);
15035 if (PyErr_Occurred()) SWIG_fail;
15036 }
15037 {
15038 resultobj = PyList_New(0);
15039 for (size_t i=0; i < (&result)->GetCount(); i++) {
15040 PyObject* number = PyInt_FromLong((&result)->Item(i));
15041 PyList_Append(resultobj, number);
15042 Py_DECREF(number);
15043 }
15044 }
15045 return resultobj;
15046 fail:
15047 return NULL;
15048 }
15049
15050
15051 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15052 PyObject *resultobj = 0;
15053 wxFontEncoding arg1 ;
15054 wxFontEncodingArray result;
15055 int val1 ;
15056 int ecode1 = 0 ;
15057 PyObject * obj0 = 0 ;
15058 char * kwnames[] = {
15059 (char *) "enc", NULL
15060 };
15061
15062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15063 ecode1 = SWIG_AsVal_int(obj0, &val1);
15064 if (!SWIG_IsOK(ecode1)) {
15065 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15066 }
15067 arg1 = static_cast< wxFontEncoding >(val1);
15068 {
15069 PyThreadState* __tstate = wxPyBeginAllowThreads();
15070 result = wxEncodingConverter::GetAllEquivalents(arg1);
15071 wxPyEndAllowThreads(__tstate);
15072 if (PyErr_Occurred()) SWIG_fail;
15073 }
15074 {
15075 resultobj = PyList_New(0);
15076 for (size_t i=0; i < (&result)->GetCount(); i++) {
15077 PyObject* number = PyInt_FromLong((&result)->Item(i));
15078 PyList_Append(resultobj, number);
15079 Py_DECREF(number);
15080 }
15081 }
15082 return resultobj;
15083 fail:
15084 return NULL;
15085 }
15086
15087
15088 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15089 PyObject *resultobj = 0;
15090 wxFontEncoding arg1 ;
15091 wxFontEncoding arg2 ;
15092 bool result;
15093 int val1 ;
15094 int ecode1 = 0 ;
15095 int val2 ;
15096 int ecode2 = 0 ;
15097 PyObject * obj0 = 0 ;
15098 PyObject * obj1 = 0 ;
15099 char * kwnames[] = {
15100 (char *) "encIn",(char *) "encOut", NULL
15101 };
15102
15103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15104 ecode1 = SWIG_AsVal_int(obj0, &val1);
15105 if (!SWIG_IsOK(ecode1)) {
15106 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15107 }
15108 arg1 = static_cast< wxFontEncoding >(val1);
15109 ecode2 = SWIG_AsVal_int(obj1, &val2);
15110 if (!SWIG_IsOK(ecode2)) {
15111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15112 }
15113 arg2 = static_cast< wxFontEncoding >(val2);
15114 {
15115 PyThreadState* __tstate = wxPyBeginAllowThreads();
15116 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15117 wxPyEndAllowThreads(__tstate);
15118 if (PyErr_Occurred()) SWIG_fail;
15119 }
15120 {
15121 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15122 }
15123 return resultobj;
15124 fail:
15125 return NULL;
15126 }
15127
15128
15129 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15130 PyObject *obj;
15131 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15132 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15133 return SWIG_Py_Void();
15134 }
15135
15136 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15137 return SWIG_Python_InitShadowInstance(args);
15138 }
15139
15140 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15141 PyObject *resultobj = 0;
15142 wxDC *arg1 = (wxDC *) 0 ;
15143 void *argp1 = 0 ;
15144 int res1 = 0 ;
15145 PyObject *swig_obj[1] ;
15146
15147 if (!args) SWIG_fail;
15148 swig_obj[0] = args;
15149 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15150 if (!SWIG_IsOK(res1)) {
15151 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15152 }
15153 arg1 = reinterpret_cast< wxDC * >(argp1);
15154 {
15155 PyThreadState* __tstate = wxPyBeginAllowThreads();
15156 delete arg1;
15157
15158 wxPyEndAllowThreads(__tstate);
15159 if (PyErr_Occurred()) SWIG_fail;
15160 }
15161 resultobj = SWIG_Py_Void();
15162 return resultobj;
15163 fail:
15164 return NULL;
15165 }
15166
15167
15168 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15169 PyObject *resultobj = 0;
15170 wxDC *arg1 = (wxDC *) 0 ;
15171 int arg2 ;
15172 int arg3 ;
15173 wxColour *arg4 = 0 ;
15174 int arg5 = (int) wxFLOOD_SURFACE ;
15175 bool result;
15176 void *argp1 = 0 ;
15177 int res1 = 0 ;
15178 int val2 ;
15179 int ecode2 = 0 ;
15180 int val3 ;
15181 int ecode3 = 0 ;
15182 wxColour temp4 ;
15183 int val5 ;
15184 int ecode5 = 0 ;
15185 PyObject * obj0 = 0 ;
15186 PyObject * obj1 = 0 ;
15187 PyObject * obj2 = 0 ;
15188 PyObject * obj3 = 0 ;
15189 PyObject * obj4 = 0 ;
15190 char * kwnames[] = {
15191 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15192 };
15193
15194 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15195 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15196 if (!SWIG_IsOK(res1)) {
15197 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15198 }
15199 arg1 = reinterpret_cast< wxDC * >(argp1);
15200 ecode2 = SWIG_AsVal_int(obj1, &val2);
15201 if (!SWIG_IsOK(ecode2)) {
15202 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15203 }
15204 arg2 = static_cast< int >(val2);
15205 ecode3 = SWIG_AsVal_int(obj2, &val3);
15206 if (!SWIG_IsOK(ecode3)) {
15207 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15208 }
15209 arg3 = static_cast< int >(val3);
15210 {
15211 arg4 = &temp4;
15212 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15213 }
15214 if (obj4) {
15215 ecode5 = SWIG_AsVal_int(obj4, &val5);
15216 if (!SWIG_IsOK(ecode5)) {
15217 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15218 }
15219 arg5 = static_cast< int >(val5);
15220 }
15221 {
15222 PyThreadState* __tstate = wxPyBeginAllowThreads();
15223 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15224 wxPyEndAllowThreads(__tstate);
15225 if (PyErr_Occurred()) SWIG_fail;
15226 }
15227 {
15228 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15229 }
15230 return resultobj;
15231 fail:
15232 return NULL;
15233 }
15234
15235
15236 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15237 PyObject *resultobj = 0;
15238 wxDC *arg1 = (wxDC *) 0 ;
15239 wxPoint *arg2 = 0 ;
15240 wxColour *arg3 = 0 ;
15241 int arg4 = (int) wxFLOOD_SURFACE ;
15242 bool result;
15243 void *argp1 = 0 ;
15244 int res1 = 0 ;
15245 wxPoint temp2 ;
15246 wxColour temp3 ;
15247 int val4 ;
15248 int ecode4 = 0 ;
15249 PyObject * obj0 = 0 ;
15250 PyObject * obj1 = 0 ;
15251 PyObject * obj2 = 0 ;
15252 PyObject * obj3 = 0 ;
15253 char * kwnames[] = {
15254 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15255 };
15256
15257 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15258 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15259 if (!SWIG_IsOK(res1)) {
15260 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15261 }
15262 arg1 = reinterpret_cast< wxDC * >(argp1);
15263 {
15264 arg2 = &temp2;
15265 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15266 }
15267 {
15268 arg3 = &temp3;
15269 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15270 }
15271 if (obj3) {
15272 ecode4 = SWIG_AsVal_int(obj3, &val4);
15273 if (!SWIG_IsOK(ecode4)) {
15274 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15275 }
15276 arg4 = static_cast< int >(val4);
15277 }
15278 {
15279 PyThreadState* __tstate = wxPyBeginAllowThreads();
15280 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15281 wxPyEndAllowThreads(__tstate);
15282 if (PyErr_Occurred()) SWIG_fail;
15283 }
15284 {
15285 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15286 }
15287 return resultobj;
15288 fail:
15289 return NULL;
15290 }
15291
15292
15293 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15294 PyObject *resultobj = 0;
15295 wxDC *arg1 = (wxDC *) 0 ;
15296 wxRect *arg2 = 0 ;
15297 wxColour *arg3 = 0 ;
15298 wxColour *arg4 = 0 ;
15299 wxPoint *arg5 = 0 ;
15300 void *argp1 = 0 ;
15301 int res1 = 0 ;
15302 wxRect temp2 ;
15303 wxColour temp3 ;
15304 wxColour temp4 ;
15305 wxPoint temp5 ;
15306 PyObject * obj0 = 0 ;
15307 PyObject * obj1 = 0 ;
15308 PyObject * obj2 = 0 ;
15309 PyObject * obj3 = 0 ;
15310 PyObject * obj4 = 0 ;
15311 char * kwnames[] = {
15312 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15313 };
15314
15315 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15316 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15317 if (!SWIG_IsOK(res1)) {
15318 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15319 }
15320 arg1 = reinterpret_cast< wxDC * >(argp1);
15321 {
15322 arg2 = &temp2;
15323 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15324 }
15325 {
15326 arg3 = &temp3;
15327 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15328 }
15329 {
15330 arg4 = &temp4;
15331 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15332 }
15333 {
15334 arg5 = &temp5;
15335 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15336 }
15337 {
15338 PyThreadState* __tstate = wxPyBeginAllowThreads();
15339 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
15340 wxPyEndAllowThreads(__tstate);
15341 if (PyErr_Occurred()) SWIG_fail;
15342 }
15343 resultobj = SWIG_Py_Void();
15344 return resultobj;
15345 fail:
15346 return NULL;
15347 }
15348
15349
15350 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15351 PyObject *resultobj = 0;
15352 wxDC *arg1 = (wxDC *) 0 ;
15353 wxRect *arg2 = 0 ;
15354 wxColour *arg3 = 0 ;
15355 wxColour *arg4 = 0 ;
15356 wxDirection arg5 = (wxDirection) wxEAST ;
15357 void *argp1 = 0 ;
15358 int res1 = 0 ;
15359 wxRect temp2 ;
15360 wxColour temp3 ;
15361 wxColour temp4 ;
15362 int val5 ;
15363 int ecode5 = 0 ;
15364 PyObject * obj0 = 0 ;
15365 PyObject * obj1 = 0 ;
15366 PyObject * obj2 = 0 ;
15367 PyObject * obj3 = 0 ;
15368 PyObject * obj4 = 0 ;
15369 char * kwnames[] = {
15370 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15371 };
15372
15373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15374 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15375 if (!SWIG_IsOK(res1)) {
15376 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15377 }
15378 arg1 = reinterpret_cast< wxDC * >(argp1);
15379 {
15380 arg2 = &temp2;
15381 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15382 }
15383 {
15384 arg3 = &temp3;
15385 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15386 }
15387 {
15388 arg4 = &temp4;
15389 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15390 }
15391 if (obj4) {
15392 ecode5 = SWIG_AsVal_int(obj4, &val5);
15393 if (!SWIG_IsOK(ecode5)) {
15394 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15395 }
15396 arg5 = static_cast< wxDirection >(val5);
15397 }
15398 {
15399 PyThreadState* __tstate = wxPyBeginAllowThreads();
15400 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15401 wxPyEndAllowThreads(__tstate);
15402 if (PyErr_Occurred()) SWIG_fail;
15403 }
15404 resultobj = SWIG_Py_Void();
15405 return resultobj;
15406 fail:
15407 return NULL;
15408 }
15409
15410
15411 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15412 PyObject *resultobj = 0;
15413 wxDC *arg1 = (wxDC *) 0 ;
15414 int arg2 ;
15415 int arg3 ;
15416 wxColour result;
15417 void *argp1 = 0 ;
15418 int res1 = 0 ;
15419 int val2 ;
15420 int ecode2 = 0 ;
15421 int val3 ;
15422 int ecode3 = 0 ;
15423 PyObject * obj0 = 0 ;
15424 PyObject * obj1 = 0 ;
15425 PyObject * obj2 = 0 ;
15426 char * kwnames[] = {
15427 (char *) "self",(char *) "x",(char *) "y", NULL
15428 };
15429
15430 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15431 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15432 if (!SWIG_IsOK(res1)) {
15433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15434 }
15435 arg1 = reinterpret_cast< wxDC * >(argp1);
15436 ecode2 = SWIG_AsVal_int(obj1, &val2);
15437 if (!SWIG_IsOK(ecode2)) {
15438 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15439 }
15440 arg2 = static_cast< int >(val2);
15441 ecode3 = SWIG_AsVal_int(obj2, &val3);
15442 if (!SWIG_IsOK(ecode3)) {
15443 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15444 }
15445 arg3 = static_cast< int >(val3);
15446 {
15447 PyThreadState* __tstate = wxPyBeginAllowThreads();
15448 result = wxDC_GetPixel(arg1,arg2,arg3);
15449 wxPyEndAllowThreads(__tstate);
15450 if (PyErr_Occurred()) SWIG_fail;
15451 }
15452 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15453 return resultobj;
15454 fail:
15455 return NULL;
15456 }
15457
15458
15459 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15460 PyObject *resultobj = 0;
15461 wxDC *arg1 = (wxDC *) 0 ;
15462 wxPoint *arg2 = 0 ;
15463 wxColour result;
15464 void *argp1 = 0 ;
15465 int res1 = 0 ;
15466 wxPoint temp2 ;
15467 PyObject * obj0 = 0 ;
15468 PyObject * obj1 = 0 ;
15469 char * kwnames[] = {
15470 (char *) "self",(char *) "pt", NULL
15471 };
15472
15473 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15474 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15475 if (!SWIG_IsOK(res1)) {
15476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15477 }
15478 arg1 = reinterpret_cast< wxDC * >(argp1);
15479 {
15480 arg2 = &temp2;
15481 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15482 }
15483 {
15484 PyThreadState* __tstate = wxPyBeginAllowThreads();
15485 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15486 wxPyEndAllowThreads(__tstate);
15487 if (PyErr_Occurred()) SWIG_fail;
15488 }
15489 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15490 return resultobj;
15491 fail:
15492 return NULL;
15493 }
15494
15495
15496 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15497 PyObject *resultobj = 0;
15498 wxDC *arg1 = (wxDC *) 0 ;
15499 int arg2 ;
15500 int arg3 ;
15501 int arg4 ;
15502 int arg5 ;
15503 void *argp1 = 0 ;
15504 int res1 = 0 ;
15505 int val2 ;
15506 int ecode2 = 0 ;
15507 int val3 ;
15508 int ecode3 = 0 ;
15509 int val4 ;
15510 int ecode4 = 0 ;
15511 int val5 ;
15512 int ecode5 = 0 ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 PyObject * obj2 = 0 ;
15516 PyObject * obj3 = 0 ;
15517 PyObject * obj4 = 0 ;
15518 char * kwnames[] = {
15519 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15520 };
15521
15522 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15523 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15524 if (!SWIG_IsOK(res1)) {
15525 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15526 }
15527 arg1 = reinterpret_cast< wxDC * >(argp1);
15528 ecode2 = SWIG_AsVal_int(obj1, &val2);
15529 if (!SWIG_IsOK(ecode2)) {
15530 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15531 }
15532 arg2 = static_cast< int >(val2);
15533 ecode3 = SWIG_AsVal_int(obj2, &val3);
15534 if (!SWIG_IsOK(ecode3)) {
15535 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15536 }
15537 arg3 = static_cast< int >(val3);
15538 ecode4 = SWIG_AsVal_int(obj3, &val4);
15539 if (!SWIG_IsOK(ecode4)) {
15540 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15541 }
15542 arg4 = static_cast< int >(val4);
15543 ecode5 = SWIG_AsVal_int(obj4, &val5);
15544 if (!SWIG_IsOK(ecode5)) {
15545 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15546 }
15547 arg5 = static_cast< int >(val5);
15548 {
15549 PyThreadState* __tstate = wxPyBeginAllowThreads();
15550 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15551 wxPyEndAllowThreads(__tstate);
15552 if (PyErr_Occurred()) SWIG_fail;
15553 }
15554 resultobj = SWIG_Py_Void();
15555 return resultobj;
15556 fail:
15557 return NULL;
15558 }
15559
15560
15561 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15562 PyObject *resultobj = 0;
15563 wxDC *arg1 = (wxDC *) 0 ;
15564 wxPoint *arg2 = 0 ;
15565 wxPoint *arg3 = 0 ;
15566 void *argp1 = 0 ;
15567 int res1 = 0 ;
15568 wxPoint temp2 ;
15569 wxPoint temp3 ;
15570 PyObject * obj0 = 0 ;
15571 PyObject * obj1 = 0 ;
15572 PyObject * obj2 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15578 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15579 if (!SWIG_IsOK(res1)) {
15580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15581 }
15582 arg1 = reinterpret_cast< wxDC * >(argp1);
15583 {
15584 arg2 = &temp2;
15585 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15586 }
15587 {
15588 arg3 = &temp3;
15589 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15590 }
15591 {
15592 PyThreadState* __tstate = wxPyBeginAllowThreads();
15593 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15594 wxPyEndAllowThreads(__tstate);
15595 if (PyErr_Occurred()) SWIG_fail;
15596 }
15597 resultobj = SWIG_Py_Void();
15598 return resultobj;
15599 fail:
15600 return NULL;
15601 }
15602
15603
15604 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15605 PyObject *resultobj = 0;
15606 wxDC *arg1 = (wxDC *) 0 ;
15607 int arg2 ;
15608 int arg3 ;
15609 void *argp1 = 0 ;
15610 int res1 = 0 ;
15611 int val2 ;
15612 int ecode2 = 0 ;
15613 int val3 ;
15614 int ecode3 = 0 ;
15615 PyObject * obj0 = 0 ;
15616 PyObject * obj1 = 0 ;
15617 PyObject * obj2 = 0 ;
15618 char * kwnames[] = {
15619 (char *) "self",(char *) "x",(char *) "y", NULL
15620 };
15621
15622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15624 if (!SWIG_IsOK(res1)) {
15625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15626 }
15627 arg1 = reinterpret_cast< wxDC * >(argp1);
15628 ecode2 = SWIG_AsVal_int(obj1, &val2);
15629 if (!SWIG_IsOK(ecode2)) {
15630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15631 }
15632 arg2 = static_cast< int >(val2);
15633 ecode3 = SWIG_AsVal_int(obj2, &val3);
15634 if (!SWIG_IsOK(ecode3)) {
15635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15636 }
15637 arg3 = static_cast< int >(val3);
15638 {
15639 PyThreadState* __tstate = wxPyBeginAllowThreads();
15640 (arg1)->CrossHair(arg2,arg3);
15641 wxPyEndAllowThreads(__tstate);
15642 if (PyErr_Occurred()) SWIG_fail;
15643 }
15644 resultobj = SWIG_Py_Void();
15645 return resultobj;
15646 fail:
15647 return NULL;
15648 }
15649
15650
15651 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15652 PyObject *resultobj = 0;
15653 wxDC *arg1 = (wxDC *) 0 ;
15654 wxPoint *arg2 = 0 ;
15655 void *argp1 = 0 ;
15656 int res1 = 0 ;
15657 wxPoint temp2 ;
15658 PyObject * obj0 = 0 ;
15659 PyObject * obj1 = 0 ;
15660 char * kwnames[] = {
15661 (char *) "self",(char *) "pt", NULL
15662 };
15663
15664 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15665 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15666 if (!SWIG_IsOK(res1)) {
15667 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15668 }
15669 arg1 = reinterpret_cast< wxDC * >(argp1);
15670 {
15671 arg2 = &temp2;
15672 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15673 }
15674 {
15675 PyThreadState* __tstate = wxPyBeginAllowThreads();
15676 (arg1)->CrossHair((wxPoint const &)*arg2);
15677 wxPyEndAllowThreads(__tstate);
15678 if (PyErr_Occurred()) SWIG_fail;
15679 }
15680 resultobj = SWIG_Py_Void();
15681 return resultobj;
15682 fail:
15683 return NULL;
15684 }
15685
15686
15687 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15688 PyObject *resultobj = 0;
15689 wxDC *arg1 = (wxDC *) 0 ;
15690 int arg2 ;
15691 int arg3 ;
15692 int arg4 ;
15693 int arg5 ;
15694 int arg6 ;
15695 int arg7 ;
15696 void *argp1 = 0 ;
15697 int res1 = 0 ;
15698 int val2 ;
15699 int ecode2 = 0 ;
15700 int val3 ;
15701 int ecode3 = 0 ;
15702 int val4 ;
15703 int ecode4 = 0 ;
15704 int val5 ;
15705 int ecode5 = 0 ;
15706 int val6 ;
15707 int ecode6 = 0 ;
15708 int val7 ;
15709 int ecode7 = 0 ;
15710 PyObject * obj0 = 0 ;
15711 PyObject * obj1 = 0 ;
15712 PyObject * obj2 = 0 ;
15713 PyObject * obj3 = 0 ;
15714 PyObject * obj4 = 0 ;
15715 PyObject * obj5 = 0 ;
15716 PyObject * obj6 = 0 ;
15717 char * kwnames[] = {
15718 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15719 };
15720
15721 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15722 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15723 if (!SWIG_IsOK(res1)) {
15724 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15725 }
15726 arg1 = reinterpret_cast< wxDC * >(argp1);
15727 ecode2 = SWIG_AsVal_int(obj1, &val2);
15728 if (!SWIG_IsOK(ecode2)) {
15729 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15730 }
15731 arg2 = static_cast< int >(val2);
15732 ecode3 = SWIG_AsVal_int(obj2, &val3);
15733 if (!SWIG_IsOK(ecode3)) {
15734 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15735 }
15736 arg3 = static_cast< int >(val3);
15737 ecode4 = SWIG_AsVal_int(obj3, &val4);
15738 if (!SWIG_IsOK(ecode4)) {
15739 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15740 }
15741 arg4 = static_cast< int >(val4);
15742 ecode5 = SWIG_AsVal_int(obj4, &val5);
15743 if (!SWIG_IsOK(ecode5)) {
15744 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15745 }
15746 arg5 = static_cast< int >(val5);
15747 ecode6 = SWIG_AsVal_int(obj5, &val6);
15748 if (!SWIG_IsOK(ecode6)) {
15749 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15750 }
15751 arg6 = static_cast< int >(val6);
15752 ecode7 = SWIG_AsVal_int(obj6, &val7);
15753 if (!SWIG_IsOK(ecode7)) {
15754 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15755 }
15756 arg7 = static_cast< int >(val7);
15757 {
15758 PyThreadState* __tstate = wxPyBeginAllowThreads();
15759 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15760 wxPyEndAllowThreads(__tstate);
15761 if (PyErr_Occurred()) SWIG_fail;
15762 }
15763 resultobj = SWIG_Py_Void();
15764 return resultobj;
15765 fail:
15766 return NULL;
15767 }
15768
15769
15770 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15771 PyObject *resultobj = 0;
15772 wxDC *arg1 = (wxDC *) 0 ;
15773 wxPoint *arg2 = 0 ;
15774 wxPoint *arg3 = 0 ;
15775 wxPoint *arg4 = 0 ;
15776 void *argp1 = 0 ;
15777 int res1 = 0 ;
15778 wxPoint temp2 ;
15779 wxPoint temp3 ;
15780 wxPoint temp4 ;
15781 PyObject * obj0 = 0 ;
15782 PyObject * obj1 = 0 ;
15783 PyObject * obj2 = 0 ;
15784 PyObject * obj3 = 0 ;
15785 char * kwnames[] = {
15786 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15787 };
15788
15789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15791 if (!SWIG_IsOK(res1)) {
15792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15793 }
15794 arg1 = reinterpret_cast< wxDC * >(argp1);
15795 {
15796 arg2 = &temp2;
15797 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15798 }
15799 {
15800 arg3 = &temp3;
15801 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15802 }
15803 {
15804 arg4 = &temp4;
15805 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15806 }
15807 {
15808 PyThreadState* __tstate = wxPyBeginAllowThreads();
15809 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15810 wxPyEndAllowThreads(__tstate);
15811 if (PyErr_Occurred()) SWIG_fail;
15812 }
15813 resultobj = SWIG_Py_Void();
15814 return resultobj;
15815 fail:
15816 return NULL;
15817 }
15818
15819
15820 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15821 PyObject *resultobj = 0;
15822 wxDC *arg1 = (wxDC *) 0 ;
15823 int arg2 ;
15824 int arg3 ;
15825 int arg4 ;
15826 int arg5 ;
15827 void *argp1 = 0 ;
15828 int res1 = 0 ;
15829 int val2 ;
15830 int ecode2 = 0 ;
15831 int val3 ;
15832 int ecode3 = 0 ;
15833 int val4 ;
15834 int ecode4 = 0 ;
15835 int val5 ;
15836 int ecode5 = 0 ;
15837 PyObject * obj0 = 0 ;
15838 PyObject * obj1 = 0 ;
15839 PyObject * obj2 = 0 ;
15840 PyObject * obj3 = 0 ;
15841 PyObject * obj4 = 0 ;
15842 char * kwnames[] = {
15843 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15844 };
15845
15846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15848 if (!SWIG_IsOK(res1)) {
15849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15850 }
15851 arg1 = reinterpret_cast< wxDC * >(argp1);
15852 ecode2 = SWIG_AsVal_int(obj1, &val2);
15853 if (!SWIG_IsOK(ecode2)) {
15854 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15855 }
15856 arg2 = static_cast< int >(val2);
15857 ecode3 = SWIG_AsVal_int(obj2, &val3);
15858 if (!SWIG_IsOK(ecode3)) {
15859 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15860 }
15861 arg3 = static_cast< int >(val3);
15862 ecode4 = SWIG_AsVal_int(obj3, &val4);
15863 if (!SWIG_IsOK(ecode4)) {
15864 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15865 }
15866 arg4 = static_cast< int >(val4);
15867 ecode5 = SWIG_AsVal_int(obj4, &val5);
15868 if (!SWIG_IsOK(ecode5)) {
15869 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15870 }
15871 arg5 = static_cast< int >(val5);
15872 {
15873 PyThreadState* __tstate = wxPyBeginAllowThreads();
15874 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15875 wxPyEndAllowThreads(__tstate);
15876 if (PyErr_Occurred()) SWIG_fail;
15877 }
15878 resultobj = SWIG_Py_Void();
15879 return resultobj;
15880 fail:
15881 return NULL;
15882 }
15883
15884
15885 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15886 PyObject *resultobj = 0;
15887 wxDC *arg1 = (wxDC *) 0 ;
15888 wxRect *arg2 = 0 ;
15889 void *argp1 = 0 ;
15890 int res1 = 0 ;
15891 wxRect temp2 ;
15892 PyObject * obj0 = 0 ;
15893 PyObject * obj1 = 0 ;
15894 char * kwnames[] = {
15895 (char *) "self",(char *) "rect", NULL
15896 };
15897
15898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15900 if (!SWIG_IsOK(res1)) {
15901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15902 }
15903 arg1 = reinterpret_cast< wxDC * >(argp1);
15904 {
15905 arg2 = &temp2;
15906 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15907 }
15908 {
15909 PyThreadState* __tstate = wxPyBeginAllowThreads();
15910 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15911 wxPyEndAllowThreads(__tstate);
15912 if (PyErr_Occurred()) SWIG_fail;
15913 }
15914 resultobj = SWIG_Py_Void();
15915 return resultobj;
15916 fail:
15917 return NULL;
15918 }
15919
15920
15921 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15922 PyObject *resultobj = 0;
15923 wxDC *arg1 = (wxDC *) 0 ;
15924 int arg2 ;
15925 int arg3 ;
15926 int arg4 ;
15927 int arg5 ;
15928 double arg6 ;
15929 double arg7 ;
15930 void *argp1 = 0 ;
15931 int res1 = 0 ;
15932 int val2 ;
15933 int ecode2 = 0 ;
15934 int val3 ;
15935 int ecode3 = 0 ;
15936 int val4 ;
15937 int ecode4 = 0 ;
15938 int val5 ;
15939 int ecode5 = 0 ;
15940 double val6 ;
15941 int ecode6 = 0 ;
15942 double val7 ;
15943 int ecode7 = 0 ;
15944 PyObject * obj0 = 0 ;
15945 PyObject * obj1 = 0 ;
15946 PyObject * obj2 = 0 ;
15947 PyObject * obj3 = 0 ;
15948 PyObject * obj4 = 0 ;
15949 PyObject * obj5 = 0 ;
15950 PyObject * obj6 = 0 ;
15951 char * kwnames[] = {
15952 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15953 };
15954
15955 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15956 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15957 if (!SWIG_IsOK(res1)) {
15958 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15959 }
15960 arg1 = reinterpret_cast< wxDC * >(argp1);
15961 ecode2 = SWIG_AsVal_int(obj1, &val2);
15962 if (!SWIG_IsOK(ecode2)) {
15963 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15964 }
15965 arg2 = static_cast< int >(val2);
15966 ecode3 = SWIG_AsVal_int(obj2, &val3);
15967 if (!SWIG_IsOK(ecode3)) {
15968 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15969 }
15970 arg3 = static_cast< int >(val3);
15971 ecode4 = SWIG_AsVal_int(obj3, &val4);
15972 if (!SWIG_IsOK(ecode4)) {
15973 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15974 }
15975 arg4 = static_cast< int >(val4);
15976 ecode5 = SWIG_AsVal_int(obj4, &val5);
15977 if (!SWIG_IsOK(ecode5)) {
15978 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15979 }
15980 arg5 = static_cast< int >(val5);
15981 ecode6 = SWIG_AsVal_double(obj5, &val6);
15982 if (!SWIG_IsOK(ecode6)) {
15983 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15984 }
15985 arg6 = static_cast< double >(val6);
15986 ecode7 = SWIG_AsVal_double(obj6, &val7);
15987 if (!SWIG_IsOK(ecode7)) {
15988 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15989 }
15990 arg7 = static_cast< double >(val7);
15991 {
15992 PyThreadState* __tstate = wxPyBeginAllowThreads();
15993 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15994 wxPyEndAllowThreads(__tstate);
15995 if (PyErr_Occurred()) SWIG_fail;
15996 }
15997 resultobj = SWIG_Py_Void();
15998 return resultobj;
15999 fail:
16000 return NULL;
16001 }
16002
16003
16004 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16005 PyObject *resultobj = 0;
16006 wxDC *arg1 = (wxDC *) 0 ;
16007 wxPoint *arg2 = 0 ;
16008 wxSize *arg3 = 0 ;
16009 double arg4 ;
16010 double arg5 ;
16011 void *argp1 = 0 ;
16012 int res1 = 0 ;
16013 wxPoint temp2 ;
16014 wxSize temp3 ;
16015 double val4 ;
16016 int ecode4 = 0 ;
16017 double val5 ;
16018 int ecode5 = 0 ;
16019 PyObject * obj0 = 0 ;
16020 PyObject * obj1 = 0 ;
16021 PyObject * obj2 = 0 ;
16022 PyObject * obj3 = 0 ;
16023 PyObject * obj4 = 0 ;
16024 char * kwnames[] = {
16025 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
16026 };
16027
16028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16030 if (!SWIG_IsOK(res1)) {
16031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16032 }
16033 arg1 = reinterpret_cast< wxDC * >(argp1);
16034 {
16035 arg2 = &temp2;
16036 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16037 }
16038 {
16039 arg3 = &temp3;
16040 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16041 }
16042 ecode4 = SWIG_AsVal_double(obj3, &val4);
16043 if (!SWIG_IsOK(ecode4)) {
16044 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16045 }
16046 arg4 = static_cast< double >(val4);
16047 ecode5 = SWIG_AsVal_double(obj4, &val5);
16048 if (!SWIG_IsOK(ecode5)) {
16049 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16050 }
16051 arg5 = static_cast< double >(val5);
16052 {
16053 PyThreadState* __tstate = wxPyBeginAllowThreads();
16054 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16055 wxPyEndAllowThreads(__tstate);
16056 if (PyErr_Occurred()) SWIG_fail;
16057 }
16058 resultobj = SWIG_Py_Void();
16059 return resultobj;
16060 fail:
16061 return NULL;
16062 }
16063
16064
16065 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16066 PyObject *resultobj = 0;
16067 wxDC *arg1 = (wxDC *) 0 ;
16068 int arg2 ;
16069 int arg3 ;
16070 void *argp1 = 0 ;
16071 int res1 = 0 ;
16072 int val2 ;
16073 int ecode2 = 0 ;
16074 int val3 ;
16075 int ecode3 = 0 ;
16076 PyObject * obj0 = 0 ;
16077 PyObject * obj1 = 0 ;
16078 PyObject * obj2 = 0 ;
16079 char * kwnames[] = {
16080 (char *) "self",(char *) "x",(char *) "y", NULL
16081 };
16082
16083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16085 if (!SWIG_IsOK(res1)) {
16086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16087 }
16088 arg1 = reinterpret_cast< wxDC * >(argp1);
16089 ecode2 = SWIG_AsVal_int(obj1, &val2);
16090 if (!SWIG_IsOK(ecode2)) {
16091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16092 }
16093 arg2 = static_cast< int >(val2);
16094 ecode3 = SWIG_AsVal_int(obj2, &val3);
16095 if (!SWIG_IsOK(ecode3)) {
16096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16097 }
16098 arg3 = static_cast< int >(val3);
16099 {
16100 PyThreadState* __tstate = wxPyBeginAllowThreads();
16101 (arg1)->DrawPoint(arg2,arg3);
16102 wxPyEndAllowThreads(__tstate);
16103 if (PyErr_Occurred()) SWIG_fail;
16104 }
16105 resultobj = SWIG_Py_Void();
16106 return resultobj;
16107 fail:
16108 return NULL;
16109 }
16110
16111
16112 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16113 PyObject *resultobj = 0;
16114 wxDC *arg1 = (wxDC *) 0 ;
16115 wxPoint *arg2 = 0 ;
16116 void *argp1 = 0 ;
16117 int res1 = 0 ;
16118 wxPoint temp2 ;
16119 PyObject * obj0 = 0 ;
16120 PyObject * obj1 = 0 ;
16121 char * kwnames[] = {
16122 (char *) "self",(char *) "pt", NULL
16123 };
16124
16125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16127 if (!SWIG_IsOK(res1)) {
16128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16129 }
16130 arg1 = reinterpret_cast< wxDC * >(argp1);
16131 {
16132 arg2 = &temp2;
16133 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16134 }
16135 {
16136 PyThreadState* __tstate = wxPyBeginAllowThreads();
16137 (arg1)->DrawPoint((wxPoint const &)*arg2);
16138 wxPyEndAllowThreads(__tstate);
16139 if (PyErr_Occurred()) SWIG_fail;
16140 }
16141 resultobj = SWIG_Py_Void();
16142 return resultobj;
16143 fail:
16144 return NULL;
16145 }
16146
16147
16148 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16149 PyObject *resultobj = 0;
16150 wxDC *arg1 = (wxDC *) 0 ;
16151 int arg2 ;
16152 int arg3 ;
16153 int arg4 ;
16154 int arg5 ;
16155 void *argp1 = 0 ;
16156 int res1 = 0 ;
16157 int val2 ;
16158 int ecode2 = 0 ;
16159 int val3 ;
16160 int ecode3 = 0 ;
16161 int val4 ;
16162 int ecode4 = 0 ;
16163 int val5 ;
16164 int ecode5 = 0 ;
16165 PyObject * obj0 = 0 ;
16166 PyObject * obj1 = 0 ;
16167 PyObject * obj2 = 0 ;
16168 PyObject * obj3 = 0 ;
16169 PyObject * obj4 = 0 ;
16170 char * kwnames[] = {
16171 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16172 };
16173
16174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16176 if (!SWIG_IsOK(res1)) {
16177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16178 }
16179 arg1 = reinterpret_cast< wxDC * >(argp1);
16180 ecode2 = SWIG_AsVal_int(obj1, &val2);
16181 if (!SWIG_IsOK(ecode2)) {
16182 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16183 }
16184 arg2 = static_cast< int >(val2);
16185 ecode3 = SWIG_AsVal_int(obj2, &val3);
16186 if (!SWIG_IsOK(ecode3)) {
16187 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16188 }
16189 arg3 = static_cast< int >(val3);
16190 ecode4 = SWIG_AsVal_int(obj3, &val4);
16191 if (!SWIG_IsOK(ecode4)) {
16192 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16193 }
16194 arg4 = static_cast< int >(val4);
16195 ecode5 = SWIG_AsVal_int(obj4, &val5);
16196 if (!SWIG_IsOK(ecode5)) {
16197 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16198 }
16199 arg5 = static_cast< int >(val5);
16200 {
16201 PyThreadState* __tstate = wxPyBeginAllowThreads();
16202 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16203 wxPyEndAllowThreads(__tstate);
16204 if (PyErr_Occurred()) SWIG_fail;
16205 }
16206 resultobj = SWIG_Py_Void();
16207 return resultobj;
16208 fail:
16209 return NULL;
16210 }
16211
16212
16213 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16214 PyObject *resultobj = 0;
16215 wxDC *arg1 = (wxDC *) 0 ;
16216 wxRect *arg2 = 0 ;
16217 void *argp1 = 0 ;
16218 int res1 = 0 ;
16219 wxRect temp2 ;
16220 PyObject * obj0 = 0 ;
16221 PyObject * obj1 = 0 ;
16222 char * kwnames[] = {
16223 (char *) "self",(char *) "rect", NULL
16224 };
16225
16226 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16227 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16228 if (!SWIG_IsOK(res1)) {
16229 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16230 }
16231 arg1 = reinterpret_cast< wxDC * >(argp1);
16232 {
16233 arg2 = &temp2;
16234 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16235 }
16236 {
16237 PyThreadState* __tstate = wxPyBeginAllowThreads();
16238 (arg1)->DrawRectangle((wxRect const &)*arg2);
16239 wxPyEndAllowThreads(__tstate);
16240 if (PyErr_Occurred()) SWIG_fail;
16241 }
16242 resultobj = SWIG_Py_Void();
16243 return resultobj;
16244 fail:
16245 return NULL;
16246 }
16247
16248
16249 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16250 PyObject *resultobj = 0;
16251 wxDC *arg1 = (wxDC *) 0 ;
16252 wxPoint *arg2 = 0 ;
16253 wxSize *arg3 = 0 ;
16254 void *argp1 = 0 ;
16255 int res1 = 0 ;
16256 wxPoint temp2 ;
16257 wxSize temp3 ;
16258 PyObject * obj0 = 0 ;
16259 PyObject * obj1 = 0 ;
16260 PyObject * obj2 = 0 ;
16261 char * kwnames[] = {
16262 (char *) "self",(char *) "pt",(char *) "sz", NULL
16263 };
16264
16265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16266 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16267 if (!SWIG_IsOK(res1)) {
16268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16269 }
16270 arg1 = reinterpret_cast< wxDC * >(argp1);
16271 {
16272 arg2 = &temp2;
16273 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16274 }
16275 {
16276 arg3 = &temp3;
16277 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16278 }
16279 {
16280 PyThreadState* __tstate = wxPyBeginAllowThreads();
16281 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16282 wxPyEndAllowThreads(__tstate);
16283 if (PyErr_Occurred()) SWIG_fail;
16284 }
16285 resultobj = SWIG_Py_Void();
16286 return resultobj;
16287 fail:
16288 return NULL;
16289 }
16290
16291
16292 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16293 PyObject *resultobj = 0;
16294 wxDC *arg1 = (wxDC *) 0 ;
16295 int arg2 ;
16296 int arg3 ;
16297 int arg4 ;
16298 int arg5 ;
16299 double arg6 ;
16300 void *argp1 = 0 ;
16301 int res1 = 0 ;
16302 int val2 ;
16303 int ecode2 = 0 ;
16304 int val3 ;
16305 int ecode3 = 0 ;
16306 int val4 ;
16307 int ecode4 = 0 ;
16308 int val5 ;
16309 int ecode5 = 0 ;
16310 double val6 ;
16311 int ecode6 = 0 ;
16312 PyObject * obj0 = 0 ;
16313 PyObject * obj1 = 0 ;
16314 PyObject * obj2 = 0 ;
16315 PyObject * obj3 = 0 ;
16316 PyObject * obj4 = 0 ;
16317 PyObject * obj5 = 0 ;
16318 char * kwnames[] = {
16319 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16320 };
16321
16322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16324 if (!SWIG_IsOK(res1)) {
16325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16326 }
16327 arg1 = reinterpret_cast< wxDC * >(argp1);
16328 ecode2 = SWIG_AsVal_int(obj1, &val2);
16329 if (!SWIG_IsOK(ecode2)) {
16330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16331 }
16332 arg2 = static_cast< int >(val2);
16333 ecode3 = SWIG_AsVal_int(obj2, &val3);
16334 if (!SWIG_IsOK(ecode3)) {
16335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16336 }
16337 arg3 = static_cast< int >(val3);
16338 ecode4 = SWIG_AsVal_int(obj3, &val4);
16339 if (!SWIG_IsOK(ecode4)) {
16340 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16341 }
16342 arg4 = static_cast< int >(val4);
16343 ecode5 = SWIG_AsVal_int(obj4, &val5);
16344 if (!SWIG_IsOK(ecode5)) {
16345 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16346 }
16347 arg5 = static_cast< int >(val5);
16348 ecode6 = SWIG_AsVal_double(obj5, &val6);
16349 if (!SWIG_IsOK(ecode6)) {
16350 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16351 }
16352 arg6 = static_cast< double >(val6);
16353 {
16354 PyThreadState* __tstate = wxPyBeginAllowThreads();
16355 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16356 wxPyEndAllowThreads(__tstate);
16357 if (PyErr_Occurred()) SWIG_fail;
16358 }
16359 resultobj = SWIG_Py_Void();
16360 return resultobj;
16361 fail:
16362 return NULL;
16363 }
16364
16365
16366 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16367 PyObject *resultobj = 0;
16368 wxDC *arg1 = (wxDC *) 0 ;
16369 wxRect *arg2 = 0 ;
16370 double arg3 ;
16371 void *argp1 = 0 ;
16372 int res1 = 0 ;
16373 wxRect temp2 ;
16374 double val3 ;
16375 int ecode3 = 0 ;
16376 PyObject * obj0 = 0 ;
16377 PyObject * obj1 = 0 ;
16378 PyObject * obj2 = 0 ;
16379 char * kwnames[] = {
16380 (char *) "self",(char *) "r",(char *) "radius", NULL
16381 };
16382
16383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16385 if (!SWIG_IsOK(res1)) {
16386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16387 }
16388 arg1 = reinterpret_cast< wxDC * >(argp1);
16389 {
16390 arg2 = &temp2;
16391 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16392 }
16393 ecode3 = SWIG_AsVal_double(obj2, &val3);
16394 if (!SWIG_IsOK(ecode3)) {
16395 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16396 }
16397 arg3 = static_cast< double >(val3);
16398 {
16399 PyThreadState* __tstate = wxPyBeginAllowThreads();
16400 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16401 wxPyEndAllowThreads(__tstate);
16402 if (PyErr_Occurred()) SWIG_fail;
16403 }
16404 resultobj = SWIG_Py_Void();
16405 return resultobj;
16406 fail:
16407 return NULL;
16408 }
16409
16410
16411 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16412 PyObject *resultobj = 0;
16413 wxDC *arg1 = (wxDC *) 0 ;
16414 wxPoint *arg2 = 0 ;
16415 wxSize *arg3 = 0 ;
16416 double arg4 ;
16417 void *argp1 = 0 ;
16418 int res1 = 0 ;
16419 wxPoint temp2 ;
16420 wxSize temp3 ;
16421 double val4 ;
16422 int ecode4 = 0 ;
16423 PyObject * obj0 = 0 ;
16424 PyObject * obj1 = 0 ;
16425 PyObject * obj2 = 0 ;
16426 PyObject * obj3 = 0 ;
16427 char * kwnames[] = {
16428 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16429 };
16430
16431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16432 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16433 if (!SWIG_IsOK(res1)) {
16434 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16435 }
16436 arg1 = reinterpret_cast< wxDC * >(argp1);
16437 {
16438 arg2 = &temp2;
16439 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16440 }
16441 {
16442 arg3 = &temp3;
16443 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16444 }
16445 ecode4 = SWIG_AsVal_double(obj3, &val4);
16446 if (!SWIG_IsOK(ecode4)) {
16447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16448 }
16449 arg4 = static_cast< double >(val4);
16450 {
16451 PyThreadState* __tstate = wxPyBeginAllowThreads();
16452 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16453 wxPyEndAllowThreads(__tstate);
16454 if (PyErr_Occurred()) SWIG_fail;
16455 }
16456 resultobj = SWIG_Py_Void();
16457 return resultobj;
16458 fail:
16459 return NULL;
16460 }
16461
16462
16463 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16464 PyObject *resultobj = 0;
16465 wxDC *arg1 = (wxDC *) 0 ;
16466 int arg2 ;
16467 int arg3 ;
16468 int arg4 ;
16469 void *argp1 = 0 ;
16470 int res1 = 0 ;
16471 int val2 ;
16472 int ecode2 = 0 ;
16473 int val3 ;
16474 int ecode3 = 0 ;
16475 int val4 ;
16476 int ecode4 = 0 ;
16477 PyObject * obj0 = 0 ;
16478 PyObject * obj1 = 0 ;
16479 PyObject * obj2 = 0 ;
16480 PyObject * obj3 = 0 ;
16481 char * kwnames[] = {
16482 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16483 };
16484
16485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16487 if (!SWIG_IsOK(res1)) {
16488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16489 }
16490 arg1 = reinterpret_cast< wxDC * >(argp1);
16491 ecode2 = SWIG_AsVal_int(obj1, &val2);
16492 if (!SWIG_IsOK(ecode2)) {
16493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16494 }
16495 arg2 = static_cast< int >(val2);
16496 ecode3 = SWIG_AsVal_int(obj2, &val3);
16497 if (!SWIG_IsOK(ecode3)) {
16498 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16499 }
16500 arg3 = static_cast< int >(val3);
16501 ecode4 = SWIG_AsVal_int(obj3, &val4);
16502 if (!SWIG_IsOK(ecode4)) {
16503 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16504 }
16505 arg4 = static_cast< int >(val4);
16506 {
16507 PyThreadState* __tstate = wxPyBeginAllowThreads();
16508 (arg1)->DrawCircle(arg2,arg3,arg4);
16509 wxPyEndAllowThreads(__tstate);
16510 if (PyErr_Occurred()) SWIG_fail;
16511 }
16512 resultobj = SWIG_Py_Void();
16513 return resultobj;
16514 fail:
16515 return NULL;
16516 }
16517
16518
16519 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16520 PyObject *resultobj = 0;
16521 wxDC *arg1 = (wxDC *) 0 ;
16522 wxPoint *arg2 = 0 ;
16523 int arg3 ;
16524 void *argp1 = 0 ;
16525 int res1 = 0 ;
16526 wxPoint temp2 ;
16527 int val3 ;
16528 int ecode3 = 0 ;
16529 PyObject * obj0 = 0 ;
16530 PyObject * obj1 = 0 ;
16531 PyObject * obj2 = 0 ;
16532 char * kwnames[] = {
16533 (char *) "self",(char *) "pt",(char *) "radius", NULL
16534 };
16535
16536 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16537 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16538 if (!SWIG_IsOK(res1)) {
16539 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16540 }
16541 arg1 = reinterpret_cast< wxDC * >(argp1);
16542 {
16543 arg2 = &temp2;
16544 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16545 }
16546 ecode3 = SWIG_AsVal_int(obj2, &val3);
16547 if (!SWIG_IsOK(ecode3)) {
16548 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16549 }
16550 arg3 = static_cast< int >(val3);
16551 {
16552 PyThreadState* __tstate = wxPyBeginAllowThreads();
16553 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16554 wxPyEndAllowThreads(__tstate);
16555 if (PyErr_Occurred()) SWIG_fail;
16556 }
16557 resultobj = SWIG_Py_Void();
16558 return resultobj;
16559 fail:
16560 return NULL;
16561 }
16562
16563
16564 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16565 PyObject *resultobj = 0;
16566 wxDC *arg1 = (wxDC *) 0 ;
16567 int arg2 ;
16568 int arg3 ;
16569 int arg4 ;
16570 int arg5 ;
16571 void *argp1 = 0 ;
16572 int res1 = 0 ;
16573 int val2 ;
16574 int ecode2 = 0 ;
16575 int val3 ;
16576 int ecode3 = 0 ;
16577 int val4 ;
16578 int ecode4 = 0 ;
16579 int val5 ;
16580 int ecode5 = 0 ;
16581 PyObject * obj0 = 0 ;
16582 PyObject * obj1 = 0 ;
16583 PyObject * obj2 = 0 ;
16584 PyObject * obj3 = 0 ;
16585 PyObject * obj4 = 0 ;
16586 char * kwnames[] = {
16587 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16588 };
16589
16590 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16591 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16592 if (!SWIG_IsOK(res1)) {
16593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16594 }
16595 arg1 = reinterpret_cast< wxDC * >(argp1);
16596 ecode2 = SWIG_AsVal_int(obj1, &val2);
16597 if (!SWIG_IsOK(ecode2)) {
16598 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16599 }
16600 arg2 = static_cast< int >(val2);
16601 ecode3 = SWIG_AsVal_int(obj2, &val3);
16602 if (!SWIG_IsOK(ecode3)) {
16603 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16604 }
16605 arg3 = static_cast< int >(val3);
16606 ecode4 = SWIG_AsVal_int(obj3, &val4);
16607 if (!SWIG_IsOK(ecode4)) {
16608 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16609 }
16610 arg4 = static_cast< int >(val4);
16611 ecode5 = SWIG_AsVal_int(obj4, &val5);
16612 if (!SWIG_IsOK(ecode5)) {
16613 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16614 }
16615 arg5 = static_cast< int >(val5);
16616 {
16617 PyThreadState* __tstate = wxPyBeginAllowThreads();
16618 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16619 wxPyEndAllowThreads(__tstate);
16620 if (PyErr_Occurred()) SWIG_fail;
16621 }
16622 resultobj = SWIG_Py_Void();
16623 return resultobj;
16624 fail:
16625 return NULL;
16626 }
16627
16628
16629 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16630 PyObject *resultobj = 0;
16631 wxDC *arg1 = (wxDC *) 0 ;
16632 wxRect *arg2 = 0 ;
16633 void *argp1 = 0 ;
16634 int res1 = 0 ;
16635 wxRect temp2 ;
16636 PyObject * obj0 = 0 ;
16637 PyObject * obj1 = 0 ;
16638 char * kwnames[] = {
16639 (char *) "self",(char *) "rect", NULL
16640 };
16641
16642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16644 if (!SWIG_IsOK(res1)) {
16645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16646 }
16647 arg1 = reinterpret_cast< wxDC * >(argp1);
16648 {
16649 arg2 = &temp2;
16650 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16651 }
16652 {
16653 PyThreadState* __tstate = wxPyBeginAllowThreads();
16654 (arg1)->DrawEllipse((wxRect const &)*arg2);
16655 wxPyEndAllowThreads(__tstate);
16656 if (PyErr_Occurred()) SWIG_fail;
16657 }
16658 resultobj = SWIG_Py_Void();
16659 return resultobj;
16660 fail:
16661 return NULL;
16662 }
16663
16664
16665 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16666 PyObject *resultobj = 0;
16667 wxDC *arg1 = (wxDC *) 0 ;
16668 wxPoint *arg2 = 0 ;
16669 wxSize *arg3 = 0 ;
16670 void *argp1 = 0 ;
16671 int res1 = 0 ;
16672 wxPoint temp2 ;
16673 wxSize temp3 ;
16674 PyObject * obj0 = 0 ;
16675 PyObject * obj1 = 0 ;
16676 PyObject * obj2 = 0 ;
16677 char * kwnames[] = {
16678 (char *) "self",(char *) "pt",(char *) "sz", NULL
16679 };
16680
16681 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16682 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16683 if (!SWIG_IsOK(res1)) {
16684 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16685 }
16686 arg1 = reinterpret_cast< wxDC * >(argp1);
16687 {
16688 arg2 = &temp2;
16689 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16690 }
16691 {
16692 arg3 = &temp3;
16693 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16694 }
16695 {
16696 PyThreadState* __tstate = wxPyBeginAllowThreads();
16697 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16698 wxPyEndAllowThreads(__tstate);
16699 if (PyErr_Occurred()) SWIG_fail;
16700 }
16701 resultobj = SWIG_Py_Void();
16702 return resultobj;
16703 fail:
16704 return NULL;
16705 }
16706
16707
16708 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16709 PyObject *resultobj = 0;
16710 wxDC *arg1 = (wxDC *) 0 ;
16711 wxIcon *arg2 = 0 ;
16712 int arg3 ;
16713 int arg4 ;
16714 void *argp1 = 0 ;
16715 int res1 = 0 ;
16716 void *argp2 = 0 ;
16717 int res2 = 0 ;
16718 int val3 ;
16719 int ecode3 = 0 ;
16720 int val4 ;
16721 int ecode4 = 0 ;
16722 PyObject * obj0 = 0 ;
16723 PyObject * obj1 = 0 ;
16724 PyObject * obj2 = 0 ;
16725 PyObject * obj3 = 0 ;
16726 char * kwnames[] = {
16727 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16728 };
16729
16730 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16731 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16732 if (!SWIG_IsOK(res1)) {
16733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16734 }
16735 arg1 = reinterpret_cast< wxDC * >(argp1);
16736 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16737 if (!SWIG_IsOK(res2)) {
16738 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16739 }
16740 if (!argp2) {
16741 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16742 }
16743 arg2 = reinterpret_cast< wxIcon * >(argp2);
16744 ecode3 = SWIG_AsVal_int(obj2, &val3);
16745 if (!SWIG_IsOK(ecode3)) {
16746 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16747 }
16748 arg3 = static_cast< int >(val3);
16749 ecode4 = SWIG_AsVal_int(obj3, &val4);
16750 if (!SWIG_IsOK(ecode4)) {
16751 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16752 }
16753 arg4 = static_cast< int >(val4);
16754 {
16755 PyThreadState* __tstate = wxPyBeginAllowThreads();
16756 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16757 wxPyEndAllowThreads(__tstate);
16758 if (PyErr_Occurred()) SWIG_fail;
16759 }
16760 resultobj = SWIG_Py_Void();
16761 return resultobj;
16762 fail:
16763 return NULL;
16764 }
16765
16766
16767 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16768 PyObject *resultobj = 0;
16769 wxDC *arg1 = (wxDC *) 0 ;
16770 wxIcon *arg2 = 0 ;
16771 wxPoint *arg3 = 0 ;
16772 void *argp1 = 0 ;
16773 int res1 = 0 ;
16774 void *argp2 = 0 ;
16775 int res2 = 0 ;
16776 wxPoint temp3 ;
16777 PyObject * obj0 = 0 ;
16778 PyObject * obj1 = 0 ;
16779 PyObject * obj2 = 0 ;
16780 char * kwnames[] = {
16781 (char *) "self",(char *) "icon",(char *) "pt", NULL
16782 };
16783
16784 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16785 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16786 if (!SWIG_IsOK(res1)) {
16787 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16788 }
16789 arg1 = reinterpret_cast< wxDC * >(argp1);
16790 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16791 if (!SWIG_IsOK(res2)) {
16792 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16793 }
16794 if (!argp2) {
16795 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16796 }
16797 arg2 = reinterpret_cast< wxIcon * >(argp2);
16798 {
16799 arg3 = &temp3;
16800 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16801 }
16802 {
16803 PyThreadState* __tstate = wxPyBeginAllowThreads();
16804 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16805 wxPyEndAllowThreads(__tstate);
16806 if (PyErr_Occurred()) SWIG_fail;
16807 }
16808 resultobj = SWIG_Py_Void();
16809 return resultobj;
16810 fail:
16811 return NULL;
16812 }
16813
16814
16815 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16816 PyObject *resultobj = 0;
16817 wxDC *arg1 = (wxDC *) 0 ;
16818 wxBitmap *arg2 = 0 ;
16819 int arg3 ;
16820 int arg4 ;
16821 bool arg5 = (bool) false ;
16822 void *argp1 = 0 ;
16823 int res1 = 0 ;
16824 void *argp2 = 0 ;
16825 int res2 = 0 ;
16826 int val3 ;
16827 int ecode3 = 0 ;
16828 int val4 ;
16829 int ecode4 = 0 ;
16830 bool val5 ;
16831 int ecode5 = 0 ;
16832 PyObject * obj0 = 0 ;
16833 PyObject * obj1 = 0 ;
16834 PyObject * obj2 = 0 ;
16835 PyObject * obj3 = 0 ;
16836 PyObject * obj4 = 0 ;
16837 char * kwnames[] = {
16838 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16839 };
16840
16841 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16842 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16843 if (!SWIG_IsOK(res1)) {
16844 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16845 }
16846 arg1 = reinterpret_cast< wxDC * >(argp1);
16847 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16848 if (!SWIG_IsOK(res2)) {
16849 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16850 }
16851 if (!argp2) {
16852 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16853 }
16854 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16855 ecode3 = SWIG_AsVal_int(obj2, &val3);
16856 if (!SWIG_IsOK(ecode3)) {
16857 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16858 }
16859 arg3 = static_cast< int >(val3);
16860 ecode4 = SWIG_AsVal_int(obj3, &val4);
16861 if (!SWIG_IsOK(ecode4)) {
16862 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16863 }
16864 arg4 = static_cast< int >(val4);
16865 if (obj4) {
16866 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16867 if (!SWIG_IsOK(ecode5)) {
16868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16869 }
16870 arg5 = static_cast< bool >(val5);
16871 }
16872 {
16873 PyThreadState* __tstate = wxPyBeginAllowThreads();
16874 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16875 wxPyEndAllowThreads(__tstate);
16876 if (PyErr_Occurred()) SWIG_fail;
16877 }
16878 resultobj = SWIG_Py_Void();
16879 return resultobj;
16880 fail:
16881 return NULL;
16882 }
16883
16884
16885 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16886 PyObject *resultobj = 0;
16887 wxDC *arg1 = (wxDC *) 0 ;
16888 wxBitmap *arg2 = 0 ;
16889 wxPoint *arg3 = 0 ;
16890 bool arg4 = (bool) false ;
16891 void *argp1 = 0 ;
16892 int res1 = 0 ;
16893 void *argp2 = 0 ;
16894 int res2 = 0 ;
16895 wxPoint temp3 ;
16896 bool val4 ;
16897 int ecode4 = 0 ;
16898 PyObject * obj0 = 0 ;
16899 PyObject * obj1 = 0 ;
16900 PyObject * obj2 = 0 ;
16901 PyObject * obj3 = 0 ;
16902 char * kwnames[] = {
16903 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16904 };
16905
16906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16908 if (!SWIG_IsOK(res1)) {
16909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16910 }
16911 arg1 = reinterpret_cast< wxDC * >(argp1);
16912 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16913 if (!SWIG_IsOK(res2)) {
16914 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16915 }
16916 if (!argp2) {
16917 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16918 }
16919 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16920 {
16921 arg3 = &temp3;
16922 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16923 }
16924 if (obj3) {
16925 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16926 if (!SWIG_IsOK(ecode4)) {
16927 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16928 }
16929 arg4 = static_cast< bool >(val4);
16930 }
16931 {
16932 PyThreadState* __tstate = wxPyBeginAllowThreads();
16933 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16934 wxPyEndAllowThreads(__tstate);
16935 if (PyErr_Occurred()) SWIG_fail;
16936 }
16937 resultobj = SWIG_Py_Void();
16938 return resultobj;
16939 fail:
16940 return NULL;
16941 }
16942
16943
16944 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16945 PyObject *resultobj = 0;
16946 wxDC *arg1 = (wxDC *) 0 ;
16947 wxString *arg2 = 0 ;
16948 int arg3 ;
16949 int arg4 ;
16950 void *argp1 = 0 ;
16951 int res1 = 0 ;
16952 bool temp2 = false ;
16953 int val3 ;
16954 int ecode3 = 0 ;
16955 int val4 ;
16956 int ecode4 = 0 ;
16957 PyObject * obj0 = 0 ;
16958 PyObject * obj1 = 0 ;
16959 PyObject * obj2 = 0 ;
16960 PyObject * obj3 = 0 ;
16961 char * kwnames[] = {
16962 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16963 };
16964
16965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16967 if (!SWIG_IsOK(res1)) {
16968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16969 }
16970 arg1 = reinterpret_cast< wxDC * >(argp1);
16971 {
16972 arg2 = wxString_in_helper(obj1);
16973 if (arg2 == NULL) SWIG_fail;
16974 temp2 = true;
16975 }
16976 ecode3 = SWIG_AsVal_int(obj2, &val3);
16977 if (!SWIG_IsOK(ecode3)) {
16978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16979 }
16980 arg3 = static_cast< int >(val3);
16981 ecode4 = SWIG_AsVal_int(obj3, &val4);
16982 if (!SWIG_IsOK(ecode4)) {
16983 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16984 }
16985 arg4 = static_cast< int >(val4);
16986 {
16987 PyThreadState* __tstate = wxPyBeginAllowThreads();
16988 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16989 wxPyEndAllowThreads(__tstate);
16990 if (PyErr_Occurred()) SWIG_fail;
16991 }
16992 resultobj = SWIG_Py_Void();
16993 {
16994 if (temp2)
16995 delete arg2;
16996 }
16997 return resultobj;
16998 fail:
16999 {
17000 if (temp2)
17001 delete arg2;
17002 }
17003 return NULL;
17004 }
17005
17006
17007 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17008 PyObject *resultobj = 0;
17009 wxDC *arg1 = (wxDC *) 0 ;
17010 wxString *arg2 = 0 ;
17011 wxPoint *arg3 = 0 ;
17012 void *argp1 = 0 ;
17013 int res1 = 0 ;
17014 bool temp2 = false ;
17015 wxPoint temp3 ;
17016 PyObject * obj0 = 0 ;
17017 PyObject * obj1 = 0 ;
17018 PyObject * obj2 = 0 ;
17019 char * kwnames[] = {
17020 (char *) "self",(char *) "text",(char *) "pt", NULL
17021 };
17022
17023 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17024 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17025 if (!SWIG_IsOK(res1)) {
17026 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17027 }
17028 arg1 = reinterpret_cast< wxDC * >(argp1);
17029 {
17030 arg2 = wxString_in_helper(obj1);
17031 if (arg2 == NULL) SWIG_fail;
17032 temp2 = true;
17033 }
17034 {
17035 arg3 = &temp3;
17036 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17037 }
17038 {
17039 PyThreadState* __tstate = wxPyBeginAllowThreads();
17040 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17041 wxPyEndAllowThreads(__tstate);
17042 if (PyErr_Occurred()) SWIG_fail;
17043 }
17044 resultobj = SWIG_Py_Void();
17045 {
17046 if (temp2)
17047 delete arg2;
17048 }
17049 return resultobj;
17050 fail:
17051 {
17052 if (temp2)
17053 delete arg2;
17054 }
17055 return NULL;
17056 }
17057
17058
17059 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17060 PyObject *resultobj = 0;
17061 wxDC *arg1 = (wxDC *) 0 ;
17062 wxString *arg2 = 0 ;
17063 int arg3 ;
17064 int arg4 ;
17065 double arg5 ;
17066 void *argp1 = 0 ;
17067 int res1 = 0 ;
17068 bool temp2 = false ;
17069 int val3 ;
17070 int ecode3 = 0 ;
17071 int val4 ;
17072 int ecode4 = 0 ;
17073 double val5 ;
17074 int ecode5 = 0 ;
17075 PyObject * obj0 = 0 ;
17076 PyObject * obj1 = 0 ;
17077 PyObject * obj2 = 0 ;
17078 PyObject * obj3 = 0 ;
17079 PyObject * obj4 = 0 ;
17080 char * kwnames[] = {
17081 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17082 };
17083
17084 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17085 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17086 if (!SWIG_IsOK(res1)) {
17087 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17088 }
17089 arg1 = reinterpret_cast< wxDC * >(argp1);
17090 {
17091 arg2 = wxString_in_helper(obj1);
17092 if (arg2 == NULL) SWIG_fail;
17093 temp2 = true;
17094 }
17095 ecode3 = SWIG_AsVal_int(obj2, &val3);
17096 if (!SWIG_IsOK(ecode3)) {
17097 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17098 }
17099 arg3 = static_cast< int >(val3);
17100 ecode4 = SWIG_AsVal_int(obj3, &val4);
17101 if (!SWIG_IsOK(ecode4)) {
17102 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17103 }
17104 arg4 = static_cast< int >(val4);
17105 ecode5 = SWIG_AsVal_double(obj4, &val5);
17106 if (!SWIG_IsOK(ecode5)) {
17107 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17108 }
17109 arg5 = static_cast< double >(val5);
17110 {
17111 PyThreadState* __tstate = wxPyBeginAllowThreads();
17112 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17113 wxPyEndAllowThreads(__tstate);
17114 if (PyErr_Occurred()) SWIG_fail;
17115 }
17116 resultobj = SWIG_Py_Void();
17117 {
17118 if (temp2)
17119 delete arg2;
17120 }
17121 return resultobj;
17122 fail:
17123 {
17124 if (temp2)
17125 delete arg2;
17126 }
17127 return NULL;
17128 }
17129
17130
17131 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17132 PyObject *resultobj = 0;
17133 wxDC *arg1 = (wxDC *) 0 ;
17134 wxString *arg2 = 0 ;
17135 wxPoint *arg3 = 0 ;
17136 double arg4 ;
17137 void *argp1 = 0 ;
17138 int res1 = 0 ;
17139 bool temp2 = false ;
17140 wxPoint temp3 ;
17141 double val4 ;
17142 int ecode4 = 0 ;
17143 PyObject * obj0 = 0 ;
17144 PyObject * obj1 = 0 ;
17145 PyObject * obj2 = 0 ;
17146 PyObject * obj3 = 0 ;
17147 char * kwnames[] = {
17148 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17149 };
17150
17151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17153 if (!SWIG_IsOK(res1)) {
17154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17155 }
17156 arg1 = reinterpret_cast< wxDC * >(argp1);
17157 {
17158 arg2 = wxString_in_helper(obj1);
17159 if (arg2 == NULL) SWIG_fail;
17160 temp2 = true;
17161 }
17162 {
17163 arg3 = &temp3;
17164 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17165 }
17166 ecode4 = SWIG_AsVal_double(obj3, &val4);
17167 if (!SWIG_IsOK(ecode4)) {
17168 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17169 }
17170 arg4 = static_cast< double >(val4);
17171 {
17172 PyThreadState* __tstate = wxPyBeginAllowThreads();
17173 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17174 wxPyEndAllowThreads(__tstate);
17175 if (PyErr_Occurred()) SWIG_fail;
17176 }
17177 resultobj = SWIG_Py_Void();
17178 {
17179 if (temp2)
17180 delete arg2;
17181 }
17182 return resultobj;
17183 fail:
17184 {
17185 if (temp2)
17186 delete arg2;
17187 }
17188 return NULL;
17189 }
17190
17191
17192 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17193 PyObject *resultobj = 0;
17194 wxDC *arg1 = (wxDC *) 0 ;
17195 int arg2 ;
17196 int arg3 ;
17197 int arg4 ;
17198 int arg5 ;
17199 wxDC *arg6 = (wxDC *) 0 ;
17200 int arg7 ;
17201 int arg8 ;
17202 int arg9 = (int) wxCOPY ;
17203 bool arg10 = (bool) false ;
17204 int arg11 = (int) -1 ;
17205 int arg12 = (int) -1 ;
17206 bool result;
17207 void *argp1 = 0 ;
17208 int res1 = 0 ;
17209 int val2 ;
17210 int ecode2 = 0 ;
17211 int val3 ;
17212 int ecode3 = 0 ;
17213 int val4 ;
17214 int ecode4 = 0 ;
17215 int val5 ;
17216 int ecode5 = 0 ;
17217 void *argp6 = 0 ;
17218 int res6 = 0 ;
17219 int val7 ;
17220 int ecode7 = 0 ;
17221 int val8 ;
17222 int ecode8 = 0 ;
17223 int val9 ;
17224 int ecode9 = 0 ;
17225 bool val10 ;
17226 int ecode10 = 0 ;
17227 int val11 ;
17228 int ecode11 = 0 ;
17229 int val12 ;
17230 int ecode12 = 0 ;
17231 PyObject * obj0 = 0 ;
17232 PyObject * obj1 = 0 ;
17233 PyObject * obj2 = 0 ;
17234 PyObject * obj3 = 0 ;
17235 PyObject * obj4 = 0 ;
17236 PyObject * obj5 = 0 ;
17237 PyObject * obj6 = 0 ;
17238 PyObject * obj7 = 0 ;
17239 PyObject * obj8 = 0 ;
17240 PyObject * obj9 = 0 ;
17241 PyObject * obj10 = 0 ;
17242 PyObject * obj11 = 0 ;
17243 char * kwnames[] = {
17244 (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
17245 };
17246
17247 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;
17248 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17249 if (!SWIG_IsOK(res1)) {
17250 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17251 }
17252 arg1 = reinterpret_cast< wxDC * >(argp1);
17253 ecode2 = SWIG_AsVal_int(obj1, &val2);
17254 if (!SWIG_IsOK(ecode2)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17256 }
17257 arg2 = static_cast< int >(val2);
17258 ecode3 = SWIG_AsVal_int(obj2, &val3);
17259 if (!SWIG_IsOK(ecode3)) {
17260 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17261 }
17262 arg3 = static_cast< int >(val3);
17263 ecode4 = SWIG_AsVal_int(obj3, &val4);
17264 if (!SWIG_IsOK(ecode4)) {
17265 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17266 }
17267 arg4 = static_cast< int >(val4);
17268 ecode5 = SWIG_AsVal_int(obj4, &val5);
17269 if (!SWIG_IsOK(ecode5)) {
17270 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17271 }
17272 arg5 = static_cast< int >(val5);
17273 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17274 if (!SWIG_IsOK(res6)) {
17275 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17276 }
17277 arg6 = reinterpret_cast< wxDC * >(argp6);
17278 ecode7 = SWIG_AsVal_int(obj6, &val7);
17279 if (!SWIG_IsOK(ecode7)) {
17280 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17281 }
17282 arg7 = static_cast< int >(val7);
17283 ecode8 = SWIG_AsVal_int(obj7, &val8);
17284 if (!SWIG_IsOK(ecode8)) {
17285 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17286 }
17287 arg8 = static_cast< int >(val8);
17288 if (obj8) {
17289 ecode9 = SWIG_AsVal_int(obj8, &val9);
17290 if (!SWIG_IsOK(ecode9)) {
17291 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17292 }
17293 arg9 = static_cast< int >(val9);
17294 }
17295 if (obj9) {
17296 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17297 if (!SWIG_IsOK(ecode10)) {
17298 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17299 }
17300 arg10 = static_cast< bool >(val10);
17301 }
17302 if (obj10) {
17303 ecode11 = SWIG_AsVal_int(obj10, &val11);
17304 if (!SWIG_IsOK(ecode11)) {
17305 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17306 }
17307 arg11 = static_cast< int >(val11);
17308 }
17309 if (obj11) {
17310 ecode12 = SWIG_AsVal_int(obj11, &val12);
17311 if (!SWIG_IsOK(ecode12)) {
17312 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17313 }
17314 arg12 = static_cast< int >(val12);
17315 }
17316 {
17317 PyThreadState* __tstate = wxPyBeginAllowThreads();
17318 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17319 wxPyEndAllowThreads(__tstate);
17320 if (PyErr_Occurred()) SWIG_fail;
17321 }
17322 {
17323 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17324 }
17325 return resultobj;
17326 fail:
17327 return NULL;
17328 }
17329
17330
17331 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17332 PyObject *resultobj = 0;
17333 wxDC *arg1 = (wxDC *) 0 ;
17334 wxPoint *arg2 = 0 ;
17335 wxSize *arg3 = 0 ;
17336 wxDC *arg4 = (wxDC *) 0 ;
17337 wxPoint *arg5 = 0 ;
17338 int arg6 = (int) wxCOPY ;
17339 bool arg7 = (bool) false ;
17340 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17341 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17342 bool result;
17343 void *argp1 = 0 ;
17344 int res1 = 0 ;
17345 wxPoint temp2 ;
17346 wxSize temp3 ;
17347 void *argp4 = 0 ;
17348 int res4 = 0 ;
17349 wxPoint temp5 ;
17350 int val6 ;
17351 int ecode6 = 0 ;
17352 bool val7 ;
17353 int ecode7 = 0 ;
17354 wxPoint temp8 ;
17355 PyObject * obj0 = 0 ;
17356 PyObject * obj1 = 0 ;
17357 PyObject * obj2 = 0 ;
17358 PyObject * obj3 = 0 ;
17359 PyObject * obj4 = 0 ;
17360 PyObject * obj5 = 0 ;
17361 PyObject * obj6 = 0 ;
17362 PyObject * obj7 = 0 ;
17363 char * kwnames[] = {
17364 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17365 };
17366
17367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17369 if (!SWIG_IsOK(res1)) {
17370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17371 }
17372 arg1 = reinterpret_cast< wxDC * >(argp1);
17373 {
17374 arg2 = &temp2;
17375 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17376 }
17377 {
17378 arg3 = &temp3;
17379 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17380 }
17381 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17382 if (!SWIG_IsOK(res4)) {
17383 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17384 }
17385 arg4 = reinterpret_cast< wxDC * >(argp4);
17386 {
17387 arg5 = &temp5;
17388 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17389 }
17390 if (obj5) {
17391 ecode6 = SWIG_AsVal_int(obj5, &val6);
17392 if (!SWIG_IsOK(ecode6)) {
17393 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17394 }
17395 arg6 = static_cast< int >(val6);
17396 }
17397 if (obj6) {
17398 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17399 if (!SWIG_IsOK(ecode7)) {
17400 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17401 }
17402 arg7 = static_cast< bool >(val7);
17403 }
17404 if (obj7) {
17405 {
17406 arg8 = &temp8;
17407 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17408 }
17409 }
17410 {
17411 PyThreadState* __tstate = wxPyBeginAllowThreads();
17412 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17413 wxPyEndAllowThreads(__tstate);
17414 if (PyErr_Occurred()) SWIG_fail;
17415 }
17416 {
17417 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17418 }
17419 return resultobj;
17420 fail:
17421 return NULL;
17422 }
17423
17424
17425 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17426 PyObject *resultobj = 0;
17427 wxDC *arg1 = (wxDC *) 0 ;
17428 int arg2 ;
17429 int arg3 ;
17430 int arg4 ;
17431 int arg5 ;
17432 void *argp1 = 0 ;
17433 int res1 = 0 ;
17434 int val2 ;
17435 int ecode2 = 0 ;
17436 int val3 ;
17437 int ecode3 = 0 ;
17438 int val4 ;
17439 int ecode4 = 0 ;
17440 int val5 ;
17441 int ecode5 = 0 ;
17442 PyObject * obj0 = 0 ;
17443 PyObject * obj1 = 0 ;
17444 PyObject * obj2 = 0 ;
17445 PyObject * obj3 = 0 ;
17446 PyObject * obj4 = 0 ;
17447 char * kwnames[] = {
17448 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17449 };
17450
17451 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17452 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17453 if (!SWIG_IsOK(res1)) {
17454 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17455 }
17456 arg1 = reinterpret_cast< wxDC * >(argp1);
17457 ecode2 = SWIG_AsVal_int(obj1, &val2);
17458 if (!SWIG_IsOK(ecode2)) {
17459 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17460 }
17461 arg2 = static_cast< int >(val2);
17462 ecode3 = SWIG_AsVal_int(obj2, &val3);
17463 if (!SWIG_IsOK(ecode3)) {
17464 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17465 }
17466 arg3 = static_cast< int >(val3);
17467 ecode4 = SWIG_AsVal_int(obj3, &val4);
17468 if (!SWIG_IsOK(ecode4)) {
17469 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17470 }
17471 arg4 = static_cast< int >(val4);
17472 ecode5 = SWIG_AsVal_int(obj4, &val5);
17473 if (!SWIG_IsOK(ecode5)) {
17474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17475 }
17476 arg5 = static_cast< int >(val5);
17477 {
17478 PyThreadState* __tstate = wxPyBeginAllowThreads();
17479 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17480 wxPyEndAllowThreads(__tstate);
17481 if (PyErr_Occurred()) SWIG_fail;
17482 }
17483 resultobj = SWIG_Py_Void();
17484 return resultobj;
17485 fail:
17486 return NULL;
17487 }
17488
17489
17490 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17491 PyObject *resultobj = 0;
17492 wxDC *arg1 = (wxDC *) 0 ;
17493 wxPoint *arg2 = 0 ;
17494 wxSize *arg3 = 0 ;
17495 void *argp1 = 0 ;
17496 int res1 = 0 ;
17497 wxPoint temp2 ;
17498 wxSize temp3 ;
17499 PyObject * obj0 = 0 ;
17500 PyObject * obj1 = 0 ;
17501 PyObject * obj2 = 0 ;
17502 char * kwnames[] = {
17503 (char *) "self",(char *) "pt",(char *) "sz", NULL
17504 };
17505
17506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17508 if (!SWIG_IsOK(res1)) {
17509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17510 }
17511 arg1 = reinterpret_cast< wxDC * >(argp1);
17512 {
17513 arg2 = &temp2;
17514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17515 }
17516 {
17517 arg3 = &temp3;
17518 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17519 }
17520 {
17521 PyThreadState* __tstate = wxPyBeginAllowThreads();
17522 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17523 wxPyEndAllowThreads(__tstate);
17524 if (PyErr_Occurred()) SWIG_fail;
17525 }
17526 resultobj = SWIG_Py_Void();
17527 return resultobj;
17528 fail:
17529 return NULL;
17530 }
17531
17532
17533 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17534 PyObject *resultobj = 0;
17535 wxDC *arg1 = (wxDC *) 0 ;
17536 wxRegion *arg2 = 0 ;
17537 void *argp1 = 0 ;
17538 int res1 = 0 ;
17539 void *argp2 = 0 ;
17540 int res2 = 0 ;
17541 PyObject * obj0 = 0 ;
17542 PyObject * obj1 = 0 ;
17543 char * kwnames[] = {
17544 (char *) "self",(char *) "region", NULL
17545 };
17546
17547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17549 if (!SWIG_IsOK(res1)) {
17550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17551 }
17552 arg1 = reinterpret_cast< wxDC * >(argp1);
17553 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17554 if (!SWIG_IsOK(res2)) {
17555 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17556 }
17557 if (!argp2) {
17558 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17559 }
17560 arg2 = reinterpret_cast< wxRegion * >(argp2);
17561 {
17562 PyThreadState* __tstate = wxPyBeginAllowThreads();
17563 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17564 wxPyEndAllowThreads(__tstate);
17565 if (PyErr_Occurred()) SWIG_fail;
17566 }
17567 resultobj = SWIG_Py_Void();
17568 return resultobj;
17569 fail:
17570 return NULL;
17571 }
17572
17573
17574 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17575 PyObject *resultobj = 0;
17576 wxDC *arg1 = (wxDC *) 0 ;
17577 wxRect *arg2 = 0 ;
17578 void *argp1 = 0 ;
17579 int res1 = 0 ;
17580 wxRect temp2 ;
17581 PyObject * obj0 = 0 ;
17582 PyObject * obj1 = 0 ;
17583 char * kwnames[] = {
17584 (char *) "self",(char *) "rect", NULL
17585 };
17586
17587 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17588 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17589 if (!SWIG_IsOK(res1)) {
17590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17591 }
17592 arg1 = reinterpret_cast< wxDC * >(argp1);
17593 {
17594 arg2 = &temp2;
17595 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17596 }
17597 {
17598 PyThreadState* __tstate = wxPyBeginAllowThreads();
17599 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17600 wxPyEndAllowThreads(__tstate);
17601 if (PyErr_Occurred()) SWIG_fail;
17602 }
17603 resultobj = SWIG_Py_Void();
17604 return resultobj;
17605 fail:
17606 return NULL;
17607 }
17608
17609
17610 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17611 PyObject *resultobj = 0;
17612 wxDC *arg1 = (wxDC *) 0 ;
17613 int arg2 ;
17614 wxPoint *arg3 = (wxPoint *) 0 ;
17615 int arg4 = (int) 0 ;
17616 int arg5 = (int) 0 ;
17617 void *argp1 = 0 ;
17618 int res1 = 0 ;
17619 int val4 ;
17620 int ecode4 = 0 ;
17621 int val5 ;
17622 int ecode5 = 0 ;
17623 PyObject * obj0 = 0 ;
17624 PyObject * obj1 = 0 ;
17625 PyObject * obj2 = 0 ;
17626 PyObject * obj3 = 0 ;
17627 char * kwnames[] = {
17628 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17629 };
17630
17631 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17632 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17633 if (!SWIG_IsOK(res1)) {
17634 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17635 }
17636 arg1 = reinterpret_cast< wxDC * >(argp1);
17637 {
17638 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17639 if (arg3 == NULL) SWIG_fail;
17640 }
17641 if (obj2) {
17642 ecode4 = SWIG_AsVal_int(obj2, &val4);
17643 if (!SWIG_IsOK(ecode4)) {
17644 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17645 }
17646 arg4 = static_cast< int >(val4);
17647 }
17648 if (obj3) {
17649 ecode5 = SWIG_AsVal_int(obj3, &val5);
17650 if (!SWIG_IsOK(ecode5)) {
17651 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17652 }
17653 arg5 = static_cast< int >(val5);
17654 }
17655 {
17656 PyThreadState* __tstate = wxPyBeginAllowThreads();
17657 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17658 wxPyEndAllowThreads(__tstate);
17659 if (PyErr_Occurred()) SWIG_fail;
17660 }
17661 resultobj = SWIG_Py_Void();
17662 {
17663 if (arg3) delete [] arg3;
17664 }
17665 return resultobj;
17666 fail:
17667 {
17668 if (arg3) delete [] arg3;
17669 }
17670 return NULL;
17671 }
17672
17673
17674 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17675 PyObject *resultobj = 0;
17676 wxDC *arg1 = (wxDC *) 0 ;
17677 int arg2 ;
17678 wxPoint *arg3 = (wxPoint *) 0 ;
17679 int arg4 = (int) 0 ;
17680 int arg5 = (int) 0 ;
17681 int arg6 = (int) wxODDEVEN_RULE ;
17682 void *argp1 = 0 ;
17683 int res1 = 0 ;
17684 int val4 ;
17685 int ecode4 = 0 ;
17686 int val5 ;
17687 int ecode5 = 0 ;
17688 int val6 ;
17689 int ecode6 = 0 ;
17690 PyObject * obj0 = 0 ;
17691 PyObject * obj1 = 0 ;
17692 PyObject * obj2 = 0 ;
17693 PyObject * obj3 = 0 ;
17694 PyObject * obj4 = 0 ;
17695 char * kwnames[] = {
17696 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17697 };
17698
17699 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17700 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17701 if (!SWIG_IsOK(res1)) {
17702 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17703 }
17704 arg1 = reinterpret_cast< wxDC * >(argp1);
17705 {
17706 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17707 if (arg3 == NULL) SWIG_fail;
17708 }
17709 if (obj2) {
17710 ecode4 = SWIG_AsVal_int(obj2, &val4);
17711 if (!SWIG_IsOK(ecode4)) {
17712 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17713 }
17714 arg4 = static_cast< int >(val4);
17715 }
17716 if (obj3) {
17717 ecode5 = SWIG_AsVal_int(obj3, &val5);
17718 if (!SWIG_IsOK(ecode5)) {
17719 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17720 }
17721 arg5 = static_cast< int >(val5);
17722 }
17723 if (obj4) {
17724 ecode6 = SWIG_AsVal_int(obj4, &val6);
17725 if (!SWIG_IsOK(ecode6)) {
17726 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17727 }
17728 arg6 = static_cast< int >(val6);
17729 }
17730 {
17731 PyThreadState* __tstate = wxPyBeginAllowThreads();
17732 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17733 wxPyEndAllowThreads(__tstate);
17734 if (PyErr_Occurred()) SWIG_fail;
17735 }
17736 resultobj = SWIG_Py_Void();
17737 {
17738 if (arg3) delete [] arg3;
17739 }
17740 return resultobj;
17741 fail:
17742 {
17743 if (arg3) delete [] arg3;
17744 }
17745 return NULL;
17746 }
17747
17748
17749 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17750 PyObject *resultobj = 0;
17751 wxDC *arg1 = (wxDC *) 0 ;
17752 wxString *arg2 = 0 ;
17753 wxRect *arg3 = 0 ;
17754 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17755 int arg5 = (int) -1 ;
17756 void *argp1 = 0 ;
17757 int res1 = 0 ;
17758 bool temp2 = false ;
17759 wxRect temp3 ;
17760 int val4 ;
17761 int ecode4 = 0 ;
17762 int val5 ;
17763 int ecode5 = 0 ;
17764 PyObject * obj0 = 0 ;
17765 PyObject * obj1 = 0 ;
17766 PyObject * obj2 = 0 ;
17767 PyObject * obj3 = 0 ;
17768 PyObject * obj4 = 0 ;
17769 char * kwnames[] = {
17770 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17771 };
17772
17773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17775 if (!SWIG_IsOK(res1)) {
17776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17777 }
17778 arg1 = reinterpret_cast< wxDC * >(argp1);
17779 {
17780 arg2 = wxString_in_helper(obj1);
17781 if (arg2 == NULL) SWIG_fail;
17782 temp2 = true;
17783 }
17784 {
17785 arg3 = &temp3;
17786 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17787 }
17788 if (obj3) {
17789 ecode4 = SWIG_AsVal_int(obj3, &val4);
17790 if (!SWIG_IsOK(ecode4)) {
17791 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17792 }
17793 arg4 = static_cast< int >(val4);
17794 }
17795 if (obj4) {
17796 ecode5 = SWIG_AsVal_int(obj4, &val5);
17797 if (!SWIG_IsOK(ecode5)) {
17798 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17799 }
17800 arg5 = static_cast< int >(val5);
17801 }
17802 {
17803 PyThreadState* __tstate = wxPyBeginAllowThreads();
17804 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17805 wxPyEndAllowThreads(__tstate);
17806 if (PyErr_Occurred()) SWIG_fail;
17807 }
17808 resultobj = SWIG_Py_Void();
17809 {
17810 if (temp2)
17811 delete arg2;
17812 }
17813 return resultobj;
17814 fail:
17815 {
17816 if (temp2)
17817 delete arg2;
17818 }
17819 return NULL;
17820 }
17821
17822
17823 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17824 PyObject *resultobj = 0;
17825 wxDC *arg1 = (wxDC *) 0 ;
17826 wxString *arg2 = 0 ;
17827 wxBitmap *arg3 = 0 ;
17828 wxRect *arg4 = 0 ;
17829 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17830 int arg6 = (int) -1 ;
17831 wxRect result;
17832 void *argp1 = 0 ;
17833 int res1 = 0 ;
17834 bool temp2 = false ;
17835 void *argp3 = 0 ;
17836 int res3 = 0 ;
17837 wxRect temp4 ;
17838 int val5 ;
17839 int ecode5 = 0 ;
17840 int val6 ;
17841 int ecode6 = 0 ;
17842 PyObject * obj0 = 0 ;
17843 PyObject * obj1 = 0 ;
17844 PyObject * obj2 = 0 ;
17845 PyObject * obj3 = 0 ;
17846 PyObject * obj4 = 0 ;
17847 PyObject * obj5 = 0 ;
17848 char * kwnames[] = {
17849 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17850 };
17851
17852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17854 if (!SWIG_IsOK(res1)) {
17855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17856 }
17857 arg1 = reinterpret_cast< wxDC * >(argp1);
17858 {
17859 arg2 = wxString_in_helper(obj1);
17860 if (arg2 == NULL) SWIG_fail;
17861 temp2 = true;
17862 }
17863 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17864 if (!SWIG_IsOK(res3)) {
17865 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17866 }
17867 if (!argp3) {
17868 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17869 }
17870 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17871 {
17872 arg4 = &temp4;
17873 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17874 }
17875 if (obj4) {
17876 ecode5 = SWIG_AsVal_int(obj4, &val5);
17877 if (!SWIG_IsOK(ecode5)) {
17878 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17879 }
17880 arg5 = static_cast< int >(val5);
17881 }
17882 if (obj5) {
17883 ecode6 = SWIG_AsVal_int(obj5, &val6);
17884 if (!SWIG_IsOK(ecode6)) {
17885 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17886 }
17887 arg6 = static_cast< int >(val6);
17888 }
17889 {
17890 PyThreadState* __tstate = wxPyBeginAllowThreads();
17891 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17892 wxPyEndAllowThreads(__tstate);
17893 if (PyErr_Occurred()) SWIG_fail;
17894 }
17895 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17896 {
17897 if (temp2)
17898 delete arg2;
17899 }
17900 return resultobj;
17901 fail:
17902 {
17903 if (temp2)
17904 delete arg2;
17905 }
17906 return NULL;
17907 }
17908
17909
17910 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17911 PyObject *resultobj = 0;
17912 wxDC *arg1 = (wxDC *) 0 ;
17913 int arg2 ;
17914 wxPoint *arg3 = (wxPoint *) 0 ;
17915 void *argp1 = 0 ;
17916 int res1 = 0 ;
17917 PyObject * obj0 = 0 ;
17918 PyObject * obj1 = 0 ;
17919 char * kwnames[] = {
17920 (char *) "self",(char *) "points", NULL
17921 };
17922
17923 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17924 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17925 if (!SWIG_IsOK(res1)) {
17926 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17927 }
17928 arg1 = reinterpret_cast< wxDC * >(argp1);
17929 {
17930 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17931 if (arg3 == NULL) SWIG_fail;
17932 }
17933 {
17934 PyThreadState* __tstate = wxPyBeginAllowThreads();
17935 (arg1)->DrawSpline(arg2,arg3);
17936 wxPyEndAllowThreads(__tstate);
17937 if (PyErr_Occurred()) SWIG_fail;
17938 }
17939 resultobj = SWIG_Py_Void();
17940 {
17941 if (arg3) delete [] arg3;
17942 }
17943 return resultobj;
17944 fail:
17945 {
17946 if (arg3) delete [] arg3;
17947 }
17948 return NULL;
17949 }
17950
17951
17952 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17953 PyObject *resultobj = 0;
17954 wxDC *arg1 = (wxDC *) 0 ;
17955 void *argp1 = 0 ;
17956 int res1 = 0 ;
17957 PyObject *swig_obj[1] ;
17958
17959 if (!args) SWIG_fail;
17960 swig_obj[0] = args;
17961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17962 if (!SWIG_IsOK(res1)) {
17963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17964 }
17965 arg1 = reinterpret_cast< wxDC * >(argp1);
17966 {
17967 PyThreadState* __tstate = wxPyBeginAllowThreads();
17968 (arg1)->Clear();
17969 wxPyEndAllowThreads(__tstate);
17970 if (PyErr_Occurred()) SWIG_fail;
17971 }
17972 resultobj = SWIG_Py_Void();
17973 return resultobj;
17974 fail:
17975 return NULL;
17976 }
17977
17978
17979 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17980 PyObject *resultobj = 0;
17981 wxDC *arg1 = (wxDC *) 0 ;
17982 wxString *arg2 = 0 ;
17983 bool result;
17984 void *argp1 = 0 ;
17985 int res1 = 0 ;
17986 bool temp2 = false ;
17987 PyObject * obj0 = 0 ;
17988 PyObject * obj1 = 0 ;
17989 char * kwnames[] = {
17990 (char *) "self",(char *) "message", NULL
17991 };
17992
17993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17995 if (!SWIG_IsOK(res1)) {
17996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17997 }
17998 arg1 = reinterpret_cast< wxDC * >(argp1);
17999 {
18000 arg2 = wxString_in_helper(obj1);
18001 if (arg2 == NULL) SWIG_fail;
18002 temp2 = true;
18003 }
18004 {
18005 PyThreadState* __tstate = wxPyBeginAllowThreads();
18006 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
18007 wxPyEndAllowThreads(__tstate);
18008 if (PyErr_Occurred()) SWIG_fail;
18009 }
18010 {
18011 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18012 }
18013 {
18014 if (temp2)
18015 delete arg2;
18016 }
18017 return resultobj;
18018 fail:
18019 {
18020 if (temp2)
18021 delete arg2;
18022 }
18023 return NULL;
18024 }
18025
18026
18027 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18028 PyObject *resultobj = 0;
18029 wxDC *arg1 = (wxDC *) 0 ;
18030 void *argp1 = 0 ;
18031 int res1 = 0 ;
18032 PyObject *swig_obj[1] ;
18033
18034 if (!args) SWIG_fail;
18035 swig_obj[0] = args;
18036 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18037 if (!SWIG_IsOK(res1)) {
18038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18039 }
18040 arg1 = reinterpret_cast< wxDC * >(argp1);
18041 {
18042 PyThreadState* __tstate = wxPyBeginAllowThreads();
18043 (arg1)->EndDoc();
18044 wxPyEndAllowThreads(__tstate);
18045 if (PyErr_Occurred()) SWIG_fail;
18046 }
18047 resultobj = SWIG_Py_Void();
18048 return resultobj;
18049 fail:
18050 return NULL;
18051 }
18052
18053
18054 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18055 PyObject *resultobj = 0;
18056 wxDC *arg1 = (wxDC *) 0 ;
18057 void *argp1 = 0 ;
18058 int res1 = 0 ;
18059 PyObject *swig_obj[1] ;
18060
18061 if (!args) SWIG_fail;
18062 swig_obj[0] = args;
18063 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18064 if (!SWIG_IsOK(res1)) {
18065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18066 }
18067 arg1 = reinterpret_cast< wxDC * >(argp1);
18068 {
18069 PyThreadState* __tstate = wxPyBeginAllowThreads();
18070 (arg1)->StartPage();
18071 wxPyEndAllowThreads(__tstate);
18072 if (PyErr_Occurred()) SWIG_fail;
18073 }
18074 resultobj = SWIG_Py_Void();
18075 return resultobj;
18076 fail:
18077 return NULL;
18078 }
18079
18080
18081 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18082 PyObject *resultobj = 0;
18083 wxDC *arg1 = (wxDC *) 0 ;
18084 void *argp1 = 0 ;
18085 int res1 = 0 ;
18086 PyObject *swig_obj[1] ;
18087
18088 if (!args) SWIG_fail;
18089 swig_obj[0] = args;
18090 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18091 if (!SWIG_IsOK(res1)) {
18092 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18093 }
18094 arg1 = reinterpret_cast< wxDC * >(argp1);
18095 {
18096 PyThreadState* __tstate = wxPyBeginAllowThreads();
18097 (arg1)->EndPage();
18098 wxPyEndAllowThreads(__tstate);
18099 if (PyErr_Occurred()) SWIG_fail;
18100 }
18101 resultobj = SWIG_Py_Void();
18102 return resultobj;
18103 fail:
18104 return NULL;
18105 }
18106
18107
18108 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18109 PyObject *resultobj = 0;
18110 wxDC *arg1 = (wxDC *) 0 ;
18111 wxFont *arg2 = 0 ;
18112 void *argp1 = 0 ;
18113 int res1 = 0 ;
18114 void *argp2 = 0 ;
18115 int res2 = 0 ;
18116 PyObject * obj0 = 0 ;
18117 PyObject * obj1 = 0 ;
18118 char * kwnames[] = {
18119 (char *) "self",(char *) "font", NULL
18120 };
18121
18122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18124 if (!SWIG_IsOK(res1)) {
18125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18126 }
18127 arg1 = reinterpret_cast< wxDC * >(argp1);
18128 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18129 if (!SWIG_IsOK(res2)) {
18130 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18131 }
18132 if (!argp2) {
18133 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18134 }
18135 arg2 = reinterpret_cast< wxFont * >(argp2);
18136 {
18137 PyThreadState* __tstate = wxPyBeginAllowThreads();
18138 (arg1)->SetFont((wxFont const &)*arg2);
18139 wxPyEndAllowThreads(__tstate);
18140 if (PyErr_Occurred()) SWIG_fail;
18141 }
18142 resultobj = SWIG_Py_Void();
18143 return resultobj;
18144 fail:
18145 return NULL;
18146 }
18147
18148
18149 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18150 PyObject *resultobj = 0;
18151 wxDC *arg1 = (wxDC *) 0 ;
18152 wxPen *arg2 = 0 ;
18153 void *argp1 = 0 ;
18154 int res1 = 0 ;
18155 void *argp2 = 0 ;
18156 int res2 = 0 ;
18157 PyObject * obj0 = 0 ;
18158 PyObject * obj1 = 0 ;
18159 char * kwnames[] = {
18160 (char *) "self",(char *) "pen", NULL
18161 };
18162
18163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18165 if (!SWIG_IsOK(res1)) {
18166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18167 }
18168 arg1 = reinterpret_cast< wxDC * >(argp1);
18169 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18170 if (!SWIG_IsOK(res2)) {
18171 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18172 }
18173 if (!argp2) {
18174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18175 }
18176 arg2 = reinterpret_cast< wxPen * >(argp2);
18177 {
18178 PyThreadState* __tstate = wxPyBeginAllowThreads();
18179 (arg1)->SetPen((wxPen const &)*arg2);
18180 wxPyEndAllowThreads(__tstate);
18181 if (PyErr_Occurred()) SWIG_fail;
18182 }
18183 resultobj = SWIG_Py_Void();
18184 return resultobj;
18185 fail:
18186 return NULL;
18187 }
18188
18189
18190 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18191 PyObject *resultobj = 0;
18192 wxDC *arg1 = (wxDC *) 0 ;
18193 wxBrush *arg2 = 0 ;
18194 void *argp1 = 0 ;
18195 int res1 = 0 ;
18196 void *argp2 = 0 ;
18197 int res2 = 0 ;
18198 PyObject * obj0 = 0 ;
18199 PyObject * obj1 = 0 ;
18200 char * kwnames[] = {
18201 (char *) "self",(char *) "brush", NULL
18202 };
18203
18204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18208 }
18209 arg1 = reinterpret_cast< wxDC * >(argp1);
18210 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18211 if (!SWIG_IsOK(res2)) {
18212 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18213 }
18214 if (!argp2) {
18215 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18216 }
18217 arg2 = reinterpret_cast< wxBrush * >(argp2);
18218 {
18219 PyThreadState* __tstate = wxPyBeginAllowThreads();
18220 (arg1)->SetBrush((wxBrush const &)*arg2);
18221 wxPyEndAllowThreads(__tstate);
18222 if (PyErr_Occurred()) SWIG_fail;
18223 }
18224 resultobj = SWIG_Py_Void();
18225 return resultobj;
18226 fail:
18227 return NULL;
18228 }
18229
18230
18231 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18232 PyObject *resultobj = 0;
18233 wxDC *arg1 = (wxDC *) 0 ;
18234 wxBrush *arg2 = 0 ;
18235 void *argp1 = 0 ;
18236 int res1 = 0 ;
18237 void *argp2 = 0 ;
18238 int res2 = 0 ;
18239 PyObject * obj0 = 0 ;
18240 PyObject * obj1 = 0 ;
18241 char * kwnames[] = {
18242 (char *) "self",(char *) "brush", NULL
18243 };
18244
18245 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18246 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18247 if (!SWIG_IsOK(res1)) {
18248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18249 }
18250 arg1 = reinterpret_cast< wxDC * >(argp1);
18251 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18252 if (!SWIG_IsOK(res2)) {
18253 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18254 }
18255 if (!argp2) {
18256 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18257 }
18258 arg2 = reinterpret_cast< wxBrush * >(argp2);
18259 {
18260 PyThreadState* __tstate = wxPyBeginAllowThreads();
18261 (arg1)->SetBackground((wxBrush const &)*arg2);
18262 wxPyEndAllowThreads(__tstate);
18263 if (PyErr_Occurred()) SWIG_fail;
18264 }
18265 resultobj = SWIG_Py_Void();
18266 return resultobj;
18267 fail:
18268 return NULL;
18269 }
18270
18271
18272 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18273 PyObject *resultobj = 0;
18274 wxDC *arg1 = (wxDC *) 0 ;
18275 int arg2 ;
18276 void *argp1 = 0 ;
18277 int res1 = 0 ;
18278 int val2 ;
18279 int ecode2 = 0 ;
18280 PyObject * obj0 = 0 ;
18281 PyObject * obj1 = 0 ;
18282 char * kwnames[] = {
18283 (char *) "self",(char *) "mode", NULL
18284 };
18285
18286 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18287 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18288 if (!SWIG_IsOK(res1)) {
18289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18290 }
18291 arg1 = reinterpret_cast< wxDC * >(argp1);
18292 ecode2 = SWIG_AsVal_int(obj1, &val2);
18293 if (!SWIG_IsOK(ecode2)) {
18294 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18295 }
18296 arg2 = static_cast< int >(val2);
18297 {
18298 PyThreadState* __tstate = wxPyBeginAllowThreads();
18299 (arg1)->SetBackgroundMode(arg2);
18300 wxPyEndAllowThreads(__tstate);
18301 if (PyErr_Occurred()) SWIG_fail;
18302 }
18303 resultobj = SWIG_Py_Void();
18304 return resultobj;
18305 fail:
18306 return NULL;
18307 }
18308
18309
18310 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18311 PyObject *resultobj = 0;
18312 wxDC *arg1 = (wxDC *) 0 ;
18313 wxPalette *arg2 = 0 ;
18314 void *argp1 = 0 ;
18315 int res1 = 0 ;
18316 void *argp2 = 0 ;
18317 int res2 = 0 ;
18318 PyObject * obj0 = 0 ;
18319 PyObject * obj1 = 0 ;
18320 char * kwnames[] = {
18321 (char *) "self",(char *) "palette", NULL
18322 };
18323
18324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18326 if (!SWIG_IsOK(res1)) {
18327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18328 }
18329 arg1 = reinterpret_cast< wxDC * >(argp1);
18330 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18331 if (!SWIG_IsOK(res2)) {
18332 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18333 }
18334 if (!argp2) {
18335 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18336 }
18337 arg2 = reinterpret_cast< wxPalette * >(argp2);
18338 {
18339 PyThreadState* __tstate = wxPyBeginAllowThreads();
18340 (arg1)->SetPalette((wxPalette const &)*arg2);
18341 wxPyEndAllowThreads(__tstate);
18342 if (PyErr_Occurred()) SWIG_fail;
18343 }
18344 resultobj = SWIG_Py_Void();
18345 return resultobj;
18346 fail:
18347 return NULL;
18348 }
18349
18350
18351 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18352 PyObject *resultobj = 0;
18353 wxDC *arg1 = (wxDC *) 0 ;
18354 void *argp1 = 0 ;
18355 int res1 = 0 ;
18356 PyObject *swig_obj[1] ;
18357
18358 if (!args) SWIG_fail;
18359 swig_obj[0] = args;
18360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18361 if (!SWIG_IsOK(res1)) {
18362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18363 }
18364 arg1 = reinterpret_cast< wxDC * >(argp1);
18365 {
18366 PyThreadState* __tstate = wxPyBeginAllowThreads();
18367 (arg1)->DestroyClippingRegion();
18368 wxPyEndAllowThreads(__tstate);
18369 if (PyErr_Occurred()) SWIG_fail;
18370 }
18371 resultobj = SWIG_Py_Void();
18372 return resultobj;
18373 fail:
18374 return NULL;
18375 }
18376
18377
18378 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18379 PyObject *resultobj = 0;
18380 wxDC *arg1 = (wxDC *) 0 ;
18381 int *arg2 = (int *) 0 ;
18382 int *arg3 = (int *) 0 ;
18383 int *arg4 = (int *) 0 ;
18384 int *arg5 = (int *) 0 ;
18385 void *argp1 = 0 ;
18386 int res1 = 0 ;
18387 int temp2 ;
18388 int res2 = SWIG_TMPOBJ ;
18389 int temp3 ;
18390 int res3 = SWIG_TMPOBJ ;
18391 int temp4 ;
18392 int res4 = SWIG_TMPOBJ ;
18393 int temp5 ;
18394 int res5 = SWIG_TMPOBJ ;
18395 PyObject *swig_obj[1] ;
18396
18397 arg2 = &temp2;
18398 arg3 = &temp3;
18399 arg4 = &temp4;
18400 arg5 = &temp5;
18401 if (!args) SWIG_fail;
18402 swig_obj[0] = args;
18403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18404 if (!SWIG_IsOK(res1)) {
18405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18406 }
18407 arg1 = reinterpret_cast< wxDC * >(argp1);
18408 {
18409 PyThreadState* __tstate = wxPyBeginAllowThreads();
18410 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18411 wxPyEndAllowThreads(__tstate);
18412 if (PyErr_Occurred()) SWIG_fail;
18413 }
18414 resultobj = SWIG_Py_Void();
18415 if (SWIG_IsTmpObj(res2)) {
18416 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18417 } else {
18418 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18419 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18420 }
18421 if (SWIG_IsTmpObj(res3)) {
18422 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18423 } else {
18424 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18425 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18426 }
18427 if (SWIG_IsTmpObj(res4)) {
18428 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18429 } else {
18430 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18431 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18432 }
18433 if (SWIG_IsTmpObj(res5)) {
18434 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18435 } else {
18436 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18437 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18438 }
18439 return resultobj;
18440 fail:
18441 return NULL;
18442 }
18443
18444
18445 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18446 PyObject *resultobj = 0;
18447 wxDC *arg1 = (wxDC *) 0 ;
18448 wxRect result;
18449 void *argp1 = 0 ;
18450 int res1 = 0 ;
18451 PyObject *swig_obj[1] ;
18452
18453 if (!args) SWIG_fail;
18454 swig_obj[0] = args;
18455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18456 if (!SWIG_IsOK(res1)) {
18457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18458 }
18459 arg1 = reinterpret_cast< wxDC * >(argp1);
18460 {
18461 PyThreadState* __tstate = wxPyBeginAllowThreads();
18462 result = wxDC_GetClippingRect(arg1);
18463 wxPyEndAllowThreads(__tstate);
18464 if (PyErr_Occurred()) SWIG_fail;
18465 }
18466 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18467 return resultobj;
18468 fail:
18469 return NULL;
18470 }
18471
18472
18473 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18474 PyObject *resultobj = 0;
18475 wxDC *arg1 = (wxDC *) 0 ;
18476 int result;
18477 void *argp1 = 0 ;
18478 int res1 = 0 ;
18479 PyObject *swig_obj[1] ;
18480
18481 if (!args) SWIG_fail;
18482 swig_obj[0] = args;
18483 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18484 if (!SWIG_IsOK(res1)) {
18485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18486 }
18487 arg1 = reinterpret_cast< wxDC * >(argp1);
18488 {
18489 PyThreadState* __tstate = wxPyBeginAllowThreads();
18490 result = (int)((wxDC const *)arg1)->GetCharHeight();
18491 wxPyEndAllowThreads(__tstate);
18492 if (PyErr_Occurred()) SWIG_fail;
18493 }
18494 resultobj = SWIG_From_int(static_cast< int >(result));
18495 return resultobj;
18496 fail:
18497 return NULL;
18498 }
18499
18500
18501 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18502 PyObject *resultobj = 0;
18503 wxDC *arg1 = (wxDC *) 0 ;
18504 int result;
18505 void *argp1 = 0 ;
18506 int res1 = 0 ;
18507 PyObject *swig_obj[1] ;
18508
18509 if (!args) SWIG_fail;
18510 swig_obj[0] = args;
18511 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18512 if (!SWIG_IsOK(res1)) {
18513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18514 }
18515 arg1 = reinterpret_cast< wxDC * >(argp1);
18516 {
18517 PyThreadState* __tstate = wxPyBeginAllowThreads();
18518 result = (int)((wxDC const *)arg1)->GetCharWidth();
18519 wxPyEndAllowThreads(__tstate);
18520 if (PyErr_Occurred()) SWIG_fail;
18521 }
18522 resultobj = SWIG_From_int(static_cast< int >(result));
18523 return resultobj;
18524 fail:
18525 return NULL;
18526 }
18527
18528
18529 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18530 PyObject *resultobj = 0;
18531 wxDC *arg1 = (wxDC *) 0 ;
18532 wxString *arg2 = 0 ;
18533 int *arg3 = (int *) 0 ;
18534 int *arg4 = (int *) 0 ;
18535 void *argp1 = 0 ;
18536 int res1 = 0 ;
18537 bool temp2 = false ;
18538 int temp3 ;
18539 int res3 = SWIG_TMPOBJ ;
18540 int temp4 ;
18541 int res4 = SWIG_TMPOBJ ;
18542 PyObject * obj0 = 0 ;
18543 PyObject * obj1 = 0 ;
18544 char * kwnames[] = {
18545 (char *) "self",(char *) "string", NULL
18546 };
18547
18548 arg3 = &temp3;
18549 arg4 = &temp4;
18550 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18551 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18552 if (!SWIG_IsOK(res1)) {
18553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18554 }
18555 arg1 = reinterpret_cast< wxDC * >(argp1);
18556 {
18557 arg2 = wxString_in_helper(obj1);
18558 if (arg2 == NULL) SWIG_fail;
18559 temp2 = true;
18560 }
18561 {
18562 PyThreadState* __tstate = wxPyBeginAllowThreads();
18563 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18564 wxPyEndAllowThreads(__tstate);
18565 if (PyErr_Occurred()) SWIG_fail;
18566 }
18567 resultobj = SWIG_Py_Void();
18568 if (SWIG_IsTmpObj(res3)) {
18569 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18570 } else {
18571 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18572 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18573 }
18574 if (SWIG_IsTmpObj(res4)) {
18575 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18576 } else {
18577 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18578 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18579 }
18580 {
18581 if (temp2)
18582 delete arg2;
18583 }
18584 return resultobj;
18585 fail:
18586 {
18587 if (temp2)
18588 delete arg2;
18589 }
18590 return NULL;
18591 }
18592
18593
18594 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18595 PyObject *resultobj = 0;
18596 wxDC *arg1 = (wxDC *) 0 ;
18597 wxString *arg2 = 0 ;
18598 int *arg3 = (int *) 0 ;
18599 int *arg4 = (int *) 0 ;
18600 int *arg5 = (int *) 0 ;
18601 int *arg6 = (int *) 0 ;
18602 wxFont *arg7 = (wxFont *) NULL ;
18603 void *argp1 = 0 ;
18604 int res1 = 0 ;
18605 bool temp2 = false ;
18606 int temp3 ;
18607 int res3 = SWIG_TMPOBJ ;
18608 int temp4 ;
18609 int res4 = SWIG_TMPOBJ ;
18610 int temp5 ;
18611 int res5 = SWIG_TMPOBJ ;
18612 int temp6 ;
18613 int res6 = SWIG_TMPOBJ ;
18614 void *argp7 = 0 ;
18615 int res7 = 0 ;
18616 PyObject * obj0 = 0 ;
18617 PyObject * obj1 = 0 ;
18618 PyObject * obj2 = 0 ;
18619 char * kwnames[] = {
18620 (char *) "self",(char *) "string",(char *) "font", NULL
18621 };
18622
18623 arg3 = &temp3;
18624 arg4 = &temp4;
18625 arg5 = &temp5;
18626 arg6 = &temp6;
18627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18629 if (!SWIG_IsOK(res1)) {
18630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18631 }
18632 arg1 = reinterpret_cast< wxDC * >(argp1);
18633 {
18634 arg2 = wxString_in_helper(obj1);
18635 if (arg2 == NULL) SWIG_fail;
18636 temp2 = true;
18637 }
18638 if (obj2) {
18639 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18640 if (!SWIG_IsOK(res7)) {
18641 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18642 }
18643 arg7 = reinterpret_cast< wxFont * >(argp7);
18644 }
18645 {
18646 PyThreadState* __tstate = wxPyBeginAllowThreads();
18647 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18648 wxPyEndAllowThreads(__tstate);
18649 if (PyErr_Occurred()) SWIG_fail;
18650 }
18651 resultobj = SWIG_Py_Void();
18652 if (SWIG_IsTmpObj(res3)) {
18653 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18654 } else {
18655 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18656 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18657 }
18658 if (SWIG_IsTmpObj(res4)) {
18659 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18660 } else {
18661 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18662 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18663 }
18664 if (SWIG_IsTmpObj(res5)) {
18665 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18666 } else {
18667 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18668 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18669 }
18670 if (SWIG_IsTmpObj(res6)) {
18671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18672 } else {
18673 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18675 }
18676 {
18677 if (temp2)
18678 delete arg2;
18679 }
18680 return resultobj;
18681 fail:
18682 {
18683 if (temp2)
18684 delete arg2;
18685 }
18686 return NULL;
18687 }
18688
18689
18690 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18691 PyObject *resultobj = 0;
18692 wxDC *arg1 = (wxDC *) 0 ;
18693 wxString *arg2 = 0 ;
18694 int *arg3 = (int *) 0 ;
18695 int *arg4 = (int *) 0 ;
18696 int *arg5 = (int *) 0 ;
18697 wxFont *arg6 = (wxFont *) NULL ;
18698 void *argp1 = 0 ;
18699 int res1 = 0 ;
18700 bool temp2 = false ;
18701 int temp3 ;
18702 int res3 = SWIG_TMPOBJ ;
18703 int temp4 ;
18704 int res4 = SWIG_TMPOBJ ;
18705 int temp5 ;
18706 int res5 = SWIG_TMPOBJ ;
18707 void *argp6 = 0 ;
18708 int res6 = 0 ;
18709 PyObject * obj0 = 0 ;
18710 PyObject * obj1 = 0 ;
18711 PyObject * obj2 = 0 ;
18712 char * kwnames[] = {
18713 (char *) "self",(char *) "text",(char *) "font", NULL
18714 };
18715
18716 arg3 = &temp3;
18717 arg4 = &temp4;
18718 arg5 = &temp5;
18719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18721 if (!SWIG_IsOK(res1)) {
18722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18723 }
18724 arg1 = reinterpret_cast< wxDC * >(argp1);
18725 {
18726 arg2 = wxString_in_helper(obj1);
18727 if (arg2 == NULL) SWIG_fail;
18728 temp2 = true;
18729 }
18730 if (obj2) {
18731 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18732 if (!SWIG_IsOK(res6)) {
18733 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18734 }
18735 arg6 = reinterpret_cast< wxFont * >(argp6);
18736 }
18737 {
18738 PyThreadState* __tstate = wxPyBeginAllowThreads();
18739 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18740 wxPyEndAllowThreads(__tstate);
18741 if (PyErr_Occurred()) SWIG_fail;
18742 }
18743 resultobj = SWIG_Py_Void();
18744 if (SWIG_IsTmpObj(res3)) {
18745 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18746 } else {
18747 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18748 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18749 }
18750 if (SWIG_IsTmpObj(res4)) {
18751 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18752 } else {
18753 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18754 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18755 }
18756 if (SWIG_IsTmpObj(res5)) {
18757 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18758 } else {
18759 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18760 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18761 }
18762 {
18763 if (temp2)
18764 delete arg2;
18765 }
18766 return resultobj;
18767 fail:
18768 {
18769 if (temp2)
18770 delete arg2;
18771 }
18772 return NULL;
18773 }
18774
18775
18776 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18777 PyObject *resultobj = 0;
18778 wxDC *arg1 = (wxDC *) 0 ;
18779 wxString *arg2 = 0 ;
18780 wxArrayInt result;
18781 void *argp1 = 0 ;
18782 int res1 = 0 ;
18783 bool temp2 = false ;
18784 PyObject * obj0 = 0 ;
18785 PyObject * obj1 = 0 ;
18786 char * kwnames[] = {
18787 (char *) "self",(char *) "text", NULL
18788 };
18789
18790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18792 if (!SWIG_IsOK(res1)) {
18793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18794 }
18795 arg1 = reinterpret_cast< wxDC * >(argp1);
18796 {
18797 arg2 = wxString_in_helper(obj1);
18798 if (arg2 == NULL) SWIG_fail;
18799 temp2 = true;
18800 }
18801 {
18802 PyThreadState* __tstate = wxPyBeginAllowThreads();
18803 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18804 wxPyEndAllowThreads(__tstate);
18805 if (PyErr_Occurred()) SWIG_fail;
18806 }
18807 {
18808 resultobj = PyList_New(0);
18809 size_t idx;
18810 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18811 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18812 PyList_Append(resultobj, val);
18813 Py_DECREF(val);
18814 }
18815 }
18816 {
18817 if (temp2)
18818 delete arg2;
18819 }
18820 return resultobj;
18821 fail:
18822 {
18823 if (temp2)
18824 delete arg2;
18825 }
18826 return NULL;
18827 }
18828
18829
18830 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18831 PyObject *resultobj = 0;
18832 wxDC *arg1 = (wxDC *) 0 ;
18833 wxSize result;
18834 void *argp1 = 0 ;
18835 int res1 = 0 ;
18836 PyObject *swig_obj[1] ;
18837
18838 if (!args) SWIG_fail;
18839 swig_obj[0] = args;
18840 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18841 if (!SWIG_IsOK(res1)) {
18842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18843 }
18844 arg1 = reinterpret_cast< wxDC * >(argp1);
18845 {
18846 PyThreadState* __tstate = wxPyBeginAllowThreads();
18847 result = (arg1)->GetSize();
18848 wxPyEndAllowThreads(__tstate);
18849 if (PyErr_Occurred()) SWIG_fail;
18850 }
18851 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18852 return resultobj;
18853 fail:
18854 return NULL;
18855 }
18856
18857
18858 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18859 PyObject *resultobj = 0;
18860 wxDC *arg1 = (wxDC *) 0 ;
18861 int *arg2 = (int *) 0 ;
18862 int *arg3 = (int *) 0 ;
18863 void *argp1 = 0 ;
18864 int res1 = 0 ;
18865 int temp2 ;
18866 int res2 = SWIG_TMPOBJ ;
18867 int temp3 ;
18868 int res3 = SWIG_TMPOBJ ;
18869 PyObject *swig_obj[1] ;
18870
18871 arg2 = &temp2;
18872 arg3 = &temp3;
18873 if (!args) SWIG_fail;
18874 swig_obj[0] = args;
18875 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18876 if (!SWIG_IsOK(res1)) {
18877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18878 }
18879 arg1 = reinterpret_cast< wxDC * >(argp1);
18880 {
18881 PyThreadState* __tstate = wxPyBeginAllowThreads();
18882 (arg1)->GetSize(arg2,arg3);
18883 wxPyEndAllowThreads(__tstate);
18884 if (PyErr_Occurred()) SWIG_fail;
18885 }
18886 resultobj = SWIG_Py_Void();
18887 if (SWIG_IsTmpObj(res2)) {
18888 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18889 } else {
18890 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18891 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18892 }
18893 if (SWIG_IsTmpObj(res3)) {
18894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18895 } else {
18896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18898 }
18899 return resultobj;
18900 fail:
18901 return NULL;
18902 }
18903
18904
18905 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18906 PyObject *resultobj = 0;
18907 wxDC *arg1 = (wxDC *) 0 ;
18908 wxSize result;
18909 void *argp1 = 0 ;
18910 int res1 = 0 ;
18911 PyObject *swig_obj[1] ;
18912
18913 if (!args) SWIG_fail;
18914 swig_obj[0] = args;
18915 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18916 if (!SWIG_IsOK(res1)) {
18917 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18918 }
18919 arg1 = reinterpret_cast< wxDC * >(argp1);
18920 {
18921 PyThreadState* __tstate = wxPyBeginAllowThreads();
18922 result = ((wxDC const *)arg1)->GetSizeMM();
18923 wxPyEndAllowThreads(__tstate);
18924 if (PyErr_Occurred()) SWIG_fail;
18925 }
18926 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18927 return resultobj;
18928 fail:
18929 return NULL;
18930 }
18931
18932
18933 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18934 PyObject *resultobj = 0;
18935 wxDC *arg1 = (wxDC *) 0 ;
18936 int *arg2 = (int *) 0 ;
18937 int *arg3 = (int *) 0 ;
18938 void *argp1 = 0 ;
18939 int res1 = 0 ;
18940 int temp2 ;
18941 int res2 = SWIG_TMPOBJ ;
18942 int temp3 ;
18943 int res3 = SWIG_TMPOBJ ;
18944 PyObject *swig_obj[1] ;
18945
18946 arg2 = &temp2;
18947 arg3 = &temp3;
18948 if (!args) SWIG_fail;
18949 swig_obj[0] = args;
18950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18951 if (!SWIG_IsOK(res1)) {
18952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18953 }
18954 arg1 = reinterpret_cast< wxDC * >(argp1);
18955 {
18956 PyThreadState* __tstate = wxPyBeginAllowThreads();
18957 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18958 wxPyEndAllowThreads(__tstate);
18959 if (PyErr_Occurred()) SWIG_fail;
18960 }
18961 resultobj = SWIG_Py_Void();
18962 if (SWIG_IsTmpObj(res2)) {
18963 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18964 } else {
18965 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18966 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18967 }
18968 if (SWIG_IsTmpObj(res3)) {
18969 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18970 } else {
18971 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18972 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18973 }
18974 return resultobj;
18975 fail:
18976 return NULL;
18977 }
18978
18979
18980 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18981 PyObject *resultobj = 0;
18982 wxDC *arg1 = (wxDC *) 0 ;
18983 int arg2 ;
18984 int result;
18985 void *argp1 = 0 ;
18986 int res1 = 0 ;
18987 int val2 ;
18988 int ecode2 = 0 ;
18989 PyObject * obj0 = 0 ;
18990 PyObject * obj1 = 0 ;
18991 char * kwnames[] = {
18992 (char *) "self",(char *) "x", NULL
18993 };
18994
18995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18997 if (!SWIG_IsOK(res1)) {
18998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18999 }
19000 arg1 = reinterpret_cast< wxDC * >(argp1);
19001 ecode2 = SWIG_AsVal_int(obj1, &val2);
19002 if (!SWIG_IsOK(ecode2)) {
19003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
19004 }
19005 arg2 = static_cast< int >(val2);
19006 {
19007 PyThreadState* __tstate = wxPyBeginAllowThreads();
19008 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
19009 wxPyEndAllowThreads(__tstate);
19010 if (PyErr_Occurred()) SWIG_fail;
19011 }
19012 resultobj = SWIG_From_int(static_cast< int >(result));
19013 return resultobj;
19014 fail:
19015 return NULL;
19016 }
19017
19018
19019 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19020 PyObject *resultobj = 0;
19021 wxDC *arg1 = (wxDC *) 0 ;
19022 int arg2 ;
19023 int result;
19024 void *argp1 = 0 ;
19025 int res1 = 0 ;
19026 int val2 ;
19027 int ecode2 = 0 ;
19028 PyObject * obj0 = 0 ;
19029 PyObject * obj1 = 0 ;
19030 char * kwnames[] = {
19031 (char *) "self",(char *) "y", NULL
19032 };
19033
19034 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19035 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19036 if (!SWIG_IsOK(res1)) {
19037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19038 }
19039 arg1 = reinterpret_cast< wxDC * >(argp1);
19040 ecode2 = SWIG_AsVal_int(obj1, &val2);
19041 if (!SWIG_IsOK(ecode2)) {
19042 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19043 }
19044 arg2 = static_cast< int >(val2);
19045 {
19046 PyThreadState* __tstate = wxPyBeginAllowThreads();
19047 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19048 wxPyEndAllowThreads(__tstate);
19049 if (PyErr_Occurred()) SWIG_fail;
19050 }
19051 resultobj = SWIG_From_int(static_cast< int >(result));
19052 return resultobj;
19053 fail:
19054 return NULL;
19055 }
19056
19057
19058 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19059 PyObject *resultobj = 0;
19060 wxDC *arg1 = (wxDC *) 0 ;
19061 int arg2 ;
19062 int result;
19063 void *argp1 = 0 ;
19064 int res1 = 0 ;
19065 int val2 ;
19066 int ecode2 = 0 ;
19067 PyObject * obj0 = 0 ;
19068 PyObject * obj1 = 0 ;
19069 char * kwnames[] = {
19070 (char *) "self",(char *) "x", NULL
19071 };
19072
19073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 ecode2 = SWIG_AsVal_int(obj1, &val2);
19080 if (!SWIG_IsOK(ecode2)) {
19081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19082 }
19083 arg2 = static_cast< int >(val2);
19084 {
19085 PyThreadState* __tstate = wxPyBeginAllowThreads();
19086 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19087 wxPyEndAllowThreads(__tstate);
19088 if (PyErr_Occurred()) SWIG_fail;
19089 }
19090 resultobj = SWIG_From_int(static_cast< int >(result));
19091 return resultobj;
19092 fail:
19093 return NULL;
19094 }
19095
19096
19097 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19098 PyObject *resultobj = 0;
19099 wxDC *arg1 = (wxDC *) 0 ;
19100 int arg2 ;
19101 int result;
19102 void *argp1 = 0 ;
19103 int res1 = 0 ;
19104 int val2 ;
19105 int ecode2 = 0 ;
19106 PyObject * obj0 = 0 ;
19107 PyObject * obj1 = 0 ;
19108 char * kwnames[] = {
19109 (char *) "self",(char *) "y", NULL
19110 };
19111
19112 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19113 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19114 if (!SWIG_IsOK(res1)) {
19115 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19116 }
19117 arg1 = reinterpret_cast< wxDC * >(argp1);
19118 ecode2 = SWIG_AsVal_int(obj1, &val2);
19119 if (!SWIG_IsOK(ecode2)) {
19120 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19121 }
19122 arg2 = static_cast< int >(val2);
19123 {
19124 PyThreadState* __tstate = wxPyBeginAllowThreads();
19125 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19126 wxPyEndAllowThreads(__tstate);
19127 if (PyErr_Occurred()) SWIG_fail;
19128 }
19129 resultobj = SWIG_From_int(static_cast< int >(result));
19130 return resultobj;
19131 fail:
19132 return NULL;
19133 }
19134
19135
19136 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19137 PyObject *resultobj = 0;
19138 wxDC *arg1 = (wxDC *) 0 ;
19139 int arg2 ;
19140 int result;
19141 void *argp1 = 0 ;
19142 int res1 = 0 ;
19143 int val2 ;
19144 int ecode2 = 0 ;
19145 PyObject * obj0 = 0 ;
19146 PyObject * obj1 = 0 ;
19147 char * kwnames[] = {
19148 (char *) "self",(char *) "x", NULL
19149 };
19150
19151 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19152 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19153 if (!SWIG_IsOK(res1)) {
19154 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19155 }
19156 arg1 = reinterpret_cast< wxDC * >(argp1);
19157 ecode2 = SWIG_AsVal_int(obj1, &val2);
19158 if (!SWIG_IsOK(ecode2)) {
19159 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19160 }
19161 arg2 = static_cast< int >(val2);
19162 {
19163 PyThreadState* __tstate = wxPyBeginAllowThreads();
19164 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19165 wxPyEndAllowThreads(__tstate);
19166 if (PyErr_Occurred()) SWIG_fail;
19167 }
19168 resultobj = SWIG_From_int(static_cast< int >(result));
19169 return resultobj;
19170 fail:
19171 return NULL;
19172 }
19173
19174
19175 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19176 PyObject *resultobj = 0;
19177 wxDC *arg1 = (wxDC *) 0 ;
19178 int arg2 ;
19179 int result;
19180 void *argp1 = 0 ;
19181 int res1 = 0 ;
19182 int val2 ;
19183 int ecode2 = 0 ;
19184 PyObject * obj0 = 0 ;
19185 PyObject * obj1 = 0 ;
19186 char * kwnames[] = {
19187 (char *) "self",(char *) "y", NULL
19188 };
19189
19190 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19191 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19192 if (!SWIG_IsOK(res1)) {
19193 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19194 }
19195 arg1 = reinterpret_cast< wxDC * >(argp1);
19196 ecode2 = SWIG_AsVal_int(obj1, &val2);
19197 if (!SWIG_IsOK(ecode2)) {
19198 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19199 }
19200 arg2 = static_cast< int >(val2);
19201 {
19202 PyThreadState* __tstate = wxPyBeginAllowThreads();
19203 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19204 wxPyEndAllowThreads(__tstate);
19205 if (PyErr_Occurred()) SWIG_fail;
19206 }
19207 resultobj = SWIG_From_int(static_cast< int >(result));
19208 return resultobj;
19209 fail:
19210 return NULL;
19211 }
19212
19213
19214 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19215 PyObject *resultobj = 0;
19216 wxDC *arg1 = (wxDC *) 0 ;
19217 int arg2 ;
19218 int result;
19219 void *argp1 = 0 ;
19220 int res1 = 0 ;
19221 int val2 ;
19222 int ecode2 = 0 ;
19223 PyObject * obj0 = 0 ;
19224 PyObject * obj1 = 0 ;
19225 char * kwnames[] = {
19226 (char *) "self",(char *) "x", NULL
19227 };
19228
19229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19231 if (!SWIG_IsOK(res1)) {
19232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19233 }
19234 arg1 = reinterpret_cast< wxDC * >(argp1);
19235 ecode2 = SWIG_AsVal_int(obj1, &val2);
19236 if (!SWIG_IsOK(ecode2)) {
19237 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19238 }
19239 arg2 = static_cast< int >(val2);
19240 {
19241 PyThreadState* __tstate = wxPyBeginAllowThreads();
19242 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19243 wxPyEndAllowThreads(__tstate);
19244 if (PyErr_Occurred()) SWIG_fail;
19245 }
19246 resultobj = SWIG_From_int(static_cast< int >(result));
19247 return resultobj;
19248 fail:
19249 return NULL;
19250 }
19251
19252
19253 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19254 PyObject *resultobj = 0;
19255 wxDC *arg1 = (wxDC *) 0 ;
19256 int arg2 ;
19257 int result;
19258 void *argp1 = 0 ;
19259 int res1 = 0 ;
19260 int val2 ;
19261 int ecode2 = 0 ;
19262 PyObject * obj0 = 0 ;
19263 PyObject * obj1 = 0 ;
19264 char * kwnames[] = {
19265 (char *) "self",(char *) "y", NULL
19266 };
19267
19268 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19269 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19270 if (!SWIG_IsOK(res1)) {
19271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19272 }
19273 arg1 = reinterpret_cast< wxDC * >(argp1);
19274 ecode2 = SWIG_AsVal_int(obj1, &val2);
19275 if (!SWIG_IsOK(ecode2)) {
19276 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19277 }
19278 arg2 = static_cast< int >(val2);
19279 {
19280 PyThreadState* __tstate = wxPyBeginAllowThreads();
19281 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19282 wxPyEndAllowThreads(__tstate);
19283 if (PyErr_Occurred()) SWIG_fail;
19284 }
19285 resultobj = SWIG_From_int(static_cast< int >(result));
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19293 PyObject *resultobj = 0;
19294 wxDC *arg1 = (wxDC *) 0 ;
19295 bool result;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 PyObject *swig_obj[1] ;
19299
19300 if (!args) SWIG_fail;
19301 swig_obj[0] = args;
19302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxDC * >(argp1);
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 {
19314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19315 }
19316 return resultobj;
19317 fail:
19318 return NULL;
19319 }
19320
19321
19322 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19323 PyObject *resultobj = 0;
19324 wxDC *arg1 = (wxDC *) 0 ;
19325 bool result;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 PyObject *swig_obj[1] ;
19329
19330 if (!args) SWIG_fail;
19331 swig_obj[0] = args;
19332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19335 }
19336 arg1 = reinterpret_cast< wxDC * >(argp1);
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19340 wxPyEndAllowThreads(__tstate);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 {
19344 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19345 }
19346 return resultobj;
19347 fail:
19348 return NULL;
19349 }
19350
19351
19352 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19353 PyObject *resultobj = 0;
19354 wxDC *arg1 = (wxDC *) 0 ;
19355 int result;
19356 void *argp1 = 0 ;
19357 int res1 = 0 ;
19358 PyObject *swig_obj[1] ;
19359
19360 if (!args) SWIG_fail;
19361 swig_obj[0] = args;
19362 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19363 if (!SWIG_IsOK(res1)) {
19364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19365 }
19366 arg1 = reinterpret_cast< wxDC * >(argp1);
19367 {
19368 PyThreadState* __tstate = wxPyBeginAllowThreads();
19369 result = (int)((wxDC const *)arg1)->GetDepth();
19370 wxPyEndAllowThreads(__tstate);
19371 if (PyErr_Occurred()) SWIG_fail;
19372 }
19373 resultobj = SWIG_From_int(static_cast< int >(result));
19374 return resultobj;
19375 fail:
19376 return NULL;
19377 }
19378
19379
19380 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19381 PyObject *resultobj = 0;
19382 wxDC *arg1 = (wxDC *) 0 ;
19383 wxSize result;
19384 void *argp1 = 0 ;
19385 int res1 = 0 ;
19386 PyObject *swig_obj[1] ;
19387
19388 if (!args) SWIG_fail;
19389 swig_obj[0] = args;
19390 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19391 if (!SWIG_IsOK(res1)) {
19392 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19393 }
19394 arg1 = reinterpret_cast< wxDC * >(argp1);
19395 {
19396 PyThreadState* __tstate = wxPyBeginAllowThreads();
19397 result = ((wxDC const *)arg1)->GetPPI();
19398 wxPyEndAllowThreads(__tstate);
19399 if (PyErr_Occurred()) SWIG_fail;
19400 }
19401 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19409 PyObject *resultobj = 0;
19410 wxDC *arg1 = (wxDC *) 0 ;
19411 bool result;
19412 void *argp1 = 0 ;
19413 int res1 = 0 ;
19414 PyObject *swig_obj[1] ;
19415
19416 if (!args) SWIG_fail;
19417 swig_obj[0] = args;
19418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19419 if (!SWIG_IsOK(res1)) {
19420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19421 }
19422 arg1 = reinterpret_cast< wxDC * >(argp1);
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 result = (bool)((wxDC const *)arg1)->Ok();
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 {
19430 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19431 }
19432 return resultobj;
19433 fail:
19434 return NULL;
19435 }
19436
19437
19438 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19439 PyObject *resultobj = 0;
19440 wxDC *arg1 = (wxDC *) 0 ;
19441 int result;
19442 void *argp1 = 0 ;
19443 int res1 = 0 ;
19444 PyObject *swig_obj[1] ;
19445
19446 if (!args) SWIG_fail;
19447 swig_obj[0] = args;
19448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19449 if (!SWIG_IsOK(res1)) {
19450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19451 }
19452 arg1 = reinterpret_cast< wxDC * >(argp1);
19453 {
19454 PyThreadState* __tstate = wxPyBeginAllowThreads();
19455 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19456 wxPyEndAllowThreads(__tstate);
19457 if (PyErr_Occurred()) SWIG_fail;
19458 }
19459 resultobj = SWIG_From_int(static_cast< int >(result));
19460 return resultobj;
19461 fail:
19462 return NULL;
19463 }
19464
19465
19466 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19467 PyObject *resultobj = 0;
19468 wxDC *arg1 = (wxDC *) 0 ;
19469 wxBrush *result = 0 ;
19470 void *argp1 = 0 ;
19471 int res1 = 0 ;
19472 PyObject *swig_obj[1] ;
19473
19474 if (!args) SWIG_fail;
19475 swig_obj[0] = args;
19476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19477 if (!SWIG_IsOK(res1)) {
19478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19479 }
19480 arg1 = reinterpret_cast< wxDC * >(argp1);
19481 {
19482 PyThreadState* __tstate = wxPyBeginAllowThreads();
19483 {
19484 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19485 result = (wxBrush *) &_result_ref;
19486 }
19487 wxPyEndAllowThreads(__tstate);
19488 if (PyErr_Occurred()) SWIG_fail;
19489 }
19490 {
19491 wxBrush* resultptr = new wxBrush(*result);
19492 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19493 }
19494 return resultobj;
19495 fail:
19496 return NULL;
19497 }
19498
19499
19500 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19501 PyObject *resultobj = 0;
19502 wxDC *arg1 = (wxDC *) 0 ;
19503 wxBrush *result = 0 ;
19504 void *argp1 = 0 ;
19505 int res1 = 0 ;
19506 PyObject *swig_obj[1] ;
19507
19508 if (!args) SWIG_fail;
19509 swig_obj[0] = args;
19510 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19511 if (!SWIG_IsOK(res1)) {
19512 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19513 }
19514 arg1 = reinterpret_cast< wxDC * >(argp1);
19515 {
19516 PyThreadState* __tstate = wxPyBeginAllowThreads();
19517 {
19518 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19519 result = (wxBrush *) &_result_ref;
19520 }
19521 wxPyEndAllowThreads(__tstate);
19522 if (PyErr_Occurred()) SWIG_fail;
19523 }
19524 {
19525 wxBrush* resultptr = new wxBrush(*result);
19526 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19527 }
19528 return resultobj;
19529 fail:
19530 return NULL;
19531 }
19532
19533
19534 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19535 PyObject *resultobj = 0;
19536 wxDC *arg1 = (wxDC *) 0 ;
19537 wxFont *result = 0 ;
19538 void *argp1 = 0 ;
19539 int res1 = 0 ;
19540 PyObject *swig_obj[1] ;
19541
19542 if (!args) SWIG_fail;
19543 swig_obj[0] = args;
19544 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19545 if (!SWIG_IsOK(res1)) {
19546 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19547 }
19548 arg1 = reinterpret_cast< wxDC * >(argp1);
19549 {
19550 PyThreadState* __tstate = wxPyBeginAllowThreads();
19551 {
19552 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19553 result = (wxFont *) &_result_ref;
19554 }
19555 wxPyEndAllowThreads(__tstate);
19556 if (PyErr_Occurred()) SWIG_fail;
19557 }
19558 {
19559 wxFont* resultptr = new wxFont(*result);
19560 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19561 }
19562 return resultobj;
19563 fail:
19564 return NULL;
19565 }
19566
19567
19568 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19569 PyObject *resultobj = 0;
19570 wxDC *arg1 = (wxDC *) 0 ;
19571 wxPen *result = 0 ;
19572 void *argp1 = 0 ;
19573 int res1 = 0 ;
19574 PyObject *swig_obj[1] ;
19575
19576 if (!args) SWIG_fail;
19577 swig_obj[0] = args;
19578 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19579 if (!SWIG_IsOK(res1)) {
19580 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19581 }
19582 arg1 = reinterpret_cast< wxDC * >(argp1);
19583 {
19584 PyThreadState* __tstate = wxPyBeginAllowThreads();
19585 {
19586 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19587 result = (wxPen *) &_result_ref;
19588 }
19589 wxPyEndAllowThreads(__tstate);
19590 if (PyErr_Occurred()) SWIG_fail;
19591 }
19592 {
19593 wxPen* resultptr = new wxPen(*result);
19594 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19595 }
19596 return resultobj;
19597 fail:
19598 return NULL;
19599 }
19600
19601
19602 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19603 PyObject *resultobj = 0;
19604 wxDC *arg1 = (wxDC *) 0 ;
19605 wxColour *result = 0 ;
19606 void *argp1 = 0 ;
19607 int res1 = 0 ;
19608 PyObject *swig_obj[1] ;
19609
19610 if (!args) SWIG_fail;
19611 swig_obj[0] = args;
19612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19613 if (!SWIG_IsOK(res1)) {
19614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19615 }
19616 arg1 = reinterpret_cast< wxDC * >(argp1);
19617 {
19618 PyThreadState* __tstate = wxPyBeginAllowThreads();
19619 {
19620 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19621 result = (wxColour *) &_result_ref;
19622 }
19623 wxPyEndAllowThreads(__tstate);
19624 if (PyErr_Occurred()) SWIG_fail;
19625 }
19626 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19627 return resultobj;
19628 fail:
19629 return NULL;
19630 }
19631
19632
19633 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19634 PyObject *resultobj = 0;
19635 wxDC *arg1 = (wxDC *) 0 ;
19636 wxColour *result = 0 ;
19637 void *argp1 = 0 ;
19638 int res1 = 0 ;
19639 PyObject *swig_obj[1] ;
19640
19641 if (!args) SWIG_fail;
19642 swig_obj[0] = args;
19643 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19644 if (!SWIG_IsOK(res1)) {
19645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19646 }
19647 arg1 = reinterpret_cast< wxDC * >(argp1);
19648 {
19649 PyThreadState* __tstate = wxPyBeginAllowThreads();
19650 {
19651 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19652 result = (wxColour *) &_result_ref;
19653 }
19654 wxPyEndAllowThreads(__tstate);
19655 if (PyErr_Occurred()) SWIG_fail;
19656 }
19657 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19658 return resultobj;
19659 fail:
19660 return NULL;
19661 }
19662
19663
19664 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19665 PyObject *resultobj = 0;
19666 wxDC *arg1 = (wxDC *) 0 ;
19667 wxColour *arg2 = 0 ;
19668 void *argp1 = 0 ;
19669 int res1 = 0 ;
19670 wxColour temp2 ;
19671 PyObject * obj0 = 0 ;
19672 PyObject * obj1 = 0 ;
19673 char * kwnames[] = {
19674 (char *) "self",(char *) "colour", NULL
19675 };
19676
19677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19679 if (!SWIG_IsOK(res1)) {
19680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19681 }
19682 arg1 = reinterpret_cast< wxDC * >(argp1);
19683 {
19684 arg2 = &temp2;
19685 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19686 }
19687 {
19688 PyThreadState* __tstate = wxPyBeginAllowThreads();
19689 (arg1)->SetTextForeground((wxColour const &)*arg2);
19690 wxPyEndAllowThreads(__tstate);
19691 if (PyErr_Occurred()) SWIG_fail;
19692 }
19693 resultobj = SWIG_Py_Void();
19694 return resultobj;
19695 fail:
19696 return NULL;
19697 }
19698
19699
19700 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19701 PyObject *resultobj = 0;
19702 wxDC *arg1 = (wxDC *) 0 ;
19703 wxColour *arg2 = 0 ;
19704 void *argp1 = 0 ;
19705 int res1 = 0 ;
19706 wxColour temp2 ;
19707 PyObject * obj0 = 0 ;
19708 PyObject * obj1 = 0 ;
19709 char * kwnames[] = {
19710 (char *) "self",(char *) "colour", NULL
19711 };
19712
19713 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19714 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19715 if (!SWIG_IsOK(res1)) {
19716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19717 }
19718 arg1 = reinterpret_cast< wxDC * >(argp1);
19719 {
19720 arg2 = &temp2;
19721 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19722 }
19723 {
19724 PyThreadState* __tstate = wxPyBeginAllowThreads();
19725 (arg1)->SetTextBackground((wxColour const &)*arg2);
19726 wxPyEndAllowThreads(__tstate);
19727 if (PyErr_Occurred()) SWIG_fail;
19728 }
19729 resultobj = SWIG_Py_Void();
19730 return resultobj;
19731 fail:
19732 return NULL;
19733 }
19734
19735
19736 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19737 PyObject *resultobj = 0;
19738 wxDC *arg1 = (wxDC *) 0 ;
19739 int result;
19740 void *argp1 = 0 ;
19741 int res1 = 0 ;
19742 PyObject *swig_obj[1] ;
19743
19744 if (!args) SWIG_fail;
19745 swig_obj[0] = args;
19746 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19747 if (!SWIG_IsOK(res1)) {
19748 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19749 }
19750 arg1 = reinterpret_cast< wxDC * >(argp1);
19751 {
19752 PyThreadState* __tstate = wxPyBeginAllowThreads();
19753 result = (int)((wxDC const *)arg1)->GetMapMode();
19754 wxPyEndAllowThreads(__tstate);
19755 if (PyErr_Occurred()) SWIG_fail;
19756 }
19757 resultobj = SWIG_From_int(static_cast< int >(result));
19758 return resultobj;
19759 fail:
19760 return NULL;
19761 }
19762
19763
19764 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19765 PyObject *resultobj = 0;
19766 wxDC *arg1 = (wxDC *) 0 ;
19767 int arg2 ;
19768 void *argp1 = 0 ;
19769 int res1 = 0 ;
19770 int val2 ;
19771 int ecode2 = 0 ;
19772 PyObject * obj0 = 0 ;
19773 PyObject * obj1 = 0 ;
19774 char * kwnames[] = {
19775 (char *) "self",(char *) "mode", NULL
19776 };
19777
19778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19780 if (!SWIG_IsOK(res1)) {
19781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19782 }
19783 arg1 = reinterpret_cast< wxDC * >(argp1);
19784 ecode2 = SWIG_AsVal_int(obj1, &val2);
19785 if (!SWIG_IsOK(ecode2)) {
19786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19787 }
19788 arg2 = static_cast< int >(val2);
19789 {
19790 PyThreadState* __tstate = wxPyBeginAllowThreads();
19791 (arg1)->SetMapMode(arg2);
19792 wxPyEndAllowThreads(__tstate);
19793 if (PyErr_Occurred()) SWIG_fail;
19794 }
19795 resultobj = SWIG_Py_Void();
19796 return resultobj;
19797 fail:
19798 return NULL;
19799 }
19800
19801
19802 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19803 PyObject *resultobj = 0;
19804 wxDC *arg1 = (wxDC *) 0 ;
19805 double *arg2 = (double *) 0 ;
19806 double *arg3 = (double *) 0 ;
19807 void *argp1 = 0 ;
19808 int res1 = 0 ;
19809 double temp2 ;
19810 int res2 = SWIG_TMPOBJ ;
19811 double temp3 ;
19812 int res3 = SWIG_TMPOBJ ;
19813 PyObject *swig_obj[1] ;
19814
19815 arg2 = &temp2;
19816 arg3 = &temp3;
19817 if (!args) SWIG_fail;
19818 swig_obj[0] = args;
19819 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19820 if (!SWIG_IsOK(res1)) {
19821 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19822 }
19823 arg1 = reinterpret_cast< wxDC * >(argp1);
19824 {
19825 PyThreadState* __tstate = wxPyBeginAllowThreads();
19826 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19827 wxPyEndAllowThreads(__tstate);
19828 if (PyErr_Occurred()) SWIG_fail;
19829 }
19830 resultobj = SWIG_Py_Void();
19831 if (SWIG_IsTmpObj(res2)) {
19832 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19833 } else {
19834 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19835 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19836 }
19837 if (SWIG_IsTmpObj(res3)) {
19838 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19839 } else {
19840 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19841 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19842 }
19843 return resultobj;
19844 fail:
19845 return NULL;
19846 }
19847
19848
19849 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19850 PyObject *resultobj = 0;
19851 wxDC *arg1 = (wxDC *) 0 ;
19852 double arg2 ;
19853 double arg3 ;
19854 void *argp1 = 0 ;
19855 int res1 = 0 ;
19856 double val2 ;
19857 int ecode2 = 0 ;
19858 double val3 ;
19859 int ecode3 = 0 ;
19860 PyObject * obj0 = 0 ;
19861 PyObject * obj1 = 0 ;
19862 PyObject * obj2 = 0 ;
19863 char * kwnames[] = {
19864 (char *) "self",(char *) "x",(char *) "y", NULL
19865 };
19866
19867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19869 if (!SWIG_IsOK(res1)) {
19870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19871 }
19872 arg1 = reinterpret_cast< wxDC * >(argp1);
19873 ecode2 = SWIG_AsVal_double(obj1, &val2);
19874 if (!SWIG_IsOK(ecode2)) {
19875 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19876 }
19877 arg2 = static_cast< double >(val2);
19878 ecode3 = SWIG_AsVal_double(obj2, &val3);
19879 if (!SWIG_IsOK(ecode3)) {
19880 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19881 }
19882 arg3 = static_cast< double >(val3);
19883 {
19884 PyThreadState* __tstate = wxPyBeginAllowThreads();
19885 (arg1)->SetUserScale(arg2,arg3);
19886 wxPyEndAllowThreads(__tstate);
19887 if (PyErr_Occurred()) SWIG_fail;
19888 }
19889 resultobj = SWIG_Py_Void();
19890 return resultobj;
19891 fail:
19892 return NULL;
19893 }
19894
19895
19896 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19897 PyObject *resultobj = 0;
19898 wxDC *arg1 = (wxDC *) 0 ;
19899 double *arg2 = (double *) 0 ;
19900 double *arg3 = (double *) 0 ;
19901 void *argp1 = 0 ;
19902 int res1 = 0 ;
19903 double temp2 ;
19904 int res2 = SWIG_TMPOBJ ;
19905 double temp3 ;
19906 int res3 = SWIG_TMPOBJ ;
19907 PyObject *swig_obj[1] ;
19908
19909 arg2 = &temp2;
19910 arg3 = &temp3;
19911 if (!args) SWIG_fail;
19912 swig_obj[0] = args;
19913 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19914 if (!SWIG_IsOK(res1)) {
19915 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19916 }
19917 arg1 = reinterpret_cast< wxDC * >(argp1);
19918 {
19919 PyThreadState* __tstate = wxPyBeginAllowThreads();
19920 (arg1)->GetLogicalScale(arg2,arg3);
19921 wxPyEndAllowThreads(__tstate);
19922 if (PyErr_Occurred()) SWIG_fail;
19923 }
19924 resultobj = SWIG_Py_Void();
19925 if (SWIG_IsTmpObj(res2)) {
19926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19927 } else {
19928 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19930 }
19931 if (SWIG_IsTmpObj(res3)) {
19932 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19933 } else {
19934 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19935 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19936 }
19937 return resultobj;
19938 fail:
19939 return NULL;
19940 }
19941
19942
19943 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19944 PyObject *resultobj = 0;
19945 wxDC *arg1 = (wxDC *) 0 ;
19946 double arg2 ;
19947 double arg3 ;
19948 void *argp1 = 0 ;
19949 int res1 = 0 ;
19950 double val2 ;
19951 int ecode2 = 0 ;
19952 double val3 ;
19953 int ecode3 = 0 ;
19954 PyObject * obj0 = 0 ;
19955 PyObject * obj1 = 0 ;
19956 PyObject * obj2 = 0 ;
19957 char * kwnames[] = {
19958 (char *) "self",(char *) "x",(char *) "y", NULL
19959 };
19960
19961 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19962 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19963 if (!SWIG_IsOK(res1)) {
19964 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19965 }
19966 arg1 = reinterpret_cast< wxDC * >(argp1);
19967 ecode2 = SWIG_AsVal_double(obj1, &val2);
19968 if (!SWIG_IsOK(ecode2)) {
19969 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19970 }
19971 arg2 = static_cast< double >(val2);
19972 ecode3 = SWIG_AsVal_double(obj2, &val3);
19973 if (!SWIG_IsOK(ecode3)) {
19974 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19975 }
19976 arg3 = static_cast< double >(val3);
19977 {
19978 PyThreadState* __tstate = wxPyBeginAllowThreads();
19979 (arg1)->SetLogicalScale(arg2,arg3);
19980 wxPyEndAllowThreads(__tstate);
19981 if (PyErr_Occurred()) SWIG_fail;
19982 }
19983 resultobj = SWIG_Py_Void();
19984 return resultobj;
19985 fail:
19986 return NULL;
19987 }
19988
19989
19990 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19991 PyObject *resultobj = 0;
19992 wxDC *arg1 = (wxDC *) 0 ;
19993 wxPoint result;
19994 void *argp1 = 0 ;
19995 int res1 = 0 ;
19996 PyObject *swig_obj[1] ;
19997
19998 if (!args) SWIG_fail;
19999 swig_obj[0] = args;
20000 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20001 if (!SWIG_IsOK(res1)) {
20002 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20003 }
20004 arg1 = reinterpret_cast< wxDC * >(argp1);
20005 {
20006 PyThreadState* __tstate = wxPyBeginAllowThreads();
20007 result = ((wxDC const *)arg1)->GetLogicalOrigin();
20008 wxPyEndAllowThreads(__tstate);
20009 if (PyErr_Occurred()) SWIG_fail;
20010 }
20011 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20012 return resultobj;
20013 fail:
20014 return NULL;
20015 }
20016
20017
20018 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20019 PyObject *resultobj = 0;
20020 wxDC *arg1 = (wxDC *) 0 ;
20021 int *arg2 = (int *) 0 ;
20022 int *arg3 = (int *) 0 ;
20023 void *argp1 = 0 ;
20024 int res1 = 0 ;
20025 int temp2 ;
20026 int res2 = SWIG_TMPOBJ ;
20027 int temp3 ;
20028 int res3 = SWIG_TMPOBJ ;
20029 PyObject *swig_obj[1] ;
20030
20031 arg2 = &temp2;
20032 arg3 = &temp3;
20033 if (!args) SWIG_fail;
20034 swig_obj[0] = args;
20035 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20036 if (!SWIG_IsOK(res1)) {
20037 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20038 }
20039 arg1 = reinterpret_cast< wxDC * >(argp1);
20040 {
20041 PyThreadState* __tstate = wxPyBeginAllowThreads();
20042 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20043 wxPyEndAllowThreads(__tstate);
20044 if (PyErr_Occurred()) SWIG_fail;
20045 }
20046 resultobj = SWIG_Py_Void();
20047 if (SWIG_IsTmpObj(res2)) {
20048 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20049 } else {
20050 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20051 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20052 }
20053 if (SWIG_IsTmpObj(res3)) {
20054 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20055 } else {
20056 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20057 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20058 }
20059 return resultobj;
20060 fail:
20061 return NULL;
20062 }
20063
20064
20065 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20066 PyObject *resultobj = 0;
20067 wxDC *arg1 = (wxDC *) 0 ;
20068 int arg2 ;
20069 int arg3 ;
20070 void *argp1 = 0 ;
20071 int res1 = 0 ;
20072 int val2 ;
20073 int ecode2 = 0 ;
20074 int val3 ;
20075 int ecode3 = 0 ;
20076 PyObject * obj0 = 0 ;
20077 PyObject * obj1 = 0 ;
20078 PyObject * obj2 = 0 ;
20079 char * kwnames[] = {
20080 (char *) "self",(char *) "x",(char *) "y", NULL
20081 };
20082
20083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20085 if (!SWIG_IsOK(res1)) {
20086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20087 }
20088 arg1 = reinterpret_cast< wxDC * >(argp1);
20089 ecode2 = SWIG_AsVal_int(obj1, &val2);
20090 if (!SWIG_IsOK(ecode2)) {
20091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20092 }
20093 arg2 = static_cast< int >(val2);
20094 ecode3 = SWIG_AsVal_int(obj2, &val3);
20095 if (!SWIG_IsOK(ecode3)) {
20096 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20097 }
20098 arg3 = static_cast< int >(val3);
20099 {
20100 PyThreadState* __tstate = wxPyBeginAllowThreads();
20101 (arg1)->SetLogicalOrigin(arg2,arg3);
20102 wxPyEndAllowThreads(__tstate);
20103 if (PyErr_Occurred()) SWIG_fail;
20104 }
20105 resultobj = SWIG_Py_Void();
20106 return resultobj;
20107 fail:
20108 return NULL;
20109 }
20110
20111
20112 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20113 PyObject *resultobj = 0;
20114 wxDC *arg1 = (wxDC *) 0 ;
20115 wxPoint *arg2 = 0 ;
20116 void *argp1 = 0 ;
20117 int res1 = 0 ;
20118 wxPoint temp2 ;
20119 PyObject * obj0 = 0 ;
20120 PyObject * obj1 = 0 ;
20121 char * kwnames[] = {
20122 (char *) "self",(char *) "point", NULL
20123 };
20124
20125 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20126 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20127 if (!SWIG_IsOK(res1)) {
20128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20129 }
20130 arg1 = reinterpret_cast< wxDC * >(argp1);
20131 {
20132 arg2 = &temp2;
20133 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20134 }
20135 {
20136 PyThreadState* __tstate = wxPyBeginAllowThreads();
20137 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20138 wxPyEndAllowThreads(__tstate);
20139 if (PyErr_Occurred()) SWIG_fail;
20140 }
20141 resultobj = SWIG_Py_Void();
20142 return resultobj;
20143 fail:
20144 return NULL;
20145 }
20146
20147
20148 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20149 PyObject *resultobj = 0;
20150 wxDC *arg1 = (wxDC *) 0 ;
20151 wxPoint result;
20152 void *argp1 = 0 ;
20153 int res1 = 0 ;
20154 PyObject *swig_obj[1] ;
20155
20156 if (!args) SWIG_fail;
20157 swig_obj[0] = args;
20158 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20159 if (!SWIG_IsOK(res1)) {
20160 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20161 }
20162 arg1 = reinterpret_cast< wxDC * >(argp1);
20163 {
20164 PyThreadState* __tstate = wxPyBeginAllowThreads();
20165 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20166 wxPyEndAllowThreads(__tstate);
20167 if (PyErr_Occurred()) SWIG_fail;
20168 }
20169 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20170 return resultobj;
20171 fail:
20172 return NULL;
20173 }
20174
20175
20176 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20177 PyObject *resultobj = 0;
20178 wxDC *arg1 = (wxDC *) 0 ;
20179 int *arg2 = (int *) 0 ;
20180 int *arg3 = (int *) 0 ;
20181 void *argp1 = 0 ;
20182 int res1 = 0 ;
20183 int temp2 ;
20184 int res2 = SWIG_TMPOBJ ;
20185 int temp3 ;
20186 int res3 = SWIG_TMPOBJ ;
20187 PyObject *swig_obj[1] ;
20188
20189 arg2 = &temp2;
20190 arg3 = &temp3;
20191 if (!args) SWIG_fail;
20192 swig_obj[0] = args;
20193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20194 if (!SWIG_IsOK(res1)) {
20195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20196 }
20197 arg1 = reinterpret_cast< wxDC * >(argp1);
20198 {
20199 PyThreadState* __tstate = wxPyBeginAllowThreads();
20200 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20201 wxPyEndAllowThreads(__tstate);
20202 if (PyErr_Occurred()) SWIG_fail;
20203 }
20204 resultobj = SWIG_Py_Void();
20205 if (SWIG_IsTmpObj(res2)) {
20206 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20207 } else {
20208 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20209 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20210 }
20211 if (SWIG_IsTmpObj(res3)) {
20212 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20213 } else {
20214 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20215 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20216 }
20217 return resultobj;
20218 fail:
20219 return NULL;
20220 }
20221
20222
20223 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20224 PyObject *resultobj = 0;
20225 wxDC *arg1 = (wxDC *) 0 ;
20226 int arg2 ;
20227 int arg3 ;
20228 void *argp1 = 0 ;
20229 int res1 = 0 ;
20230 int val2 ;
20231 int ecode2 = 0 ;
20232 int val3 ;
20233 int ecode3 = 0 ;
20234 PyObject * obj0 = 0 ;
20235 PyObject * obj1 = 0 ;
20236 PyObject * obj2 = 0 ;
20237 char * kwnames[] = {
20238 (char *) "self",(char *) "x",(char *) "y", NULL
20239 };
20240
20241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20242 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20243 if (!SWIG_IsOK(res1)) {
20244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20245 }
20246 arg1 = reinterpret_cast< wxDC * >(argp1);
20247 ecode2 = SWIG_AsVal_int(obj1, &val2);
20248 if (!SWIG_IsOK(ecode2)) {
20249 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20250 }
20251 arg2 = static_cast< int >(val2);
20252 ecode3 = SWIG_AsVal_int(obj2, &val3);
20253 if (!SWIG_IsOK(ecode3)) {
20254 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20255 }
20256 arg3 = static_cast< int >(val3);
20257 {
20258 PyThreadState* __tstate = wxPyBeginAllowThreads();
20259 (arg1)->SetDeviceOrigin(arg2,arg3);
20260 wxPyEndAllowThreads(__tstate);
20261 if (PyErr_Occurred()) SWIG_fail;
20262 }
20263 resultobj = SWIG_Py_Void();
20264 return resultobj;
20265 fail:
20266 return NULL;
20267 }
20268
20269
20270 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20271 PyObject *resultobj = 0;
20272 wxDC *arg1 = (wxDC *) 0 ;
20273 wxPoint *arg2 = 0 ;
20274 void *argp1 = 0 ;
20275 int res1 = 0 ;
20276 wxPoint temp2 ;
20277 PyObject * obj0 = 0 ;
20278 PyObject * obj1 = 0 ;
20279 char * kwnames[] = {
20280 (char *) "self",(char *) "point", NULL
20281 };
20282
20283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20285 if (!SWIG_IsOK(res1)) {
20286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20287 }
20288 arg1 = reinterpret_cast< wxDC * >(argp1);
20289 {
20290 arg2 = &temp2;
20291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20292 }
20293 {
20294 PyThreadState* __tstate = wxPyBeginAllowThreads();
20295 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20296 wxPyEndAllowThreads(__tstate);
20297 if (PyErr_Occurred()) SWIG_fail;
20298 }
20299 resultobj = SWIG_Py_Void();
20300 return resultobj;
20301 fail:
20302 return NULL;
20303 }
20304
20305
20306 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20307 PyObject *resultobj = 0;
20308 wxDC *arg1 = (wxDC *) 0 ;
20309 bool arg2 ;
20310 bool arg3 ;
20311 void *argp1 = 0 ;
20312 int res1 = 0 ;
20313 bool val2 ;
20314 int ecode2 = 0 ;
20315 bool val3 ;
20316 int ecode3 = 0 ;
20317 PyObject * obj0 = 0 ;
20318 PyObject * obj1 = 0 ;
20319 PyObject * obj2 = 0 ;
20320 char * kwnames[] = {
20321 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20322 };
20323
20324 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20325 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20326 if (!SWIG_IsOK(res1)) {
20327 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20328 }
20329 arg1 = reinterpret_cast< wxDC * >(argp1);
20330 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20331 if (!SWIG_IsOK(ecode2)) {
20332 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20333 }
20334 arg2 = static_cast< bool >(val2);
20335 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20336 if (!SWIG_IsOK(ecode3)) {
20337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20338 }
20339 arg3 = static_cast< bool >(val3);
20340 {
20341 PyThreadState* __tstate = wxPyBeginAllowThreads();
20342 (arg1)->SetAxisOrientation(arg2,arg3);
20343 wxPyEndAllowThreads(__tstate);
20344 if (PyErr_Occurred()) SWIG_fail;
20345 }
20346 resultobj = SWIG_Py_Void();
20347 return resultobj;
20348 fail:
20349 return NULL;
20350 }
20351
20352
20353 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20354 PyObject *resultobj = 0;
20355 wxDC *arg1 = (wxDC *) 0 ;
20356 int result;
20357 void *argp1 = 0 ;
20358 int res1 = 0 ;
20359 PyObject *swig_obj[1] ;
20360
20361 if (!args) SWIG_fail;
20362 swig_obj[0] = args;
20363 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20364 if (!SWIG_IsOK(res1)) {
20365 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20366 }
20367 arg1 = reinterpret_cast< wxDC * >(argp1);
20368 {
20369 PyThreadState* __tstate = wxPyBeginAllowThreads();
20370 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20371 wxPyEndAllowThreads(__tstate);
20372 if (PyErr_Occurred()) SWIG_fail;
20373 }
20374 resultobj = SWIG_From_int(static_cast< int >(result));
20375 return resultobj;
20376 fail:
20377 return NULL;
20378 }
20379
20380
20381 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20382 PyObject *resultobj = 0;
20383 wxDC *arg1 = (wxDC *) 0 ;
20384 int arg2 ;
20385 void *argp1 = 0 ;
20386 int res1 = 0 ;
20387 int val2 ;
20388 int ecode2 = 0 ;
20389 PyObject * obj0 = 0 ;
20390 PyObject * obj1 = 0 ;
20391 char * kwnames[] = {
20392 (char *) "self",(char *) "function", NULL
20393 };
20394
20395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20397 if (!SWIG_IsOK(res1)) {
20398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20399 }
20400 arg1 = reinterpret_cast< wxDC * >(argp1);
20401 ecode2 = SWIG_AsVal_int(obj1, &val2);
20402 if (!SWIG_IsOK(ecode2)) {
20403 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20404 }
20405 arg2 = static_cast< int >(val2);
20406 {
20407 PyThreadState* __tstate = wxPyBeginAllowThreads();
20408 (arg1)->SetLogicalFunction(arg2);
20409 wxPyEndAllowThreads(__tstate);
20410 if (PyErr_Occurred()) SWIG_fail;
20411 }
20412 resultobj = SWIG_Py_Void();
20413 return resultobj;
20414 fail:
20415 return NULL;
20416 }
20417
20418
20419 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20420 PyObject *resultobj = 0;
20421 wxDC *arg1 = (wxDC *) 0 ;
20422 void *argp1 = 0 ;
20423 int res1 = 0 ;
20424 PyObject *swig_obj[1] ;
20425
20426 if (!args) SWIG_fail;
20427 swig_obj[0] = args;
20428 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20429 if (!SWIG_IsOK(res1)) {
20430 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20431 }
20432 arg1 = reinterpret_cast< wxDC * >(argp1);
20433 {
20434 PyThreadState* __tstate = wxPyBeginAllowThreads();
20435 (arg1)->ComputeScaleAndOrigin();
20436 wxPyEndAllowThreads(__tstate);
20437 if (PyErr_Occurred()) SWIG_fail;
20438 }
20439 resultobj = SWIG_Py_Void();
20440 return resultobj;
20441 fail:
20442 return NULL;
20443 }
20444
20445
20446 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20447 PyObject *resultobj = 0;
20448 wxDC *arg1 = (wxDC *) 0 ;
20449 int arg2 ;
20450 int arg3 ;
20451 void *argp1 = 0 ;
20452 int res1 = 0 ;
20453 int val2 ;
20454 int ecode2 = 0 ;
20455 int val3 ;
20456 int ecode3 = 0 ;
20457 PyObject * obj0 = 0 ;
20458 PyObject * obj1 = 0 ;
20459 PyObject * obj2 = 0 ;
20460 char * kwnames[] = {
20461 (char *) "self",(char *) "x",(char *) "y", NULL
20462 };
20463
20464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20466 if (!SWIG_IsOK(res1)) {
20467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20468 }
20469 arg1 = reinterpret_cast< wxDC * >(argp1);
20470 ecode2 = SWIG_AsVal_int(obj1, &val2);
20471 if (!SWIG_IsOK(ecode2)) {
20472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20473 }
20474 arg2 = static_cast< int >(val2);
20475 ecode3 = SWIG_AsVal_int(obj2, &val3);
20476 if (!SWIG_IsOK(ecode3)) {
20477 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20478 }
20479 arg3 = static_cast< int >(val3);
20480 {
20481 PyThreadState* __tstate = wxPyBeginAllowThreads();
20482 (arg1)->CalcBoundingBox(arg2,arg3);
20483 wxPyEndAllowThreads(__tstate);
20484 if (PyErr_Occurred()) SWIG_fail;
20485 }
20486 resultobj = SWIG_Py_Void();
20487 return resultobj;
20488 fail:
20489 return NULL;
20490 }
20491
20492
20493 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20494 PyObject *resultobj = 0;
20495 wxDC *arg1 = (wxDC *) 0 ;
20496 wxPoint *arg2 = 0 ;
20497 void *argp1 = 0 ;
20498 int res1 = 0 ;
20499 wxPoint temp2 ;
20500 PyObject * obj0 = 0 ;
20501 PyObject * obj1 = 0 ;
20502 char * kwnames[] = {
20503 (char *) "self",(char *) "point", NULL
20504 };
20505
20506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20508 if (!SWIG_IsOK(res1)) {
20509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20510 }
20511 arg1 = reinterpret_cast< wxDC * >(argp1);
20512 {
20513 arg2 = &temp2;
20514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20515 }
20516 {
20517 PyThreadState* __tstate = wxPyBeginAllowThreads();
20518 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20519 wxPyEndAllowThreads(__tstate);
20520 if (PyErr_Occurred()) SWIG_fail;
20521 }
20522 resultobj = SWIG_Py_Void();
20523 return resultobj;
20524 fail:
20525 return NULL;
20526 }
20527
20528
20529 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20530 PyObject *resultobj = 0;
20531 wxDC *arg1 = (wxDC *) 0 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 PyObject *swig_obj[1] ;
20535
20536 if (!args) SWIG_fail;
20537 swig_obj[0] = args;
20538 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20539 if (!SWIG_IsOK(res1)) {
20540 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20541 }
20542 arg1 = reinterpret_cast< wxDC * >(argp1);
20543 {
20544 PyThreadState* __tstate = wxPyBeginAllowThreads();
20545 (arg1)->ResetBoundingBox();
20546 wxPyEndAllowThreads(__tstate);
20547 if (PyErr_Occurred()) SWIG_fail;
20548 }
20549 resultobj = SWIG_Py_Void();
20550 return resultobj;
20551 fail:
20552 return NULL;
20553 }
20554
20555
20556 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20557 PyObject *resultobj = 0;
20558 wxDC *arg1 = (wxDC *) 0 ;
20559 int result;
20560 void *argp1 = 0 ;
20561 int res1 = 0 ;
20562 PyObject *swig_obj[1] ;
20563
20564 if (!args) SWIG_fail;
20565 swig_obj[0] = args;
20566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20567 if (!SWIG_IsOK(res1)) {
20568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20569 }
20570 arg1 = reinterpret_cast< wxDC * >(argp1);
20571 {
20572 PyThreadState* __tstate = wxPyBeginAllowThreads();
20573 result = (int)((wxDC const *)arg1)->MinX();
20574 wxPyEndAllowThreads(__tstate);
20575 if (PyErr_Occurred()) SWIG_fail;
20576 }
20577 resultobj = SWIG_From_int(static_cast< int >(result));
20578 return resultobj;
20579 fail:
20580 return NULL;
20581 }
20582
20583
20584 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20585 PyObject *resultobj = 0;
20586 wxDC *arg1 = (wxDC *) 0 ;
20587 int result;
20588 void *argp1 = 0 ;
20589 int res1 = 0 ;
20590 PyObject *swig_obj[1] ;
20591
20592 if (!args) SWIG_fail;
20593 swig_obj[0] = args;
20594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20595 if (!SWIG_IsOK(res1)) {
20596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20597 }
20598 arg1 = reinterpret_cast< wxDC * >(argp1);
20599 {
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (int)((wxDC const *)arg1)->MaxX();
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 resultobj = SWIG_From_int(static_cast< int >(result));
20606 return resultobj;
20607 fail:
20608 return NULL;
20609 }
20610
20611
20612 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20613 PyObject *resultobj = 0;
20614 wxDC *arg1 = (wxDC *) 0 ;
20615 int result;
20616 void *argp1 = 0 ;
20617 int res1 = 0 ;
20618 PyObject *swig_obj[1] ;
20619
20620 if (!args) SWIG_fail;
20621 swig_obj[0] = args;
20622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20623 if (!SWIG_IsOK(res1)) {
20624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20625 }
20626 arg1 = reinterpret_cast< wxDC * >(argp1);
20627 {
20628 PyThreadState* __tstate = wxPyBeginAllowThreads();
20629 result = (int)((wxDC const *)arg1)->MinY();
20630 wxPyEndAllowThreads(__tstate);
20631 if (PyErr_Occurred()) SWIG_fail;
20632 }
20633 resultobj = SWIG_From_int(static_cast< int >(result));
20634 return resultobj;
20635 fail:
20636 return NULL;
20637 }
20638
20639
20640 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20641 PyObject *resultobj = 0;
20642 wxDC *arg1 = (wxDC *) 0 ;
20643 int result;
20644 void *argp1 = 0 ;
20645 int res1 = 0 ;
20646 PyObject *swig_obj[1] ;
20647
20648 if (!args) SWIG_fail;
20649 swig_obj[0] = args;
20650 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20651 if (!SWIG_IsOK(res1)) {
20652 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20653 }
20654 arg1 = reinterpret_cast< wxDC * >(argp1);
20655 {
20656 PyThreadState* __tstate = wxPyBeginAllowThreads();
20657 result = (int)((wxDC const *)arg1)->MaxY();
20658 wxPyEndAllowThreads(__tstate);
20659 if (PyErr_Occurred()) SWIG_fail;
20660 }
20661 resultobj = SWIG_From_int(static_cast< int >(result));
20662 return resultobj;
20663 fail:
20664 return NULL;
20665 }
20666
20667
20668 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20669 PyObject *resultobj = 0;
20670 wxDC *arg1 = (wxDC *) 0 ;
20671 int *arg2 = (int *) 0 ;
20672 int *arg3 = (int *) 0 ;
20673 int *arg4 = (int *) 0 ;
20674 int *arg5 = (int *) 0 ;
20675 void *argp1 = 0 ;
20676 int res1 = 0 ;
20677 int temp2 ;
20678 int res2 = SWIG_TMPOBJ ;
20679 int temp3 ;
20680 int res3 = SWIG_TMPOBJ ;
20681 int temp4 ;
20682 int res4 = SWIG_TMPOBJ ;
20683 int temp5 ;
20684 int res5 = SWIG_TMPOBJ ;
20685 PyObject *swig_obj[1] ;
20686
20687 arg2 = &temp2;
20688 arg3 = &temp3;
20689 arg4 = &temp4;
20690 arg5 = &temp5;
20691 if (!args) SWIG_fail;
20692 swig_obj[0] = args;
20693 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20694 if (!SWIG_IsOK(res1)) {
20695 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20696 }
20697 arg1 = reinterpret_cast< wxDC * >(argp1);
20698 {
20699 PyThreadState* __tstate = wxPyBeginAllowThreads();
20700 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20701 wxPyEndAllowThreads(__tstate);
20702 if (PyErr_Occurred()) SWIG_fail;
20703 }
20704 resultobj = SWIG_Py_Void();
20705 if (SWIG_IsTmpObj(res2)) {
20706 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20707 } else {
20708 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20709 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20710 }
20711 if (SWIG_IsTmpObj(res3)) {
20712 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20713 } else {
20714 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20715 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20716 }
20717 if (SWIG_IsTmpObj(res4)) {
20718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20719 } else {
20720 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20722 }
20723 if (SWIG_IsTmpObj(res5)) {
20724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20725 } else {
20726 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20728 }
20729 return resultobj;
20730 fail:
20731 return NULL;
20732 }
20733
20734
20735 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20736 PyObject *resultobj = 0;
20737 wxDC *arg1 = (wxDC *) 0 ;
20738 long result;
20739 void *argp1 = 0 ;
20740 int res1 = 0 ;
20741 PyObject *swig_obj[1] ;
20742
20743 if (!args) SWIG_fail;
20744 swig_obj[0] = args;
20745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20746 if (!SWIG_IsOK(res1)) {
20747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20748 }
20749 arg1 = reinterpret_cast< wxDC * >(argp1);
20750 {
20751 PyThreadState* __tstate = wxPyBeginAllowThreads();
20752 result = (long)(arg1)->GetHDC();
20753 wxPyEndAllowThreads(__tstate);
20754 if (PyErr_Occurred()) SWIG_fail;
20755 }
20756 resultobj = SWIG_From_long(static_cast< long >(result));
20757 return resultobj;
20758 fail:
20759 return NULL;
20760 }
20761
20762
20763 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20764 PyObject *resultobj = 0;
20765 wxDC *arg1 = (wxDC *) 0 ;
20766 PyObject *arg2 = (PyObject *) 0 ;
20767 PyObject *arg3 = (PyObject *) 0 ;
20768 PyObject *arg4 = (PyObject *) 0 ;
20769 PyObject *result = 0 ;
20770 void *argp1 = 0 ;
20771 int res1 = 0 ;
20772 PyObject * obj0 = 0 ;
20773 PyObject * obj1 = 0 ;
20774 PyObject * obj2 = 0 ;
20775 PyObject * obj3 = 0 ;
20776 char * kwnames[] = {
20777 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20778 };
20779
20780 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20781 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20782 if (!SWIG_IsOK(res1)) {
20783 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20784 }
20785 arg1 = reinterpret_cast< wxDC * >(argp1);
20786 arg2 = obj1;
20787 arg3 = obj2;
20788 arg4 = obj3;
20789 {
20790 PyThreadState* __tstate = wxPyBeginAllowThreads();
20791 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20792 wxPyEndAllowThreads(__tstate);
20793 if (PyErr_Occurred()) SWIG_fail;
20794 }
20795 resultobj = result;
20796 return resultobj;
20797 fail:
20798 return NULL;
20799 }
20800
20801
20802 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20803 PyObject *resultobj = 0;
20804 wxDC *arg1 = (wxDC *) 0 ;
20805 PyObject *arg2 = (PyObject *) 0 ;
20806 PyObject *arg3 = (PyObject *) 0 ;
20807 PyObject *arg4 = (PyObject *) 0 ;
20808 PyObject *result = 0 ;
20809 void *argp1 = 0 ;
20810 int res1 = 0 ;
20811 PyObject * obj0 = 0 ;
20812 PyObject * obj1 = 0 ;
20813 PyObject * obj2 = 0 ;
20814 PyObject * obj3 = 0 ;
20815 char * kwnames[] = {
20816 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20817 };
20818
20819 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20820 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20821 if (!SWIG_IsOK(res1)) {
20822 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20823 }
20824 arg1 = reinterpret_cast< wxDC * >(argp1);
20825 arg2 = obj1;
20826 arg3 = obj2;
20827 arg4 = obj3;
20828 {
20829 PyThreadState* __tstate = wxPyBeginAllowThreads();
20830 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20831 wxPyEndAllowThreads(__tstate);
20832 if (PyErr_Occurred()) SWIG_fail;
20833 }
20834 resultobj = result;
20835 return resultobj;
20836 fail:
20837 return NULL;
20838 }
20839
20840
20841 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20842 PyObject *resultobj = 0;
20843 wxDC *arg1 = (wxDC *) 0 ;
20844 PyObject *arg2 = (PyObject *) 0 ;
20845 PyObject *arg3 = (PyObject *) 0 ;
20846 PyObject *arg4 = (PyObject *) 0 ;
20847 PyObject *result = 0 ;
20848 void *argp1 = 0 ;
20849 int res1 = 0 ;
20850 PyObject * obj0 = 0 ;
20851 PyObject * obj1 = 0 ;
20852 PyObject * obj2 = 0 ;
20853 PyObject * obj3 = 0 ;
20854 char * kwnames[] = {
20855 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20856 };
20857
20858 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20859 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20860 if (!SWIG_IsOK(res1)) {
20861 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20862 }
20863 arg1 = reinterpret_cast< wxDC * >(argp1);
20864 arg2 = obj1;
20865 arg3 = obj2;
20866 arg4 = obj3;
20867 {
20868 PyThreadState* __tstate = wxPyBeginAllowThreads();
20869 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20870 wxPyEndAllowThreads(__tstate);
20871 if (PyErr_Occurred()) SWIG_fail;
20872 }
20873 resultobj = result;
20874 return resultobj;
20875 fail:
20876 return NULL;
20877 }
20878
20879
20880 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20881 PyObject *resultobj = 0;
20882 wxDC *arg1 = (wxDC *) 0 ;
20883 PyObject *arg2 = (PyObject *) 0 ;
20884 PyObject *arg3 = (PyObject *) 0 ;
20885 PyObject *arg4 = (PyObject *) 0 ;
20886 PyObject *result = 0 ;
20887 void *argp1 = 0 ;
20888 int res1 = 0 ;
20889 PyObject * obj0 = 0 ;
20890 PyObject * obj1 = 0 ;
20891 PyObject * obj2 = 0 ;
20892 PyObject * obj3 = 0 ;
20893 char * kwnames[] = {
20894 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20895 };
20896
20897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20899 if (!SWIG_IsOK(res1)) {
20900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20901 }
20902 arg1 = reinterpret_cast< wxDC * >(argp1);
20903 arg2 = obj1;
20904 arg3 = obj2;
20905 arg4 = obj3;
20906 {
20907 PyThreadState* __tstate = wxPyBeginAllowThreads();
20908 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20909 wxPyEndAllowThreads(__tstate);
20910 if (PyErr_Occurred()) SWIG_fail;
20911 }
20912 resultobj = result;
20913 return resultobj;
20914 fail:
20915 return NULL;
20916 }
20917
20918
20919 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20920 PyObject *resultobj = 0;
20921 wxDC *arg1 = (wxDC *) 0 ;
20922 PyObject *arg2 = (PyObject *) 0 ;
20923 PyObject *arg3 = (PyObject *) 0 ;
20924 PyObject *arg4 = (PyObject *) 0 ;
20925 PyObject *result = 0 ;
20926 void *argp1 = 0 ;
20927 int res1 = 0 ;
20928 PyObject * obj0 = 0 ;
20929 PyObject * obj1 = 0 ;
20930 PyObject * obj2 = 0 ;
20931 PyObject * obj3 = 0 ;
20932 char * kwnames[] = {
20933 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20934 };
20935
20936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20938 if (!SWIG_IsOK(res1)) {
20939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20940 }
20941 arg1 = reinterpret_cast< wxDC * >(argp1);
20942 arg2 = obj1;
20943 arg3 = obj2;
20944 arg4 = obj3;
20945 {
20946 PyThreadState* __tstate = wxPyBeginAllowThreads();
20947 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20948 wxPyEndAllowThreads(__tstate);
20949 if (PyErr_Occurred()) SWIG_fail;
20950 }
20951 resultobj = result;
20952 return resultobj;
20953 fail:
20954 return NULL;
20955 }
20956
20957
20958 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20959 PyObject *resultobj = 0;
20960 wxDC *arg1 = (wxDC *) 0 ;
20961 PyObject *arg2 = (PyObject *) 0 ;
20962 PyObject *arg3 = (PyObject *) 0 ;
20963 PyObject *arg4 = (PyObject *) 0 ;
20964 PyObject *arg5 = (PyObject *) 0 ;
20965 PyObject *result = 0 ;
20966 void *argp1 = 0 ;
20967 int res1 = 0 ;
20968 PyObject * obj0 = 0 ;
20969 PyObject * obj1 = 0 ;
20970 PyObject * obj2 = 0 ;
20971 PyObject * obj3 = 0 ;
20972 PyObject * obj4 = 0 ;
20973 char * kwnames[] = {
20974 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20975 };
20976
20977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20978 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20979 if (!SWIG_IsOK(res1)) {
20980 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20981 }
20982 arg1 = reinterpret_cast< wxDC * >(argp1);
20983 arg2 = obj1;
20984 arg3 = obj2;
20985 arg4 = obj3;
20986 arg5 = obj4;
20987 {
20988 PyThreadState* __tstate = wxPyBeginAllowThreads();
20989 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20990 wxPyEndAllowThreads(__tstate);
20991 if (PyErr_Occurred()) SWIG_fail;
20992 }
20993 resultobj = result;
20994 return resultobj;
20995 fail:
20996 return NULL;
20997 }
20998
20999
21000 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21001 PyObject *obj;
21002 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21003 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
21004 return SWIG_Py_Void();
21005 }
21006
21007 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21008 PyObject *resultobj = 0;
21009 wxMemoryDC *result = 0 ;
21010
21011 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
21012 {
21013 if (!wxPyCheckForApp()) SWIG_fail;
21014 PyThreadState* __tstate = wxPyBeginAllowThreads();
21015 result = (wxMemoryDC *)new wxMemoryDC();
21016 wxPyEndAllowThreads(__tstate);
21017 if (PyErr_Occurred()) SWIG_fail;
21018 }
21019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
21020 return resultobj;
21021 fail:
21022 return NULL;
21023 }
21024
21025
21026 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21027 PyObject *resultobj = 0;
21028 wxDC *arg1 = (wxDC *) 0 ;
21029 wxMemoryDC *result = 0 ;
21030 void *argp1 = 0 ;
21031 int res1 = 0 ;
21032 PyObject * obj0 = 0 ;
21033 char * kwnames[] = {
21034 (char *) "oldDC", NULL
21035 };
21036
21037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21039 if (!SWIG_IsOK(res1)) {
21040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21041 }
21042 arg1 = reinterpret_cast< wxDC * >(argp1);
21043 {
21044 if (!wxPyCheckForApp()) SWIG_fail;
21045 PyThreadState* __tstate = wxPyBeginAllowThreads();
21046 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21047 wxPyEndAllowThreads(__tstate);
21048 if (PyErr_Occurred()) SWIG_fail;
21049 }
21050 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21051 return resultobj;
21052 fail:
21053 return NULL;
21054 }
21055
21056
21057 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21058 PyObject *resultobj = 0;
21059 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21060 wxBitmap *arg2 = 0 ;
21061 void *argp1 = 0 ;
21062 int res1 = 0 ;
21063 void *argp2 = 0 ;
21064 int res2 = 0 ;
21065 PyObject * obj0 = 0 ;
21066 PyObject * obj1 = 0 ;
21067 char * kwnames[] = {
21068 (char *) "self",(char *) "bitmap", NULL
21069 };
21070
21071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21073 if (!SWIG_IsOK(res1)) {
21074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21075 }
21076 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21077 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21078 if (!SWIG_IsOK(res2)) {
21079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21080 }
21081 if (!argp2) {
21082 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21083 }
21084 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21085 {
21086 PyThreadState* __tstate = wxPyBeginAllowThreads();
21087 (arg1)->SelectObject((wxBitmap const &)*arg2);
21088 wxPyEndAllowThreads(__tstate);
21089 if (PyErr_Occurred()) SWIG_fail;
21090 }
21091 resultobj = SWIG_Py_Void();
21092 return resultobj;
21093 fail:
21094 return NULL;
21095 }
21096
21097
21098 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21099 PyObject *obj;
21100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21101 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21102 return SWIG_Py_Void();
21103 }
21104
21105 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21106 return SWIG_Python_InitShadowInstance(args);
21107 }
21108
21109 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21110 PyObject *resultobj = 0;
21111 wxDC *arg1 = (wxDC *) 0 ;
21112 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21113 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21114 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21115 wxBufferedDC *result = 0 ;
21116 void *argp1 = 0 ;
21117 int res1 = 0 ;
21118 void *argp2 = 0 ;
21119 int res2 = 0 ;
21120 int val3 ;
21121 int ecode3 = 0 ;
21122
21123 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21124 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21125 if (!SWIG_IsOK(res1)) {
21126 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21127 }
21128 arg1 = reinterpret_cast< wxDC * >(argp1);
21129 if (swig_obj[1]) {
21130 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21131 if (!SWIG_IsOK(res2)) {
21132 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21133 }
21134 if (!argp2) {
21135 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21136 }
21137 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21138 }
21139 if (swig_obj[2]) {
21140 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21141 if (!SWIG_IsOK(ecode3)) {
21142 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21143 }
21144 arg3 = static_cast< int >(val3);
21145 }
21146 {
21147 if (!wxPyCheckForApp()) SWIG_fail;
21148 PyThreadState* __tstate = wxPyBeginAllowThreads();
21149 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21150 wxPyEndAllowThreads(__tstate);
21151 if (PyErr_Occurred()) SWIG_fail;
21152 }
21153 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21154 return resultobj;
21155 fail:
21156 return NULL;
21157 }
21158
21159
21160 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21161 PyObject *resultobj = 0;
21162 wxDC *arg1 = (wxDC *) 0 ;
21163 wxSize *arg2 = 0 ;
21164 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21165 wxBufferedDC *result = 0 ;
21166 void *argp1 = 0 ;
21167 int res1 = 0 ;
21168 wxSize temp2 ;
21169 int val3 ;
21170 int ecode3 = 0 ;
21171
21172 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21173 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21174 if (!SWIG_IsOK(res1)) {
21175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21176 }
21177 arg1 = reinterpret_cast< wxDC * >(argp1);
21178 {
21179 arg2 = &temp2;
21180 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21181 }
21182 if (swig_obj[2]) {
21183 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21184 if (!SWIG_IsOK(ecode3)) {
21185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21186 }
21187 arg3 = static_cast< int >(val3);
21188 }
21189 {
21190 if (!wxPyCheckForApp()) SWIG_fail;
21191 PyThreadState* __tstate = wxPyBeginAllowThreads();
21192 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21193 wxPyEndAllowThreads(__tstate);
21194 if (PyErr_Occurred()) SWIG_fail;
21195 }
21196 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21197 return resultobj;
21198 fail:
21199 return NULL;
21200 }
21201
21202
21203 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21204 int argc;
21205 PyObject *argv[4];
21206
21207 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21208 --argc;
21209 if ((argc >= 1) && (argc <= 3)) {
21210 int _v = 0;
21211 if (argc > 1) {
21212 {
21213 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21214 _v = SWIG_CheckState(res);
21215 }
21216 if (!_v) goto check_1;
21217 }
21218 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21219 }
21220 check_1:
21221
21222 if ((argc >= 2) && (argc <= 3)) {
21223 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21224 }
21225
21226 fail:
21227 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21228 return NULL;
21229 }
21230
21231
21232 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21233 PyObject *resultobj = 0;
21234 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21235 void *argp1 = 0 ;
21236 int res1 = 0 ;
21237 PyObject *swig_obj[1] ;
21238
21239 if (!args) SWIG_fail;
21240 swig_obj[0] = args;
21241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21242 if (!SWIG_IsOK(res1)) {
21243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21244 }
21245 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21246 {
21247 PyThreadState* __tstate = wxPyBeginAllowThreads();
21248 delete arg1;
21249
21250 wxPyEndAllowThreads(__tstate);
21251 if (PyErr_Occurred()) SWIG_fail;
21252 }
21253 resultobj = SWIG_Py_Void();
21254 return resultobj;
21255 fail:
21256 return NULL;
21257 }
21258
21259
21260 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21261 PyObject *resultobj = 0;
21262 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21263 void *argp1 = 0 ;
21264 int res1 = 0 ;
21265 PyObject *swig_obj[1] ;
21266
21267 if (!args) SWIG_fail;
21268 swig_obj[0] = args;
21269 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21270 if (!SWIG_IsOK(res1)) {
21271 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21272 }
21273 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21274 {
21275 PyThreadState* __tstate = wxPyBeginAllowThreads();
21276 (arg1)->UnMask();
21277 wxPyEndAllowThreads(__tstate);
21278 if (PyErr_Occurred()) SWIG_fail;
21279 }
21280 resultobj = SWIG_Py_Void();
21281 return resultobj;
21282 fail:
21283 return NULL;
21284 }
21285
21286
21287 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21288 PyObject *obj;
21289 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21290 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21291 return SWIG_Py_Void();
21292 }
21293
21294 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21295 return SWIG_Python_InitShadowInstance(args);
21296 }
21297
21298 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21299 PyObject *resultobj = 0;
21300 wxWindow *arg1 = (wxWindow *) 0 ;
21301 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21302 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21303 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21304 wxBufferedPaintDC *result = 0 ;
21305 void *argp1 = 0 ;
21306 int res1 = 0 ;
21307 void *argp2 = 0 ;
21308 int res2 = 0 ;
21309 int val3 ;
21310 int ecode3 = 0 ;
21311 PyObject * obj0 = 0 ;
21312 PyObject * obj1 = 0 ;
21313 PyObject * obj2 = 0 ;
21314 char * kwnames[] = {
21315 (char *) "window",(char *) "buffer",(char *) "style", NULL
21316 };
21317
21318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21320 if (!SWIG_IsOK(res1)) {
21321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21322 }
21323 arg1 = reinterpret_cast< wxWindow * >(argp1);
21324 if (obj1) {
21325 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21326 if (!SWIG_IsOK(res2)) {
21327 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21328 }
21329 if (!argp2) {
21330 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21331 }
21332 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21333 }
21334 if (obj2) {
21335 ecode3 = SWIG_AsVal_int(obj2, &val3);
21336 if (!SWIG_IsOK(ecode3)) {
21337 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21338 }
21339 arg3 = static_cast< int >(val3);
21340 }
21341 {
21342 if (!wxPyCheckForApp()) SWIG_fail;
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21356 PyObject *obj;
21357 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21358 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21359 return SWIG_Py_Void();
21360 }
21361
21362 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21363 return SWIG_Python_InitShadowInstance(args);
21364 }
21365
21366 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21367 PyObject *resultobj = 0;
21368 wxScreenDC *result = 0 ;
21369
21370 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21371 {
21372 if (!wxPyCheckForApp()) SWIG_fail;
21373 PyThreadState* __tstate = wxPyBeginAllowThreads();
21374 result = (wxScreenDC *)new wxScreenDC();
21375 wxPyEndAllowThreads(__tstate);
21376 if (PyErr_Occurred()) SWIG_fail;
21377 }
21378 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21379 return resultobj;
21380 fail:
21381 return NULL;
21382 }
21383
21384
21385 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21386 PyObject *resultobj = 0;
21387 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21388 wxWindow *arg2 = (wxWindow *) 0 ;
21389 bool result;
21390 void *argp1 = 0 ;
21391 int res1 = 0 ;
21392 void *argp2 = 0 ;
21393 int res2 = 0 ;
21394 PyObject * obj0 = 0 ;
21395 PyObject * obj1 = 0 ;
21396 char * kwnames[] = {
21397 (char *) "self",(char *) "window", NULL
21398 };
21399
21400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21402 if (!SWIG_IsOK(res1)) {
21403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21404 }
21405 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21406 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21407 if (!SWIG_IsOK(res2)) {
21408 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21409 }
21410 arg2 = reinterpret_cast< wxWindow * >(argp2);
21411 {
21412 PyThreadState* __tstate = wxPyBeginAllowThreads();
21413 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21414 wxPyEndAllowThreads(__tstate);
21415 if (PyErr_Occurred()) SWIG_fail;
21416 }
21417 {
21418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21419 }
21420 return resultobj;
21421 fail:
21422 return NULL;
21423 }
21424
21425
21426 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21427 PyObject *resultobj = 0;
21428 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21429 wxRect *arg2 = (wxRect *) NULL ;
21430 bool result;
21431 void *argp1 = 0 ;
21432 int res1 = 0 ;
21433 void *argp2 = 0 ;
21434 int res2 = 0 ;
21435 PyObject * obj0 = 0 ;
21436 PyObject * obj1 = 0 ;
21437 char * kwnames[] = {
21438 (char *) "self",(char *) "rect", NULL
21439 };
21440
21441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21443 if (!SWIG_IsOK(res1)) {
21444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21445 }
21446 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21447 if (obj1) {
21448 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21449 if (!SWIG_IsOK(res2)) {
21450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21451 }
21452 arg2 = reinterpret_cast< wxRect * >(argp2);
21453 }
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 {
21461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21462 }
21463 return resultobj;
21464 fail:
21465 return NULL;
21466 }
21467
21468
21469 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *resultobj = 0;
21471 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21472 bool result;
21473 void *argp1 = 0 ;
21474 int res1 = 0 ;
21475 PyObject *swig_obj[1] ;
21476
21477 if (!args) SWIG_fail;
21478 swig_obj[0] = args;
21479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21480 if (!SWIG_IsOK(res1)) {
21481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21482 }
21483 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21484 {
21485 PyThreadState* __tstate = wxPyBeginAllowThreads();
21486 result = (bool)(arg1)->EndDrawingOnTop();
21487 wxPyEndAllowThreads(__tstate);
21488 if (PyErr_Occurred()) SWIG_fail;
21489 }
21490 {
21491 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21492 }
21493 return resultobj;
21494 fail:
21495 return NULL;
21496 }
21497
21498
21499 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21500 PyObject *obj;
21501 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21502 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21503 return SWIG_Py_Void();
21504 }
21505
21506 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21507 return SWIG_Python_InitShadowInstance(args);
21508 }
21509
21510 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21511 PyObject *resultobj = 0;
21512 wxWindow *arg1 = (wxWindow *) 0 ;
21513 wxClientDC *result = 0 ;
21514 void *argp1 = 0 ;
21515 int res1 = 0 ;
21516 PyObject * obj0 = 0 ;
21517 char * kwnames[] = {
21518 (char *) "win", NULL
21519 };
21520
21521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21523 if (!SWIG_IsOK(res1)) {
21524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21525 }
21526 arg1 = reinterpret_cast< wxWindow * >(argp1);
21527 {
21528 if (!wxPyCheckForApp()) SWIG_fail;
21529 PyThreadState* __tstate = wxPyBeginAllowThreads();
21530 result = (wxClientDC *)new wxClientDC(arg1);
21531 wxPyEndAllowThreads(__tstate);
21532 if (PyErr_Occurred()) SWIG_fail;
21533 }
21534 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21535 return resultobj;
21536 fail:
21537 return NULL;
21538 }
21539
21540
21541 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21542 PyObject *obj;
21543 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21544 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21545 return SWIG_Py_Void();
21546 }
21547
21548 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21549 return SWIG_Python_InitShadowInstance(args);
21550 }
21551
21552 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21553 PyObject *resultobj = 0;
21554 wxWindow *arg1 = (wxWindow *) 0 ;
21555 wxPaintDC *result = 0 ;
21556 void *argp1 = 0 ;
21557 int res1 = 0 ;
21558 PyObject * obj0 = 0 ;
21559 char * kwnames[] = {
21560 (char *) "win", NULL
21561 };
21562
21563 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21564 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21565 if (!SWIG_IsOK(res1)) {
21566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21567 }
21568 arg1 = reinterpret_cast< wxWindow * >(argp1);
21569 {
21570 if (!wxPyCheckForApp()) SWIG_fail;
21571 PyThreadState* __tstate = wxPyBeginAllowThreads();
21572 result = (wxPaintDC *)new wxPaintDC(arg1);
21573 wxPyEndAllowThreads(__tstate);
21574 if (PyErr_Occurred()) SWIG_fail;
21575 }
21576 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21577 return resultobj;
21578 fail:
21579 return NULL;
21580 }
21581
21582
21583 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21584 PyObject *obj;
21585 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21586 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21587 return SWIG_Py_Void();
21588 }
21589
21590 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21591 return SWIG_Python_InitShadowInstance(args);
21592 }
21593
21594 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21595 PyObject *resultobj = 0;
21596 wxWindow *arg1 = (wxWindow *) 0 ;
21597 wxWindowDC *result = 0 ;
21598 void *argp1 = 0 ;
21599 int res1 = 0 ;
21600 PyObject * obj0 = 0 ;
21601 char * kwnames[] = {
21602 (char *) "win", NULL
21603 };
21604
21605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21607 if (!SWIG_IsOK(res1)) {
21608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21609 }
21610 arg1 = reinterpret_cast< wxWindow * >(argp1);
21611 {
21612 if (!wxPyCheckForApp()) SWIG_fail;
21613 PyThreadState* __tstate = wxPyBeginAllowThreads();
21614 result = (wxWindowDC *)new wxWindowDC(arg1);
21615 wxPyEndAllowThreads(__tstate);
21616 if (PyErr_Occurred()) SWIG_fail;
21617 }
21618 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21619 return resultobj;
21620 fail:
21621 return NULL;
21622 }
21623
21624
21625 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21626 PyObject *obj;
21627 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21628 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21629 return SWIG_Py_Void();
21630 }
21631
21632 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21633 return SWIG_Python_InitShadowInstance(args);
21634 }
21635
21636 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21637 PyObject *resultobj = 0;
21638 wxDC *arg1 = 0 ;
21639 bool arg2 ;
21640 wxMirrorDC *result = 0 ;
21641 void *argp1 = 0 ;
21642 int res1 = 0 ;
21643 bool val2 ;
21644 int ecode2 = 0 ;
21645 PyObject * obj0 = 0 ;
21646 PyObject * obj1 = 0 ;
21647 char * kwnames[] = {
21648 (char *) "dc",(char *) "mirror", NULL
21649 };
21650
21651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21652 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21653 if (!SWIG_IsOK(res1)) {
21654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21655 }
21656 if (!argp1) {
21657 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21658 }
21659 arg1 = reinterpret_cast< wxDC * >(argp1);
21660 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21661 if (!SWIG_IsOK(ecode2)) {
21662 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21663 }
21664 arg2 = static_cast< bool >(val2);
21665 {
21666 if (!wxPyCheckForApp()) SWIG_fail;
21667 PyThreadState* __tstate = wxPyBeginAllowThreads();
21668 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21669 wxPyEndAllowThreads(__tstate);
21670 if (PyErr_Occurred()) SWIG_fail;
21671 }
21672 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21673 return resultobj;
21674 fail:
21675 return NULL;
21676 }
21677
21678
21679 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21680 PyObject *obj;
21681 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21682 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21683 return SWIG_Py_Void();
21684 }
21685
21686 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21687 return SWIG_Python_InitShadowInstance(args);
21688 }
21689
21690 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21691 PyObject *resultobj = 0;
21692 wxPrintData *arg1 = 0 ;
21693 wxPostScriptDC *result = 0 ;
21694 void *argp1 = 0 ;
21695 int res1 = 0 ;
21696 PyObject * obj0 = 0 ;
21697 char * kwnames[] = {
21698 (char *) "printData", NULL
21699 };
21700
21701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21702 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21703 if (!SWIG_IsOK(res1)) {
21704 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21705 }
21706 if (!argp1) {
21707 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21708 }
21709 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21710 {
21711 if (!wxPyCheckForApp()) SWIG_fail;
21712 PyThreadState* __tstate = wxPyBeginAllowThreads();
21713 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21714 wxPyEndAllowThreads(__tstate);
21715 if (PyErr_Occurred()) SWIG_fail;
21716 }
21717 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21718 return resultobj;
21719 fail:
21720 return NULL;
21721 }
21722
21723
21724 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21725 PyObject *resultobj = 0;
21726 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21727 wxPrintData *result = 0 ;
21728 void *argp1 = 0 ;
21729 int res1 = 0 ;
21730 PyObject *swig_obj[1] ;
21731
21732 if (!args) SWIG_fail;
21733 swig_obj[0] = args;
21734 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21735 if (!SWIG_IsOK(res1)) {
21736 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21737 }
21738 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21739 {
21740 PyThreadState* __tstate = wxPyBeginAllowThreads();
21741 {
21742 wxPrintData &_result_ref = (arg1)->GetPrintData();
21743 result = (wxPrintData *) &_result_ref;
21744 }
21745 wxPyEndAllowThreads(__tstate);
21746 if (PyErr_Occurred()) SWIG_fail;
21747 }
21748 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21749 return resultobj;
21750 fail:
21751 return NULL;
21752 }
21753
21754
21755 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21756 PyObject *resultobj = 0;
21757 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21758 wxPrintData *arg2 = 0 ;
21759 void *argp1 = 0 ;
21760 int res1 = 0 ;
21761 void *argp2 = 0 ;
21762 int res2 = 0 ;
21763 PyObject * obj0 = 0 ;
21764 PyObject * obj1 = 0 ;
21765 char * kwnames[] = {
21766 (char *) "self",(char *) "data", NULL
21767 };
21768
21769 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21770 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21771 if (!SWIG_IsOK(res1)) {
21772 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21773 }
21774 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21775 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21776 if (!SWIG_IsOK(res2)) {
21777 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21778 }
21779 if (!argp2) {
21780 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21781 }
21782 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21783 {
21784 PyThreadState* __tstate = wxPyBeginAllowThreads();
21785 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21786 wxPyEndAllowThreads(__tstate);
21787 if (PyErr_Occurred()) SWIG_fail;
21788 }
21789 resultobj = SWIG_Py_Void();
21790 return resultobj;
21791 fail:
21792 return NULL;
21793 }
21794
21795
21796 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21797 PyObject *resultobj = 0;
21798 int arg1 ;
21799 int val1 ;
21800 int ecode1 = 0 ;
21801 PyObject * obj0 = 0 ;
21802 char * kwnames[] = {
21803 (char *) "ppi", NULL
21804 };
21805
21806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21807 ecode1 = SWIG_AsVal_int(obj0, &val1);
21808 if (!SWIG_IsOK(ecode1)) {
21809 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21810 }
21811 arg1 = static_cast< int >(val1);
21812 {
21813 PyThreadState* __tstate = wxPyBeginAllowThreads();
21814 wxPostScriptDC::SetResolution(arg1);
21815 wxPyEndAllowThreads(__tstate);
21816 if (PyErr_Occurred()) SWIG_fail;
21817 }
21818 resultobj = SWIG_Py_Void();
21819 return resultobj;
21820 fail:
21821 return NULL;
21822 }
21823
21824
21825 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21826 PyObject *resultobj = 0;
21827 int result;
21828
21829 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21830 {
21831 PyThreadState* __tstate = wxPyBeginAllowThreads();
21832 result = (int)wxPostScriptDC::GetResolution();
21833 wxPyEndAllowThreads(__tstate);
21834 if (PyErr_Occurred()) SWIG_fail;
21835 }
21836 resultobj = SWIG_From_int(static_cast< int >(result));
21837 return resultobj;
21838 fail:
21839 return NULL;
21840 }
21841
21842
21843 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21844 PyObject *obj;
21845 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21846 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21847 return SWIG_Py_Void();
21848 }
21849
21850 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21851 return SWIG_Python_InitShadowInstance(args);
21852 }
21853
21854 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21855 PyObject *resultobj = 0;
21856 wxString const &arg1_defvalue = wxPyEmptyString ;
21857 wxString *arg1 = (wxString *) &arg1_defvalue ;
21858 wxMetaFile *result = 0 ;
21859 bool temp1 = false ;
21860 PyObject * obj0 = 0 ;
21861 char * kwnames[] = {
21862 (char *) "filename", NULL
21863 };
21864
21865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21866 if (obj0) {
21867 {
21868 arg1 = wxString_in_helper(obj0);
21869 if (arg1 == NULL) SWIG_fail;
21870 temp1 = true;
21871 }
21872 }
21873 {
21874 if (!wxPyCheckForApp()) SWIG_fail;
21875 PyThreadState* __tstate = wxPyBeginAllowThreads();
21876 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21877 wxPyEndAllowThreads(__tstate);
21878 if (PyErr_Occurred()) SWIG_fail;
21879 }
21880 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21881 {
21882 if (temp1)
21883 delete arg1;
21884 }
21885 return resultobj;
21886 fail:
21887 {
21888 if (temp1)
21889 delete arg1;
21890 }
21891 return NULL;
21892 }
21893
21894
21895 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21896 PyObject *resultobj = 0;
21897 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21898 void *argp1 = 0 ;
21899 int res1 = 0 ;
21900 PyObject *swig_obj[1] ;
21901
21902 if (!args) SWIG_fail;
21903 swig_obj[0] = args;
21904 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21905 if (!SWIG_IsOK(res1)) {
21906 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21907 }
21908 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21909 {
21910 PyThreadState* __tstate = wxPyBeginAllowThreads();
21911 delete arg1;
21912
21913 wxPyEndAllowThreads(__tstate);
21914 if (PyErr_Occurred()) SWIG_fail;
21915 }
21916 resultobj = SWIG_Py_Void();
21917 return resultobj;
21918 fail:
21919 return NULL;
21920 }
21921
21922
21923 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21924 PyObject *resultobj = 0;
21925 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21926 bool result;
21927 void *argp1 = 0 ;
21928 int res1 = 0 ;
21929 PyObject *swig_obj[1] ;
21930
21931 if (!args) SWIG_fail;
21932 swig_obj[0] = args;
21933 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21934 if (!SWIG_IsOK(res1)) {
21935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21936 }
21937 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21938 {
21939 PyThreadState* __tstate = wxPyBeginAllowThreads();
21940 result = (bool)(arg1)->Ok();
21941 wxPyEndAllowThreads(__tstate);
21942 if (PyErr_Occurred()) SWIG_fail;
21943 }
21944 {
21945 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21946 }
21947 return resultobj;
21948 fail:
21949 return NULL;
21950 }
21951
21952
21953 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21954 PyObject *resultobj = 0;
21955 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21956 int arg2 = (int) 0 ;
21957 int arg3 = (int) 0 ;
21958 bool result;
21959 void *argp1 = 0 ;
21960 int res1 = 0 ;
21961 int val2 ;
21962 int ecode2 = 0 ;
21963 int val3 ;
21964 int ecode3 = 0 ;
21965 PyObject * obj0 = 0 ;
21966 PyObject * obj1 = 0 ;
21967 PyObject * obj2 = 0 ;
21968 char * kwnames[] = {
21969 (char *) "self",(char *) "width",(char *) "height", NULL
21970 };
21971
21972 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21973 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21974 if (!SWIG_IsOK(res1)) {
21975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21976 }
21977 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21978 if (obj1) {
21979 ecode2 = SWIG_AsVal_int(obj1, &val2);
21980 if (!SWIG_IsOK(ecode2)) {
21981 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21982 }
21983 arg2 = static_cast< int >(val2);
21984 }
21985 if (obj2) {
21986 ecode3 = SWIG_AsVal_int(obj2, &val3);
21987 if (!SWIG_IsOK(ecode3)) {
21988 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21989 }
21990 arg3 = static_cast< int >(val3);
21991 }
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 {
21999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22000 }
22001 return resultobj;
22002 fail:
22003 return NULL;
22004 }
22005
22006
22007 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22008 PyObject *resultobj = 0;
22009 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22010 wxSize result;
22011 void *argp1 = 0 ;
22012 int res1 = 0 ;
22013 PyObject *swig_obj[1] ;
22014
22015 if (!args) SWIG_fail;
22016 swig_obj[0] = args;
22017 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22018 if (!SWIG_IsOK(res1)) {
22019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22020 }
22021 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22022 {
22023 PyThreadState* __tstate = wxPyBeginAllowThreads();
22024 result = (arg1)->GetSize();
22025 wxPyEndAllowThreads(__tstate);
22026 if (PyErr_Occurred()) SWIG_fail;
22027 }
22028 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
22029 return resultobj;
22030 fail:
22031 return NULL;
22032 }
22033
22034
22035 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22036 PyObject *resultobj = 0;
22037 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22038 int result;
22039 void *argp1 = 0 ;
22040 int res1 = 0 ;
22041 PyObject *swig_obj[1] ;
22042
22043 if (!args) SWIG_fail;
22044 swig_obj[0] = args;
22045 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22046 if (!SWIG_IsOK(res1)) {
22047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22048 }
22049 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22050 {
22051 PyThreadState* __tstate = wxPyBeginAllowThreads();
22052 result = (int)(arg1)->GetWidth();
22053 wxPyEndAllowThreads(__tstate);
22054 if (PyErr_Occurred()) SWIG_fail;
22055 }
22056 resultobj = SWIG_From_int(static_cast< int >(result));
22057 return resultobj;
22058 fail:
22059 return NULL;
22060 }
22061
22062
22063 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22064 PyObject *resultobj = 0;
22065 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22066 int result;
22067 void *argp1 = 0 ;
22068 int res1 = 0 ;
22069 PyObject *swig_obj[1] ;
22070
22071 if (!args) SWIG_fail;
22072 swig_obj[0] = args;
22073 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22074 if (!SWIG_IsOK(res1)) {
22075 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22076 }
22077 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22078 {
22079 PyThreadState* __tstate = wxPyBeginAllowThreads();
22080 result = (int)(arg1)->GetHeight();
22081 wxPyEndAllowThreads(__tstate);
22082 if (PyErr_Occurred()) SWIG_fail;
22083 }
22084 resultobj = SWIG_From_int(static_cast< int >(result));
22085 return resultobj;
22086 fail:
22087 return NULL;
22088 }
22089
22090
22091 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22092 PyObject *resultobj = 0;
22093 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22094 wxString *result = 0 ;
22095 void *argp1 = 0 ;
22096 int res1 = 0 ;
22097 PyObject *swig_obj[1] ;
22098
22099 if (!args) SWIG_fail;
22100 swig_obj[0] = args;
22101 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22102 if (!SWIG_IsOK(res1)) {
22103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22104 }
22105 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22106 {
22107 PyThreadState* __tstate = wxPyBeginAllowThreads();
22108 {
22109 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22110 result = (wxString *) &_result_ref;
22111 }
22112 wxPyEndAllowThreads(__tstate);
22113 if (PyErr_Occurred()) SWIG_fail;
22114 }
22115 {
22116 #if wxUSE_UNICODE
22117 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22118 #else
22119 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22120 #endif
22121 }
22122 return resultobj;
22123 fail:
22124 return NULL;
22125 }
22126
22127
22128 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22129 PyObject *obj;
22130 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22131 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22132 return SWIG_Py_Void();
22133 }
22134
22135 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22136 return SWIG_Python_InitShadowInstance(args);
22137 }
22138
22139 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22140 PyObject *resultobj = 0;
22141 wxString const &arg1_defvalue = wxPyEmptyString ;
22142 wxString *arg1 = (wxString *) &arg1_defvalue ;
22143 int arg2 = (int) 0 ;
22144 int arg3 = (int) 0 ;
22145 wxString const &arg4_defvalue = wxPyEmptyString ;
22146 wxString *arg4 = (wxString *) &arg4_defvalue ;
22147 wxMetaFileDC *result = 0 ;
22148 bool temp1 = false ;
22149 int val2 ;
22150 int ecode2 = 0 ;
22151 int val3 ;
22152 int ecode3 = 0 ;
22153 bool temp4 = false ;
22154 PyObject * obj0 = 0 ;
22155 PyObject * obj1 = 0 ;
22156 PyObject * obj2 = 0 ;
22157 PyObject * obj3 = 0 ;
22158 char * kwnames[] = {
22159 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22160 };
22161
22162 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22163 if (obj0) {
22164 {
22165 arg1 = wxString_in_helper(obj0);
22166 if (arg1 == NULL) SWIG_fail;
22167 temp1 = true;
22168 }
22169 }
22170 if (obj1) {
22171 ecode2 = SWIG_AsVal_int(obj1, &val2);
22172 if (!SWIG_IsOK(ecode2)) {
22173 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22174 }
22175 arg2 = static_cast< int >(val2);
22176 }
22177 if (obj2) {
22178 ecode3 = SWIG_AsVal_int(obj2, &val3);
22179 if (!SWIG_IsOK(ecode3)) {
22180 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22181 }
22182 arg3 = static_cast< int >(val3);
22183 }
22184 if (obj3) {
22185 {
22186 arg4 = wxString_in_helper(obj3);
22187 if (arg4 == NULL) SWIG_fail;
22188 temp4 = true;
22189 }
22190 }
22191 {
22192 if (!wxPyCheckForApp()) SWIG_fail;
22193 PyThreadState* __tstate = wxPyBeginAllowThreads();
22194 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22195 wxPyEndAllowThreads(__tstate);
22196 if (PyErr_Occurred()) SWIG_fail;
22197 }
22198 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22199 {
22200 if (temp1)
22201 delete arg1;
22202 }
22203 {
22204 if (temp4)
22205 delete arg4;
22206 }
22207 return resultobj;
22208 fail:
22209 {
22210 if (temp1)
22211 delete arg1;
22212 }
22213 {
22214 if (temp4)
22215 delete arg4;
22216 }
22217 return NULL;
22218 }
22219
22220
22221 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22222 PyObject *resultobj = 0;
22223 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22224 wxMetaFile *result = 0 ;
22225 void *argp1 = 0 ;
22226 int res1 = 0 ;
22227 PyObject *swig_obj[1] ;
22228
22229 if (!args) SWIG_fail;
22230 swig_obj[0] = args;
22231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22232 if (!SWIG_IsOK(res1)) {
22233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22234 }
22235 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22236 {
22237 PyThreadState* __tstate = wxPyBeginAllowThreads();
22238 result = (wxMetaFile *)(arg1)->Close();
22239 wxPyEndAllowThreads(__tstate);
22240 if (PyErr_Occurred()) SWIG_fail;
22241 }
22242 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22243 return resultobj;
22244 fail:
22245 return NULL;
22246 }
22247
22248
22249 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22250 PyObject *obj;
22251 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22252 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22253 return SWIG_Py_Void();
22254 }
22255
22256 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22257 return SWIG_Python_InitShadowInstance(args);
22258 }
22259
22260 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22261 PyObject *resultobj = 0;
22262 wxPrintData *arg1 = 0 ;
22263 wxPrinterDC *result = 0 ;
22264 void *argp1 = 0 ;
22265 int res1 = 0 ;
22266 PyObject * obj0 = 0 ;
22267 char * kwnames[] = {
22268 (char *) "printData", NULL
22269 };
22270
22271 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22272 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22273 if (!SWIG_IsOK(res1)) {
22274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22275 }
22276 if (!argp1) {
22277 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22278 }
22279 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22280 {
22281 if (!wxPyCheckForApp()) SWIG_fail;
22282 PyThreadState* __tstate = wxPyBeginAllowThreads();
22283 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22284 wxPyEndAllowThreads(__tstate);
22285 if (PyErr_Occurred()) SWIG_fail;
22286 }
22287 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22288 return resultobj;
22289 fail:
22290 return NULL;
22291 }
22292
22293
22294 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22295 PyObject *obj;
22296 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22297 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22298 return SWIG_Py_Void();
22299 }
22300
22301 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22302 return SWIG_Python_InitShadowInstance(args);
22303 }
22304
22305 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22306 PyObject *resultobj = 0;
22307 int arg1 ;
22308 int arg2 ;
22309 int arg3 = (int) true ;
22310 int arg4 = (int) 1 ;
22311 wxImageList *result = 0 ;
22312 int val1 ;
22313 int ecode1 = 0 ;
22314 int val2 ;
22315 int ecode2 = 0 ;
22316 int val3 ;
22317 int ecode3 = 0 ;
22318 int val4 ;
22319 int ecode4 = 0 ;
22320 PyObject * obj0 = 0 ;
22321 PyObject * obj1 = 0 ;
22322 PyObject * obj2 = 0 ;
22323 PyObject * obj3 = 0 ;
22324 char * kwnames[] = {
22325 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22326 };
22327
22328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22329 ecode1 = SWIG_AsVal_int(obj0, &val1);
22330 if (!SWIG_IsOK(ecode1)) {
22331 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22332 }
22333 arg1 = static_cast< int >(val1);
22334 ecode2 = SWIG_AsVal_int(obj1, &val2);
22335 if (!SWIG_IsOK(ecode2)) {
22336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22337 }
22338 arg2 = static_cast< int >(val2);
22339 if (obj2) {
22340 ecode3 = SWIG_AsVal_int(obj2, &val3);
22341 if (!SWIG_IsOK(ecode3)) {
22342 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22343 }
22344 arg3 = static_cast< int >(val3);
22345 }
22346 if (obj3) {
22347 ecode4 = SWIG_AsVal_int(obj3, &val4);
22348 if (!SWIG_IsOK(ecode4)) {
22349 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22350 }
22351 arg4 = static_cast< int >(val4);
22352 }
22353 {
22354 if (!wxPyCheckForApp()) SWIG_fail;
22355 PyThreadState* __tstate = wxPyBeginAllowThreads();
22356 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 {
22361 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22362 }
22363 return resultobj;
22364 fail:
22365 return NULL;
22366 }
22367
22368
22369 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22370 PyObject *resultobj = 0;
22371 wxImageList *arg1 = (wxImageList *) 0 ;
22372 void *argp1 = 0 ;
22373 int res1 = 0 ;
22374 PyObject *swig_obj[1] ;
22375
22376 if (!args) SWIG_fail;
22377 swig_obj[0] = args;
22378 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22379 if (!SWIG_IsOK(res1)) {
22380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22381 }
22382 arg1 = reinterpret_cast< wxImageList * >(argp1);
22383 {
22384 PyThreadState* __tstate = wxPyBeginAllowThreads();
22385 delete arg1;
22386
22387 wxPyEndAllowThreads(__tstate);
22388 if (PyErr_Occurred()) SWIG_fail;
22389 }
22390 resultobj = SWIG_Py_Void();
22391 return resultobj;
22392 fail:
22393 return NULL;
22394 }
22395
22396
22397 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22398 PyObject *resultobj = 0;
22399 wxImageList *arg1 = (wxImageList *) 0 ;
22400 wxBitmap *arg2 = 0 ;
22401 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22402 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22403 int result;
22404 void *argp1 = 0 ;
22405 int res1 = 0 ;
22406 void *argp2 = 0 ;
22407 int res2 = 0 ;
22408 void *argp3 = 0 ;
22409 int res3 = 0 ;
22410 PyObject * obj0 = 0 ;
22411 PyObject * obj1 = 0 ;
22412 PyObject * obj2 = 0 ;
22413 char * kwnames[] = {
22414 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22415 };
22416
22417 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22418 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22419 if (!SWIG_IsOK(res1)) {
22420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22421 }
22422 arg1 = reinterpret_cast< wxImageList * >(argp1);
22423 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22424 if (!SWIG_IsOK(res2)) {
22425 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22426 }
22427 if (!argp2) {
22428 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22429 }
22430 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22431 if (obj2) {
22432 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22433 if (!SWIG_IsOK(res3)) {
22434 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22435 }
22436 if (!argp3) {
22437 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22438 }
22439 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22440 }
22441 {
22442 PyThreadState* __tstate = wxPyBeginAllowThreads();
22443 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22444 wxPyEndAllowThreads(__tstate);
22445 if (PyErr_Occurred()) SWIG_fail;
22446 }
22447 resultobj = SWIG_From_int(static_cast< int >(result));
22448 return resultobj;
22449 fail:
22450 return NULL;
22451 }
22452
22453
22454 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22455 PyObject *resultobj = 0;
22456 wxImageList *arg1 = (wxImageList *) 0 ;
22457 wxBitmap *arg2 = 0 ;
22458 wxColour *arg3 = 0 ;
22459 int result;
22460 void *argp1 = 0 ;
22461 int res1 = 0 ;
22462 void *argp2 = 0 ;
22463 int res2 = 0 ;
22464 wxColour temp3 ;
22465 PyObject * obj0 = 0 ;
22466 PyObject * obj1 = 0 ;
22467 PyObject * obj2 = 0 ;
22468 char * kwnames[] = {
22469 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22470 };
22471
22472 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22473 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22474 if (!SWIG_IsOK(res1)) {
22475 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22476 }
22477 arg1 = reinterpret_cast< wxImageList * >(argp1);
22478 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22479 if (!SWIG_IsOK(res2)) {
22480 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22481 }
22482 if (!argp2) {
22483 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22484 }
22485 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22486 {
22487 arg3 = &temp3;
22488 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22489 }
22490 {
22491 PyThreadState* __tstate = wxPyBeginAllowThreads();
22492 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22493 wxPyEndAllowThreads(__tstate);
22494 if (PyErr_Occurred()) SWIG_fail;
22495 }
22496 resultobj = SWIG_From_int(static_cast< int >(result));
22497 return resultobj;
22498 fail:
22499 return NULL;
22500 }
22501
22502
22503 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22504 PyObject *resultobj = 0;
22505 wxImageList *arg1 = (wxImageList *) 0 ;
22506 wxIcon *arg2 = 0 ;
22507 int result;
22508 void *argp1 = 0 ;
22509 int res1 = 0 ;
22510 void *argp2 = 0 ;
22511 int res2 = 0 ;
22512 PyObject * obj0 = 0 ;
22513 PyObject * obj1 = 0 ;
22514 char * kwnames[] = {
22515 (char *) "self",(char *) "icon", NULL
22516 };
22517
22518 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22519 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22520 if (!SWIG_IsOK(res1)) {
22521 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22522 }
22523 arg1 = reinterpret_cast< wxImageList * >(argp1);
22524 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22525 if (!SWIG_IsOK(res2)) {
22526 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22527 }
22528 if (!argp2) {
22529 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22530 }
22531 arg2 = reinterpret_cast< wxIcon * >(argp2);
22532 {
22533 PyThreadState* __tstate = wxPyBeginAllowThreads();
22534 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22535 wxPyEndAllowThreads(__tstate);
22536 if (PyErr_Occurred()) SWIG_fail;
22537 }
22538 resultobj = SWIG_From_int(static_cast< int >(result));
22539 return resultobj;
22540 fail:
22541 return NULL;
22542 }
22543
22544
22545 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22546 PyObject *resultobj = 0;
22547 wxImageList *arg1 = (wxImageList *) 0 ;
22548 int arg2 ;
22549 SwigValueWrapper<wxBitmap > result;
22550 void *argp1 = 0 ;
22551 int res1 = 0 ;
22552 int val2 ;
22553 int ecode2 = 0 ;
22554 PyObject * obj0 = 0 ;
22555 PyObject * obj1 = 0 ;
22556 char * kwnames[] = {
22557 (char *) "self",(char *) "index", NULL
22558 };
22559
22560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22562 if (!SWIG_IsOK(res1)) {
22563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22564 }
22565 arg1 = reinterpret_cast< wxImageList * >(argp1);
22566 ecode2 = SWIG_AsVal_int(obj1, &val2);
22567 if (!SWIG_IsOK(ecode2)) {
22568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22569 }
22570 arg2 = static_cast< int >(val2);
22571 {
22572 PyThreadState* __tstate = wxPyBeginAllowThreads();
22573 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22574 wxPyEndAllowThreads(__tstate);
22575 if (PyErr_Occurred()) SWIG_fail;
22576 }
22577 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22578 return resultobj;
22579 fail:
22580 return NULL;
22581 }
22582
22583
22584 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22585 PyObject *resultobj = 0;
22586 wxImageList *arg1 = (wxImageList *) 0 ;
22587 int arg2 ;
22588 wxIcon result;
22589 void *argp1 = 0 ;
22590 int res1 = 0 ;
22591 int val2 ;
22592 int ecode2 = 0 ;
22593 PyObject * obj0 = 0 ;
22594 PyObject * obj1 = 0 ;
22595 char * kwnames[] = {
22596 (char *) "self",(char *) "index", NULL
22597 };
22598
22599 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22600 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22601 if (!SWIG_IsOK(res1)) {
22602 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22603 }
22604 arg1 = reinterpret_cast< wxImageList * >(argp1);
22605 ecode2 = SWIG_AsVal_int(obj1, &val2);
22606 if (!SWIG_IsOK(ecode2)) {
22607 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22608 }
22609 arg2 = static_cast< int >(val2);
22610 {
22611 PyThreadState* __tstate = wxPyBeginAllowThreads();
22612 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22613 wxPyEndAllowThreads(__tstate);
22614 if (PyErr_Occurred()) SWIG_fail;
22615 }
22616 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22617 return resultobj;
22618 fail:
22619 return NULL;
22620 }
22621
22622
22623 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22624 PyObject *resultobj = 0;
22625 wxImageList *arg1 = (wxImageList *) 0 ;
22626 int arg2 ;
22627 wxBitmap *arg3 = 0 ;
22628 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22629 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22630 bool result;
22631 void *argp1 = 0 ;
22632 int res1 = 0 ;
22633 int val2 ;
22634 int ecode2 = 0 ;
22635 void *argp3 = 0 ;
22636 int res3 = 0 ;
22637 void *argp4 = 0 ;
22638 int res4 = 0 ;
22639 PyObject * obj0 = 0 ;
22640 PyObject * obj1 = 0 ;
22641 PyObject * obj2 = 0 ;
22642 PyObject * obj3 = 0 ;
22643 char * kwnames[] = {
22644 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22645 };
22646
22647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22649 if (!SWIG_IsOK(res1)) {
22650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22651 }
22652 arg1 = reinterpret_cast< wxImageList * >(argp1);
22653 ecode2 = SWIG_AsVal_int(obj1, &val2);
22654 if (!SWIG_IsOK(ecode2)) {
22655 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22656 }
22657 arg2 = static_cast< int >(val2);
22658 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22659 if (!SWIG_IsOK(res3)) {
22660 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22661 }
22662 if (!argp3) {
22663 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22664 }
22665 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22666 if (obj3) {
22667 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22668 if (!SWIG_IsOK(res4)) {
22669 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22670 }
22671 if (!argp4) {
22672 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22673 }
22674 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22675 }
22676 {
22677 PyThreadState* __tstate = wxPyBeginAllowThreads();
22678 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22679 wxPyEndAllowThreads(__tstate);
22680 if (PyErr_Occurred()) SWIG_fail;
22681 }
22682 {
22683 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22684 }
22685 return resultobj;
22686 fail:
22687 return NULL;
22688 }
22689
22690
22691 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22692 PyObject *resultobj = 0;
22693 wxImageList *arg1 = (wxImageList *) 0 ;
22694 int arg2 ;
22695 wxDC *arg3 = 0 ;
22696 int arg4 ;
22697 int arg5 ;
22698 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22699 bool arg7 = (bool) (bool)false ;
22700 bool result;
22701 void *argp1 = 0 ;
22702 int res1 = 0 ;
22703 int val2 ;
22704 int ecode2 = 0 ;
22705 void *argp3 = 0 ;
22706 int res3 = 0 ;
22707 int val4 ;
22708 int ecode4 = 0 ;
22709 int val5 ;
22710 int ecode5 = 0 ;
22711 int val6 ;
22712 int ecode6 = 0 ;
22713 bool val7 ;
22714 int ecode7 = 0 ;
22715 PyObject * obj0 = 0 ;
22716 PyObject * obj1 = 0 ;
22717 PyObject * obj2 = 0 ;
22718 PyObject * obj3 = 0 ;
22719 PyObject * obj4 = 0 ;
22720 PyObject * obj5 = 0 ;
22721 PyObject * obj6 = 0 ;
22722 char * kwnames[] = {
22723 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22724 };
22725
22726 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22727 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22728 if (!SWIG_IsOK(res1)) {
22729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22730 }
22731 arg1 = reinterpret_cast< wxImageList * >(argp1);
22732 ecode2 = SWIG_AsVal_int(obj1, &val2);
22733 if (!SWIG_IsOK(ecode2)) {
22734 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22735 }
22736 arg2 = static_cast< int >(val2);
22737 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22738 if (!SWIG_IsOK(res3)) {
22739 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22740 }
22741 if (!argp3) {
22742 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22743 }
22744 arg3 = reinterpret_cast< wxDC * >(argp3);
22745 ecode4 = SWIG_AsVal_int(obj3, &val4);
22746 if (!SWIG_IsOK(ecode4)) {
22747 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22748 }
22749 arg4 = static_cast< int >(val4);
22750 ecode5 = SWIG_AsVal_int(obj4, &val5);
22751 if (!SWIG_IsOK(ecode5)) {
22752 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22753 }
22754 arg5 = static_cast< int >(val5);
22755 if (obj5) {
22756 ecode6 = SWIG_AsVal_int(obj5, &val6);
22757 if (!SWIG_IsOK(ecode6)) {
22758 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22759 }
22760 arg6 = static_cast< int >(val6);
22761 }
22762 if (obj6) {
22763 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22764 if (!SWIG_IsOK(ecode7)) {
22765 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22766 }
22767 arg7 = static_cast< bool >(val7);
22768 }
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
22771 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 {
22776 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22777 }
22778 return resultobj;
22779 fail:
22780 return NULL;
22781 }
22782
22783
22784 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22785 PyObject *resultobj = 0;
22786 wxImageList *arg1 = (wxImageList *) 0 ;
22787 int result;
22788 void *argp1 = 0 ;
22789 int res1 = 0 ;
22790 PyObject *swig_obj[1] ;
22791
22792 if (!args) SWIG_fail;
22793 swig_obj[0] = args;
22794 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22795 if (!SWIG_IsOK(res1)) {
22796 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22797 }
22798 arg1 = reinterpret_cast< wxImageList * >(argp1);
22799 {
22800 PyThreadState* __tstate = wxPyBeginAllowThreads();
22801 result = (int)(arg1)->GetImageCount();
22802 wxPyEndAllowThreads(__tstate);
22803 if (PyErr_Occurred()) SWIG_fail;
22804 }
22805 resultobj = SWIG_From_int(static_cast< int >(result));
22806 return resultobj;
22807 fail:
22808 return NULL;
22809 }
22810
22811
22812 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22813 PyObject *resultobj = 0;
22814 wxImageList *arg1 = (wxImageList *) 0 ;
22815 int arg2 ;
22816 bool result;
22817 void *argp1 = 0 ;
22818 int res1 = 0 ;
22819 int val2 ;
22820 int ecode2 = 0 ;
22821 PyObject * obj0 = 0 ;
22822 PyObject * obj1 = 0 ;
22823 char * kwnames[] = {
22824 (char *) "self",(char *) "index", NULL
22825 };
22826
22827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22829 if (!SWIG_IsOK(res1)) {
22830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22831 }
22832 arg1 = reinterpret_cast< wxImageList * >(argp1);
22833 ecode2 = SWIG_AsVal_int(obj1, &val2);
22834 if (!SWIG_IsOK(ecode2)) {
22835 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22836 }
22837 arg2 = static_cast< int >(val2);
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (bool)(arg1)->Remove(arg2);
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 {
22845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22846 }
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22854 PyObject *resultobj = 0;
22855 wxImageList *arg1 = (wxImageList *) 0 ;
22856 bool result;
22857 void *argp1 = 0 ;
22858 int res1 = 0 ;
22859 PyObject *swig_obj[1] ;
22860
22861 if (!args) SWIG_fail;
22862 swig_obj[0] = args;
22863 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22864 if (!SWIG_IsOK(res1)) {
22865 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22866 }
22867 arg1 = reinterpret_cast< wxImageList * >(argp1);
22868 {
22869 PyThreadState* __tstate = wxPyBeginAllowThreads();
22870 result = (bool)(arg1)->RemoveAll();
22871 wxPyEndAllowThreads(__tstate);
22872 if (PyErr_Occurred()) SWIG_fail;
22873 }
22874 {
22875 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22876 }
22877 return resultobj;
22878 fail:
22879 return NULL;
22880 }
22881
22882
22883 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22884 PyObject *resultobj = 0;
22885 wxImageList *arg1 = (wxImageList *) 0 ;
22886 int arg2 ;
22887 int *arg3 = 0 ;
22888 int *arg4 = 0 ;
22889 void *argp1 = 0 ;
22890 int res1 = 0 ;
22891 int val2 ;
22892 int ecode2 = 0 ;
22893 int temp3 ;
22894 int res3 = SWIG_TMPOBJ ;
22895 int temp4 ;
22896 int res4 = SWIG_TMPOBJ ;
22897 PyObject * obj0 = 0 ;
22898 PyObject * obj1 = 0 ;
22899 char * kwnames[] = {
22900 (char *) "self",(char *) "index", NULL
22901 };
22902
22903 arg3 = &temp3;
22904 arg4 = &temp4;
22905 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22906 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22907 if (!SWIG_IsOK(res1)) {
22908 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22909 }
22910 arg1 = reinterpret_cast< wxImageList * >(argp1);
22911 ecode2 = SWIG_AsVal_int(obj1, &val2);
22912 if (!SWIG_IsOK(ecode2)) {
22913 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22914 }
22915 arg2 = static_cast< int >(val2);
22916 {
22917 PyThreadState* __tstate = wxPyBeginAllowThreads();
22918 (arg1)->GetSize(arg2,*arg3,*arg4);
22919 wxPyEndAllowThreads(__tstate);
22920 if (PyErr_Occurred()) SWIG_fail;
22921 }
22922 resultobj = SWIG_Py_Void();
22923 if (SWIG_IsTmpObj(res3)) {
22924 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22925 } else {
22926 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22927 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22928 }
22929 if (SWIG_IsTmpObj(res4)) {
22930 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22931 } else {
22932 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22934 }
22935 return resultobj;
22936 fail:
22937 return NULL;
22938 }
22939
22940
22941 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22942 PyObject *obj;
22943 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22944 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22945 return SWIG_Py_Void();
22946 }
22947
22948 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22949 return SWIG_Python_InitShadowInstance(args);
22950 }
22951
22952 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22953 PyObject *resultobj = 0;
22954 wxStockGDI *result = 0 ;
22955
22956 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22957 {
22958 PyThreadState* __tstate = wxPyBeginAllowThreads();
22959 result = (wxStockGDI *)new wxStockGDI();
22960 wxPyEndAllowThreads(__tstate);
22961 if (PyErr_Occurred()) SWIG_fail;
22962 }
22963 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22964 return resultobj;
22965 fail:
22966 return NULL;
22967 }
22968
22969
22970 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22971 PyObject *resultobj = 0;
22972 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22973 void *argp1 = 0 ;
22974 int res1 = 0 ;
22975 PyObject *swig_obj[1] ;
22976
22977 if (!args) SWIG_fail;
22978 swig_obj[0] = args;
22979 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22980 if (!SWIG_IsOK(res1)) {
22981 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22982 }
22983 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22984 {
22985 PyThreadState* __tstate = wxPyBeginAllowThreads();
22986 delete arg1;
22987
22988 wxPyEndAllowThreads(__tstate);
22989 if (PyErr_Occurred()) SWIG_fail;
22990 }
22991 resultobj = SWIG_Py_Void();
22992 return resultobj;
22993 fail:
22994 return NULL;
22995 }
22996
22997
22998 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22999 PyObject *resultobj = 0;
23000
23001 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
23002 {
23003 PyThreadState* __tstate = wxPyBeginAllowThreads();
23004 wxStockGDI::DeleteAll();
23005 wxPyEndAllowThreads(__tstate);
23006 if (PyErr_Occurred()) SWIG_fail;
23007 }
23008 resultobj = SWIG_Py_Void();
23009 return resultobj;
23010 fail:
23011 return NULL;
23012 }
23013
23014
23015 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23016 PyObject *resultobj = 0;
23017 wxStockGDI *result = 0 ;
23018
23019 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
23020 {
23021 PyThreadState* __tstate = wxPyBeginAllowThreads();
23022 {
23023 wxStockGDI &_result_ref = wxStockGDI::instance();
23024 result = (wxStockGDI *) &_result_ref;
23025 }
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23037 PyObject *resultobj = 0;
23038 wxStockGDI::Item arg1 ;
23039 wxBrush *result = 0 ;
23040 int val1 ;
23041 int ecode1 = 0 ;
23042 PyObject * obj0 = 0 ;
23043 char * kwnames[] = {
23044 (char *) "item", NULL
23045 };
23046
23047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23048 ecode1 = SWIG_AsVal_int(obj0, &val1);
23049 if (!SWIG_IsOK(ecode1)) {
23050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23051 }
23052 arg1 = static_cast< wxStockGDI::Item >(val1);
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
23055 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23056 wxPyEndAllowThreads(__tstate);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 }
23059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23067 PyObject *resultobj = 0;
23068 wxStockGDI::Item arg1 ;
23069 wxColour *result = 0 ;
23070 int val1 ;
23071 int ecode1 = 0 ;
23072 PyObject * obj0 = 0 ;
23073 char * kwnames[] = {
23074 (char *) "item", NULL
23075 };
23076
23077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23078 ecode1 = SWIG_AsVal_int(obj0, &val1);
23079 if (!SWIG_IsOK(ecode1)) {
23080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23081 }
23082 arg1 = static_cast< wxStockGDI::Item >(val1);
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 result = (wxColour *)wxStockGDI::GetColour(arg1);
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj = 0;
23098 wxStockGDI::Item arg1 ;
23099 wxCursor *result = 0 ;
23100 int val1 ;
23101 int ecode1 = 0 ;
23102 PyObject * obj0 = 0 ;
23103 char * kwnames[] = {
23104 (char *) "item", NULL
23105 };
23106
23107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23108 ecode1 = SWIG_AsVal_int(obj0, &val1);
23109 if (!SWIG_IsOK(ecode1)) {
23110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23111 }
23112 arg1 = static_cast< wxStockGDI::Item >(val1);
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23116 wxPyEndAllowThreads(__tstate);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 }
23119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23120 return resultobj;
23121 fail:
23122 return NULL;
23123 }
23124
23125
23126 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj = 0;
23128 wxStockGDI::Item arg1 ;
23129 wxPen *result = 0 ;
23130 int val1 ;
23131 int ecode1 = 0 ;
23132 PyObject * obj0 = 0 ;
23133 char * kwnames[] = {
23134 (char *) "item", NULL
23135 };
23136
23137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23138 ecode1 = SWIG_AsVal_int(obj0, &val1);
23139 if (!SWIG_IsOK(ecode1)) {
23140 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23141 }
23142 arg1 = static_cast< wxStockGDI::Item >(val1);
23143 {
23144 PyThreadState* __tstate = wxPyBeginAllowThreads();
23145 result = (wxPen *)wxStockGDI::GetPen(arg1);
23146 wxPyEndAllowThreads(__tstate);
23147 if (PyErr_Occurred()) SWIG_fail;
23148 }
23149 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23150 return resultobj;
23151 fail:
23152 return NULL;
23153 }
23154
23155
23156 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23157 PyObject *resultobj = 0;
23158 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23159 wxStockGDI::Item arg2 ;
23160 wxFont *result = 0 ;
23161 void *argp1 = 0 ;
23162 int res1 = 0 ;
23163 int val2 ;
23164 int ecode2 = 0 ;
23165 PyObject * obj0 = 0 ;
23166 PyObject * obj1 = 0 ;
23167 char * kwnames[] = {
23168 (char *) "self",(char *) "item", NULL
23169 };
23170
23171 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23172 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23173 if (!SWIG_IsOK(res1)) {
23174 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23175 }
23176 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23177 ecode2 = SWIG_AsVal_int(obj1, &val2);
23178 if (!SWIG_IsOK(ecode2)) {
23179 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23180 }
23181 arg2 = static_cast< wxStockGDI::Item >(val2);
23182 {
23183 PyThreadState* __tstate = wxPyBeginAllowThreads();
23184 result = (wxFont *)(arg1)->GetFont(arg2);
23185 wxPyEndAllowThreads(__tstate);
23186 if (PyErr_Occurred()) SWIG_fail;
23187 }
23188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23189 return resultobj;
23190 fail:
23191 return NULL;
23192 }
23193
23194
23195 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23196 PyObject *obj;
23197 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23198 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23199 return SWIG_Py_Void();
23200 }
23201
23202 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23203 return SWIG_Python_InitShadowInstance(args);
23204 }
23205
23206 SWIGINTERN int NullBitmap_set(PyObject *) {
23207 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23208 return 1;
23209 }
23210
23211
23212 SWIGINTERN PyObject *NullBitmap_get(void) {
23213 PyObject *pyobj = 0;
23214
23215 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23216 return pyobj;
23217 }
23218
23219
23220 SWIGINTERN int NullIcon_set(PyObject *) {
23221 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23222 return 1;
23223 }
23224
23225
23226 SWIGINTERN PyObject *NullIcon_get(void) {
23227 PyObject *pyobj = 0;
23228
23229 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23230 return pyobj;
23231 }
23232
23233
23234 SWIGINTERN int NullCursor_set(PyObject *) {
23235 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23236 return 1;
23237 }
23238
23239
23240 SWIGINTERN PyObject *NullCursor_get(void) {
23241 PyObject *pyobj = 0;
23242
23243 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23244 return pyobj;
23245 }
23246
23247
23248 SWIGINTERN int NullPen_set(PyObject *) {
23249 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23250 return 1;
23251 }
23252
23253
23254 SWIGINTERN PyObject *NullPen_get(void) {
23255 PyObject *pyobj = 0;
23256
23257 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23258 return pyobj;
23259 }
23260
23261
23262 SWIGINTERN int NullBrush_set(PyObject *) {
23263 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23264 return 1;
23265 }
23266
23267
23268 SWIGINTERN PyObject *NullBrush_get(void) {
23269 PyObject *pyobj = 0;
23270
23271 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23272 return pyobj;
23273 }
23274
23275
23276 SWIGINTERN int NullPalette_set(PyObject *) {
23277 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23278 return 1;
23279 }
23280
23281
23282 SWIGINTERN PyObject *NullPalette_get(void) {
23283 PyObject *pyobj = 0;
23284
23285 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23286 return pyobj;
23287 }
23288
23289
23290 SWIGINTERN int NullFont_set(PyObject *) {
23291 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23292 return 1;
23293 }
23294
23295
23296 SWIGINTERN PyObject *NullFont_get(void) {
23297 PyObject *pyobj = 0;
23298
23299 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23300 return pyobj;
23301 }
23302
23303
23304 SWIGINTERN int NullColour_set(PyObject *) {
23305 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23306 return 1;
23307 }
23308
23309
23310 SWIGINTERN PyObject *NullColour_get(void) {
23311 PyObject *pyobj = 0;
23312
23313 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23314 return pyobj;
23315 }
23316
23317
23318 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23319 PyObject *resultobj = 0;
23320 wxGDIObjListBase *result = 0 ;
23321
23322 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23323 {
23324 PyThreadState* __tstate = wxPyBeginAllowThreads();
23325 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23326 wxPyEndAllowThreads(__tstate);
23327 if (PyErr_Occurred()) SWIG_fail;
23328 }
23329 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23330 return resultobj;
23331 fail:
23332 return NULL;
23333 }
23334
23335
23336 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23337 PyObject *resultobj = 0;
23338 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23339 void *argp1 = 0 ;
23340 int res1 = 0 ;
23341 PyObject *swig_obj[1] ;
23342
23343 if (!args) SWIG_fail;
23344 swig_obj[0] = args;
23345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23346 if (!SWIG_IsOK(res1)) {
23347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23348 }
23349 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23350 {
23351 PyThreadState* __tstate = wxPyBeginAllowThreads();
23352 delete arg1;
23353
23354 wxPyEndAllowThreads(__tstate);
23355 if (PyErr_Occurred()) SWIG_fail;
23356 }
23357 resultobj = SWIG_Py_Void();
23358 return resultobj;
23359 fail:
23360 return NULL;
23361 }
23362
23363
23364 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23365 PyObject *obj;
23366 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23367 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23368 return SWIG_Py_Void();
23369 }
23370
23371 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23372 return SWIG_Python_InitShadowInstance(args);
23373 }
23374
23375 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23376 PyObject *resultobj = 0;
23377 wxPenList *arg1 = (wxPenList *) 0 ;
23378 wxColour *arg2 = 0 ;
23379 int arg3 ;
23380 int arg4 ;
23381 wxPen *result = 0 ;
23382 void *argp1 = 0 ;
23383 int res1 = 0 ;
23384 wxColour temp2 ;
23385 int val3 ;
23386 int ecode3 = 0 ;
23387 int val4 ;
23388 int ecode4 = 0 ;
23389 PyObject * obj0 = 0 ;
23390 PyObject * obj1 = 0 ;
23391 PyObject * obj2 = 0 ;
23392 PyObject * obj3 = 0 ;
23393 char * kwnames[] = {
23394 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23395 };
23396
23397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23399 if (!SWIG_IsOK(res1)) {
23400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23401 }
23402 arg1 = reinterpret_cast< wxPenList * >(argp1);
23403 {
23404 arg2 = &temp2;
23405 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23406 }
23407 ecode3 = SWIG_AsVal_int(obj2, &val3);
23408 if (!SWIG_IsOK(ecode3)) {
23409 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23410 }
23411 arg3 = static_cast< int >(val3);
23412 ecode4 = SWIG_AsVal_int(obj3, &val4);
23413 if (!SWIG_IsOK(ecode4)) {
23414 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23415 }
23416 arg4 = static_cast< int >(val4);
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23424 return resultobj;
23425 fail:
23426 return NULL;
23427 }
23428
23429
23430 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23431 PyObject *resultobj = 0;
23432 wxPenList *arg1 = (wxPenList *) 0 ;
23433 wxPen *arg2 = (wxPen *) 0 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 void *argp2 = 0 ;
23437 int res2 = 0 ;
23438 PyObject * obj0 = 0 ;
23439 PyObject * obj1 = 0 ;
23440 char * kwnames[] = {
23441 (char *) "self",(char *) "pen", NULL
23442 };
23443
23444 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23445 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23446 if (!SWIG_IsOK(res1)) {
23447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23448 }
23449 arg1 = reinterpret_cast< wxPenList * >(argp1);
23450 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23451 if (!SWIG_IsOK(res2)) {
23452 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23453 }
23454 arg2 = reinterpret_cast< wxPen * >(argp2);
23455 {
23456 PyThreadState* __tstate = wxPyBeginAllowThreads();
23457 (arg1)->AddPen(arg2);
23458 wxPyEndAllowThreads(__tstate);
23459 if (PyErr_Occurred()) SWIG_fail;
23460 }
23461 resultobj = SWIG_Py_Void();
23462 return resultobj;
23463 fail:
23464 return NULL;
23465 }
23466
23467
23468 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23469 PyObject *resultobj = 0;
23470 wxPenList *arg1 = (wxPenList *) 0 ;
23471 wxPen *arg2 = (wxPen *) 0 ;
23472 void *argp1 = 0 ;
23473 int res1 = 0 ;
23474 void *argp2 = 0 ;
23475 int res2 = 0 ;
23476 PyObject * obj0 = 0 ;
23477 PyObject * obj1 = 0 ;
23478 char * kwnames[] = {
23479 (char *) "self",(char *) "pen", NULL
23480 };
23481
23482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23484 if (!SWIG_IsOK(res1)) {
23485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23486 }
23487 arg1 = reinterpret_cast< wxPenList * >(argp1);
23488 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23489 if (!SWIG_IsOK(res2)) {
23490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23491 }
23492 arg2 = reinterpret_cast< wxPen * >(argp2);
23493 {
23494 PyThreadState* __tstate = wxPyBeginAllowThreads();
23495 (arg1)->RemovePen(arg2);
23496 wxPyEndAllowThreads(__tstate);
23497 if (PyErr_Occurred()) SWIG_fail;
23498 }
23499 resultobj = SWIG_Py_Void();
23500 return resultobj;
23501 fail:
23502 return NULL;
23503 }
23504
23505
23506 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23507 PyObject *obj;
23508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23509 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23510 return SWIG_Py_Void();
23511 }
23512
23513 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23514 PyObject *resultobj = 0;
23515 wxBrushList *arg1 = (wxBrushList *) 0 ;
23516 wxColour *arg2 = 0 ;
23517 int arg3 = (int) wxSOLID ;
23518 wxBrush *result = 0 ;
23519 void *argp1 = 0 ;
23520 int res1 = 0 ;
23521 wxColour temp2 ;
23522 int val3 ;
23523 int ecode3 = 0 ;
23524 PyObject * obj0 = 0 ;
23525 PyObject * obj1 = 0 ;
23526 PyObject * obj2 = 0 ;
23527 char * kwnames[] = {
23528 (char *) "self",(char *) "colour",(char *) "style", NULL
23529 };
23530
23531 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23532 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23533 if (!SWIG_IsOK(res1)) {
23534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23535 }
23536 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23537 {
23538 arg2 = &temp2;
23539 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23540 }
23541 if (obj2) {
23542 ecode3 = SWIG_AsVal_int(obj2, &val3);
23543 if (!SWIG_IsOK(ecode3)) {
23544 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23545 }
23546 arg3 = static_cast< int >(val3);
23547 }
23548 {
23549 PyThreadState* __tstate = wxPyBeginAllowThreads();
23550 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23551 wxPyEndAllowThreads(__tstate);
23552 if (PyErr_Occurred()) SWIG_fail;
23553 }
23554 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23555 return resultobj;
23556 fail:
23557 return NULL;
23558 }
23559
23560
23561 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23562 PyObject *resultobj = 0;
23563 wxBrushList *arg1 = (wxBrushList *) 0 ;
23564 wxBrush *arg2 = (wxBrush *) 0 ;
23565 void *argp1 = 0 ;
23566 int res1 = 0 ;
23567 void *argp2 = 0 ;
23568 int res2 = 0 ;
23569 PyObject * obj0 = 0 ;
23570 PyObject * obj1 = 0 ;
23571 char * kwnames[] = {
23572 (char *) "self",(char *) "brush", NULL
23573 };
23574
23575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23577 if (!SWIG_IsOK(res1)) {
23578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23579 }
23580 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23581 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23582 if (!SWIG_IsOK(res2)) {
23583 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23584 }
23585 arg2 = reinterpret_cast< wxBrush * >(argp2);
23586 {
23587 PyThreadState* __tstate = wxPyBeginAllowThreads();
23588 (arg1)->AddBrush(arg2);
23589 wxPyEndAllowThreads(__tstate);
23590 if (PyErr_Occurred()) SWIG_fail;
23591 }
23592 resultobj = SWIG_Py_Void();
23593 return resultobj;
23594 fail:
23595 return NULL;
23596 }
23597
23598
23599 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23600 PyObject *resultobj = 0;
23601 wxBrushList *arg1 = (wxBrushList *) 0 ;
23602 wxBrush *arg2 = (wxBrush *) 0 ;
23603 void *argp1 = 0 ;
23604 int res1 = 0 ;
23605 void *argp2 = 0 ;
23606 int res2 = 0 ;
23607 PyObject * obj0 = 0 ;
23608 PyObject * obj1 = 0 ;
23609 char * kwnames[] = {
23610 (char *) "self",(char *) "brush", NULL
23611 };
23612
23613 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23614 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23615 if (!SWIG_IsOK(res1)) {
23616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23617 }
23618 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23619 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23620 if (!SWIG_IsOK(res2)) {
23621 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23622 }
23623 arg2 = reinterpret_cast< wxBrush * >(argp2);
23624 {
23625 PyThreadState* __tstate = wxPyBeginAllowThreads();
23626 (arg1)->RemoveBrush(arg2);
23627 wxPyEndAllowThreads(__tstate);
23628 if (PyErr_Occurred()) SWIG_fail;
23629 }
23630 resultobj = SWIG_Py_Void();
23631 return resultobj;
23632 fail:
23633 return NULL;
23634 }
23635
23636
23637 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23638 PyObject *obj;
23639 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23640 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23641 return SWIG_Py_Void();
23642 }
23643
23644 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23645 PyObject *resultobj = 0;
23646 wxFontList *arg1 = (wxFontList *) 0 ;
23647 int arg2 ;
23648 int arg3 ;
23649 int arg4 ;
23650 int arg5 ;
23651 bool arg6 = (bool) false ;
23652 wxString const &arg7_defvalue = wxPyEmptyString ;
23653 wxString *arg7 = (wxString *) &arg7_defvalue ;
23654 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23655 wxFont *result = 0 ;
23656 void *argp1 = 0 ;
23657 int res1 = 0 ;
23658 int val2 ;
23659 int ecode2 = 0 ;
23660 int val3 ;
23661 int ecode3 = 0 ;
23662 int val4 ;
23663 int ecode4 = 0 ;
23664 int val5 ;
23665 int ecode5 = 0 ;
23666 bool val6 ;
23667 int ecode6 = 0 ;
23668 bool temp7 = false ;
23669 int val8 ;
23670 int ecode8 = 0 ;
23671 PyObject * obj0 = 0 ;
23672 PyObject * obj1 = 0 ;
23673 PyObject * obj2 = 0 ;
23674 PyObject * obj3 = 0 ;
23675 PyObject * obj4 = 0 ;
23676 PyObject * obj5 = 0 ;
23677 PyObject * obj6 = 0 ;
23678 PyObject * obj7 = 0 ;
23679 char * kwnames[] = {
23680 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23681 };
23682
23683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23685 if (!SWIG_IsOK(res1)) {
23686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23687 }
23688 arg1 = reinterpret_cast< wxFontList * >(argp1);
23689 ecode2 = SWIG_AsVal_int(obj1, &val2);
23690 if (!SWIG_IsOK(ecode2)) {
23691 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23692 }
23693 arg2 = static_cast< int >(val2);
23694 ecode3 = SWIG_AsVal_int(obj2, &val3);
23695 if (!SWIG_IsOK(ecode3)) {
23696 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23697 }
23698 arg3 = static_cast< int >(val3);
23699 ecode4 = SWIG_AsVal_int(obj3, &val4);
23700 if (!SWIG_IsOK(ecode4)) {
23701 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23702 }
23703 arg4 = static_cast< int >(val4);
23704 ecode5 = SWIG_AsVal_int(obj4, &val5);
23705 if (!SWIG_IsOK(ecode5)) {
23706 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23707 }
23708 arg5 = static_cast< int >(val5);
23709 if (obj5) {
23710 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23711 if (!SWIG_IsOK(ecode6)) {
23712 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23713 }
23714 arg6 = static_cast< bool >(val6);
23715 }
23716 if (obj6) {
23717 {
23718 arg7 = wxString_in_helper(obj6);
23719 if (arg7 == NULL) SWIG_fail;
23720 temp7 = true;
23721 }
23722 }
23723 if (obj7) {
23724 ecode8 = SWIG_AsVal_int(obj7, &val8);
23725 if (!SWIG_IsOK(ecode8)) {
23726 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23727 }
23728 arg8 = static_cast< wxFontEncoding >(val8);
23729 }
23730 {
23731 PyThreadState* __tstate = wxPyBeginAllowThreads();
23732 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23733 wxPyEndAllowThreads(__tstate);
23734 if (PyErr_Occurred()) SWIG_fail;
23735 }
23736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23737 {
23738 if (temp7)
23739 delete arg7;
23740 }
23741 return resultobj;
23742 fail:
23743 {
23744 if (temp7)
23745 delete arg7;
23746 }
23747 return NULL;
23748 }
23749
23750
23751 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23752 PyObject *resultobj = 0;
23753 wxFontList *arg1 = (wxFontList *) 0 ;
23754 wxFont *arg2 = (wxFont *) 0 ;
23755 void *argp1 = 0 ;
23756 int res1 = 0 ;
23757 void *argp2 = 0 ;
23758 int res2 = 0 ;
23759 PyObject * obj0 = 0 ;
23760 PyObject * obj1 = 0 ;
23761 char * kwnames[] = {
23762 (char *) "self",(char *) "font", NULL
23763 };
23764
23765 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23766 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23767 if (!SWIG_IsOK(res1)) {
23768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23769 }
23770 arg1 = reinterpret_cast< wxFontList * >(argp1);
23771 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23772 if (!SWIG_IsOK(res2)) {
23773 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23774 }
23775 arg2 = reinterpret_cast< wxFont * >(argp2);
23776 {
23777 PyThreadState* __tstate = wxPyBeginAllowThreads();
23778 (arg1)->AddFont(arg2);
23779 wxPyEndAllowThreads(__tstate);
23780 if (PyErr_Occurred()) SWIG_fail;
23781 }
23782 resultobj = SWIG_Py_Void();
23783 return resultobj;
23784 fail:
23785 return NULL;
23786 }
23787
23788
23789 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23790 PyObject *resultobj = 0;
23791 wxFontList *arg1 = (wxFontList *) 0 ;
23792 wxFont *arg2 = (wxFont *) 0 ;
23793 void *argp1 = 0 ;
23794 int res1 = 0 ;
23795 void *argp2 = 0 ;
23796 int res2 = 0 ;
23797 PyObject * obj0 = 0 ;
23798 PyObject * obj1 = 0 ;
23799 char * kwnames[] = {
23800 (char *) "self",(char *) "font", NULL
23801 };
23802
23803 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23804 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23805 if (!SWIG_IsOK(res1)) {
23806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23807 }
23808 arg1 = reinterpret_cast< wxFontList * >(argp1);
23809 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23810 if (!SWIG_IsOK(res2)) {
23811 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23812 }
23813 arg2 = reinterpret_cast< wxFont * >(argp2);
23814 {
23815 PyThreadState* __tstate = wxPyBeginAllowThreads();
23816 (arg1)->RemoveFont(arg2);
23817 wxPyEndAllowThreads(__tstate);
23818 if (PyErr_Occurred()) SWIG_fail;
23819 }
23820 resultobj = SWIG_Py_Void();
23821 return resultobj;
23822 fail:
23823 return NULL;
23824 }
23825
23826
23827 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23828 PyObject *obj;
23829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23830 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23831 return SWIG_Py_Void();
23832 }
23833
23834 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23835 PyObject *resultobj = 0;
23836 wxColourDatabase *result = 0 ;
23837
23838 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23839 {
23840 if (!wxPyCheckForApp()) SWIG_fail;
23841 PyThreadState* __tstate = wxPyBeginAllowThreads();
23842 result = (wxColourDatabase *)new wxColourDatabase();
23843 wxPyEndAllowThreads(__tstate);
23844 if (PyErr_Occurred()) SWIG_fail;
23845 }
23846 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23847 return resultobj;
23848 fail:
23849 return NULL;
23850 }
23851
23852
23853 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23854 PyObject *resultobj = 0;
23855 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 PyObject *swig_obj[1] ;
23859
23860 if (!args) SWIG_fail;
23861 swig_obj[0] = args;
23862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23863 if (!SWIG_IsOK(res1)) {
23864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23865 }
23866 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23867 {
23868 PyThreadState* __tstate = wxPyBeginAllowThreads();
23869 delete arg1;
23870
23871 wxPyEndAllowThreads(__tstate);
23872 if (PyErr_Occurred()) SWIG_fail;
23873 }
23874 resultobj = SWIG_Py_Void();
23875 return resultobj;
23876 fail:
23877 return NULL;
23878 }
23879
23880
23881 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23882 PyObject *resultobj = 0;
23883 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23884 wxString *arg2 = 0 ;
23885 wxColour result;
23886 void *argp1 = 0 ;
23887 int res1 = 0 ;
23888 bool temp2 = false ;
23889 PyObject * obj0 = 0 ;
23890 PyObject * obj1 = 0 ;
23891 char * kwnames[] = {
23892 (char *) "self",(char *) "name", NULL
23893 };
23894
23895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23897 if (!SWIG_IsOK(res1)) {
23898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23899 }
23900 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23901 {
23902 arg2 = wxString_in_helper(obj1);
23903 if (arg2 == NULL) SWIG_fail;
23904 temp2 = true;
23905 }
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23913 {
23914 if (temp2)
23915 delete arg2;
23916 }
23917 return resultobj;
23918 fail:
23919 {
23920 if (temp2)
23921 delete arg2;
23922 }
23923 return NULL;
23924 }
23925
23926
23927 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23928 PyObject *resultobj = 0;
23929 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23930 wxColour *arg2 = 0 ;
23931 wxString result;
23932 void *argp1 = 0 ;
23933 int res1 = 0 ;
23934 wxColour temp2 ;
23935 PyObject * obj0 = 0 ;
23936 PyObject * obj1 = 0 ;
23937 char * kwnames[] = {
23938 (char *) "self",(char *) "colour", NULL
23939 };
23940
23941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23942 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23943 if (!SWIG_IsOK(res1)) {
23944 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23945 }
23946 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23947 {
23948 arg2 = &temp2;
23949 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23950 }
23951 {
23952 PyThreadState* __tstate = wxPyBeginAllowThreads();
23953 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23954 wxPyEndAllowThreads(__tstate);
23955 if (PyErr_Occurred()) SWIG_fail;
23956 }
23957 {
23958 #if wxUSE_UNICODE
23959 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23960 #else
23961 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23962 #endif
23963 }
23964 return resultobj;
23965 fail:
23966 return NULL;
23967 }
23968
23969
23970 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23971 PyObject *resultobj = 0;
23972 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23973 wxString *arg2 = 0 ;
23974 wxColour *arg3 = 0 ;
23975 void *argp1 = 0 ;
23976 int res1 = 0 ;
23977 bool temp2 = false ;
23978 wxColour temp3 ;
23979 PyObject * obj0 = 0 ;
23980 PyObject * obj1 = 0 ;
23981 PyObject * obj2 = 0 ;
23982 char * kwnames[] = {
23983 (char *) "self",(char *) "name",(char *) "colour", NULL
23984 };
23985
23986 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23987 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23988 if (!SWIG_IsOK(res1)) {
23989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23990 }
23991 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23992 {
23993 arg2 = wxString_in_helper(obj1);
23994 if (arg2 == NULL) SWIG_fail;
23995 temp2 = true;
23996 }
23997 {
23998 arg3 = &temp3;
23999 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24000 }
24001 {
24002 PyThreadState* __tstate = wxPyBeginAllowThreads();
24003 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
24004 wxPyEndAllowThreads(__tstate);
24005 if (PyErr_Occurred()) SWIG_fail;
24006 }
24007 resultobj = SWIG_Py_Void();
24008 {
24009 if (temp2)
24010 delete arg2;
24011 }
24012 return resultobj;
24013 fail:
24014 {
24015 if (temp2)
24016 delete arg2;
24017 }
24018 return NULL;
24019 }
24020
24021
24022 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24023 PyObject *resultobj = 0;
24024 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
24025 wxString *arg2 = 0 ;
24026 int arg3 ;
24027 int arg4 ;
24028 int arg5 ;
24029 void *argp1 = 0 ;
24030 int res1 = 0 ;
24031 bool temp2 = false ;
24032 int val3 ;
24033 int ecode3 = 0 ;
24034 int val4 ;
24035 int ecode4 = 0 ;
24036 int val5 ;
24037 int ecode5 = 0 ;
24038 PyObject * obj0 = 0 ;
24039 PyObject * obj1 = 0 ;
24040 PyObject * obj2 = 0 ;
24041 PyObject * obj3 = 0 ;
24042 PyObject * obj4 = 0 ;
24043 char * kwnames[] = {
24044 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
24045 };
24046
24047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24048 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24049 if (!SWIG_IsOK(res1)) {
24050 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24051 }
24052 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24053 {
24054 arg2 = wxString_in_helper(obj1);
24055 if (arg2 == NULL) SWIG_fail;
24056 temp2 = true;
24057 }
24058 ecode3 = SWIG_AsVal_int(obj2, &val3);
24059 if (!SWIG_IsOK(ecode3)) {
24060 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
24061 }
24062 arg3 = static_cast< int >(val3);
24063 ecode4 = SWIG_AsVal_int(obj3, &val4);
24064 if (!SWIG_IsOK(ecode4)) {
24065 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
24066 }
24067 arg4 = static_cast< int >(val4);
24068 ecode5 = SWIG_AsVal_int(obj4, &val5);
24069 if (!SWIG_IsOK(ecode5)) {
24070 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
24071 }
24072 arg5 = static_cast< int >(val5);
24073 {
24074 PyThreadState* __tstate = wxPyBeginAllowThreads();
24075 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
24076 wxPyEndAllowThreads(__tstate);
24077 if (PyErr_Occurred()) SWIG_fail;
24078 }
24079 resultobj = SWIG_Py_Void();
24080 {
24081 if (temp2)
24082 delete arg2;
24083 }
24084 return resultobj;
24085 fail:
24086 {
24087 if (temp2)
24088 delete arg2;
24089 }
24090 return NULL;
24091 }
24092
24093
24094 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24095 PyObject *obj;
24096 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24097 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24098 return SWIG_Py_Void();
24099 }
24100
24101 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24102 return SWIG_Python_InitShadowInstance(args);
24103 }
24104
24105 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24106 PyObject *resultobj = 0;
24107 wxFontList *result = 0 ;
24108
24109 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24110 {
24111 PyThreadState* __tstate = wxPyBeginAllowThreads();
24112 result = (wxFontList *)_wxPyInitTheFontList();
24113 wxPyEndAllowThreads(__tstate);
24114 if (PyErr_Occurred()) SWIG_fail;
24115 }
24116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24117 return resultobj;
24118 fail:
24119 return NULL;
24120 }
24121
24122
24123 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24124 PyObject *resultobj = 0;
24125 wxPenList *result = 0 ;
24126
24127 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24128 {
24129 PyThreadState* __tstate = wxPyBeginAllowThreads();
24130 result = (wxPenList *)_wxPyInitThePenList();
24131 wxPyEndAllowThreads(__tstate);
24132 if (PyErr_Occurred()) SWIG_fail;
24133 }
24134 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24135 return resultobj;
24136 fail:
24137 return NULL;
24138 }
24139
24140
24141 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24142 PyObject *resultobj = 0;
24143 wxBrushList *result = 0 ;
24144
24145 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24146 {
24147 PyThreadState* __tstate = wxPyBeginAllowThreads();
24148 result = (wxBrushList *)_wxPyInitTheBrushList();
24149 wxPyEndAllowThreads(__tstate);
24150 if (PyErr_Occurred()) SWIG_fail;
24151 }
24152 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24153 return resultobj;
24154 fail:
24155 return NULL;
24156 }
24157
24158
24159 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24160 PyObject *resultobj = 0;
24161 wxColourDatabase *result = 0 ;
24162
24163 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24164 {
24165 PyThreadState* __tstate = wxPyBeginAllowThreads();
24166 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24167 wxPyEndAllowThreads(__tstate);
24168 if (PyErr_Occurred()) SWIG_fail;
24169 }
24170 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24171 return resultobj;
24172 fail:
24173 return NULL;
24174 }
24175
24176
24177 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24178 PyObject *resultobj = 0;
24179 wxEffects *result = 0 ;
24180
24181 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24182 {
24183 PyThreadState* __tstate = wxPyBeginAllowThreads();
24184 result = (wxEffects *)new wxEffects();
24185 wxPyEndAllowThreads(__tstate);
24186 if (PyErr_Occurred()) SWIG_fail;
24187 }
24188 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24189 return resultobj;
24190 fail:
24191 return NULL;
24192 }
24193
24194
24195 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24196 PyObject *resultobj = 0;
24197 wxEffects *arg1 = (wxEffects *) 0 ;
24198 wxColour result;
24199 void *argp1 = 0 ;
24200 int res1 = 0 ;
24201 PyObject *swig_obj[1] ;
24202
24203 if (!args) SWIG_fail;
24204 swig_obj[0] = args;
24205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24206 if (!SWIG_IsOK(res1)) {
24207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24208 }
24209 arg1 = reinterpret_cast< wxEffects * >(argp1);
24210 {
24211 PyThreadState* __tstate = wxPyBeginAllowThreads();
24212 result = ((wxEffects const *)arg1)->GetHighlightColour();
24213 wxPyEndAllowThreads(__tstate);
24214 if (PyErr_Occurred()) SWIG_fail;
24215 }
24216 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24217 return resultobj;
24218 fail:
24219 return NULL;
24220 }
24221
24222
24223 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24224 PyObject *resultobj = 0;
24225 wxEffects *arg1 = (wxEffects *) 0 ;
24226 wxColour result;
24227 void *argp1 = 0 ;
24228 int res1 = 0 ;
24229 PyObject *swig_obj[1] ;
24230
24231 if (!args) SWIG_fail;
24232 swig_obj[0] = args;
24233 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24234 if (!SWIG_IsOK(res1)) {
24235 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24236 }
24237 arg1 = reinterpret_cast< wxEffects * >(argp1);
24238 {
24239 PyThreadState* __tstate = wxPyBeginAllowThreads();
24240 result = ((wxEffects const *)arg1)->GetLightShadow();
24241 wxPyEndAllowThreads(__tstate);
24242 if (PyErr_Occurred()) SWIG_fail;
24243 }
24244 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24245 return resultobj;
24246 fail:
24247 return NULL;
24248 }
24249
24250
24251 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24252 PyObject *resultobj = 0;
24253 wxEffects *arg1 = (wxEffects *) 0 ;
24254 wxColour result;
24255 void *argp1 = 0 ;
24256 int res1 = 0 ;
24257 PyObject *swig_obj[1] ;
24258
24259 if (!args) SWIG_fail;
24260 swig_obj[0] = args;
24261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24262 if (!SWIG_IsOK(res1)) {
24263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24264 }
24265 arg1 = reinterpret_cast< wxEffects * >(argp1);
24266 {
24267 PyThreadState* __tstate = wxPyBeginAllowThreads();
24268 result = ((wxEffects const *)arg1)->GetFaceColour();
24269 wxPyEndAllowThreads(__tstate);
24270 if (PyErr_Occurred()) SWIG_fail;
24271 }
24272 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24273 return resultobj;
24274 fail:
24275 return NULL;
24276 }
24277
24278
24279 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24280 PyObject *resultobj = 0;
24281 wxEffects *arg1 = (wxEffects *) 0 ;
24282 wxColour result;
24283 void *argp1 = 0 ;
24284 int res1 = 0 ;
24285 PyObject *swig_obj[1] ;
24286
24287 if (!args) SWIG_fail;
24288 swig_obj[0] = args;
24289 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24290 if (!SWIG_IsOK(res1)) {
24291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24292 }
24293 arg1 = reinterpret_cast< wxEffects * >(argp1);
24294 {
24295 PyThreadState* __tstate = wxPyBeginAllowThreads();
24296 result = ((wxEffects const *)arg1)->GetMediumShadow();
24297 wxPyEndAllowThreads(__tstate);
24298 if (PyErr_Occurred()) SWIG_fail;
24299 }
24300 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24301 return resultobj;
24302 fail:
24303 return NULL;
24304 }
24305
24306
24307 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24308 PyObject *resultobj = 0;
24309 wxEffects *arg1 = (wxEffects *) 0 ;
24310 wxColour result;
24311 void *argp1 = 0 ;
24312 int res1 = 0 ;
24313 PyObject *swig_obj[1] ;
24314
24315 if (!args) SWIG_fail;
24316 swig_obj[0] = args;
24317 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24318 if (!SWIG_IsOK(res1)) {
24319 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24320 }
24321 arg1 = reinterpret_cast< wxEffects * >(argp1);
24322 {
24323 PyThreadState* __tstate = wxPyBeginAllowThreads();
24324 result = ((wxEffects const *)arg1)->GetDarkShadow();
24325 wxPyEndAllowThreads(__tstate);
24326 if (PyErr_Occurred()) SWIG_fail;
24327 }
24328 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24329 return resultobj;
24330 fail:
24331 return NULL;
24332 }
24333
24334
24335 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24336 PyObject *resultobj = 0;
24337 wxEffects *arg1 = (wxEffects *) 0 ;
24338 wxColour *arg2 = 0 ;
24339 void *argp1 = 0 ;
24340 int res1 = 0 ;
24341 wxColour temp2 ;
24342 PyObject * obj0 = 0 ;
24343 PyObject * obj1 = 0 ;
24344 char * kwnames[] = {
24345 (char *) "self",(char *) "c", NULL
24346 };
24347
24348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24350 if (!SWIG_IsOK(res1)) {
24351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24352 }
24353 arg1 = reinterpret_cast< wxEffects * >(argp1);
24354 {
24355 arg2 = &temp2;
24356 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24357 }
24358 {
24359 PyThreadState* __tstate = wxPyBeginAllowThreads();
24360 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24361 wxPyEndAllowThreads(__tstate);
24362 if (PyErr_Occurred()) SWIG_fail;
24363 }
24364 resultobj = SWIG_Py_Void();
24365 return resultobj;
24366 fail:
24367 return NULL;
24368 }
24369
24370
24371 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24372 PyObject *resultobj = 0;
24373 wxEffects *arg1 = (wxEffects *) 0 ;
24374 wxColour *arg2 = 0 ;
24375 void *argp1 = 0 ;
24376 int res1 = 0 ;
24377 wxColour temp2 ;
24378 PyObject * obj0 = 0 ;
24379 PyObject * obj1 = 0 ;
24380 char * kwnames[] = {
24381 (char *) "self",(char *) "c", NULL
24382 };
24383
24384 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24385 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24386 if (!SWIG_IsOK(res1)) {
24387 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24388 }
24389 arg1 = reinterpret_cast< wxEffects * >(argp1);
24390 {
24391 arg2 = &temp2;
24392 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24393 }
24394 {
24395 PyThreadState* __tstate = wxPyBeginAllowThreads();
24396 (arg1)->SetLightShadow((wxColour const &)*arg2);
24397 wxPyEndAllowThreads(__tstate);
24398 if (PyErr_Occurred()) SWIG_fail;
24399 }
24400 resultobj = SWIG_Py_Void();
24401 return resultobj;
24402 fail:
24403 return NULL;
24404 }
24405
24406
24407 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24408 PyObject *resultobj = 0;
24409 wxEffects *arg1 = (wxEffects *) 0 ;
24410 wxColour *arg2 = 0 ;
24411 void *argp1 = 0 ;
24412 int res1 = 0 ;
24413 wxColour temp2 ;
24414 PyObject * obj0 = 0 ;
24415 PyObject * obj1 = 0 ;
24416 char * kwnames[] = {
24417 (char *) "self",(char *) "c", NULL
24418 };
24419
24420 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24421 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24422 if (!SWIG_IsOK(res1)) {
24423 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24424 }
24425 arg1 = reinterpret_cast< wxEffects * >(argp1);
24426 {
24427 arg2 = &temp2;
24428 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24429 }
24430 {
24431 PyThreadState* __tstate = wxPyBeginAllowThreads();
24432 (arg1)->SetFaceColour((wxColour const &)*arg2);
24433 wxPyEndAllowThreads(__tstate);
24434 if (PyErr_Occurred()) SWIG_fail;
24435 }
24436 resultobj = SWIG_Py_Void();
24437 return resultobj;
24438 fail:
24439 return NULL;
24440 }
24441
24442
24443 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24444 PyObject *resultobj = 0;
24445 wxEffects *arg1 = (wxEffects *) 0 ;
24446 wxColour *arg2 = 0 ;
24447 void *argp1 = 0 ;
24448 int res1 = 0 ;
24449 wxColour temp2 ;
24450 PyObject * obj0 = 0 ;
24451 PyObject * obj1 = 0 ;
24452 char * kwnames[] = {
24453 (char *) "self",(char *) "c", NULL
24454 };
24455
24456 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24457 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24458 if (!SWIG_IsOK(res1)) {
24459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24460 }
24461 arg1 = reinterpret_cast< wxEffects * >(argp1);
24462 {
24463 arg2 = &temp2;
24464 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24465 }
24466 {
24467 PyThreadState* __tstate = wxPyBeginAllowThreads();
24468 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24469 wxPyEndAllowThreads(__tstate);
24470 if (PyErr_Occurred()) SWIG_fail;
24471 }
24472 resultobj = SWIG_Py_Void();
24473 return resultobj;
24474 fail:
24475 return NULL;
24476 }
24477
24478
24479 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24480 PyObject *resultobj = 0;
24481 wxEffects *arg1 = (wxEffects *) 0 ;
24482 wxColour *arg2 = 0 ;
24483 void *argp1 = 0 ;
24484 int res1 = 0 ;
24485 wxColour temp2 ;
24486 PyObject * obj0 = 0 ;
24487 PyObject * obj1 = 0 ;
24488 char * kwnames[] = {
24489 (char *) "self",(char *) "c", NULL
24490 };
24491
24492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24494 if (!SWIG_IsOK(res1)) {
24495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24496 }
24497 arg1 = reinterpret_cast< wxEffects * >(argp1);
24498 {
24499 arg2 = &temp2;
24500 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24501 }
24502 {
24503 PyThreadState* __tstate = wxPyBeginAllowThreads();
24504 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24505 wxPyEndAllowThreads(__tstate);
24506 if (PyErr_Occurred()) SWIG_fail;
24507 }
24508 resultobj = SWIG_Py_Void();
24509 return resultobj;
24510 fail:
24511 return NULL;
24512 }
24513
24514
24515 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24516 PyObject *resultobj = 0;
24517 wxEffects *arg1 = (wxEffects *) 0 ;
24518 wxColour *arg2 = 0 ;
24519 wxColour *arg3 = 0 ;
24520 wxColour *arg4 = 0 ;
24521 wxColour *arg5 = 0 ;
24522 wxColour *arg6 = 0 ;
24523 void *argp1 = 0 ;
24524 int res1 = 0 ;
24525 wxColour temp2 ;
24526 wxColour temp3 ;
24527 wxColour temp4 ;
24528 wxColour temp5 ;
24529 wxColour temp6 ;
24530 PyObject * obj0 = 0 ;
24531 PyObject * obj1 = 0 ;
24532 PyObject * obj2 = 0 ;
24533 PyObject * obj3 = 0 ;
24534 PyObject * obj4 = 0 ;
24535 PyObject * obj5 = 0 ;
24536 char * kwnames[] = {
24537 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24538 };
24539
24540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24542 if (!SWIG_IsOK(res1)) {
24543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24544 }
24545 arg1 = reinterpret_cast< wxEffects * >(argp1);
24546 {
24547 arg2 = &temp2;
24548 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24549 }
24550 {
24551 arg3 = &temp3;
24552 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24553 }
24554 {
24555 arg4 = &temp4;
24556 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24557 }
24558 {
24559 arg5 = &temp5;
24560 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24561 }
24562 {
24563 arg6 = &temp6;
24564 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24565 }
24566 {
24567 PyThreadState* __tstate = wxPyBeginAllowThreads();
24568 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24569 wxPyEndAllowThreads(__tstate);
24570 if (PyErr_Occurred()) SWIG_fail;
24571 }
24572 resultobj = SWIG_Py_Void();
24573 return resultobj;
24574 fail:
24575 return NULL;
24576 }
24577
24578
24579 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24580 PyObject *resultobj = 0;
24581 wxEffects *arg1 = (wxEffects *) 0 ;
24582 wxDC *arg2 = 0 ;
24583 wxRect *arg3 = 0 ;
24584 int arg4 = (int) 1 ;
24585 void *argp1 = 0 ;
24586 int res1 = 0 ;
24587 void *argp2 = 0 ;
24588 int res2 = 0 ;
24589 wxRect temp3 ;
24590 int val4 ;
24591 int ecode4 = 0 ;
24592 PyObject * obj0 = 0 ;
24593 PyObject * obj1 = 0 ;
24594 PyObject * obj2 = 0 ;
24595 PyObject * obj3 = 0 ;
24596 char * kwnames[] = {
24597 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24598 };
24599
24600 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24601 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24602 if (!SWIG_IsOK(res1)) {
24603 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24604 }
24605 arg1 = reinterpret_cast< wxEffects * >(argp1);
24606 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24607 if (!SWIG_IsOK(res2)) {
24608 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24609 }
24610 if (!argp2) {
24611 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24612 }
24613 arg2 = reinterpret_cast< wxDC * >(argp2);
24614 {
24615 arg3 = &temp3;
24616 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24617 }
24618 if (obj3) {
24619 ecode4 = SWIG_AsVal_int(obj3, &val4);
24620 if (!SWIG_IsOK(ecode4)) {
24621 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24622 }
24623 arg4 = static_cast< int >(val4);
24624 }
24625 {
24626 PyThreadState* __tstate = wxPyBeginAllowThreads();
24627 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24628 wxPyEndAllowThreads(__tstate);
24629 if (PyErr_Occurred()) SWIG_fail;
24630 }
24631 resultobj = SWIG_Py_Void();
24632 return resultobj;
24633 fail:
24634 return NULL;
24635 }
24636
24637
24638 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24639 PyObject *resultobj = 0;
24640 wxEffects *arg1 = (wxEffects *) 0 ;
24641 wxRect *arg2 = 0 ;
24642 wxDC *arg3 = 0 ;
24643 wxBitmap *arg4 = 0 ;
24644 bool result;
24645 void *argp1 = 0 ;
24646 int res1 = 0 ;
24647 wxRect temp2 ;
24648 void *argp3 = 0 ;
24649 int res3 = 0 ;
24650 void *argp4 = 0 ;
24651 int res4 = 0 ;
24652 PyObject * obj0 = 0 ;
24653 PyObject * obj1 = 0 ;
24654 PyObject * obj2 = 0 ;
24655 PyObject * obj3 = 0 ;
24656 char * kwnames[] = {
24657 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24658 };
24659
24660 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24661 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24662 if (!SWIG_IsOK(res1)) {
24663 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24664 }
24665 arg1 = reinterpret_cast< wxEffects * >(argp1);
24666 {
24667 arg2 = &temp2;
24668 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24669 }
24670 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24671 if (!SWIG_IsOK(res3)) {
24672 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24673 }
24674 if (!argp3) {
24675 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24676 }
24677 arg3 = reinterpret_cast< wxDC * >(argp3);
24678 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24679 if (!SWIG_IsOK(res4)) {
24680 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24681 }
24682 if (!argp4) {
24683 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24684 }
24685 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24686 {
24687 PyThreadState* __tstate = wxPyBeginAllowThreads();
24688 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24689 wxPyEndAllowThreads(__tstate);
24690 if (PyErr_Occurred()) SWIG_fail;
24691 }
24692 {
24693 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24694 }
24695 return resultobj;
24696 fail:
24697 return NULL;
24698 }
24699
24700
24701 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24702 PyObject *obj;
24703 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24704 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24705 return SWIG_Py_Void();
24706 }
24707
24708 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24709 return SWIG_Python_InitShadowInstance(args);
24710 }
24711
24712 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24713 PyObject *resultobj = 0;
24714 int arg1 ;
24715 int arg2 ;
24716 bool arg3 ;
24717 wxSplitterRenderParams *result = 0 ;
24718 int val1 ;
24719 int ecode1 = 0 ;
24720 int val2 ;
24721 int ecode2 = 0 ;
24722 bool val3 ;
24723 int ecode3 = 0 ;
24724 PyObject * obj0 = 0 ;
24725 PyObject * obj1 = 0 ;
24726 PyObject * obj2 = 0 ;
24727 char * kwnames[] = {
24728 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24729 };
24730
24731 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24732 ecode1 = SWIG_AsVal_int(obj0, &val1);
24733 if (!SWIG_IsOK(ecode1)) {
24734 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24735 }
24736 arg1 = static_cast< int >(val1);
24737 ecode2 = SWIG_AsVal_int(obj1, &val2);
24738 if (!SWIG_IsOK(ecode2)) {
24739 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24740 }
24741 arg2 = static_cast< int >(val2);
24742 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24743 if (!SWIG_IsOK(ecode3)) {
24744 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24745 }
24746 arg3 = static_cast< bool >(val3);
24747 {
24748 PyThreadState* __tstate = wxPyBeginAllowThreads();
24749 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24750 wxPyEndAllowThreads(__tstate);
24751 if (PyErr_Occurred()) SWIG_fail;
24752 }
24753 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24754 return resultobj;
24755 fail:
24756 return NULL;
24757 }
24758
24759
24760 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24761 PyObject *resultobj = 0;
24762 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24763 void *argp1 = 0 ;
24764 int res1 = 0 ;
24765 PyObject *swig_obj[1] ;
24766
24767 if (!args) SWIG_fail;
24768 swig_obj[0] = args;
24769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24770 if (!SWIG_IsOK(res1)) {
24771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24772 }
24773 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24774 {
24775 PyThreadState* __tstate = wxPyBeginAllowThreads();
24776 delete arg1;
24777
24778 wxPyEndAllowThreads(__tstate);
24779 if (PyErr_Occurred()) SWIG_fail;
24780 }
24781 resultobj = SWIG_Py_Void();
24782 return resultobj;
24783 fail:
24784 return NULL;
24785 }
24786
24787
24788 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24789 PyObject *resultobj = 0;
24790 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24791 int result;
24792 void *argp1 = 0 ;
24793 int res1 = 0 ;
24794 PyObject *swig_obj[1] ;
24795
24796 if (!args) SWIG_fail;
24797 swig_obj[0] = args;
24798 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24799 if (!SWIG_IsOK(res1)) {
24800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24801 }
24802 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24803 result = (int)(int) ((arg1)->widthSash);
24804 resultobj = SWIG_From_int(static_cast< int >(result));
24805 return resultobj;
24806 fail:
24807 return NULL;
24808 }
24809
24810
24811 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24812 PyObject *resultobj = 0;
24813 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24814 int result;
24815 void *argp1 = 0 ;
24816 int res1 = 0 ;
24817 PyObject *swig_obj[1] ;
24818
24819 if (!args) SWIG_fail;
24820 swig_obj[0] = args;
24821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24822 if (!SWIG_IsOK(res1)) {
24823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24824 }
24825 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24826 result = (int)(int) ((arg1)->border);
24827 resultobj = SWIG_From_int(static_cast< int >(result));
24828 return resultobj;
24829 fail:
24830 return NULL;
24831 }
24832
24833
24834 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 PyObject *resultobj = 0;
24836 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24837 bool result;
24838 void *argp1 = 0 ;
24839 int res1 = 0 ;
24840 PyObject *swig_obj[1] ;
24841
24842 if (!args) SWIG_fail;
24843 swig_obj[0] = args;
24844 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24845 if (!SWIG_IsOK(res1)) {
24846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24847 }
24848 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24849 result = (bool)(bool) ((arg1)->isHotSensitive);
24850 resultobj = SWIG_From_bool(static_cast< bool >(result));
24851 return resultobj;
24852 fail:
24853 return NULL;
24854 }
24855
24856
24857 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24858 PyObject *obj;
24859 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24860 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24861 return SWIG_Py_Void();
24862 }
24863
24864 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24865 return SWIG_Python_InitShadowInstance(args);
24866 }
24867
24868 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24869 PyObject *resultobj = 0;
24870 int arg1 ;
24871 int arg2 ;
24872 wxRendererVersion *result = 0 ;
24873 int val1 ;
24874 int ecode1 = 0 ;
24875 int val2 ;
24876 int ecode2 = 0 ;
24877 PyObject * obj0 = 0 ;
24878 PyObject * obj1 = 0 ;
24879 char * kwnames[] = {
24880 (char *) "version_",(char *) "age_", NULL
24881 };
24882
24883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24884 ecode1 = SWIG_AsVal_int(obj0, &val1);
24885 if (!SWIG_IsOK(ecode1)) {
24886 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24887 }
24888 arg1 = static_cast< int >(val1);
24889 ecode2 = SWIG_AsVal_int(obj1, &val2);
24890 if (!SWIG_IsOK(ecode2)) {
24891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24892 }
24893 arg2 = static_cast< int >(val2);
24894 {
24895 PyThreadState* __tstate = wxPyBeginAllowThreads();
24896 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24897 wxPyEndAllowThreads(__tstate);
24898 if (PyErr_Occurred()) SWIG_fail;
24899 }
24900 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24901 return resultobj;
24902 fail:
24903 return NULL;
24904 }
24905
24906
24907 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24908 PyObject *resultobj = 0;
24909 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24910 void *argp1 = 0 ;
24911 int res1 = 0 ;
24912 PyObject *swig_obj[1] ;
24913
24914 if (!args) SWIG_fail;
24915 swig_obj[0] = args;
24916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24917 if (!SWIG_IsOK(res1)) {
24918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24919 }
24920 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24921 {
24922 PyThreadState* __tstate = wxPyBeginAllowThreads();
24923 delete arg1;
24924
24925 wxPyEndAllowThreads(__tstate);
24926 if (PyErr_Occurred()) SWIG_fail;
24927 }
24928 resultobj = SWIG_Py_Void();
24929 return resultobj;
24930 fail:
24931 return NULL;
24932 }
24933
24934
24935 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24936 PyObject *resultobj = 0;
24937 wxRendererVersion *arg1 = 0 ;
24938 bool result;
24939 void *argp1 = 0 ;
24940 int res1 = 0 ;
24941 PyObject * obj0 = 0 ;
24942 char * kwnames[] = {
24943 (char *) "ver", NULL
24944 };
24945
24946 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24947 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24948 if (!SWIG_IsOK(res1)) {
24949 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24950 }
24951 if (!argp1) {
24952 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24953 }
24954 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24955 {
24956 PyThreadState* __tstate = wxPyBeginAllowThreads();
24957 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24958 wxPyEndAllowThreads(__tstate);
24959 if (PyErr_Occurred()) SWIG_fail;
24960 }
24961 {
24962 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24963 }
24964 return resultobj;
24965 fail:
24966 return NULL;
24967 }
24968
24969
24970 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24971 PyObject *resultobj = 0;
24972 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24973 int result;
24974 void *argp1 = 0 ;
24975 int res1 = 0 ;
24976 PyObject *swig_obj[1] ;
24977
24978 if (!args) SWIG_fail;
24979 swig_obj[0] = args;
24980 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24981 if (!SWIG_IsOK(res1)) {
24982 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24983 }
24984 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24985 result = (int)(int) ((arg1)->version);
24986 resultobj = SWIG_From_int(static_cast< int >(result));
24987 return resultobj;
24988 fail:
24989 return NULL;
24990 }
24991
24992
24993 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24994 PyObject *resultobj = 0;
24995 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24996 int result;
24997 void *argp1 = 0 ;
24998 int res1 = 0 ;
24999 PyObject *swig_obj[1] ;
25000
25001 if (!args) SWIG_fail;
25002 swig_obj[0] = args;
25003 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
25004 if (!SWIG_IsOK(res1)) {
25005 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
25006 }
25007 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
25008 result = (int)(int) ((arg1)->age);
25009 resultobj = SWIG_From_int(static_cast< int >(result));
25010 return resultobj;
25011 fail:
25012 return NULL;
25013 }
25014
25015
25016 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25017 PyObject *obj;
25018 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25019 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
25020 return SWIG_Py_Void();
25021 }
25022
25023 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25024 return SWIG_Python_InitShadowInstance(args);
25025 }
25026
25027 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25028 PyObject *resultobj = 0;
25029 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25030 wxWindow *arg2 = (wxWindow *) 0 ;
25031 wxDC *arg3 = 0 ;
25032 wxRect *arg4 = 0 ;
25033 int arg5 = (int) 0 ;
25034 void *argp1 = 0 ;
25035 int res1 = 0 ;
25036 void *argp2 = 0 ;
25037 int res2 = 0 ;
25038 void *argp3 = 0 ;
25039 int res3 = 0 ;
25040 wxRect temp4 ;
25041 int val5 ;
25042 int ecode5 = 0 ;
25043 PyObject * obj0 = 0 ;
25044 PyObject * obj1 = 0 ;
25045 PyObject * obj2 = 0 ;
25046 PyObject * obj3 = 0 ;
25047 PyObject * obj4 = 0 ;
25048 char * kwnames[] = {
25049 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25050 };
25051
25052 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25053 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25054 if (!SWIG_IsOK(res1)) {
25055 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25056 }
25057 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25058 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25059 if (!SWIG_IsOK(res2)) {
25060 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25061 }
25062 arg2 = reinterpret_cast< wxWindow * >(argp2);
25063 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25064 if (!SWIG_IsOK(res3)) {
25065 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25066 }
25067 if (!argp3) {
25068 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25069 }
25070 arg3 = reinterpret_cast< wxDC * >(argp3);
25071 {
25072 arg4 = &temp4;
25073 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25074 }
25075 if (obj4) {
25076 ecode5 = SWIG_AsVal_int(obj4, &val5);
25077 if (!SWIG_IsOK(ecode5)) {
25078 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25079 }
25080 arg5 = static_cast< int >(val5);
25081 }
25082 {
25083 PyThreadState* __tstate = wxPyBeginAllowThreads();
25084 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25085 wxPyEndAllowThreads(__tstate);
25086 if (PyErr_Occurred()) SWIG_fail;
25087 }
25088 resultobj = SWIG_Py_Void();
25089 return resultobj;
25090 fail:
25091 return NULL;
25092 }
25093
25094
25095 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25096 PyObject *resultobj = 0;
25097 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25098 wxWindow *arg2 = (wxWindow *) 0 ;
25099 wxDC *arg3 = 0 ;
25100 wxRect *arg4 = 0 ;
25101 int arg5 = (int) 0 ;
25102 void *argp1 = 0 ;
25103 int res1 = 0 ;
25104 void *argp2 = 0 ;
25105 int res2 = 0 ;
25106 void *argp3 = 0 ;
25107 int res3 = 0 ;
25108 wxRect temp4 ;
25109 int val5 ;
25110 int ecode5 = 0 ;
25111 PyObject * obj0 = 0 ;
25112 PyObject * obj1 = 0 ;
25113 PyObject * obj2 = 0 ;
25114 PyObject * obj3 = 0 ;
25115 PyObject * obj4 = 0 ;
25116 char * kwnames[] = {
25117 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25118 };
25119
25120 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25121 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25122 if (!SWIG_IsOK(res1)) {
25123 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25124 }
25125 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25126 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25127 if (!SWIG_IsOK(res2)) {
25128 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25129 }
25130 arg2 = reinterpret_cast< wxWindow * >(argp2);
25131 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25132 if (!SWIG_IsOK(res3)) {
25133 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25134 }
25135 if (!argp3) {
25136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25137 }
25138 arg3 = reinterpret_cast< wxDC * >(argp3);
25139 {
25140 arg4 = &temp4;
25141 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25142 }
25143 if (obj4) {
25144 ecode5 = SWIG_AsVal_int(obj4, &val5);
25145 if (!SWIG_IsOK(ecode5)) {
25146 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25147 }
25148 arg5 = static_cast< int >(val5);
25149 }
25150 {
25151 PyThreadState* __tstate = wxPyBeginAllowThreads();
25152 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25153 wxPyEndAllowThreads(__tstate);
25154 if (PyErr_Occurred()) SWIG_fail;
25155 }
25156 resultobj = SWIG_Py_Void();
25157 return resultobj;
25158 fail:
25159 return NULL;
25160 }
25161
25162
25163 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25164 PyObject *resultobj = 0;
25165 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25166 wxWindow *arg2 = (wxWindow *) 0 ;
25167 wxDC *arg3 = 0 ;
25168 wxRect *arg4 = 0 ;
25169 int arg5 = (int) 0 ;
25170 void *argp1 = 0 ;
25171 int res1 = 0 ;
25172 void *argp2 = 0 ;
25173 int res2 = 0 ;
25174 void *argp3 = 0 ;
25175 int res3 = 0 ;
25176 wxRect temp4 ;
25177 int val5 ;
25178 int ecode5 = 0 ;
25179 PyObject * obj0 = 0 ;
25180 PyObject * obj1 = 0 ;
25181 PyObject * obj2 = 0 ;
25182 PyObject * obj3 = 0 ;
25183 PyObject * obj4 = 0 ;
25184 char * kwnames[] = {
25185 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25186 };
25187
25188 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25189 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25190 if (!SWIG_IsOK(res1)) {
25191 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25192 }
25193 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25194 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25195 if (!SWIG_IsOK(res2)) {
25196 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25197 }
25198 arg2 = reinterpret_cast< wxWindow * >(argp2);
25199 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25200 if (!SWIG_IsOK(res3)) {
25201 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25202 }
25203 if (!argp3) {
25204 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25205 }
25206 arg3 = reinterpret_cast< wxDC * >(argp3);
25207 {
25208 arg4 = &temp4;
25209 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25210 }
25211 if (obj4) {
25212 ecode5 = SWIG_AsVal_int(obj4, &val5);
25213 if (!SWIG_IsOK(ecode5)) {
25214 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25215 }
25216 arg5 = static_cast< int >(val5);
25217 }
25218 {
25219 PyThreadState* __tstate = wxPyBeginAllowThreads();
25220 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25221 wxPyEndAllowThreads(__tstate);
25222 if (PyErr_Occurred()) SWIG_fail;
25223 }
25224 resultobj = SWIG_Py_Void();
25225 return resultobj;
25226 fail:
25227 return NULL;
25228 }
25229
25230
25231 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25232 PyObject *resultobj = 0;
25233 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25234 wxWindow *arg2 = (wxWindow *) 0 ;
25235 wxDC *arg3 = 0 ;
25236 wxSize *arg4 = 0 ;
25237 int arg5 ;
25238 wxOrientation arg6 ;
25239 int arg7 = (int) 0 ;
25240 void *argp1 = 0 ;
25241 int res1 = 0 ;
25242 void *argp2 = 0 ;
25243 int res2 = 0 ;
25244 void *argp3 = 0 ;
25245 int res3 = 0 ;
25246 wxSize temp4 ;
25247 int val5 ;
25248 int ecode5 = 0 ;
25249 int val6 ;
25250 int ecode6 = 0 ;
25251 int val7 ;
25252 int ecode7 = 0 ;
25253 PyObject * obj0 = 0 ;
25254 PyObject * obj1 = 0 ;
25255 PyObject * obj2 = 0 ;
25256 PyObject * obj3 = 0 ;
25257 PyObject * obj4 = 0 ;
25258 PyObject * obj5 = 0 ;
25259 PyObject * obj6 = 0 ;
25260 char * kwnames[] = {
25261 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25262 };
25263
25264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25266 if (!SWIG_IsOK(res1)) {
25267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25268 }
25269 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25270 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25271 if (!SWIG_IsOK(res2)) {
25272 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25273 }
25274 arg2 = reinterpret_cast< wxWindow * >(argp2);
25275 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25276 if (!SWIG_IsOK(res3)) {
25277 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25278 }
25279 if (!argp3) {
25280 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25281 }
25282 arg3 = reinterpret_cast< wxDC * >(argp3);
25283 {
25284 arg4 = &temp4;
25285 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25286 }
25287 ecode5 = SWIG_AsVal_int(obj4, &val5);
25288 if (!SWIG_IsOK(ecode5)) {
25289 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25290 }
25291 arg5 = static_cast< int >(val5);
25292 ecode6 = SWIG_AsVal_int(obj5, &val6);
25293 if (!SWIG_IsOK(ecode6)) {
25294 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25295 }
25296 arg6 = static_cast< wxOrientation >(val6);
25297 if (obj6) {
25298 ecode7 = SWIG_AsVal_int(obj6, &val7);
25299 if (!SWIG_IsOK(ecode7)) {
25300 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25301 }
25302 arg7 = static_cast< int >(val7);
25303 }
25304 {
25305 PyThreadState* __tstate = wxPyBeginAllowThreads();
25306 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25307 wxPyEndAllowThreads(__tstate);
25308 if (PyErr_Occurred()) SWIG_fail;
25309 }
25310 resultobj = SWIG_Py_Void();
25311 return resultobj;
25312 fail:
25313 return NULL;
25314 }
25315
25316
25317 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25318 PyObject *resultobj = 0;
25319 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25320 wxWindow *arg2 = (wxWindow *) 0 ;
25321 wxDC *arg3 = 0 ;
25322 wxRect *arg4 = 0 ;
25323 int arg5 = (int) 0 ;
25324 void *argp1 = 0 ;
25325 int res1 = 0 ;
25326 void *argp2 = 0 ;
25327 int res2 = 0 ;
25328 void *argp3 = 0 ;
25329 int res3 = 0 ;
25330 wxRect temp4 ;
25331 int val5 ;
25332 int ecode5 = 0 ;
25333 PyObject * obj0 = 0 ;
25334 PyObject * obj1 = 0 ;
25335 PyObject * obj2 = 0 ;
25336 PyObject * obj3 = 0 ;
25337 PyObject * obj4 = 0 ;
25338 char * kwnames[] = {
25339 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25340 };
25341
25342 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25343 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25344 if (!SWIG_IsOK(res1)) {
25345 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25346 }
25347 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25348 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25349 if (!SWIG_IsOK(res2)) {
25350 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25351 }
25352 arg2 = reinterpret_cast< wxWindow * >(argp2);
25353 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25354 if (!SWIG_IsOK(res3)) {
25355 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25356 }
25357 if (!argp3) {
25358 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25359 }
25360 arg3 = reinterpret_cast< wxDC * >(argp3);
25361 {
25362 arg4 = &temp4;
25363 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25364 }
25365 if (obj4) {
25366 ecode5 = SWIG_AsVal_int(obj4, &val5);
25367 if (!SWIG_IsOK(ecode5)) {
25368 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25369 }
25370 arg5 = static_cast< int >(val5);
25371 }
25372 {
25373 PyThreadState* __tstate = wxPyBeginAllowThreads();
25374 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25375 wxPyEndAllowThreads(__tstate);
25376 if (PyErr_Occurred()) SWIG_fail;
25377 }
25378 resultobj = SWIG_Py_Void();
25379 return resultobj;
25380 fail:
25381 return NULL;
25382 }
25383
25384
25385 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25386 PyObject *resultobj = 0;
25387 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25388 wxWindow *arg2 = (wxWindow *) 0 ;
25389 wxDC *arg3 = 0 ;
25390 wxRect *arg4 = 0 ;
25391 int arg5 = (int) 0 ;
25392 void *argp1 = 0 ;
25393 int res1 = 0 ;
25394 void *argp2 = 0 ;
25395 int res2 = 0 ;
25396 void *argp3 = 0 ;
25397 int res3 = 0 ;
25398 wxRect temp4 ;
25399 int val5 ;
25400 int ecode5 = 0 ;
25401 PyObject * obj0 = 0 ;
25402 PyObject * obj1 = 0 ;
25403 PyObject * obj2 = 0 ;
25404 PyObject * obj3 = 0 ;
25405 PyObject * obj4 = 0 ;
25406 char * kwnames[] = {
25407 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25408 };
25409
25410 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25411 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25412 if (!SWIG_IsOK(res1)) {
25413 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25414 }
25415 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25416 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25417 if (!SWIG_IsOK(res2)) {
25418 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25419 }
25420 arg2 = reinterpret_cast< wxWindow * >(argp2);
25421 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25422 if (!SWIG_IsOK(res3)) {
25423 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25424 }
25425 if (!argp3) {
25426 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25427 }
25428 arg3 = reinterpret_cast< wxDC * >(argp3);
25429 {
25430 arg4 = &temp4;
25431 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25432 }
25433 if (obj4) {
25434 ecode5 = SWIG_AsVal_int(obj4, &val5);
25435 if (!SWIG_IsOK(ecode5)) {
25436 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25437 }
25438 arg5 = static_cast< int >(val5);
25439 }
25440 {
25441 PyThreadState* __tstate = wxPyBeginAllowThreads();
25442 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25443 wxPyEndAllowThreads(__tstate);
25444 if (PyErr_Occurred()) SWIG_fail;
25445 }
25446 resultobj = SWIG_Py_Void();
25447 return resultobj;
25448 fail:
25449 return NULL;
25450 }
25451
25452
25453 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25454 PyObject *resultobj = 0;
25455 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25456 wxWindow *arg2 = (wxWindow *) 0 ;
25457 wxDC *arg3 = 0 ;
25458 wxRect *arg4 = 0 ;
25459 int arg5 = (int) 0 ;
25460 void *argp1 = 0 ;
25461 int res1 = 0 ;
25462 void *argp2 = 0 ;
25463 int res2 = 0 ;
25464 void *argp3 = 0 ;
25465 int res3 = 0 ;
25466 wxRect temp4 ;
25467 int val5 ;
25468 int ecode5 = 0 ;
25469 PyObject * obj0 = 0 ;
25470 PyObject * obj1 = 0 ;
25471 PyObject * obj2 = 0 ;
25472 PyObject * obj3 = 0 ;
25473 PyObject * obj4 = 0 ;
25474 char * kwnames[] = {
25475 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25476 };
25477
25478 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25479 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25480 if (!SWIG_IsOK(res1)) {
25481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25482 }
25483 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25484 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25485 if (!SWIG_IsOK(res2)) {
25486 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25487 }
25488 arg2 = reinterpret_cast< wxWindow * >(argp2);
25489 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25490 if (!SWIG_IsOK(res3)) {
25491 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25492 }
25493 if (!argp3) {
25494 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25495 }
25496 arg3 = reinterpret_cast< wxDC * >(argp3);
25497 {
25498 arg4 = &temp4;
25499 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25500 }
25501 if (obj4) {
25502 ecode5 = SWIG_AsVal_int(obj4, &val5);
25503 if (!SWIG_IsOK(ecode5)) {
25504 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25505 }
25506 arg5 = static_cast< int >(val5);
25507 }
25508 {
25509 PyThreadState* __tstate = wxPyBeginAllowThreads();
25510 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25511 wxPyEndAllowThreads(__tstate);
25512 if (PyErr_Occurred()) SWIG_fail;
25513 }
25514 resultobj = SWIG_Py_Void();
25515 return resultobj;
25516 fail:
25517 return NULL;
25518 }
25519
25520
25521 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25522 PyObject *resultobj = 0;
25523 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25524 wxWindow *arg2 = (wxWindow *) 0 ;
25525 wxDC *arg3 = 0 ;
25526 wxRect *arg4 = 0 ;
25527 int arg5 = (int) 0 ;
25528 void *argp1 = 0 ;
25529 int res1 = 0 ;
25530 void *argp2 = 0 ;
25531 int res2 = 0 ;
25532 void *argp3 = 0 ;
25533 int res3 = 0 ;
25534 wxRect temp4 ;
25535 int val5 ;
25536 int ecode5 = 0 ;
25537 PyObject * obj0 = 0 ;
25538 PyObject * obj1 = 0 ;
25539 PyObject * obj2 = 0 ;
25540 PyObject * obj3 = 0 ;
25541 PyObject * obj4 = 0 ;
25542 char * kwnames[] = {
25543 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25544 };
25545
25546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25547 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25548 if (!SWIG_IsOK(res1)) {
25549 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25550 }
25551 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25552 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25553 if (!SWIG_IsOK(res2)) {
25554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25555 }
25556 arg2 = reinterpret_cast< wxWindow * >(argp2);
25557 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25558 if (!SWIG_IsOK(res3)) {
25559 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25560 }
25561 if (!argp3) {
25562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25563 }
25564 arg3 = reinterpret_cast< wxDC * >(argp3);
25565 {
25566 arg4 = &temp4;
25567 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25568 }
25569 if (obj4) {
25570 ecode5 = SWIG_AsVal_int(obj4, &val5);
25571 if (!SWIG_IsOK(ecode5)) {
25572 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25573 }
25574 arg5 = static_cast< int >(val5);
25575 }
25576 {
25577 PyThreadState* __tstate = wxPyBeginAllowThreads();
25578 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25579 wxPyEndAllowThreads(__tstate);
25580 if (PyErr_Occurred()) SWIG_fail;
25581 }
25582 resultobj = SWIG_Py_Void();
25583 return resultobj;
25584 fail:
25585 return NULL;
25586 }
25587
25588
25589 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25590 PyObject *resultobj = 0;
25591 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25592 wxWindow *arg2 = (wxWindow *) 0 ;
25593 wxDC *arg3 = 0 ;
25594 wxRect *arg4 = 0 ;
25595 int arg5 = (int) 0 ;
25596 void *argp1 = 0 ;
25597 int res1 = 0 ;
25598 void *argp2 = 0 ;
25599 int res2 = 0 ;
25600 void *argp3 = 0 ;
25601 int res3 = 0 ;
25602 wxRect temp4 ;
25603 int val5 ;
25604 int ecode5 = 0 ;
25605 PyObject * obj0 = 0 ;
25606 PyObject * obj1 = 0 ;
25607 PyObject * obj2 = 0 ;
25608 PyObject * obj3 = 0 ;
25609 PyObject * obj4 = 0 ;
25610 char * kwnames[] = {
25611 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25612 };
25613
25614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25616 if (!SWIG_IsOK(res1)) {
25617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25618 }
25619 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25620 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25621 if (!SWIG_IsOK(res2)) {
25622 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
25623 }
25624 arg2 = reinterpret_cast< wxWindow * >(argp2);
25625 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25626 if (!SWIG_IsOK(res3)) {
25627 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25628 }
25629 if (!argp3) {
25630 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25631 }
25632 arg3 = reinterpret_cast< wxDC * >(argp3);
25633 {
25634 arg4 = &temp4;
25635 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25636 }
25637 if (obj4) {
25638 ecode5 = SWIG_AsVal_int(obj4, &val5);
25639 if (!SWIG_IsOK(ecode5)) {
25640 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
25641 }
25642 arg5 = static_cast< int >(val5);
25643 }
25644 {
25645 PyThreadState* __tstate = wxPyBeginAllowThreads();
25646 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
25647 wxPyEndAllowThreads(__tstate);
25648 if (PyErr_Occurred()) SWIG_fail;
25649 }
25650 resultobj = SWIG_Py_Void();
25651 return resultobj;
25652 fail:
25653 return NULL;
25654 }
25655
25656
25657 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25658 PyObject *resultobj = 0;
25659 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25660 wxWindow *arg2 = (wxWindow *) 0 ;
25661 SwigValueWrapper<wxSplitterRenderParams > result;
25662 void *argp1 = 0 ;
25663 int res1 = 0 ;
25664 void *argp2 = 0 ;
25665 int res2 = 0 ;
25666 PyObject * obj0 = 0 ;
25667 PyObject * obj1 = 0 ;
25668 char * kwnames[] = {
25669 (char *) "self",(char *) "win", NULL
25670 };
25671
25672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25674 if (!SWIG_IsOK(res1)) {
25675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25676 }
25677 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25678 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25679 if (!SWIG_IsOK(res2)) {
25680 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25681 }
25682 arg2 = reinterpret_cast< wxWindow * >(argp2);
25683 {
25684 PyThreadState* __tstate = wxPyBeginAllowThreads();
25685 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25686 wxPyEndAllowThreads(__tstate);
25687 if (PyErr_Occurred()) SWIG_fail;
25688 }
25689 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25690 return resultobj;
25691 fail:
25692 return NULL;
25693 }
25694
25695
25696 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25697 PyObject *resultobj = 0;
25698 wxRendererNative *result = 0 ;
25699
25700 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25701 {
25702 if (!wxPyCheckForApp()) SWIG_fail;
25703 PyThreadState* __tstate = wxPyBeginAllowThreads();
25704 {
25705 wxRendererNative &_result_ref = wxRendererNative::Get();
25706 result = (wxRendererNative *) &_result_ref;
25707 }
25708 wxPyEndAllowThreads(__tstate);
25709 if (PyErr_Occurred()) SWIG_fail;
25710 }
25711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25712 return resultobj;
25713 fail:
25714 return NULL;
25715 }
25716
25717
25718 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25719 PyObject *resultobj = 0;
25720 wxRendererNative *result = 0 ;
25721
25722 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25723 {
25724 if (!wxPyCheckForApp()) SWIG_fail;
25725 PyThreadState* __tstate = wxPyBeginAllowThreads();
25726 {
25727 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25728 result = (wxRendererNative *) &_result_ref;
25729 }
25730 wxPyEndAllowThreads(__tstate);
25731 if (PyErr_Occurred()) SWIG_fail;
25732 }
25733 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25734 return resultobj;
25735 fail:
25736 return NULL;
25737 }
25738
25739
25740 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25741 PyObject *resultobj = 0;
25742 wxRendererNative *result = 0 ;
25743
25744 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25745 {
25746 if (!wxPyCheckForApp()) SWIG_fail;
25747 PyThreadState* __tstate = wxPyBeginAllowThreads();
25748 {
25749 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25750 result = (wxRendererNative *) &_result_ref;
25751 }
25752 wxPyEndAllowThreads(__tstate);
25753 if (PyErr_Occurred()) SWIG_fail;
25754 }
25755 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25756 return resultobj;
25757 fail:
25758 return NULL;
25759 }
25760
25761
25762 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25763 PyObject *resultobj = 0;
25764 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25765 wxRendererNative *result = 0 ;
25766 void *argp1 = 0 ;
25767 int res1 = 0 ;
25768 PyObject * obj0 = 0 ;
25769 char * kwnames[] = {
25770 (char *) "renderer", NULL
25771 };
25772
25773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25775 if (!SWIG_IsOK(res1)) {
25776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25777 }
25778 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25779 {
25780 if (!wxPyCheckForApp()) SWIG_fail;
25781 PyThreadState* __tstate = wxPyBeginAllowThreads();
25782 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25783 wxPyEndAllowThreads(__tstate);
25784 if (PyErr_Occurred()) SWIG_fail;
25785 }
25786 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25787 return resultobj;
25788 fail:
25789 return NULL;
25790 }
25791
25792
25793 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25794 PyObject *resultobj = 0;
25795 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25796 SwigValueWrapper<wxRendererVersion > result;
25797 void *argp1 = 0 ;
25798 int res1 = 0 ;
25799 PyObject *swig_obj[1] ;
25800
25801 if (!args) SWIG_fail;
25802 swig_obj[0] = args;
25803 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25804 if (!SWIG_IsOK(res1)) {
25805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25806 }
25807 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25808 {
25809 PyThreadState* __tstate = wxPyBeginAllowThreads();
25810 result = ((wxRendererNative const *)arg1)->GetVersion();
25811 wxPyEndAllowThreads(__tstate);
25812 if (PyErr_Occurred()) SWIG_fail;
25813 }
25814 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25815 return resultobj;
25816 fail:
25817 return NULL;
25818 }
25819
25820
25821 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25822 PyObject *obj;
25823 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25824 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25825 return SWIG_Py_Void();
25826 }
25827
25828 static PyMethodDef SwigMethods[] = {
25829 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25830 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25831 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25832 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25833 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25834 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25835 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25836 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25837 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25838 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25839 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25840 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25841 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25842 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25843 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25844 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25845 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
25846 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25847 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25848 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25849 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25850 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25851 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25852 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25853 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25854 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25855 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25856 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25857 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25858 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25859 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25860 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25861 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25862 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25863 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25864 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25865 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25866 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25867 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25868 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25869 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25870 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25871 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25872 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25873 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25874 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25875 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25876 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25877 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
25878 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
25879 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25880 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25881 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25882 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25883 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25884 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25885 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25886 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25887 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25888 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25889 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25890 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25891 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25892 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25893 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25894 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25895 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25896 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25897 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25898 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25899 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25900 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25901 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25902 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25903 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25904 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
25905 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25906 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25907 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25908 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25909 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25910 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25911 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25912 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25913 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25914 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25915 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25916 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25917 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25918 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25919 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25920 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25921 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25922 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25923 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25924 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25925 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25926 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25927 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25928 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25929 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25930 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25931 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25932 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25933 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25934 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25935 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25936 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25937 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25938 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25939 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25940 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25941 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
25942 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25943 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25944 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25945 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25946 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25947 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25948 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25949 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25950 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25951 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25952 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25953 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25954 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25955 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25956 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25957 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25958 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25959 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25960 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25961 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25962 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25963 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25964 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25965 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25966 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25967 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25968 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25969 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25970 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25971 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25972 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25973 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25974 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25975 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25976 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
25977 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25978 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25979 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
25980 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
25981 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
25982 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25983 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25984 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25985 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25986 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25987 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25988 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25989 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25990 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25991 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25992 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25993 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25994 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25995 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25996 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25997 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25998 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25999 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
26000 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
26001 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
26002 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26003 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
26004 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
26005 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
26006 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26007 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
26008 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
26009 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26010 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
26011 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
26012 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26013 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
26014 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26015 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
26016 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
26017 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
26018 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
26019 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
26020 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
26021 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
26022 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
26023 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
26024 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
26025 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
26026 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
26027 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
26028 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
26029 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
26030 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
26031 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
26032 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
26033 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
26034 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
26035 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
26036 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
26037 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
26038 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
26039 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
26040 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
26041 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
26042 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
26043 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
26044 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
26045 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26046 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26047 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26048 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26049 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26050 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26051 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26052 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26053 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26054 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
26055 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
26056 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
26057 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
26058 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
26059 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
26060 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
26061 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
26062 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
26063 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
26064 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
26065 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
26066 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26067 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
26068 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
26069 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
26070 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26071 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26072 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
26073 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
26074 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
26075 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26076 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26077 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
26078 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26079 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
26080 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
26081 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
26082 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
26083 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
26084 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26085 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
26086 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
26087 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
26088 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
26089 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
26090 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
26091 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
26092 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26093 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
26094 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
26095 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26096 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26097 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
26098 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
26099 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
26100 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
26101 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
26102 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
26103 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
26104 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
26105 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
26106 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
26107 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
26108 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
26109 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
26110 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
26111 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
26112 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
26113 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26114 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26115 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26116 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26117 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26118 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26119 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26120 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26121 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26122 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
26123 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
26124 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
26125 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
26126 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
26127 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
26128 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
26129 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
26130 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26131 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
26132 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
26133 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
26134 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
26135 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26136 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
26137 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
26138 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_NOARGS, NULL},
26139 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_NOARGS, NULL},
26140 { (char *)"FontEnumerator_IsValidFacename", (PyCFunction) _wrap_FontEnumerator_IsValidFacename, METH_VARARGS | METH_KEYWORDS, NULL},
26141 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
26142 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
26143 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
26144 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
26145 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
26146 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
26147 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
26148 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
26149 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
26150 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
26151 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
26152 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
26153 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
26154 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
26155 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
26156 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
26157 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
26158 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
26159 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
26160 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
26161 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
26162 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
26163 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
26164 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
26165 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26166 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
26167 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26168 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
26169 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
26170 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
26171 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
26172 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
26173 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
26174 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
26175 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
26176 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
26177 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
26178 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
26179 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26180 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26181 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
26182 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
26183 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
26184 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
26185 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
26186 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26187 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
26188 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
26189 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
26190 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26191 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
26192 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26193 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
26194 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26195 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
26196 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26197 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
26198 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
26199 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
26200 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26201 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26202 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26203 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26204 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26205 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26206 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26207 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26208 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26209 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
26210 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26211 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
26212 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
26213 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26214 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26215 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26216 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26217 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26218 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
26219 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26220 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
26221 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26222 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
26223 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26224 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26225 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26226 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26227 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
26228 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
26229 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
26230 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26231 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26232 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
26233 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
26234 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
26235 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
26236 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
26237 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
26238 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26239 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26240 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26241 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26242 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
26243 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
26244 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
26245 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
26246 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
26247 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
26248 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
26249 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26250 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26251 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26252 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
26253 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
26254 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
26255 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
26256 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
26257 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
26258 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
26259 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26260 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26261 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
26262 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
26263 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26264 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26265 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
26266 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
26267 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
26268 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
26269 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
26270 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
26271 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
26272 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
26273 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
26274 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
26275 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
26276 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
26277 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
26278 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26279 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
26280 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
26281 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
26282 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
26283 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
26284 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
26285 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
26286 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
26287 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26288 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26289 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
26290 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
26291 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26292 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26293 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
26294 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
26295 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
26296 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
26297 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
26298 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26299 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
26300 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
26301 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
26302 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
26303 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
26304 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
26305 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
26306 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
26307 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
26308 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
26309 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
26310 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
26311 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
26312 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
26313 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
26314 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
26315 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
26316 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
26317 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
26318 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
26319 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
26320 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
26321 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
26322 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
26323 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26324 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
26325 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
26326 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
26327 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
26328 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
26329 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
26330 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
26331 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
26332 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
26333 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
26334 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
26335 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26336 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
26337 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26338 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
26339 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
26340 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
26341 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
26342 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
26343 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
26344 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
26345 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
26346 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
26347 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
26348 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
26349 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
26350 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
26351 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
26352 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
26353 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
26354 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
26355 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
26356 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
26357 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
26358 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
26359 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
26360 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
26361 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
26362 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
26363 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
26364 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
26365 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
26366 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
26367 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
26368 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
26369 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
26370 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
26371 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
26372 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26373 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26374 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26375 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
26376 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
26377 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
26378 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
26379 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
26380 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
26381 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
26382 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
26383 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
26384 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
26385 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
26386 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
26387 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26388 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
26389 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
26390 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26391 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26392 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
26393 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
26394 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
26395 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
26396 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
26397 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
26398 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
26399 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
26400 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
26401 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
26402 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26403 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26404 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26405 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
26406 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
26407 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
26408 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
26409 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
26410 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
26411 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
26412 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
26413 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
26414 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
26415 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
26416 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
26417 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
26418 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
26419 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
26420 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
26421 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
26422 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
26423 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
26424 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
26425 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
26426 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
26427 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
26428 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
26429 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26430 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
26431 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26432 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26433 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26434 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
26435 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26436 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
26437 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
26438 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
26439 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
26440 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
26441 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
26442 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
26443 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
26444 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
26445 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
26446 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
26447 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
26448 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
26449 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
26450 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
26451 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
26452 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
26453 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
26454 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
26455 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
26456 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
26457 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
26458 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
26459 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
26460 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
26461 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
26462 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
26463 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
26464 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
26465 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26466 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
26467 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
26468 { NULL, NULL, 0, NULL }
26469 };
26470
26471
26472 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26473
26474 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
26475 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
26476 }
26477 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
26478 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
26479 }
26480 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
26481 return (void *)((wxGDIObject *) ((wxIcon *) x));
26482 }
26483 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
26484 return (void *)((wxGDIObject *) ((wxPalette *) x));
26485 }
26486 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
26487 return (void *)((wxGDIObject *) ((wxPen *) x));
26488 }
26489 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
26490 return (void *)((wxGDIObject *) ((wxFont *) x));
26491 }
26492 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
26493 return (void *)((wxGDIObject *) ((wxCursor *) x));
26494 }
26495 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
26496 return (void *)((wxGDIObject *) ((wxBitmap *) x));
26497 }
26498 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
26499 return (void *)((wxGDIObject *) ((wxRegion *) x));
26500 }
26501 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
26502 return (void *)((wxGDIObject *) ((wxBrush *) x));
26503 }
26504 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26505 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
26506 }
26507 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
26508 return (void *)((wxDC *) ((wxScreenDC *) x));
26509 }
26510 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
26511 return (void *)((wxDC *) ((wxMirrorDC *) x));
26512 }
26513 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
26514 return (void *)((wxDC *) ((wxMemoryDC *) x));
26515 }
26516 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
26517 return (void *)((wxDC *) ((wxWindowDC *) x));
26518 }
26519 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
26520 return (void *)((wxDC *) ((wxMetaFileDC *) x));
26521 }
26522 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26523 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26524 }
26525 static void *_p_wxClientDCTo_p_wxDC(void *x) {
26526 return (void *)((wxDC *) ((wxClientDC *) x));
26527 }
26528 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
26529 return (void *)((wxDC *) ((wxPaintDC *) x));
26530 }
26531 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
26532 return (void *)((wxDC *) ((wxPostScriptDC *) x));
26533 }
26534 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
26535 return (void *)((wxDC *) ((wxPrinterDC *) x));
26536 }
26537 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
26538 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
26539 }
26540 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
26541 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
26542 }
26543 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
26544 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
26545 }
26546 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
26547 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
26548 }
26549 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
26550 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
26551 }
26552 static void *_p_wxPenTo_p_wxObject(void *x) {
26553 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
26554 }
26555 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
26556 return (void *)((wxObject *) ((wxRegionIterator *) x));
26557 }
26558 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
26559 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
26560 }
26561 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
26562 return (void *)((wxObject *) ((wxSizerItem *) x));
26563 }
26564 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
26565 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
26566 }
26567 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
26568 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
26569 }
26570 static void *_p_wxIconTo_p_wxObject(void *x) {
26571 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
26572 }
26573 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
26574 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
26575 }
26576 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
26577 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
26578 }
26579 static void *_p_wxSizerTo_p_wxObject(void *x) {
26580 return (void *)((wxObject *) ((wxSizer *) x));
26581 }
26582 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
26583 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
26584 }
26585 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
26586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
26587 }
26588 static void *_p_wxEventTo_p_wxObject(void *x) {
26589 return (void *)((wxObject *) ((wxEvent *) x));
26590 }
26591 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
26592 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
26593 }
26594 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
26595 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
26596 }
26597 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
26598 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
26599 }
26600 static void *_p_wxClipboardTextEventTo_p_wxObject(void *x) {
26601 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxClipboardTextEvent *) x));
26602 }
26603 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
26604 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
26605 }
26606 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
26607 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
26608 }
26609 static void *_p_wxDCTo_p_wxObject(void *x) {
26610 return (void *)((wxObject *) ((wxDC *) x));
26611 }
26612 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
26613 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
26614 }
26615 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
26616 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
26617 }
26618 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
26619 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
26620 }
26621 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
26622 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
26623 }
26624 static void *_p_wxControlTo_p_wxObject(void *x) {
26625 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
26626 }
26627 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
26628 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
26629 }
26630 static void *_p_wxClientDCTo_p_wxObject(void *x) {
26631 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
26632 }
26633 static void *_p_wxFSFileTo_p_wxObject(void *x) {
26634 return (void *)((wxObject *) ((wxFSFile *) x));
26635 }
26636 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26637 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
26638 }
26639 static void *_p_wxRegionTo_p_wxObject(void *x) {
26640 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
26641 }
26642 static void *_p_wxPySizerTo_p_wxObject(void *x) {
26643 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
26644 }
26645 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
26646 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
26647 }
26648 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
26649 return (void *)((wxObject *) ((wxGDIObject *) x));
26650 }
26651 static void *_p_wxEffectsTo_p_wxObject(void *x) {
26652 return (void *)((wxObject *) ((wxEffects *) x));
26653 }
26654 static void *_p_wxPyEventTo_p_wxObject(void *x) {
26655 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
26656 }
26657 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
26658 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
26659 }
26660 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
26661 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
26662 }
26663 static void *_p_wxShowEventTo_p_wxObject(void *x) {
26664 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
26665 }
26666 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
26667 return (void *)((wxObject *) ((wxMenuItem *) x));
26668 }
26669 static void *_p_wxDateEventTo_p_wxObject(void *x) {
26670 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
26671 }
26672 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
26673 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
26674 }
26675 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
26676 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
26677 }
26678 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
26679 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
26680 }
26681 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
26682 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
26683 }
26684 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
26685 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
26686 }
26687 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
26688 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
26689 }
26690 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
26691 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
26692 }
26693 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
26694 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
26695 }
26696 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
26697 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
26698 }
26699 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
26700 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
26701 }
26702 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
26703 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
26704 }
26705 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
26706 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
26707 }
26708 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
26709 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
26710 }
26711 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
26712 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
26713 }
26714 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
26715 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
26716 }
26717 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
26718 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
26719 }
26720 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
26721 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
26722 }
26723 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
26724 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
26725 }
26726 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
26727 return (void *)((wxObject *) ((wxImageHandler *) x));
26728 }
26729 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
26730 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
26731 }
26732 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
26733 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
26734 }
26735 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
26736 return (void *)((wxObject *) ((wxEvtHandler *) x));
26737 }
26738 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26739 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26740 }
26741 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
26742 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
26743 }
26744 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
26745 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
26746 }
26747 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
26748 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
26749 }
26750 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
26751 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
26752 }
26753 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
26754 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
26755 }
26756 static void *_p_wxImageTo_p_wxObject(void *x) {
26757 return (void *)((wxObject *) ((wxImage *) x));
26758 }
26759 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
26760 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
26761 }
26762 static void *_p_wxPaletteTo_p_wxObject(void *x) {
26763 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
26764 }
26765 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26766 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
26767 }
26768 static void *_p_wxImageListTo_p_wxObject(void *x) {
26769 return (void *)((wxObject *) ((wxImageList *) x));
26770 }
26771 static void *_p_wxCursorTo_p_wxObject(void *x) {
26772 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26773 }
26774 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26775 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26776 }
26777 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26778 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26779 }
26780 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26781 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26782 }
26783 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26784 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26785 }
26786 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26787 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26788 }
26789 static void *_p_wxWindowTo_p_wxObject(void *x) {
26790 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26791 }
26792 static void *_p_wxMenuTo_p_wxObject(void *x) {
26793 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26794 }
26795 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26796 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26797 }
26798 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26799 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26800 }
26801 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26802 return (void *)((wxObject *) ((wxFileSystem *) x));
26803 }
26804 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26805 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26806 }
26807 static void *_p_wxMaskTo_p_wxObject(void *x) {
26808 return (void *)((wxObject *) ((wxMask *) x));
26809 }
26810 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26811 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26812 }
26813 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26814 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26815 }
26816 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26817 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26818 }
26819 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26820 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26821 }
26822 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26823 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26824 }
26825 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26826 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26827 }
26828 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26829 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26830 }
26831 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26832 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26833 }
26834 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26835 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26836 }
26837 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26838 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26839 }
26840 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26841 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26842 }
26843 static void *_p_wxFontTo_p_wxObject(void *x) {
26844 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26845 }
26846 static void *_p_wxBrushTo_p_wxObject(void *x) {
26847 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26848 }
26849 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26850 return (void *)((wxObject *) ((wxMetaFile *) x));
26851 }
26852 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26853 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26854 }
26855 static void *_p_wxColourTo_p_wxObject(void *x) {
26856 return (void *)((wxObject *) ((wxColour *) x));
26857 }
26858 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26859 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26860 }
26861 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26862 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26863 }
26864 static void *_p_wxControlTo_p_wxWindow(void *x) {
26865 return (void *)((wxWindow *) ((wxControl *) x));
26866 }
26867 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26868 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26869 }
26870 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26871 return (void *)((wxWindow *) ((wxMenuBar *) x));
26872 }
26873 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26874 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26875 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};
26876 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26877 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26878 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26879 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26880 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26881 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26882 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26883 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26884 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26885 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26886 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26887 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26888 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26889 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26890 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26891 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26892 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26893 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26894 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26895 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26896 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26897 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26898 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26899 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26900 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26901 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26902 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26903 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26904 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26905 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26906 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26907 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26908 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26909 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26910 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26911 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26912 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26913 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26914 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26915 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26916 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26917 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26918 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26919 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26920 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26921 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26922 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26923 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26924 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26925 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26926 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26927 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26928 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26929 static swig_type_info _swigt__p_wxClipboardTextEvent = {"_p_wxClipboardTextEvent", 0, 0, 0, 0, 0};
26930 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26931 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26932 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26933 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26934 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26935 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26936 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26937 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26938 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26939 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26940 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26941 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26942 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26943 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26944 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26945 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26946 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26947 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26948 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26949 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26950 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26951 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26952 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26953 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26954 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26955 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26956 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26957 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26958 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26959 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26960 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26961 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26962 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26963 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26964 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26965 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26966 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26967 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26968 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26969 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26970 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26971 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26972 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26973 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26974 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26975 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26976 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26977 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26978 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26979 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26980 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26981 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26982 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26983 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26984 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26985 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26986 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26987 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26988 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26989 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26990 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26991 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26992 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26993 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26994 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26995 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26996 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26997 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26998 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26999 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
27000 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
27001 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
27002 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
27003 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
27004 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
27005 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
27006 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
27007 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
27008 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
27009 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
27010 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
27011
27012 static swig_type_info *swig_type_initial[] = {
27013 &_swigt__p_char,
27014 &_swigt__p_double,
27015 &_swigt__p_form_ops_t,
27016 &_swigt__p_int,
27017 &_swigt__p_unsigned_char,
27018 &_swigt__p_unsigned_int,
27019 &_swigt__p_unsigned_long,
27020 &_swigt__p_wxANIHandler,
27021 &_swigt__p_wxAcceleratorTable,
27022 &_swigt__p_wxActivateEvent,
27023 &_swigt__p_wxBMPHandler,
27024 &_swigt__p_wxBitmap,
27025 &_swigt__p_wxBoxSizer,
27026 &_swigt__p_wxBrush,
27027 &_swigt__p_wxBrushList,
27028 &_swigt__p_wxBufferedDC,
27029 &_swigt__p_wxBufferedPaintDC,
27030 &_swigt__p_wxCURHandler,
27031 &_swigt__p_wxChildFocusEvent,
27032 &_swigt__p_wxClientDC,
27033 &_swigt__p_wxClipboardTextEvent,
27034 &_swigt__p_wxCloseEvent,
27035 &_swigt__p_wxColour,
27036 &_swigt__p_wxColourDatabase,
27037 &_swigt__p_wxCommandEvent,
27038 &_swigt__p_wxContextMenuEvent,
27039 &_swigt__p_wxControl,
27040 &_swigt__p_wxControlWithItems,
27041 &_swigt__p_wxCursor,
27042 &_swigt__p_wxDC,
27043 &_swigt__p_wxDash,
27044 &_swigt__p_wxDateEvent,
27045 &_swigt__p_wxDisplayChangedEvent,
27046 &_swigt__p_wxDropFilesEvent,
27047 &_swigt__p_wxDuplexMode,
27048 &_swigt__p_wxEffects,
27049 &_swigt__p_wxEncodingConverter,
27050 &_swigt__p_wxEraseEvent,
27051 &_swigt__p_wxEvent,
27052 &_swigt__p_wxEvtHandler,
27053 &_swigt__p_wxFSFile,
27054 &_swigt__p_wxFileSystem,
27055 &_swigt__p_wxFlexGridSizer,
27056 &_swigt__p_wxFocusEvent,
27057 &_swigt__p_wxFont,
27058 &_swigt__p_wxFontList,
27059 &_swigt__p_wxFontMapper,
27060 &_swigt__p_wxGBSizerItem,
27061 &_swigt__p_wxGDIObjListBase,
27062 &_swigt__p_wxGDIObject,
27063 &_swigt__p_wxGIFHandler,
27064 &_swigt__p_wxGridBagSizer,
27065 &_swigt__p_wxGridSizer,
27066 &_swigt__p_wxICOHandler,
27067 &_swigt__p_wxIcon,
27068 &_swigt__p_wxIconBundle,
27069 &_swigt__p_wxIconLocation,
27070 &_swigt__p_wxIconizeEvent,
27071 &_swigt__p_wxIdleEvent,
27072 &_swigt__p_wxImage,
27073 &_swigt__p_wxImageHandler,
27074 &_swigt__p_wxImageList,
27075 &_swigt__p_wxIndividualLayoutConstraint,
27076 &_swigt__p_wxInitDialogEvent,
27077 &_swigt__p_wxJPEGHandler,
27078 &_swigt__p_wxKeyEvent,
27079 &_swigt__p_wxLanguageInfo,
27080 &_swigt__p_wxLayoutConstraints,
27081 &_swigt__p_wxLocale,
27082 &_swigt__p_wxMask,
27083 &_swigt__p_wxMaximizeEvent,
27084 &_swigt__p_wxMemoryDC,
27085 &_swigt__p_wxMenu,
27086 &_swigt__p_wxMenuBar,
27087 &_swigt__p_wxMenuEvent,
27088 &_swigt__p_wxMenuItem,
27089 &_swigt__p_wxMetaFile,
27090 &_swigt__p_wxMetaFileDC,
27091 &_swigt__p_wxMirrorDC,
27092 &_swigt__p_wxMouseCaptureChangedEvent,
27093 &_swigt__p_wxMouseEvent,
27094 &_swigt__p_wxMoveEvent,
27095 &_swigt__p_wxNativeEncodingInfo,
27096 &_swigt__p_wxNativeFontInfo,
27097 &_swigt__p_wxNavigationKeyEvent,
27098 &_swigt__p_wxNcPaintEvent,
27099 &_swigt__p_wxNotifyEvent,
27100 &_swigt__p_wxObject,
27101 &_swigt__p_wxPCXHandler,
27102 &_swigt__p_wxPNGHandler,
27103 &_swigt__p_wxPNMHandler,
27104 &_swigt__p_wxPaintDC,
27105 &_swigt__p_wxPaintEvent,
27106 &_swigt__p_wxPalette,
27107 &_swigt__p_wxPaletteChangedEvent,
27108 &_swigt__p_wxPaperSize,
27109 &_swigt__p_wxPen,
27110 &_swigt__p_wxPenList,
27111 &_swigt__p_wxPoint,
27112 &_swigt__p_wxPostScriptDC,
27113 &_swigt__p_wxPrintData,
27114 &_swigt__p_wxPrinterDC,
27115 &_swigt__p_wxPyApp,
27116 &_swigt__p_wxPyCommandEvent,
27117 &_swigt__p_wxPyEvent,
27118 &_swigt__p_wxPyFontEnumerator,
27119 &_swigt__p_wxPyImageHandler,
27120 &_swigt__p_wxPySizer,
27121 &_swigt__p_wxPyValidator,
27122 &_swigt__p_wxQueryNewPaletteEvent,
27123 &_swigt__p_wxRect,
27124 &_swigt__p_wxRegion,
27125 &_swigt__p_wxRegionIterator,
27126 &_swigt__p_wxRendererNative,
27127 &_swigt__p_wxRendererVersion,
27128 &_swigt__p_wxScreenDC,
27129 &_swigt__p_wxScrollEvent,
27130 &_swigt__p_wxScrollWinEvent,
27131 &_swigt__p_wxSetCursorEvent,
27132 &_swigt__p_wxShowEvent,
27133 &_swigt__p_wxSize,
27134 &_swigt__p_wxSizeEvent,
27135 &_swigt__p_wxSizer,
27136 &_swigt__p_wxSizerItem,
27137 &_swigt__p_wxSplitterRenderParams,
27138 &_swigt__p_wxStaticBoxSizer,
27139 &_swigt__p_wxStdDialogButtonSizer,
27140 &_swigt__p_wxStockGDI,
27141 &_swigt__p_wxString,
27142 &_swigt__p_wxSysColourChangedEvent,
27143 &_swigt__p_wxTIFFHandler,
27144 &_swigt__p_wxUpdateUIEvent,
27145 &_swigt__p_wxValidator,
27146 &_swigt__p_wxWindow,
27147 &_swigt__p_wxWindowCreateEvent,
27148 &_swigt__p_wxWindowDC,
27149 &_swigt__p_wxWindowDestroyEvent,
27150 &_swigt__p_wxXPMHandler,
27151 };
27152
27153 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
27154 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
27155 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
27156 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
27157 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
27158 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
27159 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
27160 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
27161 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
27162 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
27163 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}};
27164 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27165 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
27166 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
27167 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
27168 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
27169 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}};
27170 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
27171 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
27172 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
27173 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
27174 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
27175 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
27176 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
27177 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}};
27178 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}};
27179 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
27180 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
27181 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
27182 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
27183 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
27184 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
27185 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
27186 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
27187 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}};
27188 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
27189 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
27190 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
27191 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
27192 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
27193 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
27194 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27195 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27196 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
27197 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
27198 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27199 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27200 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
27201 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
27202 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
27203 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
27204 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
27205 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27206 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27207 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
27208 static swig_cast_info _swigc__p_wxClipboardTextEvent[] = {{&_swigt__p_wxClipboardTextEvent, 0, 0, 0},{0, 0, 0, 0}};
27209 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27210 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27211 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27212 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27213 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27214 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27215 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
27216 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
27217 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
27218 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
27219 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
27220 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
27221 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
27222 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
27223 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
27224 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
27225 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
27226 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
27227 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27228 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27229 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27230 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
27231 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
27232 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
27233 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27234 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
27235 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
27236 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
27237 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27238 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27239 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
27240 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
27241 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27242 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
27243 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
27244 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
27245 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
27246 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
27247 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
27248 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
27249 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
27250 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27251 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27252 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
27253 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
27254 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27255 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27256 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
27257 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
27258 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
27259 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
27260 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27261 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27262 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
27263 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27264 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27265 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
27266 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
27267 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
27268 static swig_cast_info _swigc__p_wxObject[] = { {&_swigt__p_wxLayoutConstraints, _p_wxLayoutConstraintsTo_p_wxObject, 0, 0}, {&_swigt__p_wxRegionIterator, _p_wxRegionIteratorTo_p_wxObject, 0, 0}, {&_swigt__p_wxPen, _p_wxPenTo_p_wxObject, 0, 0}, {&_swigt__p_wxGBSizerItem, _p_wxGBSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizerItem, _p_wxSizerItemTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollEvent, _p_wxScrollEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxIndividualLayoutConstraint, _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0}, {&_swigt__p_wxStaticBoxSizer, _p_wxStaticBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxBoxSizer, _p_wxBoxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxSizer, _p_wxSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridBagSizer, _p_wxGridBagSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxUpdateUIEvent, _p_wxUpdateUIEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenu, _p_wxMenuTo_p_wxObject, 0, 0}, {&_swigt__p_wxEvent, _p_wxEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFlexGridSizer, _p_wxFlexGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxGridSizer, _p_wxGridSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxInitDialogEvent, _p_wxInitDialogEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMask, _p_wxMaskTo_p_wxObject, 0, 0}, {&_swigt__p_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_wxPNGHandler, _p_wxPNGHandlerTo_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_wxGIFHandler, _p_wxGIFHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPCXHandler, _p_wxPCXHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxJPEGHandler, _p_wxJPEGHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPNMHandler, _p_wxPNMHandlerTo_p_wxObject, 0, 0}, {&_swigt__p_wxPaintDC, _p_wxPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedPaintDC, _p_wxBufferedPaintDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPrinterDC, _p_wxPrinterDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxScreenDC, _p_wxScreenDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxStdDialogButtonSizer, _p_wxStdDialogButtonSizerTo_p_wxObject, 0, 0}, {&_swigt__p_wxAcceleratorTable, _p_wxAcceleratorTableTo_p_wxObject, 0, 0}, {&_swigt__p_wxImage, _p_wxImageTo_p_wxObject, 0, 0}, {&_swigt__p_wxScrollWinEvent, _p_wxScrollWinEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBufferedDC, _p_wxBufferedDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxPalette, _p_wxPaletteTo_p_wxObject, 0, 0}, {&_swigt__p_wxImageList, _p_wxImageListTo_p_wxObject, 0, 0}, {&_swigt__p_wxCursor, _p_wxCursorTo_p_wxObject, 0, 0}, {&_swigt__p_wxObject, 0, 0, 0}, {&_swigt__p_wxMirrorDC, _p_wxMirrorDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxEncodingConverter, _p_wxEncodingConverterTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindowDestroyEvent, _p_wxWindowDestroyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxNavigationKeyEvent, _p_wxNavigationKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxKeyEvent, _p_wxKeyEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFileDC, _p_wxMetaFileDCTo_p_wxObject, 0, 0}, {&_swigt__p_wxWindow, _p_wxWindowTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuBar, _p_wxMenuBarTo_p_wxObject, 0, 0}, {&_swigt__p_wxFileSystem, _p_wxFileSystemTo_p_wxObject, 0, 0}, {&_swigt__p_wxBitmap, _p_wxBitmapTo_p_wxObject, 0, 0}, {&_swigt__p_wxContextMenuEvent, _p_wxContextMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMenuEvent, _p_wxMenuEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyApp, _p_wxPyAppTo_p_wxObject, 0, 0}, {&_swigt__p_wxCloseEvent, _p_wxCloseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxMouseEvent, _p_wxMouseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxEraseEvent, _p_wxEraseEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyCommandEvent, _p_wxPyCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxCommandEvent, _p_wxCommandEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxDropFilesEvent, _p_wxDropFilesEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxFocusEvent, _p_wxFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxChildFocusEvent, _p_wxChildFocusEventTo_p_wxObject, 0, 0}, {&_swigt__p_wxBrush, _p_wxBrushTo_p_wxObject, 0, 0}, {&_swigt__p_wxMetaFile, _p_wxMetaFileTo_p_wxObject, 0, 0}, {&_swigt__p_wxControlWithItems, _p_wxControlWithItemsTo_p_wxObject, 0, 0}, {&_swigt__p_wxColour, _p_wxColourTo_p_wxObject, 0, 0}, {&_swigt__p_wxPyValidator, _p_wxPyValidatorTo_p_wxObject, 0, 0}, {&_swigt__p_wxValidator, _p_wxValidatorTo_p_wxObject, 0, 0},{0, 0, 0, 0}};
27269 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27270 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
27271 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
27272 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
27273 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
27274 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
27275 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
27276 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
27277 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27278 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
27279 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27280 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
27281 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
27282 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
27283 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
27284 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
27285 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
27286 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
27287 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
27288 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
27289 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}};
27290 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
27291
27292 static swig_cast_info *swig_cast_initial[] = {
27293 _swigc__p_char,
27294 _swigc__p_double,
27295 _swigc__p_form_ops_t,
27296 _swigc__p_int,
27297 _swigc__p_unsigned_char,
27298 _swigc__p_unsigned_int,
27299 _swigc__p_unsigned_long,
27300 _swigc__p_wxANIHandler,
27301 _swigc__p_wxAcceleratorTable,
27302 _swigc__p_wxActivateEvent,
27303 _swigc__p_wxBMPHandler,
27304 _swigc__p_wxBitmap,
27305 _swigc__p_wxBoxSizer,
27306 _swigc__p_wxBrush,
27307 _swigc__p_wxBrushList,
27308 _swigc__p_wxBufferedDC,
27309 _swigc__p_wxBufferedPaintDC,
27310 _swigc__p_wxCURHandler,
27311 _swigc__p_wxChildFocusEvent,
27312 _swigc__p_wxClientDC,
27313 _swigc__p_wxClipboardTextEvent,
27314 _swigc__p_wxCloseEvent,
27315 _swigc__p_wxColour,
27316 _swigc__p_wxColourDatabase,
27317 _swigc__p_wxCommandEvent,
27318 _swigc__p_wxContextMenuEvent,
27319 _swigc__p_wxControl,
27320 _swigc__p_wxControlWithItems,
27321 _swigc__p_wxCursor,
27322 _swigc__p_wxDC,
27323 _swigc__p_wxDash,
27324 _swigc__p_wxDateEvent,
27325 _swigc__p_wxDisplayChangedEvent,
27326 _swigc__p_wxDropFilesEvent,
27327 _swigc__p_wxDuplexMode,
27328 _swigc__p_wxEffects,
27329 _swigc__p_wxEncodingConverter,
27330 _swigc__p_wxEraseEvent,
27331 _swigc__p_wxEvent,
27332 _swigc__p_wxEvtHandler,
27333 _swigc__p_wxFSFile,
27334 _swigc__p_wxFileSystem,
27335 _swigc__p_wxFlexGridSizer,
27336 _swigc__p_wxFocusEvent,
27337 _swigc__p_wxFont,
27338 _swigc__p_wxFontList,
27339 _swigc__p_wxFontMapper,
27340 _swigc__p_wxGBSizerItem,
27341 _swigc__p_wxGDIObjListBase,
27342 _swigc__p_wxGDIObject,
27343 _swigc__p_wxGIFHandler,
27344 _swigc__p_wxGridBagSizer,
27345 _swigc__p_wxGridSizer,
27346 _swigc__p_wxICOHandler,
27347 _swigc__p_wxIcon,
27348 _swigc__p_wxIconBundle,
27349 _swigc__p_wxIconLocation,
27350 _swigc__p_wxIconizeEvent,
27351 _swigc__p_wxIdleEvent,
27352 _swigc__p_wxImage,
27353 _swigc__p_wxImageHandler,
27354 _swigc__p_wxImageList,
27355 _swigc__p_wxIndividualLayoutConstraint,
27356 _swigc__p_wxInitDialogEvent,
27357 _swigc__p_wxJPEGHandler,
27358 _swigc__p_wxKeyEvent,
27359 _swigc__p_wxLanguageInfo,
27360 _swigc__p_wxLayoutConstraints,
27361 _swigc__p_wxLocale,
27362 _swigc__p_wxMask,
27363 _swigc__p_wxMaximizeEvent,
27364 _swigc__p_wxMemoryDC,
27365 _swigc__p_wxMenu,
27366 _swigc__p_wxMenuBar,
27367 _swigc__p_wxMenuEvent,
27368 _swigc__p_wxMenuItem,
27369 _swigc__p_wxMetaFile,
27370 _swigc__p_wxMetaFileDC,
27371 _swigc__p_wxMirrorDC,
27372 _swigc__p_wxMouseCaptureChangedEvent,
27373 _swigc__p_wxMouseEvent,
27374 _swigc__p_wxMoveEvent,
27375 _swigc__p_wxNativeEncodingInfo,
27376 _swigc__p_wxNativeFontInfo,
27377 _swigc__p_wxNavigationKeyEvent,
27378 _swigc__p_wxNcPaintEvent,
27379 _swigc__p_wxNotifyEvent,
27380 _swigc__p_wxObject,
27381 _swigc__p_wxPCXHandler,
27382 _swigc__p_wxPNGHandler,
27383 _swigc__p_wxPNMHandler,
27384 _swigc__p_wxPaintDC,
27385 _swigc__p_wxPaintEvent,
27386 _swigc__p_wxPalette,
27387 _swigc__p_wxPaletteChangedEvent,
27388 _swigc__p_wxPaperSize,
27389 _swigc__p_wxPen,
27390 _swigc__p_wxPenList,
27391 _swigc__p_wxPoint,
27392 _swigc__p_wxPostScriptDC,
27393 _swigc__p_wxPrintData,
27394 _swigc__p_wxPrinterDC,
27395 _swigc__p_wxPyApp,
27396 _swigc__p_wxPyCommandEvent,
27397 _swigc__p_wxPyEvent,
27398 _swigc__p_wxPyFontEnumerator,
27399 _swigc__p_wxPyImageHandler,
27400 _swigc__p_wxPySizer,
27401 _swigc__p_wxPyValidator,
27402 _swigc__p_wxQueryNewPaletteEvent,
27403 _swigc__p_wxRect,
27404 _swigc__p_wxRegion,
27405 _swigc__p_wxRegionIterator,
27406 _swigc__p_wxRendererNative,
27407 _swigc__p_wxRendererVersion,
27408 _swigc__p_wxScreenDC,
27409 _swigc__p_wxScrollEvent,
27410 _swigc__p_wxScrollWinEvent,
27411 _swigc__p_wxSetCursorEvent,
27412 _swigc__p_wxShowEvent,
27413 _swigc__p_wxSize,
27414 _swigc__p_wxSizeEvent,
27415 _swigc__p_wxSizer,
27416 _swigc__p_wxSizerItem,
27417 _swigc__p_wxSplitterRenderParams,
27418 _swigc__p_wxStaticBoxSizer,
27419 _swigc__p_wxStdDialogButtonSizer,
27420 _swigc__p_wxStockGDI,
27421 _swigc__p_wxString,
27422 _swigc__p_wxSysColourChangedEvent,
27423 _swigc__p_wxTIFFHandler,
27424 _swigc__p_wxUpdateUIEvent,
27425 _swigc__p_wxValidator,
27426 _swigc__p_wxWindow,
27427 _swigc__p_wxWindowCreateEvent,
27428 _swigc__p_wxWindowDC,
27429 _swigc__p_wxWindowDestroyEvent,
27430 _swigc__p_wxXPMHandler,
27431 };
27432
27433
27434 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27435
27436 static swig_const_info swig_const_table[] = {
27437 {0, 0, 0, 0.0, 0, 0}};
27438
27439 #ifdef __cplusplus
27440 }
27441 #endif
27442 /* -----------------------------------------------------------------------------
27443 * Type initialization:
27444 * This problem is tough by the requirement that no dynamic
27445 * memory is used. Also, since swig_type_info structures store pointers to
27446 * swig_cast_info structures and swig_cast_info structures store pointers back
27447 * to swig_type_info structures, we need some lookup code at initialization.
27448 * The idea is that swig generates all the structures that are needed.
27449 * The runtime then collects these partially filled structures.
27450 * The SWIG_InitializeModule function takes these initial arrays out of
27451 * swig_module, and does all the lookup, filling in the swig_module.types
27452 * array with the correct data and linking the correct swig_cast_info
27453 * structures together.
27454 *
27455 * The generated swig_type_info structures are assigned staticly to an initial
27456 * array. We just loop though that array, and handle each type individually.
27457 * First we lookup if this type has been already loaded, and if so, use the
27458 * loaded structure instead of the generated one. Then we have to fill in the
27459 * cast linked list. The cast data is initially stored in something like a
27460 * two-dimensional array. Each row corresponds to a type (there are the same
27461 * number of rows as there are in the swig_type_initial array). Each entry in
27462 * a column is one of the swig_cast_info structures for that type.
27463 * The cast_initial array is actually an array of arrays, because each row has
27464 * a variable number of columns. So to actually build the cast linked list,
27465 * we find the array of casts associated with the type, and loop through it
27466 * adding the casts to the list. The one last trick we need to do is making
27467 * sure the type pointer in the swig_cast_info struct is correct.
27468 *
27469 * First off, we lookup the cast->type name to see if it is already loaded.
27470 * There are three cases to handle:
27471 * 1) If the cast->type has already been loaded AND the type we are adding
27472 * casting info to has not been loaded (it is in this module), THEN we
27473 * replace the cast->type pointer with the type pointer that has already
27474 * been loaded.
27475 * 2) If BOTH types (the one we are adding casting info to, and the
27476 * cast->type) are loaded, THEN the cast info has already been loaded by
27477 * the previous module so we just ignore it.
27478 * 3) Finally, if cast->type has not already been loaded, then we add that
27479 * swig_cast_info to the linked list (because the cast->type) pointer will
27480 * be correct.
27481 * ----------------------------------------------------------------------------- */
27482
27483 #ifdef __cplusplus
27484 extern "C" {
27485 #if 0
27486 } /* c-mode */
27487 #endif
27488 #endif
27489
27490 #if 0
27491 #define SWIGRUNTIME_DEBUG
27492 #endif
27493
27494 SWIGRUNTIME void
27495 SWIG_InitializeModule(void *clientdata) {
27496 size_t i;
27497 swig_module_info *module_head;
27498 static int init_run = 0;
27499
27500 clientdata = clientdata;
27501
27502 if (init_run) return;
27503 init_run = 1;
27504
27505 /* Initialize the swig_module */
27506 swig_module.type_initial = swig_type_initial;
27507 swig_module.cast_initial = swig_cast_initial;
27508
27509 /* Try and load any already created modules */
27510 module_head = SWIG_GetModule(clientdata);
27511 if (module_head) {
27512 swig_module.next = module_head->next;
27513 module_head->next = &swig_module;
27514 } else {
27515 /* This is the first module loaded */
27516 swig_module.next = &swig_module;
27517 SWIG_SetModule(clientdata, &swig_module);
27518 }
27519
27520 /* Now work on filling in swig_module.types */
27521 #ifdef SWIGRUNTIME_DEBUG
27522 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27523 #endif
27524 for (i = 0; i < swig_module.size; ++i) {
27525 swig_type_info *type = 0;
27526 swig_type_info *ret;
27527 swig_cast_info *cast;
27528
27529 #ifdef SWIGRUNTIME_DEBUG
27530 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27531 #endif
27532
27533 /* if there is another module already loaded */
27534 if (swig_module.next != &swig_module) {
27535 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27536 }
27537 if (type) {
27538 /* Overwrite clientdata field */
27539 #ifdef SWIGRUNTIME_DEBUG
27540 printf("SWIG_InitializeModule: found type %s\n", type->name);
27541 #endif
27542 if (swig_module.type_initial[i]->clientdata) {
27543 type->clientdata = swig_module.type_initial[i]->clientdata;
27544 #ifdef SWIGRUNTIME_DEBUG
27545 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27546 #endif
27547 }
27548 } else {
27549 type = swig_module.type_initial[i];
27550 }
27551
27552 /* Insert casting types */
27553 cast = swig_module.cast_initial[i];
27554 while (cast->type) {
27555 /* Don't need to add information already in the list */
27556 ret = 0;
27557 #ifdef SWIGRUNTIME_DEBUG
27558 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27559 #endif
27560 if (swig_module.next != &swig_module) {
27561 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27562 #ifdef SWIGRUNTIME_DEBUG
27563 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27564 #endif
27565 }
27566 if (ret) {
27567 if (type == swig_module.type_initial[i]) {
27568 #ifdef SWIGRUNTIME_DEBUG
27569 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27570 #endif
27571 cast->type = ret;
27572 ret = 0;
27573 } else {
27574 /* Check for casting already in the list */
27575 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27576 #ifdef SWIGRUNTIME_DEBUG
27577 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27578 #endif
27579 if (!ocast) ret = 0;
27580 }
27581 }
27582
27583 if (!ret) {
27584 #ifdef SWIGRUNTIME_DEBUG
27585 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27586 #endif
27587 if (type->cast) {
27588 type->cast->prev = cast;
27589 cast->next = type->cast;
27590 }
27591 type->cast = cast;
27592 }
27593 cast++;
27594 }
27595 /* Set entry in modules->types array equal to the type */
27596 swig_module.types[i] = type;
27597 }
27598 swig_module.types[i] = 0;
27599
27600 #ifdef SWIGRUNTIME_DEBUG
27601 printf("**** SWIG_InitializeModule: Cast List ******\n");
27602 for (i = 0; i < swig_module.size; ++i) {
27603 int j = 0;
27604 swig_cast_info *cast = swig_module.cast_initial[i];
27605 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27606 while (cast->type) {
27607 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27608 cast++;
27609 ++j;
27610 }
27611 printf("---- Total casts: %d\n",j);
27612 }
27613 printf("**** SWIG_InitializeModule: Cast List ******\n");
27614 #endif
27615 }
27616
27617 /* This function will propagate the clientdata field of type to
27618 * any new swig_type_info structures that have been added into the list
27619 * of equivalent types. It is like calling
27620 * SWIG_TypeClientData(type, clientdata) a second time.
27621 */
27622 SWIGRUNTIME void
27623 SWIG_PropagateClientData(void) {
27624 size_t i;
27625 swig_cast_info *equiv;
27626 static int init_run = 0;
27627
27628 if (init_run) return;
27629 init_run = 1;
27630
27631 for (i = 0; i < swig_module.size; i++) {
27632 if (swig_module.types[i]->clientdata) {
27633 equiv = swig_module.types[i]->cast;
27634 while (equiv) {
27635 if (!equiv->converter) {
27636 if (equiv->type && !equiv->type->clientdata)
27637 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27638 }
27639 equiv = equiv->next;
27640 }
27641 }
27642 }
27643 }
27644
27645 #ifdef __cplusplus
27646 #if 0
27647 {
27648 /* c-mode */
27649 #endif
27650 }
27651 #endif
27652
27653
27654
27655 #ifdef __cplusplus
27656 extern "C" {
27657 #endif
27658
27659 /* Python-specific SWIG API */
27660 #define SWIG_newvarlink() SWIG_Python_newvarlink()
27661 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27662 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27663
27664 /* -----------------------------------------------------------------------------
27665 * global variable support code.
27666 * ----------------------------------------------------------------------------- */
27667
27668 typedef struct swig_globalvar {
27669 char *name; /* Name of global variable */
27670 PyObject *(*get_attr)(void); /* Return the current value */
27671 int (*set_attr)(PyObject *); /* Set the value */
27672 struct swig_globalvar *next;
27673 } swig_globalvar;
27674
27675 typedef struct swig_varlinkobject {
27676 PyObject_HEAD
27677 swig_globalvar *vars;
27678 } swig_varlinkobject;
27679
27680 SWIGINTERN PyObject *
27681 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27682 return PyString_FromString("<Swig global variables>");
27683 }
27684
27685 SWIGINTERN PyObject *
27686 swig_varlink_str(swig_varlinkobject *v) {
27687 PyObject *str = PyString_FromString("(");
27688 swig_globalvar *var;
27689 for (var = v->vars; var; var=var->next) {
27690 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27691 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27692 }
27693 PyString_ConcatAndDel(&str,PyString_FromString(")"));
27694 return str;
27695 }
27696
27697 SWIGINTERN int
27698 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27699 PyObject *str = swig_varlink_str(v);
27700 fprintf(fp,"Swig global variables ");
27701 fprintf(fp,"%s\n", PyString_AsString(str));
27702 Py_DECREF(str);
27703 return 0;
27704 }
27705
27706 SWIGINTERN void
27707 swig_varlink_dealloc(swig_varlinkobject *v) {
27708 swig_globalvar *var = v->vars;
27709 while (var) {
27710 swig_globalvar *n = var->next;
27711 free(var->name);
27712 free(var);
27713 var = n;
27714 }
27715 }
27716
27717 SWIGINTERN PyObject *
27718 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27719 PyObject *res = NULL;
27720 swig_globalvar *var = v->vars;
27721 while (var) {
27722 if (strcmp(var->name,n) == 0) {
27723 res = (*var->get_attr)();
27724 break;
27725 }
27726 var = var->next;
27727 }
27728 if (res == NULL && !PyErr_Occurred()) {
27729 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27730 }
27731 return res;
27732 }
27733
27734 SWIGINTERN int
27735 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27736 int res = 1;
27737 swig_globalvar *var = v->vars;
27738 while (var) {
27739 if (strcmp(var->name,n) == 0) {
27740 res = (*var->set_attr)(p);
27741 break;
27742 }
27743 var = var->next;
27744 }
27745 if (res == 1 && !PyErr_Occurred()) {
27746 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27747 }
27748 return res;
27749 }
27750
27751 SWIGINTERN PyTypeObject*
27752 swig_varlink_type(void) {
27753 static char varlink__doc__[] = "Swig var link object";
27754 static PyTypeObject varlink_type;
27755 static int type_init = 0;
27756 if (!type_init) {
27757 const PyTypeObject tmp
27758 = {
27759 PyObject_HEAD_INIT(NULL)
27760 0, /* Number of items in variable part (ob_size) */
27761 (char *)"swigvarlink", /* Type name (tp_name) */
27762 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27763 0, /* Itemsize (tp_itemsize) */
27764 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27765 (printfunc) swig_varlink_print, /* Print (tp_print) */
27766 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27767 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27768 0, /* tp_compare */
27769 (reprfunc) swig_varlink_repr, /* tp_repr */
27770 0, /* tp_as_number */
27771 0, /* tp_as_sequence */
27772 0, /* tp_as_mapping */
27773 0, /* tp_hash */
27774 0, /* tp_call */
27775 (reprfunc)swig_varlink_str, /* tp_str */
27776 0, /* tp_getattro */
27777 0, /* tp_setattro */
27778 0, /* tp_as_buffer */
27779 0, /* tp_flags */
27780 varlink__doc__, /* tp_doc */
27781 0, /* tp_traverse */
27782 0, /* tp_clear */
27783 0, /* tp_richcompare */
27784 0, /* tp_weaklistoffset */
27785 #if PY_VERSION_HEX >= 0x02020000
27786 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27787 #endif
27788 #if PY_VERSION_HEX >= 0x02030000
27789 0, /* tp_del */
27790 #endif
27791 #ifdef COUNT_ALLOCS
27792 0,0,0,0 /* tp_alloc -> tp_next */
27793 #endif
27794 };
27795 varlink_type = tmp;
27796 varlink_type.ob_type = &PyType_Type;
27797 type_init = 1;
27798 }
27799 return &varlink_type;
27800 }
27801
27802 /* Create a variable linking object for use later */
27803 SWIGINTERN PyObject *
27804 SWIG_Python_newvarlink(void) {
27805 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27806 if (result) {
27807 result->vars = 0;
27808 }
27809 return ((PyObject*) result);
27810 }
27811
27812 SWIGINTERN void
27813 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27814 swig_varlinkobject *v = (swig_varlinkobject *) p;
27815 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27816 if (gv) {
27817 size_t size = strlen(name)+1;
27818 gv->name = (char *)malloc(size);
27819 if (gv->name) {
27820 strncpy(gv->name,name,size);
27821 gv->get_attr = get_attr;
27822 gv->set_attr = set_attr;
27823 gv->next = v->vars;
27824 }
27825 }
27826 v->vars = gv;
27827 }
27828
27829 SWIGINTERN PyObject *
27830 SWIG_globals() {
27831 static PyObject *_SWIG_globals = 0;
27832 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27833 return _SWIG_globals;
27834 }
27835
27836 /* -----------------------------------------------------------------------------
27837 * constants/methods manipulation
27838 * ----------------------------------------------------------------------------- */
27839
27840 /* Install Constants */
27841 SWIGINTERN void
27842 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27843 PyObject *obj = 0;
27844 size_t i;
27845 for (i = 0; constants[i].type; ++i) {
27846 switch(constants[i].type) {
27847 case SWIG_PY_POINTER:
27848 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27849 break;
27850 case SWIG_PY_BINARY:
27851 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27852 break;
27853 default:
27854 obj = 0;
27855 break;
27856 }
27857 if (obj) {
27858 PyDict_SetItemString(d, constants[i].name, obj);
27859 Py_DECREF(obj);
27860 }
27861 }
27862 }
27863
27864 /* -----------------------------------------------------------------------------*/
27865 /* Fix SwigMethods to carry the callback ptrs when needed */
27866 /* -----------------------------------------------------------------------------*/
27867
27868 SWIGINTERN void
27869 SWIG_Python_FixMethods(PyMethodDef *methods,
27870 swig_const_info *const_table,
27871 swig_type_info **types,
27872 swig_type_info **types_initial) {
27873 size_t i;
27874 for (i = 0; methods[i].ml_name; ++i) {
27875 const char *c = methods[i].ml_doc;
27876 if (c && (c = strstr(c, "swig_ptr: "))) {
27877 int j;
27878 swig_const_info *ci = 0;
27879 const char *name = c + 10;
27880 for (j = 0; const_table[j].type; ++j) {
27881 if (strncmp(const_table[j].name, name,
27882 strlen(const_table[j].name)) == 0) {
27883 ci = &(const_table[j]);
27884 break;
27885 }
27886 }
27887 if (ci) {
27888 size_t shift = (ci->ptype) - types;
27889 swig_type_info *ty = types_initial[shift];
27890 size_t ldoc = (c - methods[i].ml_doc);
27891 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27892 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27893 if (ndoc) {
27894 char *buff = ndoc;
27895 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27896 if (ptr) {
27897 strncpy(buff, methods[i].ml_doc, ldoc);
27898 buff += ldoc;
27899 strncpy(buff, "swig_ptr: ", 10);
27900 buff += 10;
27901 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27902 methods[i].ml_doc = ndoc;
27903 }
27904 }
27905 }
27906 }
27907 }
27908 }
27909
27910 #ifdef __cplusplus
27911 }
27912 #endif
27913
27914 /* -----------------------------------------------------------------------------*
27915 * Partial Init method
27916 * -----------------------------------------------------------------------------*/
27917
27918 #ifdef __cplusplus
27919 extern "C"
27920 #endif
27921 SWIGEXPORT void SWIG_init(void) {
27922 PyObject *m, *d;
27923
27924 /* Fix SwigMethods to carry the callback ptrs when needed */
27925 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27926
27927 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27928 d = PyModule_GetDict(m);
27929
27930 SWIG_InitializeModule(0);
27931 SWIG_InstallConstants(d,swig_const_table);
27932
27933
27934 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27935 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27936 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
27937 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27938 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27939 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27940 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27941 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27942 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27943 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27944 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27945 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27946 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27947 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27948 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27949 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27950 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27951 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27952 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27953 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27954 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27955 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27956 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27957 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27958 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27959 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27960 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27961 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27962 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27963 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27964 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27965 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27966 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27967 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27968 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27969 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27970 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27971 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27972 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27973 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27974 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27975 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27976 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27977 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27978 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27979 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27980 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27981 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27982 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27983 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27984 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27985 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27986 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27987 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27988 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27989 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27990 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27991 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27992 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27993 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27994 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27995 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27996 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27997 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27998 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27999 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
28000 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
28001 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
28002 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
28003 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
28004 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
28005 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
28006 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
28007 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
28008 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
28009 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
28010 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
28011 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
28012 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
28013 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
28014 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
28015 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
28016 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
28017 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
28018 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
28019 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
28020 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
28021 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
28022 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
28023 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
28024 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
28025 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
28026 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
28027 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
28028 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
28029 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
28030 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
28031 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
28032 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
28033 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
28034 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
28035 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
28036 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
28037 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
28038 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
28039 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
28040 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
28041 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
28042 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
28043 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
28044 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
28045 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
28046 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
28047 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
28048 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
28049 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
28050 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
28051 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
28052 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
28053 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
28054 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
28055 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
28056 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
28057 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
28058 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
28059 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
28060 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
28061 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
28062 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
28063 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
28064
28065 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
28066
28067 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
28068 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
28069 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
28070 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
28071 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
28072 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
28073 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
28074 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
28075 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
28076 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
28077 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
28078 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
28079 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
28080 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
28081 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
28082 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
28083 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
28084 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
28085 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
28086 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
28087 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
28088 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
28089 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
28090 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
28091 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
28092 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
28093 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
28094 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
28095 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
28096 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
28097 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
28098 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
28099 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
28100 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
28101 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
28102 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
28103 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
28104 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
28105 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
28106 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
28107 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
28108 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
28109 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
28110 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
28111 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
28112 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
28113 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
28114 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
28115 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
28116 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
28117 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
28118 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
28119 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
28120 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
28121 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
28122 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
28123 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
28124 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
28125 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
28126 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
28127 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
28128 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
28129 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
28130 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
28131 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
28132 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
28133 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
28134 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
28135 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
28136 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
28137 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
28138 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
28139 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
28140 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
28141 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
28142 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
28143 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
28144 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
28145 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
28146 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
28147 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
28148 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
28149 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
28150 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
28151 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
28152 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
28153 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
28154 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
28155 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
28156 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
28157 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
28158 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
28159 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
28160 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
28161 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
28162 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
28163 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
28164 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
28165 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
28166 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
28167 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
28168 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
28169 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
28170 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
28171 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
28172 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
28173 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
28174 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
28175 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
28176 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
28177 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
28178 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
28179 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
28180 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
28181 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
28182 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
28183 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
28184 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
28185 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
28186 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
28187 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
28188 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
28189 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
28190 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
28191 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
28192 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
28193 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
28194 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
28195 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
28196 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
28197 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
28198 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
28199 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
28200 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
28201 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
28202 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
28203 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
28204 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
28205 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
28206 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
28207 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
28208 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
28209 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
28210 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
28211 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
28212 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
28213 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
28214 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
28215 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
28216 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
28217 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
28218 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
28219 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
28220 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
28221 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
28222 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
28223 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
28224 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
28225 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
28226 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
28227 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
28228 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
28229 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
28230 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
28231 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
28232 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
28233 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
28234 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
28235 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
28236 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
28237 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
28238 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
28239 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
28240 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
28241 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
28242 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
28243 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
28244 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
28245 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
28246 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
28247 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
28248 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
28249 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
28250 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
28251 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
28252 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
28253 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
28254 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
28255 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
28256 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
28257 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
28258 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
28259 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
28260 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
28261 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
28262 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
28263 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
28264 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
28265 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
28266 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
28267 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
28268 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
28269 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
28270 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
28271 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
28272 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
28273 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
28274 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
28275 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
28276 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
28277 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
28278 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
28279 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
28280 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
28281 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
28282 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
28283 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
28284 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
28285 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
28286 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
28287 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
28288 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
28289 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
28290 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
28291 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
28292 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
28293 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
28294 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
28295 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
28296 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
28297 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
28298 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
28299 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
28300 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
28301 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
28302 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
28303 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
28304 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
28305 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
28306 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
28307 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
28308 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
28309 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
28310 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
28311 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
28312 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
28313 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
28314 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
28315 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
28316 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
28317 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
28318 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
28319 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
28320 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
28321 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
28322 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
28323 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
28324 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
28325 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
28326 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
28327 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
28328 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
28329 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
28330 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
28331 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
28332 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
28333 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
28334 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
28335 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
28336 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
28337 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
28338 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
28339 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
28340 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
28341 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
28342 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
28343 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
28344 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
28345 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
28346 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
28347 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
28348 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
28349 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
28350 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
28351 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
28352 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
28353 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
28354 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
28355 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
28356 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
28357 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
28358 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
28359 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
28360 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
28361 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
28362 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
28363 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
28364 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
28365 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
28366 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
28367 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
28368 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
28369 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
28370 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
28371 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
28372 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
28373 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
28374 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
28375 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
28376 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
28377 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
28378 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
28379 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
28380 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
28381
28382 // Work around a chicken/egg problem in drawlist.cpp
28383 wxPyDrawList_SetAPIPtr();
28384
28385 }
28386