]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/gtk/_gdi_wrap.cpp
Add code to remove the selection (if any) in wxTextCtrl::WriteText for multi-line...
[wxWidgets.git] / wxPython / src / gtk / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* for raw pointers */
989 #define SWIG_Python_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
990 #define SWIG_ConvertPtr(obj, pptr, type, flags) SWIG_Python_ConvertPtr(obj, pptr, type, flags)
991 #define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own) SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)
992 #define SWIG_NewPointerObj(ptr, type, flags) SWIG_Python_NewPointerObj(ptr, type, flags)
993 #define SWIG_CheckImplicit(ty) SWIG_Python_CheckImplicit(ty)
994 #define SWIG_AcquirePtr(ptr, src) SWIG_Python_AcquirePtr(ptr, src)
995 #define swig_owntype int
996
997 /* for raw packed data */
998 #define SWIG_ConvertPacked(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
999 #define SWIG_NewPackedObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1000
1001 /* for class or struct pointers */
1002 #define SWIG_ConvertInstance(obj, pptr, type, flags) SWIG_ConvertPtr(obj, pptr, type, flags)
1003 #define SWIG_NewInstanceObj(ptr, type, flags) SWIG_NewPointerObj(ptr, type, flags)
1004
1005 /* for C or C++ function pointers */
1006 #define SWIG_ConvertFunctionPtr(obj, pptr, type) SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
1007 #define SWIG_NewFunctionPtrObj(ptr, type) SWIG_Python_NewPointerObj(ptr, type, 0)
1008
1009 /* for C++ member pointers, ie, member methods */
1010 #define SWIG_ConvertMember(obj, ptr, sz, ty) SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
1011 #define SWIG_NewMemberObj(ptr, sz, type) SWIG_Python_NewPackedObj(ptr, sz, type)
1012
1013
1014 /* Runtime API */
1015
1016 #define SWIG_GetModule(clientdata) SWIG_Python_GetModule()
1017 #define SWIG_SetModule(clientdata, pointer) SWIG_Python_SetModule(pointer)
1018 #define SWIG_NewClientData(obj) PySwigClientData_New(obj)
1019
1020 #define SWIG_SetErrorObj SWIG_Python_SetErrorObj
1021 #define SWIG_SetErrorMsg SWIG_Python_SetErrorMsg
1022 #define SWIG_ErrorType(code) SWIG_Python_ErrorType(code)
1023 #define SWIG_Error(code, msg) SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg)
1024 #define SWIG_fail goto fail
1025
1026
1027 /* Runtime API implementation */
1028
1029 /* Error manipulation */
1030
1031 SWIGINTERN void
1032 SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
1033 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1034 PyErr_SetObject(errtype, obj);
1035 Py_DECREF(obj);
1036 SWIG_PYTHON_THREAD_END_BLOCK;
1037 }
1038
1039 SWIGINTERN void
1040 SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
1041 SWIG_PYTHON_THREAD_BEGIN_BLOCK;
1042 PyErr_SetString(errtype, (char *) msg);
1043 SWIG_PYTHON_THREAD_END_BLOCK;
1044 }
1045
1046 #define SWIG_Python_Raise(obj, type, desc) SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)
1047
1048 /* Set a constant value */
1049
1050 SWIGINTERN void
1051 SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {
1052 PyDict_SetItemString(d, (char*) name, obj);
1053 Py_DECREF(obj);
1054 }
1055
1056 /* Append a value to the result obj */
1057
1058 SWIGINTERN PyObject*
1059 SWIG_Python_AppendOutput(PyObject* result, PyObject* obj) {
1060 #if !defined(SWIG_PYTHON_OUTPUT_TUPLE)
1061 if (!result) {
1062 result = obj;
1063 } else if (result == Py_None) {
1064 Py_DECREF(result);
1065 result = obj;
1066 } else {
1067 if (!PyList_Check(result)) {
1068 PyObject *o2 = result;
1069 result = PyList_New(1);
1070 PyList_SetItem(result, 0, o2);
1071 }
1072 PyList_Append(result,obj);
1073 Py_DECREF(obj);
1074 }
1075 return result;
1076 #else
1077 PyObject* o2;
1078 PyObject* o3;
1079 if (!result) {
1080 result = obj;
1081 } else if (result == Py_None) {
1082 Py_DECREF(result);
1083 result = obj;
1084 } else {
1085 if (!PyTuple_Check(result)) {
1086 o2 = result;
1087 result = PyTuple_New(1);
1088 PyTuple_SET_ITEM(result, 0, o2);
1089 }
1090 o3 = PyTuple_New(1);
1091 PyTuple_SET_ITEM(o3, 0, obj);
1092 o2 = result;
1093 result = PySequence_Concat(o2, o3);
1094 Py_DECREF(o2);
1095 Py_DECREF(o3);
1096 }
1097 return result;
1098 #endif
1099 }
1100
1101 /* Unpack the argument tuple */
1102
1103 SWIGINTERN int
1104 SWIG_Python_UnpackTuple(PyObject *args, const char *name, int min, int max, PyObject **objs)
1105 {
1106 if (!args) {
1107 if (!min && !max) {
1108 return 1;
1109 } else {
1110 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none",
1111 name, (min == max ? "" : "at least "), min);
1112 return 0;
1113 }
1114 }
1115 if (!PyTuple_Check(args)) {
1116 PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
1117 return 0;
1118 } else {
1119 register int l = PyTuple_GET_SIZE(args);
1120 if (l < min) {
1121 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1122 name, (min == max ? "" : "at least "), min, l);
1123 return 0;
1124 } else if (l > max) {
1125 PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d",
1126 name, (min == max ? "" : "at most "), max, l);
1127 return 0;
1128 } else {
1129 register int i;
1130 for (i = 0; i < l; ++i) {
1131 objs[i] = PyTuple_GET_ITEM(args, i);
1132 }
1133 for (; l < max; ++l) {
1134 objs[l] = 0;
1135 }
1136 return i + 1;
1137 }
1138 }
1139 }
1140
1141 /* A functor is a function object with one single object argument */
1142 #if PY_VERSION_HEX >= 0x02020000
1143 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunctionObjArgs(functor, obj, NULL);
1144 #else
1145 #define SWIG_Python_CallFunctor(functor, obj) PyObject_CallFunction(functor, "O", obj);
1146 #endif
1147
1148 /*
1149 Helper for static pointer initialization for both C and C++ code, for example
1150 static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
1151 */
1152 #ifdef __cplusplus
1153 #define SWIG_STATIC_POINTER(var) var
1154 #else
1155 #define SWIG_STATIC_POINTER(var) var = 0; if (!var) var
1156 #endif
1157
1158 /* -----------------------------------------------------------------------------
1159 * Pointer declarations
1160 * ----------------------------------------------------------------------------- */
1161
1162 /* Flags for new pointer objects */
1163 #define SWIG_POINTER_NOSHADOW (SWIG_POINTER_OWN << 1)
1164 #define SWIG_POINTER_NEW (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)
1165
1166 #define SWIG_POINTER_IMPLICIT_CONV (SWIG_POINTER_DISOWN << 1)
1167
1168 #ifdef __cplusplus
1169 extern "C" {
1170 #if 0
1171 } /* cc-mode */
1172 #endif
1173 #endif
1174
1175 /* How to access Py_None */
1176 #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
1177 # ifndef SWIG_PYTHON_NO_BUILD_NONE
1178 # ifndef SWIG_PYTHON_BUILD_NONE
1179 # define SWIG_PYTHON_BUILD_NONE
1180 # endif
1181 # endif
1182 #endif
1183
1184 #ifdef SWIG_PYTHON_BUILD_NONE
1185 # ifdef Py_None
1186 # undef Py_None
1187 # define Py_None SWIG_Py_None()
1188 # endif
1189 SWIGRUNTIMEINLINE PyObject *
1190 _SWIG_Py_None(void)
1191 {
1192 PyObject *none = Py_BuildValue("");
1193 Py_DECREF(none);
1194 return none;
1195 }
1196 SWIGRUNTIME PyObject *
1197 SWIG_Py_None(void)
1198 {
1199 static PyObject *SWIG_STATIC_POINTER(none) = _SWIG_Py_None();
1200 return none;
1201 }
1202 #endif
1203
1204 /* The python void return value */
1205
1206 SWIGRUNTIMEINLINE PyObject *
1207 SWIG_Py_Void(void)
1208 {
1209 PyObject *none = Py_None;
1210 Py_INCREF(none);
1211 return none;
1212 }
1213
1214 /* PySwigClientData */
1215
1216 typedef struct {
1217 PyObject *klass;
1218 PyObject *newraw;
1219 PyObject *newargs;
1220 PyObject *destroy;
1221 int delargs;
1222 int implicitconv;
1223 } PySwigClientData;
1224
1225 SWIGRUNTIMEINLINE int
1226 SWIG_Python_CheckImplicit(swig_type_info *ty)
1227 {
1228 PySwigClientData *data = (PySwigClientData *)ty->clientdata;
1229 return data ? data->implicitconv : 0;
1230 }
1231
1232 SWIGRUNTIMEINLINE PyObject *
1233 SWIG_Python_ExceptionType(swig_type_info *desc) {
1234 PySwigClientData *data = desc ? (PySwigClientData *) desc->clientdata : 0;
1235 PyObject *klass = data ? data->klass : 0;
1236 return (klass ? klass : PyExc_RuntimeError);
1237 }
1238
1239
1240 SWIGRUNTIME PySwigClientData *
1241 PySwigClientData_New(PyObject* obj)
1242 {
1243 if (!obj) {
1244 return 0;
1245 } else {
1246 PySwigClientData *data = (PySwigClientData *)malloc(sizeof(PySwigClientData));
1247 /* the klass element */
1248 data->klass = obj;
1249 Py_INCREF(data->klass);
1250 /* the newraw method and newargs arguments used to create a new raw instance */
1251 if (PyClass_Check(obj)) {
1252 data->newraw = 0;
1253 data->newargs = obj;
1254 Py_INCREF(obj);
1255 } else {
1256 #if (PY_VERSION_HEX < 0x02020000)
1257 data->newraw = 0;
1258 #else
1259 data->newraw = PyObject_GetAttrString(data->klass, (char *)"__new__");
1260 #endif
1261 if (data->newraw) {
1262 Py_INCREF(data->newraw);
1263 data->newargs = PyTuple_New(1);
1264 PyTuple_SetItem(data->newargs, 0, obj);
1265 } else {
1266 data->newargs = obj;
1267 }
1268 Py_INCREF(data->newargs);
1269 }
1270 /* the destroy method, aka as the C++ delete method */
1271 data->destroy = PyObject_GetAttrString(data->klass, (char *)"__swig_destroy__");
1272 if (PyErr_Occurred()) {
1273 PyErr_Clear();
1274 data->destroy = 0;
1275 }
1276 if (data->destroy) {
1277 int flags;
1278 Py_INCREF(data->destroy);
1279 flags = PyCFunction_GET_FLAGS(data->destroy);
1280 #ifdef METH_O
1281 data->delargs = !(flags & (METH_O));
1282 #else
1283 data->delargs = 0;
1284 #endif
1285 } else {
1286 data->delargs = 0;
1287 }
1288 data->implicitconv = 0;
1289 return data;
1290 }
1291 }
1292
1293 SWIGRUNTIME void
1294 PySwigClientData_Del(PySwigClientData* data)
1295 {
1296 Py_XDECREF(data->newraw);
1297 Py_XDECREF(data->newargs);
1298 Py_XDECREF(data->destroy);
1299 }
1300
1301 /* =============== PySwigObject =====================*/
1302
1303 typedef struct {
1304 PyObject_HEAD
1305 void *ptr;
1306 swig_type_info *ty;
1307 int own;
1308 PyObject *next;
1309 } PySwigObject;
1310
1311 SWIGRUNTIME PyObject *
1312 PySwigObject_long(PySwigObject *v)
1313 {
1314 return PyLong_FromVoidPtr(v->ptr);
1315 }
1316
1317 SWIGRUNTIME PyObject *
1318 PySwigObject_format(const char* fmt, PySwigObject *v)
1319 {
1320 PyObject *res = NULL;
1321 PyObject *args = PyTuple_New(1);
1322 if (args) {
1323 if (PyTuple_SetItem(args, 0, PySwigObject_long(v)) == 0) {
1324 PyObject *ofmt = PyString_FromString(fmt);
1325 if (ofmt) {
1326 res = PyString_Format(ofmt,args);
1327 Py_DECREF(ofmt);
1328 }
1329 Py_DECREF(args);
1330 }
1331 }
1332 return res;
1333 }
1334
1335 SWIGRUNTIME PyObject *
1336 PySwigObject_oct(PySwigObject *v)
1337 {
1338 return PySwigObject_format("%o",v);
1339 }
1340
1341 SWIGRUNTIME PyObject *
1342 PySwigObject_hex(PySwigObject *v)
1343 {
1344 return PySwigObject_format("%x",v);
1345 }
1346
1347 SWIGRUNTIME PyObject *
1348 #ifdef METH_NOARGS
1349 PySwigObject_repr(PySwigObject *v)
1350 #else
1351 PySwigObject_repr(PySwigObject *v, PyObject *args)
1352 #endif
1353 {
1354 const char *name = SWIG_TypePrettyName(v->ty);
1355 PyObject *hex = PySwigObject_hex(v);
1356 PyObject *repr = PyString_FromFormat("<Swig Object of type '%s' at 0x%s>", name, PyString_AsString(hex));
1357 Py_DECREF(hex);
1358 if (v->next) {
1359 #ifdef METH_NOARGS
1360 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next);
1361 #else
1362 PyObject *nrep = PySwigObject_repr((PySwigObject *)v->next, args);
1363 #endif
1364 PyString_ConcatAndDel(&repr,nrep);
1365 }
1366 return repr;
1367 }
1368
1369 SWIGRUNTIME int
1370 PySwigObject_print(PySwigObject *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1371 {
1372 #ifdef METH_NOARGS
1373 PyObject *repr = PySwigObject_repr(v);
1374 #else
1375 PyObject *repr = PySwigObject_repr(v, NULL);
1376 #endif
1377 if (repr) {
1378 fputs(PyString_AsString(repr), fp);
1379 Py_DECREF(repr);
1380 return 0;
1381 } else {
1382 return 1;
1383 }
1384 }
1385
1386 SWIGRUNTIME PyObject *
1387 PySwigObject_str(PySwigObject *v)
1388 {
1389 char result[SWIG_BUFFER_SIZE];
1390 return SWIG_PackVoidPtr(result, v->ptr, v->ty->name, sizeof(result)) ?
1391 PyString_FromString(result) : 0;
1392 }
1393
1394 SWIGRUNTIME int
1395 PySwigObject_compare(PySwigObject *v, PySwigObject *w)
1396 {
1397 void *i = v->ptr;
1398 void *j = w->ptr;
1399 return (i < j) ? -1 : ((i > j) ? 1 : 0);
1400 }
1401
1402 SWIGRUNTIME PyTypeObject* _PySwigObject_type(void);
1403
1404 SWIGRUNTIME PyTypeObject*
1405 PySwigObject_type(void) {
1406 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigObject_type();
1407 return type;
1408 }
1409
1410 SWIGRUNTIMEINLINE int
1411 PySwigObject_Check(PyObject *op) {
1412 return ((op)->ob_type == PySwigObject_type())
1413 || (strcmp((op)->ob_type->tp_name,"PySwigObject") == 0);
1414 }
1415
1416 SWIGRUNTIME PyObject *
1417 PySwigObject_New(void *ptr, swig_type_info *ty, int own);
1418
1419 SWIGRUNTIME void
1420 PySwigObject_dealloc(PyObject *v)
1421 {
1422 PySwigObject *sobj = (PySwigObject *) v;
1423 PyObject *next = sobj->next;
1424 if (sobj->own) {
1425 swig_type_info *ty = sobj->ty;
1426 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
1427 PyObject *destroy = data ? data->destroy : 0;
1428 if (destroy) {
1429 /* destroy is always a VARARGS method */
1430 PyObject *res;
1431 if (data->delargs) {
1432 /* we need to create a temporal object to carry the destroy operation */
1433 PyObject *tmp = PySwigObject_New(sobj->ptr, ty, 0);
1434 res = SWIG_Python_CallFunctor(destroy, tmp);
1435 Py_DECREF(tmp);
1436 } else {
1437 PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
1438 PyObject *mself = PyCFunction_GET_SELF(destroy);
1439 res = ((*meth)(mself, v));
1440 }
1441 Py_XDECREF(res);
1442 } else {
1443 const char *name = SWIG_TypePrettyName(ty);
1444 #if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
1445 printf("swig/python detected a memory leak of type '%s', no destructor found.\n", name);
1446 #endif
1447 }
1448 }
1449 Py_XDECREF(next);
1450 PyObject_DEL(v);
1451 }
1452
1453 SWIGRUNTIME PyObject*
1454 PySwigObject_append(PyObject* v, PyObject* next)
1455 {
1456 PySwigObject *sobj = (PySwigObject *) v;
1457 #ifndef METH_O
1458 PyObject *tmp = 0;
1459 if (!PyArg_ParseTuple(next,(char *)"O:append", &tmp)) return NULL;
1460 next = tmp;
1461 #endif
1462 if (!PySwigObject_Check(next)) {
1463 return NULL;
1464 }
1465 sobj->next = next;
1466 Py_INCREF(next);
1467 return SWIG_Py_Void();
1468 }
1469
1470 SWIGRUNTIME PyObject*
1471 #ifdef METH_NOARGS
1472 PySwigObject_next(PyObject* v)
1473 #else
1474 PySwigObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1475 #endif
1476 {
1477 PySwigObject *sobj = (PySwigObject *) v;
1478 if (sobj->next) {
1479 Py_INCREF(sobj->next);
1480 return sobj->next;
1481 } else {
1482 return SWIG_Py_Void();
1483 }
1484 }
1485
1486 SWIGINTERN PyObject*
1487 #ifdef METH_NOARGS
1488 PySwigObject_disown(PyObject *v)
1489 #else
1490 PySwigObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1491 #endif
1492 {
1493 PySwigObject *sobj = (PySwigObject *)v;
1494 sobj->own = 0;
1495 return SWIG_Py_Void();
1496 }
1497
1498 SWIGINTERN PyObject*
1499 #ifdef METH_NOARGS
1500 PySwigObject_acquire(PyObject *v)
1501 #else
1502 PySwigObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
1503 #endif
1504 {
1505 PySwigObject *sobj = (PySwigObject *)v;
1506 sobj->own = SWIG_POINTER_OWN;
1507 return SWIG_Py_Void();
1508 }
1509
1510 SWIGINTERN PyObject*
1511 PySwigObject_own(PyObject *v, PyObject *args)
1512 {
1513 PyObject *val = 0;
1514 #if (PY_VERSION_HEX < 0x02020000)
1515 if (!PyArg_ParseTuple(args,(char *)"|O:own",&val))
1516 #else
1517 if (!PyArg_UnpackTuple(args, (char *)"own", 0, 1, &val))
1518 #endif
1519 {
1520 return NULL;
1521 }
1522 else
1523 {
1524 PySwigObject *sobj = (PySwigObject *)v;
1525 PyObject *obj = PyBool_FromLong(sobj->own);
1526 if (val) {
1527 #ifdef METH_NOARGS
1528 if (PyObject_IsTrue(val)) {
1529 PySwigObject_acquire(v);
1530 } else {
1531 PySwigObject_disown(v);
1532 }
1533 #else
1534 if (PyObject_IsTrue(val)) {
1535 PySwigObject_acquire(v,args);
1536 } else {
1537 PySwigObject_disown(v,args);
1538 }
1539 #endif
1540 }
1541 return obj;
1542 }
1543 }
1544
1545 #ifdef METH_O
1546 static PyMethodDef
1547 swigobject_methods[] = {
1548 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_NOARGS, (char *)"releases ownership of the pointer"},
1549 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_NOARGS, (char *)"aquires ownership of the pointer"},
1550 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1551 {(char *)"append", (PyCFunction)PySwigObject_append, METH_O, (char *)"appends another 'this' object"},
1552 {(char *)"next", (PyCFunction)PySwigObject_next, METH_NOARGS, (char *)"returns the next 'this' object"},
1553 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_NOARGS, (char *)"returns object representation"},
1554 {0, 0, 0, 0}
1555 };
1556 #else
1557 static PyMethodDef
1558 swigobject_methods[] = {
1559 {(char *)"disown", (PyCFunction)PySwigObject_disown, METH_VARARGS, (char *)"releases ownership of the pointer"},
1560 {(char *)"acquire", (PyCFunction)PySwigObject_acquire, METH_VARARGS, (char *)"aquires ownership of the pointer"},
1561 {(char *)"own", (PyCFunction)PySwigObject_own, METH_VARARGS, (char *)"returns/sets ownership of the pointer"},
1562 {(char *)"append", (PyCFunction)PySwigObject_append, METH_VARARGS, (char *)"appends another 'this' object"},
1563 {(char *)"next", (PyCFunction)PySwigObject_next, METH_VARARGS, (char *)"returns the next 'this' object"},
1564 {(char *)"__repr__",(PyCFunction)PySwigObject_repr, METH_VARARGS, (char *)"returns object representation"},
1565 {0, 0, 0, 0}
1566 };
1567 #endif
1568
1569 #if PY_VERSION_HEX < 0x02020000
1570 SWIGINTERN PyObject *
1571 PySwigObject_getattr(PySwigObject *sobj,char *name)
1572 {
1573 return Py_FindMethod(swigobject_methods, (PyObject *)sobj, name);
1574 }
1575 #endif
1576
1577 SWIGRUNTIME PyTypeObject*
1578 _PySwigObject_type(void) {
1579 static char swigobject_doc[] = "Swig object carries a C/C++ instance pointer";
1580
1581 static PyNumberMethods PySwigObject_as_number = {
1582 (binaryfunc)0, /*nb_add*/
1583 (binaryfunc)0, /*nb_subtract*/
1584 (binaryfunc)0, /*nb_multiply*/
1585 (binaryfunc)0, /*nb_divide*/
1586 (binaryfunc)0, /*nb_remainder*/
1587 (binaryfunc)0, /*nb_divmod*/
1588 (ternaryfunc)0,/*nb_power*/
1589 (unaryfunc)0, /*nb_negative*/
1590 (unaryfunc)0, /*nb_positive*/
1591 (unaryfunc)0, /*nb_absolute*/
1592 (inquiry)0, /*nb_nonzero*/
1593 0, /*nb_invert*/
1594 0, /*nb_lshift*/
1595 0, /*nb_rshift*/
1596 0, /*nb_and*/
1597 0, /*nb_xor*/
1598 0, /*nb_or*/
1599 (coercion)0, /*nb_coerce*/
1600 (unaryfunc)PySwigObject_long, /*nb_int*/
1601 (unaryfunc)PySwigObject_long, /*nb_long*/
1602 (unaryfunc)0, /*nb_float*/
1603 (unaryfunc)PySwigObject_oct, /*nb_oct*/
1604 (unaryfunc)PySwigObject_hex, /*nb_hex*/
1605 #if PY_VERSION_HEX >= 0x02020000
1606 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_true_divide */
1607 #elif PY_VERSION_HEX >= 0x02000000
1608 0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_or */
1609 #endif
1610 };
1611
1612 static PyTypeObject pyswigobject_type;
1613 static int type_init = 0;
1614 if (!type_init) {
1615 const PyTypeObject tmp
1616 = {
1617 PyObject_HEAD_INIT(NULL)
1618 0, /* ob_size */
1619 (char *)"PySwigObject", /* tp_name */
1620 sizeof(PySwigObject), /* tp_basicsize */
1621 0, /* tp_itemsize */
1622 (destructor)PySwigObject_dealloc, /* tp_dealloc */
1623 (printfunc)PySwigObject_print, /* tp_print */
1624 #if PY_VERSION_HEX < 0x02020000
1625 (getattrfunc)PySwigObject_getattr, /* tp_getattr */
1626 #else
1627 (getattrfunc)0, /* tp_getattr */
1628 #endif
1629 (setattrfunc)0, /* tp_setattr */
1630 (cmpfunc)PySwigObject_compare, /* tp_compare */
1631 (reprfunc)PySwigObject_repr, /* tp_repr */
1632 &PySwigObject_as_number, /* tp_as_number */
1633 0, /* tp_as_sequence */
1634 0, /* tp_as_mapping */
1635 (hashfunc)0, /* tp_hash */
1636 (ternaryfunc)0, /* tp_call */
1637 (reprfunc)PySwigObject_str, /* tp_str */
1638 PyObject_GenericGetAttr, /* tp_getattro */
1639 0, /* tp_setattro */
1640 0, /* tp_as_buffer */
1641 Py_TPFLAGS_DEFAULT, /* tp_flags */
1642 swigobject_doc, /* tp_doc */
1643 0, /* tp_traverse */
1644 0, /* tp_clear */
1645 0, /* tp_richcompare */
1646 0, /* tp_weaklistoffset */
1647 #if PY_VERSION_HEX >= 0x02020000
1648 0, /* tp_iter */
1649 0, /* tp_iternext */
1650 swigobject_methods, /* tp_methods */
1651 0, /* tp_members */
1652 0, /* tp_getset */
1653 0, /* tp_base */
1654 0, /* tp_dict */
1655 0, /* tp_descr_get */
1656 0, /* tp_descr_set */
1657 0, /* tp_dictoffset */
1658 0, /* tp_init */
1659 0, /* tp_alloc */
1660 0, /* tp_new */
1661 0, /* tp_free */
1662 0, /* tp_is_gc */
1663 0, /* tp_bases */
1664 0, /* tp_mro */
1665 0, /* tp_cache */
1666 0, /* tp_subclasses */
1667 0, /* tp_weaklist */
1668 #endif
1669 #if PY_VERSION_HEX >= 0x02030000
1670 0, /* tp_del */
1671 #endif
1672 #ifdef COUNT_ALLOCS
1673 0,0,0,0 /* tp_alloc -> tp_next */
1674 #endif
1675 };
1676 pyswigobject_type = tmp;
1677 pyswigobject_type.ob_type = &PyType_Type;
1678 type_init = 1;
1679 }
1680 return &pyswigobject_type;
1681 }
1682
1683 SWIGRUNTIME PyObject *
1684 PySwigObject_New(void *ptr, swig_type_info *ty, int own)
1685 {
1686 PySwigObject *sobj = PyObject_NEW(PySwigObject, PySwigObject_type());
1687 if (sobj) {
1688 sobj->ptr = ptr;
1689 sobj->ty = ty;
1690 sobj->own = own;
1691 sobj->next = 0;
1692 }
1693 return (PyObject *)sobj;
1694 }
1695
1696 /* -----------------------------------------------------------------------------
1697 * Implements a simple Swig Packed type, and use it instead of string
1698 * ----------------------------------------------------------------------------- */
1699
1700 typedef struct {
1701 PyObject_HEAD
1702 void *pack;
1703 swig_type_info *ty;
1704 size_t size;
1705 } PySwigPacked;
1706
1707 SWIGRUNTIME int
1708 PySwigPacked_print(PySwigPacked *v, FILE *fp, int SWIGUNUSEDPARM(flags))
1709 {
1710 char result[SWIG_BUFFER_SIZE];
1711 fputs("<Swig Packed ", fp);
1712 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1713 fputs("at ", fp);
1714 fputs(result, fp);
1715 }
1716 fputs(v->ty->name,fp);
1717 fputs(">", fp);
1718 return 0;
1719 }
1720
1721 SWIGRUNTIME PyObject *
1722 PySwigPacked_repr(PySwigPacked *v)
1723 {
1724 char result[SWIG_BUFFER_SIZE];
1725 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
1726 return PyString_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
1727 } else {
1728 return PyString_FromFormat("<Swig Packed %s>", v->ty->name);
1729 }
1730 }
1731
1732 SWIGRUNTIME PyObject *
1733 PySwigPacked_str(PySwigPacked *v)
1734 {
1735 char result[SWIG_BUFFER_SIZE];
1736 if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
1737 return PyString_FromFormat("%s%s", result, v->ty->name);
1738 } else {
1739 return PyString_FromString(v->ty->name);
1740 }
1741 }
1742
1743 SWIGRUNTIME int
1744 PySwigPacked_compare(PySwigPacked *v, PySwigPacked *w)
1745 {
1746 size_t i = v->size;
1747 size_t j = w->size;
1748 int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
1749 return s ? s : strncmp((char *)v->pack, (char *)w->pack, 2*v->size);
1750 }
1751
1752 SWIGRUNTIME PyTypeObject* _PySwigPacked_type(void);
1753
1754 SWIGRUNTIME PyTypeObject*
1755 PySwigPacked_type(void) {
1756 static PyTypeObject *SWIG_STATIC_POINTER(type) = _PySwigPacked_type();
1757 return type;
1758 }
1759
1760 SWIGRUNTIMEINLINE int
1761 PySwigPacked_Check(PyObject *op) {
1762 return ((op)->ob_type == _PySwigPacked_type())
1763 || (strcmp((op)->ob_type->tp_name,"PySwigPacked") == 0);
1764 }
1765
1766 SWIGRUNTIME void
1767 PySwigPacked_dealloc(PyObject *v)
1768 {
1769 if (PySwigPacked_Check(v)) {
1770 PySwigPacked *sobj = (PySwigPacked *) v;
1771 free(sobj->pack);
1772 }
1773 PyObject_DEL(v);
1774 }
1775
1776 SWIGRUNTIME PyTypeObject*
1777 _PySwigPacked_type(void) {
1778 static char swigpacked_doc[] = "Swig object carries a C/C++ instance pointer";
1779 static PyTypeObject pyswigpacked_type;
1780 static int type_init = 0;
1781 if (!type_init) {
1782 const PyTypeObject tmp
1783 = {
1784 PyObject_HEAD_INIT(NULL)
1785 0, /* ob_size */
1786 (char *)"PySwigPacked", /* tp_name */
1787 sizeof(PySwigPacked), /* tp_basicsize */
1788 0, /* tp_itemsize */
1789 (destructor)PySwigPacked_dealloc, /* tp_dealloc */
1790 (printfunc)PySwigPacked_print, /* tp_print */
1791 (getattrfunc)0, /* tp_getattr */
1792 (setattrfunc)0, /* tp_setattr */
1793 (cmpfunc)PySwigPacked_compare, /* tp_compare */
1794 (reprfunc)PySwigPacked_repr, /* tp_repr */
1795 0, /* tp_as_number */
1796 0, /* tp_as_sequence */
1797 0, /* tp_as_mapping */
1798 (hashfunc)0, /* tp_hash */
1799 (ternaryfunc)0, /* tp_call */
1800 (reprfunc)PySwigPacked_str, /* tp_str */
1801 PyObject_GenericGetAttr, /* tp_getattro */
1802 0, /* tp_setattro */
1803 0, /* tp_as_buffer */
1804 Py_TPFLAGS_DEFAULT, /* tp_flags */
1805 swigpacked_doc, /* tp_doc */
1806 0, /* tp_traverse */
1807 0, /* tp_clear */
1808 0, /* tp_richcompare */
1809 0, /* tp_weaklistoffset */
1810 #if PY_VERSION_HEX >= 0x02020000
1811 0, /* tp_iter */
1812 0, /* tp_iternext */
1813 0, /* tp_methods */
1814 0, /* tp_members */
1815 0, /* tp_getset */
1816 0, /* tp_base */
1817 0, /* tp_dict */
1818 0, /* tp_descr_get */
1819 0, /* tp_descr_set */
1820 0, /* tp_dictoffset */
1821 0, /* tp_init */
1822 0, /* tp_alloc */
1823 0, /* tp_new */
1824 0, /* tp_free */
1825 0, /* tp_is_gc */
1826 0, /* tp_bases */
1827 0, /* tp_mro */
1828 0, /* tp_cache */
1829 0, /* tp_subclasses */
1830 0, /* tp_weaklist */
1831 #endif
1832 #if PY_VERSION_HEX >= 0x02030000
1833 0, /* tp_del */
1834 #endif
1835 #ifdef COUNT_ALLOCS
1836 0,0,0,0 /* tp_alloc -> tp_next */
1837 #endif
1838 };
1839 pyswigpacked_type = tmp;
1840 pyswigpacked_type.ob_type = &PyType_Type;
1841 type_init = 1;
1842 }
1843 return &pyswigpacked_type;
1844 }
1845
1846 SWIGRUNTIME PyObject *
1847 PySwigPacked_New(void *ptr, size_t size, swig_type_info *ty)
1848 {
1849 PySwigPacked *sobj = PyObject_NEW(PySwigPacked, PySwigPacked_type());
1850 if (sobj) {
1851 void *pack = malloc(size);
1852 if (pack) {
1853 memcpy(pack, ptr, size);
1854 sobj->pack = pack;
1855 sobj->ty = ty;
1856 sobj->size = size;
1857 } else {
1858 PyObject_DEL((PyObject *) sobj);
1859 sobj = 0;
1860 }
1861 }
1862 return (PyObject *) sobj;
1863 }
1864
1865 SWIGRUNTIME swig_type_info *
1866 PySwigPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
1867 {
1868 if (PySwigPacked_Check(obj)) {
1869 PySwigPacked *sobj = (PySwigPacked *)obj;
1870 if (sobj->size != size) return 0;
1871 memcpy(ptr, sobj->pack, size);
1872 return sobj->ty;
1873 } else {
1874 return 0;
1875 }
1876 }
1877
1878 /* -----------------------------------------------------------------------------
1879 * pointers/data manipulation
1880 * ----------------------------------------------------------------------------- */
1881
1882 SWIGRUNTIMEINLINE PyObject *
1883 _SWIG_This(void)
1884 {
1885 return PyString_FromString("this");
1886 }
1887
1888 SWIGRUNTIME PyObject *
1889 SWIG_This(void)
1890 {
1891 static PyObject *SWIG_STATIC_POINTER(swig_this) = _SWIG_This();
1892 return swig_this;
1893 }
1894
1895 /* #define SWIG_PYTHON_SLOW_GETSET_THIS */
1896
1897 SWIGRUNTIME PySwigObject *
1898 SWIG_Python_GetSwigThis(PyObject *pyobj)
1899 {
1900 if (PySwigObject_Check(pyobj)) {
1901 return (PySwigObject *) pyobj;
1902 } else {
1903 PyObject *obj = 0;
1904 #if (!defined(SWIG_PYTHON_SLOW_GETSET_THIS) && (PY_VERSION_HEX >= 0x02030000))
1905 if (PyInstance_Check(pyobj)) {
1906 obj = _PyInstance_Lookup(pyobj, SWIG_This());
1907 } else {
1908 PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
1909 if (dictptr != NULL) {
1910 PyObject *dict = *dictptr;
1911 obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
1912 } else {
1913 #ifdef PyWeakref_CheckProxy
1914 if (PyWeakref_CheckProxy(pyobj)) {
1915 PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
1916 return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
1917 }
1918 #endif
1919 obj = PyObject_GetAttr(pyobj,SWIG_This());
1920 if (obj) {
1921 Py_DECREF(obj);
1922 } else {
1923 if (PyErr_Occurred()) PyErr_Clear();
1924 return 0;
1925 }
1926 }
1927 }
1928 #else
1929 obj = PyObject_GetAttr(pyobj,SWIG_This());
1930 if (obj) {
1931 Py_DECREF(obj);
1932 } else {
1933 if (PyErr_Occurred()) PyErr_Clear();
1934 return 0;
1935 }
1936 #endif
1937 if (obj && !PySwigObject_Check(obj)) {
1938 /* a PyObject is called 'this', try to get the 'real this'
1939 PySwigObject from it */
1940 return SWIG_Python_GetSwigThis(obj);
1941 }
1942 return (PySwigObject *)obj;
1943 }
1944 }
1945
1946 /* Acquire a pointer value */
1947
1948 SWIGRUNTIME int
1949 SWIG_Python_AcquirePtr(PyObject *obj, int own) {
1950 if (own) {
1951 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1952 if (sobj) {
1953 int oldown = sobj->own;
1954 sobj->own = own;
1955 return oldown;
1956 }
1957 }
1958 return 0;
1959 }
1960
1961 /* Convert a pointer value */
1962
1963 SWIGRUNTIME int
1964 SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
1965 if (!obj) return SWIG_ERROR;
1966 if (obj == Py_None) {
1967 if (ptr) *ptr = 0;
1968 return SWIG_OK;
1969 } else {
1970 PySwigObject *sobj = SWIG_Python_GetSwigThis(obj);
1971 while (sobj) {
1972 void *vptr = sobj->ptr;
1973 if (ty) {
1974 swig_type_info *to = sobj->ty;
1975 if (to == ty) {
1976 /* no type cast needed */
1977 if (ptr) *ptr = vptr;
1978 break;
1979 } else {
1980 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
1981 if (!tc) {
1982 sobj = (PySwigObject *)sobj->next;
1983 } else {
1984 if (ptr) *ptr = SWIG_TypeCast(tc,vptr);
1985 break;
1986 }
1987 }
1988 } else {
1989 if (ptr) *ptr = vptr;
1990 break;
1991 }
1992 }
1993 if (sobj) {
1994 if (own) *own = sobj->own;
1995 if (flags & SWIG_POINTER_DISOWN) {
1996 sobj->own = 0;
1997 }
1998 return SWIG_OK;
1999 } else {
2000 int res = SWIG_ERROR;
2001 if (flags & SWIG_POINTER_IMPLICIT_CONV) {
2002 PySwigClientData *data = ty ? (PySwigClientData *) ty->clientdata : 0;
2003 if (data && !data->implicitconv) {
2004 PyObject *klass = data->klass;
2005 if (klass) {
2006 PyObject *impconv;
2007 data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
2008 impconv = SWIG_Python_CallFunctor(klass, obj);
2009 data->implicitconv = 0;
2010 if (PyErr_Occurred()) {
2011 PyErr_Clear();
2012 impconv = 0;
2013 }
2014 if (impconv) {
2015 PySwigObject *iobj = SWIG_Python_GetSwigThis(impconv);
2016 if (iobj) {
2017 void *vptr;
2018 res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
2019 if (SWIG_IsOK(res)) {
2020 if (ptr) {
2021 *ptr = vptr;
2022 /* transfer the ownership to 'ptr' */
2023 iobj->own = 0;
2024 res = SWIG_AddCast(res);
2025 res = SWIG_AddNewMask(res);
2026 } else {
2027 res = SWIG_AddCast(res);
2028 }
2029 }
2030 }
2031 Py_DECREF(impconv);
2032 }
2033 }
2034 }
2035 }
2036 return res;
2037 }
2038 }
2039 }
2040
2041 /* Convert a function ptr value */
2042
2043 SWIGRUNTIME int
2044 SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
2045 if (!PyCFunction_Check(obj)) {
2046 return SWIG_ConvertPtr(obj, ptr, ty, 0);
2047 } else {
2048 void *vptr = 0;
2049
2050 /* here we get the method pointer for callbacks */
2051 char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
2052 const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
2053 if (desc) {
2054 desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
2055 if (!desc) return SWIG_ERROR;
2056 }
2057 if (ty) {
2058 swig_cast_info *tc = SWIG_TypeCheck(desc,ty);
2059 if (!tc) return SWIG_ERROR;
2060 *ptr = SWIG_TypeCast(tc,vptr);
2061 } else {
2062 *ptr = vptr;
2063 }
2064 return SWIG_OK;
2065 }
2066 }
2067
2068 /* Convert a packed value value */
2069
2070 SWIGRUNTIME int
2071 SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
2072 swig_type_info *to = PySwigPacked_UnpackData(obj, ptr, sz);
2073 if (!to) return SWIG_ERROR;
2074 if (ty) {
2075 if (to != ty) {
2076 /* check type cast? */
2077 swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
2078 if (!tc) return SWIG_ERROR;
2079 }
2080 }
2081 return SWIG_OK;
2082 }
2083
2084 /* -----------------------------------------------------------------------------
2085 * Create a new pointer object
2086 * ----------------------------------------------------------------------------- */
2087
2088 /*
2089 Create a new instance object, whitout calling __init__, and set the
2090 'this' attribute.
2091 */
2092
2093 SWIGRUNTIME PyObject*
2094 SWIG_Python_NewShadowInstance(PySwigClientData *data, PyObject *swig_this)
2095 {
2096 #if (PY_VERSION_HEX >= 0x02020000)
2097 PyObject *inst = 0;
2098 PyObject *newraw = data->newraw;
2099 if (newraw) {
2100 inst = PyObject_Call(newraw, data->newargs, NULL);
2101 if (inst) {
2102 #if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2103 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2104 if (dictptr != NULL) {
2105 PyObject *dict = *dictptr;
2106 if (dict == NULL) {
2107 dict = PyDict_New();
2108 *dictptr = dict;
2109 PyDict_SetItem(dict, SWIG_This(), swig_this);
2110 }
2111 }
2112 #else
2113 PyObject *key = SWIG_This();
2114 PyObject_SetAttr(inst, key, swig_this);
2115 #endif
2116 }
2117 } else {
2118 PyObject *dict = PyDict_New();
2119 PyDict_SetItem(dict, SWIG_This(), swig_this);
2120 inst = PyInstance_NewRaw(data->newargs, dict);
2121 Py_DECREF(dict);
2122 }
2123 return inst;
2124 #else
2125 #if (PY_VERSION_HEX >= 0x02010000)
2126 PyObject *inst;
2127 PyObject *dict = PyDict_New();
2128 PyDict_SetItem(dict, SWIG_This(), swig_this);
2129 inst = PyInstance_NewRaw(data->newargs, dict);
2130 Py_DECREF(dict);
2131 return (PyObject *) inst;
2132 #else
2133 PyInstanceObject *inst = PyObject_NEW(PyInstanceObject, &PyInstance_Type);
2134 if (inst == NULL) {
2135 return NULL;
2136 }
2137 inst->in_class = (PyClassObject *)data->newargs;
2138 Py_INCREF(inst->in_class);
2139 inst->in_dict = PyDict_New();
2140 if (inst->in_dict == NULL) {
2141 Py_DECREF(inst);
2142 return NULL;
2143 }
2144 #ifdef Py_TPFLAGS_HAVE_WEAKREFS
2145 inst->in_weakreflist = NULL;
2146 #endif
2147 #ifdef Py_TPFLAGS_GC
2148 PyObject_GC_Init(inst);
2149 #endif
2150 PyDict_SetItem(inst->in_dict, SWIG_This(), swig_this);
2151 return (PyObject *) inst;
2152 #endif
2153 #endif
2154 }
2155
2156 SWIGRUNTIME void
2157 SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
2158 {
2159 PyObject *dict;
2160 #if (PY_VERSION_HEX >= 0x02020000) && !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
2161 PyObject **dictptr = _PyObject_GetDictPtr(inst);
2162 if (dictptr != NULL) {
2163 dict = *dictptr;
2164 if (dict == NULL) {
2165 dict = PyDict_New();
2166 *dictptr = dict;
2167 }
2168 PyDict_SetItem(dict, SWIG_This(), swig_this);
2169 return;
2170 }
2171 #endif
2172 dict = PyObject_GetAttrString(inst, "__dict__");
2173 PyDict_SetItem(dict, SWIG_This(), swig_this);
2174 Py_DECREF(dict);
2175 }
2176
2177
2178 SWIGINTERN PyObject *
2179 SWIG_Python_InitShadowInstance(PyObject *args) {
2180 PyObject *obj[2];
2181 if (!SWIG_Python_UnpackTuple(args,(char*)"swiginit", 2, 2, obj)) {
2182 return NULL;
2183 } else {
2184 PySwigObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
2185 if (sthis) {
2186 PySwigObject_append((PyObject*) sthis, obj[1]);
2187 } else {
2188 SWIG_Python_SetSwigThis(obj[0], obj[1]);
2189 }
2190 return SWIG_Py_Void();
2191 }
2192 }
2193
2194 /* Create a new pointer object */
2195
2196 SWIGRUNTIME PyObject *
2197 SWIG_Python_NewPointerObj(void *ptr, swig_type_info *type, int flags) {
2198 if (!ptr) {
2199 return SWIG_Py_Void();
2200 } else {
2201 int own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
2202 PyObject *robj = PySwigObject_New(ptr, type, own);
2203 PySwigClientData *clientdata = type ? (PySwigClientData *)(type->clientdata) : 0;
2204 if (clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
2205 PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
2206 if (inst) {
2207 Py_DECREF(robj);
2208 robj = inst;
2209 }
2210 }
2211 return robj;
2212 }
2213 }
2214
2215 /* Create a new packed object */
2216
2217 SWIGRUNTIMEINLINE PyObject *
2218 SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
2219 return ptr ? PySwigPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
2220 }
2221
2222 /* -----------------------------------------------------------------------------*
2223 * Get type list
2224 * -----------------------------------------------------------------------------*/
2225
2226 #ifdef SWIG_LINK_RUNTIME
2227 void *SWIG_ReturnGlobalTypeList(void *);
2228 #endif
2229
2230 SWIGRUNTIME swig_module_info *
2231 SWIG_Python_GetModule(void) {
2232 static void *type_pointer = (void *)0;
2233 /* first check if module already created */
2234 if (!type_pointer) {
2235 #ifdef SWIG_LINK_RUNTIME
2236 type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
2237 #else
2238 type_pointer = PyCObject_Import((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2239 (char*)"type_pointer" SWIG_TYPE_TABLE_NAME);
2240 if (PyErr_Occurred()) {
2241 PyErr_Clear();
2242 type_pointer = (void *)0;
2243 }
2244 #endif
2245 }
2246 return (swig_module_info *) type_pointer;
2247 }
2248
2249 #if PY_MAJOR_VERSION < 2
2250 /* PyModule_AddObject function was introduced in Python 2.0. The following function
2251 is copied out of Python/modsupport.c in python version 2.3.4 */
2252 SWIGINTERN int
2253 PyModule_AddObject(PyObject *m, char *name, PyObject *o)
2254 {
2255 PyObject *dict;
2256 if (!PyModule_Check(m)) {
2257 PyErr_SetString(PyExc_TypeError,
2258 "PyModule_AddObject() needs module as first arg");
2259 return SWIG_ERROR;
2260 }
2261 if (!o) {
2262 PyErr_SetString(PyExc_TypeError,
2263 "PyModule_AddObject() needs non-NULL value");
2264 return SWIG_ERROR;
2265 }
2266
2267 dict = PyModule_GetDict(m);
2268 if (dict == NULL) {
2269 /* Internal error -- modules must have a dict! */
2270 PyErr_Format(PyExc_SystemError, "module '%s' has no __dict__",
2271 PyModule_GetName(m));
2272 return SWIG_ERROR;
2273 }
2274 if (PyDict_SetItemString(dict, name, o))
2275 return SWIG_ERROR;
2276 Py_DECREF(o);
2277 return SWIG_OK;
2278 }
2279 #endif
2280
2281 SWIGRUNTIME void
2282 SWIG_Python_DestroyModule(void *vptr)
2283 {
2284 swig_module_info *swig_module = (swig_module_info *) vptr;
2285 swig_type_info **types = swig_module->types;
2286 size_t i;
2287 for (i =0; i < swig_module->size; ++i) {
2288 swig_type_info *ty = types[i];
2289 if (ty->owndata) {
2290 PySwigClientData *data = (PySwigClientData *) ty->clientdata;
2291 if (data) PySwigClientData_Del(data);
2292 }
2293 }
2294 Py_DECREF(SWIG_This());
2295 }
2296
2297 SWIGRUNTIME void
2298 SWIG_Python_SetModule(swig_module_info *swig_module) {
2299 static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} };/* Sentinel */
2300
2301 PyObject *module = Py_InitModule((char*)"swig_runtime_data" SWIG_RUNTIME_VERSION,
2302 swig_empty_runtime_method_table);
2303 PyObject *pointer = PyCObject_FromVoidPtr((void *) swig_module, SWIG_Python_DestroyModule);
2304 if (pointer && module) {
2305 PyModule_AddObject(module, (char*)"type_pointer" SWIG_TYPE_TABLE_NAME, pointer);
2306 } else {
2307 Py_XDECREF(pointer);
2308 }
2309 }
2310
2311 /* The python cached type query */
2312 SWIGRUNTIME PyObject *
2313 SWIG_Python_TypeCache() {
2314 static PyObject *SWIG_STATIC_POINTER(cache) = PyDict_New();
2315 return cache;
2316 }
2317
2318 SWIGRUNTIME swig_type_info *
2319 SWIG_Python_TypeQuery(const char *type)
2320 {
2321 PyObject *cache = SWIG_Python_TypeCache();
2322 PyObject *key = PyString_FromString(type);
2323 PyObject *obj = PyDict_GetItem(cache, key);
2324 swig_type_info *descriptor;
2325 if (obj) {
2326 descriptor = (swig_type_info *) PyCObject_AsVoidPtr(obj);
2327 } else {
2328 swig_module_info *swig_module = SWIG_Python_GetModule();
2329 descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
2330 if (descriptor) {
2331 obj = PyCObject_FromVoidPtr(descriptor, NULL);
2332 PyDict_SetItem(cache, key, obj);
2333 Py_DECREF(obj);
2334 }
2335 }
2336 Py_DECREF(key);
2337 return descriptor;
2338 }
2339
2340 /*
2341 For backward compatibility only
2342 */
2343 #define SWIG_POINTER_EXCEPTION 0
2344 #define SWIG_arg_fail(arg) SWIG_Python_ArgFail(arg)
2345 #define SWIG_MustGetPtr(p, type, argnum, flags) SWIG_Python_MustGetPtr(p, type, argnum, flags)
2346
2347 SWIGRUNTIME int
2348 SWIG_Python_AddErrMesg(const char* mesg, int infront)
2349 {
2350 if (PyErr_Occurred()) {
2351 PyObject *type = 0;
2352 PyObject *value = 0;
2353 PyObject *traceback = 0;
2354 PyErr_Fetch(&type, &value, &traceback);
2355 if (value) {
2356 PyObject *old_str = PyObject_Str(value);
2357 Py_XINCREF(type);
2358 PyErr_Clear();
2359 if (infront) {
2360 PyErr_Format(type, "%s %s", mesg, PyString_AsString(old_str));
2361 } else {
2362 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
2363 }
2364 Py_DECREF(old_str);
2365 }
2366 return 1;
2367 } else {
2368 return 0;
2369 }
2370 }
2371
2372 SWIGRUNTIME int
2373 SWIG_Python_ArgFail(int argnum)
2374 {
2375 if (PyErr_Occurred()) {
2376 /* add information about failing argument */
2377 char mesg[256];
2378 PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
2379 return SWIG_Python_AddErrMesg(mesg, 1);
2380 } else {
2381 return 0;
2382 }
2383 }
2384
2385 SWIGRUNTIMEINLINE const char *
2386 PySwigObject_GetDesc(PyObject *self)
2387 {
2388 PySwigObject *v = (PySwigObject *)self;
2389 swig_type_info *ty = v ? v->ty : 0;
2390 return ty ? ty->str : (char*)"";
2391 }
2392
2393 SWIGRUNTIME void
2394 SWIG_Python_TypeError(const char *type, PyObject *obj)
2395 {
2396 if (type) {
2397 #if defined(SWIG_COBJECT_TYPES)
2398 if (obj && PySwigObject_Check(obj)) {
2399 const char *otype = (const char *) PySwigObject_GetDesc(obj);
2400 if (otype) {
2401 PyErr_Format(PyExc_TypeError, "a '%s' is expected, 'PySwigObject(%s)' is received",
2402 type, otype);
2403 return;
2404 }
2405 } else
2406 #endif
2407 {
2408 const char *otype = (obj ? obj->ob_type->tp_name : 0);
2409 if (otype) {
2410 PyObject *str = PyObject_Str(obj);
2411 const char *cstr = str ? PyString_AsString(str) : 0;
2412 if (cstr) {
2413 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s(%s)' is received",
2414 type, otype, cstr);
2415 } else {
2416 PyErr_Format(PyExc_TypeError, "a '%s' is expected, '%s' is received",
2417 type, otype);
2418 }
2419 Py_XDECREF(str);
2420 return;
2421 }
2422 }
2423 PyErr_Format(PyExc_TypeError, "a '%s' is expected", type);
2424 } else {
2425 PyErr_Format(PyExc_TypeError, "unexpected type is received");
2426 }
2427 }
2428
2429
2430 /* Convert a pointer value, signal an exception on a type mismatch */
2431 SWIGRUNTIME void *
2432 SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int argnum, int flags) {
2433 void *result;
2434 if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
2435 PyErr_Clear();
2436 if (flags & SWIG_POINTER_EXCEPTION) {
2437 SWIG_Python_TypeError(SWIG_TypePrettyName(ty), obj);
2438 SWIG_Python_ArgFail(argnum);
2439 }
2440 }
2441 return result;
2442 }
2443
2444
2445 #ifdef __cplusplus
2446 #if 0
2447 { /* cc-mode */
2448 #endif
2449 }
2450 #endif
2451
2452
2453
2454 #define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0)
2455
2456 #define SWIG_contract_assert(expr, msg) if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } else
2457
2458
2459
2460 /* -------- TYPES TABLE (BEGIN) -------- */
2461
2462 #define SWIGTYPE_p_char swig_types[0]
2463 #define SWIGTYPE_p_double swig_types[1]
2464 #define SWIGTYPE_p_form_ops_t swig_types[2]
2465 #define SWIGTYPE_p_int swig_types[3]
2466 #define SWIGTYPE_p_unsigned_char swig_types[4]
2467 #define SWIGTYPE_p_unsigned_int swig_types[5]
2468 #define SWIGTYPE_p_unsigned_long swig_types[6]
2469 #define SWIGTYPE_p_wxANIHandler swig_types[7]
2470 #define SWIGTYPE_p_wxAcceleratorTable swig_types[8]
2471 #define SWIGTYPE_p_wxActivateEvent swig_types[9]
2472 #define SWIGTYPE_p_wxBMPHandler swig_types[10]
2473 #define SWIGTYPE_p_wxBitmap swig_types[11]
2474 #define SWIGTYPE_p_wxBoxSizer swig_types[12]
2475 #define SWIGTYPE_p_wxBrush swig_types[13]
2476 #define SWIGTYPE_p_wxBrushList swig_types[14]
2477 #define SWIGTYPE_p_wxBufferedDC swig_types[15]
2478 #define SWIGTYPE_p_wxBufferedPaintDC swig_types[16]
2479 #define SWIGTYPE_p_wxCURHandler swig_types[17]
2480 #define SWIGTYPE_p_wxChildFocusEvent swig_types[18]
2481 #define SWIGTYPE_p_wxClientDC swig_types[19]
2482 #define SWIGTYPE_p_wxCloseEvent swig_types[20]
2483 #define SWIGTYPE_p_wxColour swig_types[21]
2484 #define SWIGTYPE_p_wxColourDatabase swig_types[22]
2485 #define SWIGTYPE_p_wxCommandEvent swig_types[23]
2486 #define SWIGTYPE_p_wxContextMenuEvent swig_types[24]
2487 #define SWIGTYPE_p_wxControl swig_types[25]
2488 #define SWIGTYPE_p_wxControlWithItems swig_types[26]
2489 #define SWIGTYPE_p_wxCursor swig_types[27]
2490 #define SWIGTYPE_p_wxDC swig_types[28]
2491 #define SWIGTYPE_p_wxDash swig_types[29]
2492 #define SWIGTYPE_p_wxDateEvent swig_types[30]
2493 #define SWIGTYPE_p_wxDisplayChangedEvent swig_types[31]
2494 #define SWIGTYPE_p_wxDropFilesEvent swig_types[32]
2495 #define SWIGTYPE_p_wxDuplexMode swig_types[33]
2496 #define SWIGTYPE_p_wxEffects swig_types[34]
2497 #define SWIGTYPE_p_wxEncodingConverter swig_types[35]
2498 #define SWIGTYPE_p_wxEraseEvent swig_types[36]
2499 #define SWIGTYPE_p_wxEvent swig_types[37]
2500 #define SWIGTYPE_p_wxEvtHandler swig_types[38]
2501 #define SWIGTYPE_p_wxFSFile swig_types[39]
2502 #define SWIGTYPE_p_wxFileSystem swig_types[40]
2503 #define SWIGTYPE_p_wxFlexGridSizer swig_types[41]
2504 #define SWIGTYPE_p_wxFocusEvent swig_types[42]
2505 #define SWIGTYPE_p_wxFont swig_types[43]
2506 #define SWIGTYPE_p_wxFontList swig_types[44]
2507 #define SWIGTYPE_p_wxFontMapper swig_types[45]
2508 #define SWIGTYPE_p_wxGBSizerItem swig_types[46]
2509 #define SWIGTYPE_p_wxGDIObjListBase swig_types[47]
2510 #define SWIGTYPE_p_wxGDIObject swig_types[48]
2511 #define SWIGTYPE_p_wxGIFHandler swig_types[49]
2512 #define SWIGTYPE_p_wxGridBagSizer swig_types[50]
2513 #define SWIGTYPE_p_wxGridSizer swig_types[51]
2514 #define SWIGTYPE_p_wxICOHandler swig_types[52]
2515 #define SWIGTYPE_p_wxIcon swig_types[53]
2516 #define SWIGTYPE_p_wxIconBundle swig_types[54]
2517 #define SWIGTYPE_p_wxIconLocation swig_types[55]
2518 #define SWIGTYPE_p_wxIconizeEvent swig_types[56]
2519 #define SWIGTYPE_p_wxIdleEvent swig_types[57]
2520 #define SWIGTYPE_p_wxImage swig_types[58]
2521 #define SWIGTYPE_p_wxImageHandler swig_types[59]
2522 #define SWIGTYPE_p_wxImageList swig_types[60]
2523 #define SWIGTYPE_p_wxIndividualLayoutConstraint swig_types[61]
2524 #define SWIGTYPE_p_wxInitDialogEvent swig_types[62]
2525 #define SWIGTYPE_p_wxJPEGHandler swig_types[63]
2526 #define SWIGTYPE_p_wxKeyEvent swig_types[64]
2527 #define SWIGTYPE_p_wxLanguageInfo swig_types[65]
2528 #define SWIGTYPE_p_wxLayoutConstraints swig_types[66]
2529 #define SWIGTYPE_p_wxLocale swig_types[67]
2530 #define SWIGTYPE_p_wxMask swig_types[68]
2531 #define SWIGTYPE_p_wxMaximizeEvent swig_types[69]
2532 #define SWIGTYPE_p_wxMemoryDC swig_types[70]
2533 #define SWIGTYPE_p_wxMenu swig_types[71]
2534 #define SWIGTYPE_p_wxMenuBar swig_types[72]
2535 #define SWIGTYPE_p_wxMenuEvent swig_types[73]
2536 #define SWIGTYPE_p_wxMenuItem swig_types[74]
2537 #define SWIGTYPE_p_wxMetaFile swig_types[75]
2538 #define SWIGTYPE_p_wxMetaFileDC swig_types[76]
2539 #define SWIGTYPE_p_wxMirrorDC swig_types[77]
2540 #define SWIGTYPE_p_wxMouseCaptureChangedEvent swig_types[78]
2541 #define SWIGTYPE_p_wxMouseEvent swig_types[79]
2542 #define SWIGTYPE_p_wxMoveEvent swig_types[80]
2543 #define SWIGTYPE_p_wxNativeEncodingInfo swig_types[81]
2544 #define SWIGTYPE_p_wxNativeFontInfo swig_types[82]
2545 #define SWIGTYPE_p_wxNavigationKeyEvent swig_types[83]
2546 #define SWIGTYPE_p_wxNcPaintEvent swig_types[84]
2547 #define SWIGTYPE_p_wxNotifyEvent swig_types[85]
2548 #define SWIGTYPE_p_wxObject swig_types[86]
2549 #define SWIGTYPE_p_wxPCXHandler swig_types[87]
2550 #define SWIGTYPE_p_wxPNGHandler swig_types[88]
2551 #define SWIGTYPE_p_wxPNMHandler swig_types[89]
2552 #define SWIGTYPE_p_wxPaintDC swig_types[90]
2553 #define SWIGTYPE_p_wxPaintEvent swig_types[91]
2554 #define SWIGTYPE_p_wxPalette swig_types[92]
2555 #define SWIGTYPE_p_wxPaletteChangedEvent swig_types[93]
2556 #define SWIGTYPE_p_wxPaperSize swig_types[94]
2557 #define SWIGTYPE_p_wxPen swig_types[95]
2558 #define SWIGTYPE_p_wxPenList swig_types[96]
2559 #define SWIGTYPE_p_wxPoint swig_types[97]
2560 #define SWIGTYPE_p_wxPostScriptDC swig_types[98]
2561 #define SWIGTYPE_p_wxPrintData swig_types[99]
2562 #define SWIGTYPE_p_wxPrinterDC swig_types[100]
2563 #define SWIGTYPE_p_wxPyApp swig_types[101]
2564 #define SWIGTYPE_p_wxPyCommandEvent swig_types[102]
2565 #define SWIGTYPE_p_wxPyEvent swig_types[103]
2566 #define SWIGTYPE_p_wxPyFontEnumerator swig_types[104]
2567 #define SWIGTYPE_p_wxPyImageHandler swig_types[105]
2568 #define SWIGTYPE_p_wxPySizer swig_types[106]
2569 #define SWIGTYPE_p_wxPyValidator swig_types[107]
2570 #define SWIGTYPE_p_wxQueryNewPaletteEvent swig_types[108]
2571 #define SWIGTYPE_p_wxRect swig_types[109]
2572 #define SWIGTYPE_p_wxRegion swig_types[110]
2573 #define SWIGTYPE_p_wxRegionIterator swig_types[111]
2574 #define SWIGTYPE_p_wxRendererNative swig_types[112]
2575 #define SWIGTYPE_p_wxRendererVersion swig_types[113]
2576 #define SWIGTYPE_p_wxScreenDC swig_types[114]
2577 #define SWIGTYPE_p_wxScrollEvent swig_types[115]
2578 #define SWIGTYPE_p_wxScrollWinEvent swig_types[116]
2579 #define SWIGTYPE_p_wxSetCursorEvent swig_types[117]
2580 #define SWIGTYPE_p_wxShowEvent swig_types[118]
2581 #define SWIGTYPE_p_wxSize swig_types[119]
2582 #define SWIGTYPE_p_wxSizeEvent swig_types[120]
2583 #define SWIGTYPE_p_wxSizer swig_types[121]
2584 #define SWIGTYPE_p_wxSizerItem swig_types[122]
2585 #define SWIGTYPE_p_wxSplitterRenderParams swig_types[123]
2586 #define SWIGTYPE_p_wxStaticBoxSizer swig_types[124]
2587 #define SWIGTYPE_p_wxStdDialogButtonSizer swig_types[125]
2588 #define SWIGTYPE_p_wxStockGDI swig_types[126]
2589 #define SWIGTYPE_p_wxString swig_types[127]
2590 #define SWIGTYPE_p_wxSysColourChangedEvent swig_types[128]
2591 #define SWIGTYPE_p_wxTIFFHandler swig_types[129]
2592 #define SWIGTYPE_p_wxUpdateUIEvent swig_types[130]
2593 #define SWIGTYPE_p_wxValidator swig_types[131]
2594 #define SWIGTYPE_p_wxWindow swig_types[132]
2595 #define SWIGTYPE_p_wxWindowCreateEvent swig_types[133]
2596 #define SWIGTYPE_p_wxWindowDC swig_types[134]
2597 #define SWIGTYPE_p_wxWindowDestroyEvent swig_types[135]
2598 #define SWIGTYPE_p_wxXPMHandler swig_types[136]
2599 static swig_type_info *swig_types[138];
2600 static swig_module_info swig_module = {swig_types, 137, 0, 0, 0, 0};
2601 #define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
2602 #define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
2603
2604 /* -------- TYPES TABLE (END) -------- */
2605
2606 #if (PY_VERSION_HEX <= 0x02000000)
2607 # if !defined(SWIG_PYTHON_CLASSIC)
2608 # error "This python version requires to use swig with the '-classic' option"
2609 # endif
2610 #endif
2611 #if (PY_VERSION_HEX <= 0x02020000)
2612 # error "This python version requires to use swig with the '-nomodern' option"
2613 #endif
2614 #if (PY_VERSION_HEX <= 0x02020000)
2615 # error "This python version requires to use swig with the '-nomodernargs' option"
2616 #endif
2617 #ifndef METH_O
2618 # error "This python version requires to use swig with the '-nofastunpack' option"
2619 #endif
2620
2621 /*-----------------------------------------------
2622 @(target):= _gdi_.so
2623 ------------------------------------------------*/
2624 #define SWIG_init init_gdi_
2625
2626 #define SWIG_name "_gdi_"
2627
2628 #define SWIGVERSION 0x010329
2629
2630
2631 #define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a))
2632 #define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a))
2633
2634
2635 #include <stdexcept>
2636
2637
2638 namespace swig {
2639 class PyObject_ptr {
2640 protected:
2641 PyObject *_obj;
2642
2643 public:
2644 PyObject_ptr() :_obj(0)
2645 {
2646 }
2647
2648 PyObject_ptr(const PyObject_ptr& item) : _obj(item._obj)
2649 {
2650 Py_XINCREF(_obj);
2651 }
2652
2653 PyObject_ptr(PyObject *obj, bool initial_ref = true) :_obj(obj)
2654 {
2655 if (initial_ref) Py_XINCREF(_obj);
2656 }
2657
2658 PyObject_ptr & operator=(const PyObject_ptr& item)
2659 {
2660 Py_XINCREF(item._obj);
2661 Py_XDECREF(_obj);
2662 _obj = item._obj;
2663 return *this;
2664 }
2665
2666 ~PyObject_ptr()
2667 {
2668 Py_XDECREF(_obj);
2669 }
2670
2671 operator PyObject *() const
2672 {
2673 return _obj;
2674 }
2675
2676 PyObject *operator->() const
2677 {
2678 return _obj;
2679 }
2680 };
2681 }
2682
2683
2684 namespace swig {
2685 struct PyObject_var : PyObject_ptr {
2686 PyObject_var(PyObject* obj = 0) : PyObject_ptr(obj, false) { }
2687
2688 PyObject_var & operator = (PyObject* obj)
2689 {
2690 Py_XDECREF(_obj);
2691 _obj = obj;
2692 return *this;
2693 }
2694 };
2695 }
2696
2697
2698 #include "wx/wxPython/wxPython.h"
2699 #include "wx/wxPython/pyclasses.h"
2700
2701
2702 static const wxString wxPyEmptyString(wxEmptyString);
2703
2704 #include <limits.h>
2705 #ifndef LLONG_MIN
2706 # define LLONG_MIN LONG_LONG_MIN
2707 #endif
2708 #ifndef LLONG_MAX
2709 # define LLONG_MAX LONG_LONG_MAX
2710 #endif
2711 #ifndef ULLONG_MAX
2712 # define ULLONG_MAX ULONG_LONG_MAX
2713 #endif
2714
2715
2716 SWIGINTERN int
2717 SWIG_AsVal_long (PyObject* obj, long* val)
2718 {
2719 if (PyNumber_Check(obj)) {
2720 if (val) *val = PyInt_AsLong(obj);
2721 return SWIG_OK;
2722 }
2723 return SWIG_TypeError;
2724 }
2725
2726
2727 SWIGINTERN int
2728 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2729 {
2730 long v = 0;
2731 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2732 return SWIG_TypeError;
2733 }
2734 else if (val)
2735 *val = (unsigned long)v;
2736 return SWIG_OK;
2737 }
2738
2739
2740 SWIGINTERN int
2741 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2742 {
2743 unsigned long v;
2744 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2745 if (SWIG_IsOK(res)) {
2746 if ((v > UCHAR_MAX)) {
2747 return SWIG_OverflowError;
2748 } else {
2749 if (val) *val = static_cast< unsigned char >(v);
2750 }
2751 }
2752 return res;
2753 }
2754
2755
2756 #define SWIG_From_long PyInt_FromLong
2757
2758
2759 SWIGINTERNINLINE PyObject*
2760 SWIG_From_unsigned_SS_long (unsigned long value)
2761 {
2762 return (value > LONG_MAX) ?
2763 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2764 }
2765
2766
2767 SWIGINTERNINLINE PyObject *
2768 SWIG_From_unsigned_SS_char (unsigned char value)
2769 {
2770 return SWIG_From_unsigned_SS_long (value);
2771 }
2772
2773 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2774 wxColour temp, *obj = &temp;
2775 if ( other == Py_None ) return false;
2776 if ( ! wxColour_helper(other, &obj) ) {
2777 PyErr_Clear();
2778 return false;
2779 }
2780 return self->operator==(*obj);
2781 }
2782 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2783 wxColour temp, *obj = &temp;
2784 if ( other == Py_None ) return true;
2785 if ( ! wxColour_helper(other, &obj)) {
2786 PyErr_Clear();
2787 return true;
2788 }
2789 return self->operator!=(*obj);
2790 }
2791 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2792 PyObject* rv = PyTuple_New(3);
2793 int red = -1;
2794 int green = -1;
2795 int blue = -1;
2796 if (self->Ok()) {
2797 red = self->Red();
2798 green = self->Green();
2799 blue = self->Blue();
2800 }
2801 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2802 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2803 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2804 return rv;
2805 }
2806 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2807 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2808 }
2809
2810 SWIGINTERN int
2811 SWIG_AsVal_int (PyObject * obj, int *val)
2812 {
2813 long v;
2814 int res = SWIG_AsVal_long (obj, &v);
2815 if (SWIG_IsOK(res)) {
2816 if ((v < INT_MIN || v > INT_MAX)) {
2817 return SWIG_OverflowError;
2818 } else {
2819 if (val) *val = static_cast< int >(v);
2820 }
2821 }
2822 return res;
2823 }
2824
2825
2826 SWIGINTERNINLINE PyObject *
2827 SWIG_From_int (int value)
2828 {
2829 return SWIG_From_long (value);
2830 }
2831
2832 SWIGINTERN PyObject *wxPen_GetDashes(wxPen *self){
2833 wxDash* dashes;
2834 int count = self->GetDashes(&dashes);
2835 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2836 PyObject* retval = PyList_New(0);
2837 for (int x=0; x<count; x++) {
2838 PyObject* pyint = PyInt_FromLong(dashes[x]);
2839 PyList_Append(retval, pyint);
2840 Py_DECREF(pyint);
2841 }
2842 wxPyEndBlockThreads(blocked);
2843 return retval;
2844 }
2845 SWIGINTERN void wxPen__SetDashes(wxPen *self,PyObject *_self,PyObject *pyDashes){
2846 wxPyBlock_t blocked = wxPyBeginBlockThreads();
2847 int size = PyList_Size(pyDashes);
2848 wxDash* dashes = (wxDash*)byte_LIST_helper(pyDashes);
2849
2850 // black magic warning! The array of wxDashes needs to exist as
2851 // long as the pen does because wxPen does not copy the array. So
2852 // stick a copy in a Python string object and attach it to _self,
2853 // and then call SetDashes with a pointer to that array. Then
2854 // when the Python pen object is destroyed the array will be
2855 // cleaned up too.
2856 PyObject* strDashes = PyString_FromStringAndSize((char*)dashes, size*sizeof(wxDash));
2857 PyObject_SetAttrString(_self, "_dashes", strDashes);
2858
2859 self->SetDashes(size, (wxDash*)PyString_AS_STRING(strDashes));
2860 delete [] dashes;
2861 Py_DECREF(strDashes);
2862 wxPyEndBlockThreads(blocked);
2863 }
2864 SWIGINTERN bool wxPen___eq__(wxPen *self,wxPen const *other){ return other ? (*self == *other) : false; }
2865 SWIGINTERN bool wxPen___ne__(wxPen *self,wxPen const *other){ return other ? (*self != *other) : true; }
2866
2867 #include <wx/image.h>
2868
2869 static char** ConvertListOfStrings(PyObject* listOfStrings) {
2870 char** cArray = NULL;
2871 int count;
2872
2873 if (!PyList_Check(listOfStrings)) {
2874 PyErr_SetString(PyExc_TypeError, "Expected a list of strings.");
2875 return NULL;
2876 }
2877 count = PyList_Size(listOfStrings);
2878 cArray = new char*[count];
2879
2880 for(int x=0; x<count; x++) {
2881 // TODO: Need some validation and error checking here
2882 cArray[x] = PyString_AsString(PyList_GET_ITEM(listOfStrings, x));
2883 }
2884 return cArray;
2885 }
2886
2887
2888 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *listOfStrings){
2889 char** cArray = NULL;
2890 wxBitmap* bmp;
2891
2892 cArray = ConvertListOfStrings(listOfStrings);
2893 if (! cArray)
2894 return NULL;
2895 bmp = new wxBitmap(cArray);
2896 delete [] cArray;
2897 return bmp;
2898 }
2899 SWIGINTERN wxBitmap *new_wxBitmap(PyObject *bits,int width,int height,int depth=1){
2900 char* buf;
2901 int length;
2902 PyString_AsStringAndSize(bits, &buf, &length);
2903 return new wxBitmap(buf, width, height, depth);
2904 }
2905 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2906 wxSize size(self->GetWidth(), self->GetHeight());
2907 return size;
2908 }
2909 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2910 wxMask *mask = new wxMask(*self, colour);
2911 self->SetMask(mask);
2912 }
2913 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2914 self->SetWidth(size.x);
2915 self->SetHeight(size.y);
2916 }
2917 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2918 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2919 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2920 if ( !colour.Ok() )
2921 return new wxMask(bitmap, *wxBLACK);
2922 else
2923 return new wxMask(bitmap, colour);
2924 }
2925
2926 #include <wx/iconbndl.h>
2927
2928 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2929 wxIcon* icon = new wxIcon();
2930 icon->CopyFromBitmap(bmp);
2931 return icon;
2932 }
2933 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2934 char** cArray = NULL;
2935 wxIcon* icon;
2936
2937 cArray = ConvertListOfStrings(listOfStrings);
2938 if (! cArray)
2939 return NULL;
2940 icon = new wxIcon(cArray);
2941 delete [] cArray;
2942 return icon;
2943 }
2944 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2945
2946
2947
2948 return new wxIconLocation(*filename);
2949
2950 }
2951 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2952
2953
2954
2955 // do nothing
2956
2957 }
2958 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2959
2960
2961
2962 return -1;
2963
2964 }
2965 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2966 #ifdef __WXGTK__
2967 wxImage img(cursorName, type);
2968 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2969 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2970 return new wxCursor(img);
2971 #else
2972 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2973 #endif
2974 }
2975
2976
2977 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2978 (*self) ++;
2979 }
2980 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2981 return self->operator bool();
2982 }
2983
2984 #include <wx/fontutil.h>
2985 #include <wx/fontmap.h>
2986 #include <wx/fontenum.h>
2987
2988
2989 SWIGINTERN int
2990 SWIG_AsVal_bool (PyObject *obj, bool *val)
2991 {
2992 if (obj == Py_True) {
2993 if (val) *val = true;
2994 return SWIG_OK;
2995 } else if (obj == Py_False) {
2996 if (val) *val = false;
2997 return SWIG_OK;
2998 } else {
2999 long v = 0;
3000 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3001 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3002 return res;
3003 }
3004 }
3005
3006 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3007 return self->ToString();
3008 }
3009
3010 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding) {
3011 static wxNativeEncodingInfo info;
3012 if ( wxGetNativeFontEncoding(encoding, &info) )
3013 return &info;
3014 else
3015 return NULL;
3016 }
3017
3018
3019 SWIGINTERNINLINE PyObject *
3020 SWIG_From_size_t (size_t value)
3021 {
3022 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3023 }
3024
3025
3026 SWIGINTERNINLINE int
3027 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3028 {
3029 unsigned long v;
3030 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3031 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3032 return res;
3033 }
3034
3035 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3036 wxFontEncoding alt_enc;
3037 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3038 return PyInt_FromLong(alt_enc);
3039 else {
3040 Py_INCREF(Py_None);
3041 return Py_None;
3042 }
3043 }
3044 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3045 wxNativeFontInfo nfi;
3046 nfi.FromString(info);
3047 return new wxFont(nfi);
3048 }
3049 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3050 return wxFont::New(pointSize, family, flags, face, encoding);
3051 }
3052 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3053 return wxFontBase::New(pixelSize, family,
3054 style, weight, underlined,
3055 face, encoding);
3056 }
3057 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3058 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3059 }
3060 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3061 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3062
3063 class wxPyFontEnumerator : public wxFontEnumerator {
3064 public:
3065 wxPyFontEnumerator() {}
3066 ~wxPyFontEnumerator() {}
3067
3068 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3069 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3070
3071 PYPRIVATE;
3072 };
3073
3074 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3075 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3076
3077
3078 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3079 PyObject* ret;
3080 wxArrayString* arr = self->GetEncodings();
3081 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3082 if (arr)
3083 ret = wxArrayString2PyList_helper(*arr);
3084 else
3085 ret = PyList_New(0);
3086 wxPyEndBlockThreads(blocked);
3087 return ret;
3088 }
3089 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3090 PyObject* ret;
3091 wxArrayString* arr = self->GetFacenames();
3092 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3093 if (arr)
3094 ret = wxArrayString2PyList_helper(*arr);
3095 else
3096 ret = PyList_New(0);
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 class wxMetaFile : public wxObject {
3219 public:
3220 wxMetaFile(const wxString&)
3221 { wxPyRaiseNotImplemented(); }
3222 };
3223
3224 class wxMetaFileDC : public wxClientDC {
3225 public:
3226 wxMetaFileDC(const wxString&, int, int, const wxString&)
3227 { wxPyRaiseNotImplemented(); }
3228 };
3229
3230
3231
3232 class wxPrinterDC : public wxClientDC {
3233 public:
3234 wxPrinterDC(const wxPrintData&)
3235 { wxPyRaiseNotImplemented(); }
3236
3237 };
3238
3239
3240
3241 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3242 self->AddColour(name, wxColour(red, green, blue));
3243 }
3244
3245 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3246 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3247 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3248 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3249
3250
3251 #include <wx/effects.h>
3252
3253
3254 #include "wx/renderer.h"
3255
3256
3257 SWIGINTERNINLINE PyObject*
3258 SWIG_From_bool (bool value)
3259 {
3260 return PyBool_FromLong(value ? 1 : 0);
3261 }
3262
3263 #ifdef __cplusplus
3264 extern "C" {
3265 #endif
3266 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3267 PyObject *resultobj = 0;
3268 wxGDIObject *result = 0 ;
3269
3270 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3271 {
3272 if (!wxPyCheckForApp()) SWIG_fail;
3273 PyThreadState* __tstate = wxPyBeginAllowThreads();
3274 result = (wxGDIObject *)new wxGDIObject();
3275 wxPyEndAllowThreads(__tstate);
3276 if (PyErr_Occurred()) SWIG_fail;
3277 }
3278 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3279 return resultobj;
3280 fail:
3281 return NULL;
3282 }
3283
3284
3285 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3286 PyObject *resultobj = 0;
3287 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3288 void *argp1 = 0 ;
3289 int res1 = 0 ;
3290 PyObject *swig_obj[1] ;
3291
3292 if (!args) SWIG_fail;
3293 swig_obj[0] = args;
3294 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3295 if (!SWIG_IsOK(res1)) {
3296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3297 }
3298 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3299 {
3300 PyThreadState* __tstate = wxPyBeginAllowThreads();
3301 delete arg1;
3302
3303 wxPyEndAllowThreads(__tstate);
3304 if (PyErr_Occurred()) SWIG_fail;
3305 }
3306 resultobj = SWIG_Py_Void();
3307 return resultobj;
3308 fail:
3309 return NULL;
3310 }
3311
3312
3313 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3314 PyObject *resultobj = 0;
3315 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3316 bool result;
3317 void *argp1 = 0 ;
3318 int res1 = 0 ;
3319 PyObject *swig_obj[1] ;
3320
3321 if (!args) SWIG_fail;
3322 swig_obj[0] = args;
3323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3324 if (!SWIG_IsOK(res1)) {
3325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3326 }
3327 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3328 {
3329 PyThreadState* __tstate = wxPyBeginAllowThreads();
3330 result = (bool)(arg1)->IsNull();
3331 wxPyEndAllowThreads(__tstate);
3332 if (PyErr_Occurred()) SWIG_fail;
3333 }
3334 {
3335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3336 }
3337 return resultobj;
3338 fail:
3339 return NULL;
3340 }
3341
3342
3343 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3344 PyObject *obj;
3345 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3346 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3347 return SWIG_Py_Void();
3348 }
3349
3350 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3351 return SWIG_Python_InitShadowInstance(args);
3352 }
3353
3354 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3355 PyObject *resultobj = 0;
3356 byte arg1 = (byte) 0 ;
3357 byte arg2 = (byte) 0 ;
3358 byte arg3 = (byte) 0 ;
3359 wxColour *result = 0 ;
3360 unsigned char val1 ;
3361 int ecode1 = 0 ;
3362 unsigned char val2 ;
3363 int ecode2 = 0 ;
3364 unsigned char val3 ;
3365 int ecode3 = 0 ;
3366 PyObject * obj0 = 0 ;
3367 PyObject * obj1 = 0 ;
3368 PyObject * obj2 = 0 ;
3369 char * kwnames[] = {
3370 (char *) "red",(char *) "green",(char *) "blue", NULL
3371 };
3372
3373 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3374 if (obj0) {
3375 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3376 if (!SWIG_IsOK(ecode1)) {
3377 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3378 }
3379 arg1 = static_cast< byte >(val1);
3380 }
3381 if (obj1) {
3382 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3383 if (!SWIG_IsOK(ecode2)) {
3384 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3385 }
3386 arg2 = static_cast< byte >(val2);
3387 }
3388 if (obj2) {
3389 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3390 if (!SWIG_IsOK(ecode3)) {
3391 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3392 }
3393 arg3 = static_cast< byte >(val3);
3394 }
3395 {
3396 PyThreadState* __tstate = wxPyBeginAllowThreads();
3397 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3398 wxPyEndAllowThreads(__tstate);
3399 if (PyErr_Occurred()) SWIG_fail;
3400 }
3401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3402 return resultobj;
3403 fail:
3404 return NULL;
3405 }
3406
3407
3408 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3409 PyObject *resultobj = 0;
3410 wxString *arg1 = 0 ;
3411 wxColour *result = 0 ;
3412 bool temp1 = false ;
3413 PyObject * obj0 = 0 ;
3414 char * kwnames[] = {
3415 (char *) "colorName", NULL
3416 };
3417
3418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3419 {
3420 arg1 = wxString_in_helper(obj0);
3421 if (arg1 == NULL) SWIG_fail;
3422 temp1 = true;
3423 }
3424 {
3425 if (!wxPyCheckForApp()) SWIG_fail;
3426 PyThreadState* __tstate = wxPyBeginAllowThreads();
3427 result = (wxColour *)new wxColour((wxString const &)*arg1);
3428 wxPyEndAllowThreads(__tstate);
3429 if (PyErr_Occurred()) SWIG_fail;
3430 }
3431 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3432 {
3433 if (temp1)
3434 delete arg1;
3435 }
3436 return resultobj;
3437 fail:
3438 {
3439 if (temp1)
3440 delete arg1;
3441 }
3442 return NULL;
3443 }
3444
3445
3446 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3447 PyObject *resultobj = 0;
3448 unsigned long arg1 ;
3449 wxColour *result = 0 ;
3450 unsigned long val1 ;
3451 int ecode1 = 0 ;
3452 PyObject * obj0 = 0 ;
3453 char * kwnames[] = {
3454 (char *) "colRGB", NULL
3455 };
3456
3457 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3458 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3459 if (!SWIG_IsOK(ecode1)) {
3460 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3461 }
3462 arg1 = static_cast< unsigned long >(val1);
3463 {
3464 PyThreadState* __tstate = wxPyBeginAllowThreads();
3465 result = (wxColour *)new wxColour(arg1);
3466 wxPyEndAllowThreads(__tstate);
3467 if (PyErr_Occurred()) SWIG_fail;
3468 }
3469 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3470 return resultobj;
3471 fail:
3472 return NULL;
3473 }
3474
3475
3476 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3477 PyObject *resultobj = 0;
3478 wxColour *arg1 = (wxColour *) 0 ;
3479 void *argp1 = 0 ;
3480 int res1 = 0 ;
3481 PyObject *swig_obj[1] ;
3482
3483 if (!args) SWIG_fail;
3484 swig_obj[0] = args;
3485 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3486 if (!SWIG_IsOK(res1)) {
3487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3488 }
3489 arg1 = reinterpret_cast< wxColour * >(argp1);
3490 {
3491 PyThreadState* __tstate = wxPyBeginAllowThreads();
3492 delete arg1;
3493
3494 wxPyEndAllowThreads(__tstate);
3495 if (PyErr_Occurred()) SWIG_fail;
3496 }
3497 resultobj = SWIG_Py_Void();
3498 return resultobj;
3499 fail:
3500 return NULL;
3501 }
3502
3503
3504 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3505 PyObject *resultobj = 0;
3506 wxColour *arg1 = (wxColour *) 0 ;
3507 byte result;
3508 void *argp1 = 0 ;
3509 int res1 = 0 ;
3510 PyObject *swig_obj[1] ;
3511
3512 if (!args) SWIG_fail;
3513 swig_obj[0] = args;
3514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3515 if (!SWIG_IsOK(res1)) {
3516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3517 }
3518 arg1 = reinterpret_cast< wxColour * >(argp1);
3519 {
3520 PyThreadState* __tstate = wxPyBeginAllowThreads();
3521 result = (byte)(arg1)->Red();
3522 wxPyEndAllowThreads(__tstate);
3523 if (PyErr_Occurred()) SWIG_fail;
3524 }
3525 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3526 return resultobj;
3527 fail:
3528 return NULL;
3529 }
3530
3531
3532 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3533 PyObject *resultobj = 0;
3534 wxColour *arg1 = (wxColour *) 0 ;
3535 byte result;
3536 void *argp1 = 0 ;
3537 int res1 = 0 ;
3538 PyObject *swig_obj[1] ;
3539
3540 if (!args) SWIG_fail;
3541 swig_obj[0] = args;
3542 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3543 if (!SWIG_IsOK(res1)) {
3544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3545 }
3546 arg1 = reinterpret_cast< wxColour * >(argp1);
3547 {
3548 PyThreadState* __tstate = wxPyBeginAllowThreads();
3549 result = (byte)(arg1)->Green();
3550 wxPyEndAllowThreads(__tstate);
3551 if (PyErr_Occurred()) SWIG_fail;
3552 }
3553 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3554 return resultobj;
3555 fail:
3556 return NULL;
3557 }
3558
3559
3560 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3561 PyObject *resultobj = 0;
3562 wxColour *arg1 = (wxColour *) 0 ;
3563 byte result;
3564 void *argp1 = 0 ;
3565 int res1 = 0 ;
3566 PyObject *swig_obj[1] ;
3567
3568 if (!args) SWIG_fail;
3569 swig_obj[0] = args;
3570 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3571 if (!SWIG_IsOK(res1)) {
3572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3573 }
3574 arg1 = reinterpret_cast< wxColour * >(argp1);
3575 {
3576 PyThreadState* __tstate = wxPyBeginAllowThreads();
3577 result = (byte)(arg1)->Blue();
3578 wxPyEndAllowThreads(__tstate);
3579 if (PyErr_Occurred()) SWIG_fail;
3580 }
3581 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3582 return resultobj;
3583 fail:
3584 return NULL;
3585 }
3586
3587
3588 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3589 PyObject *resultobj = 0;
3590 wxColour *arg1 = (wxColour *) 0 ;
3591 bool result;
3592 void *argp1 = 0 ;
3593 int res1 = 0 ;
3594 PyObject *swig_obj[1] ;
3595
3596 if (!args) SWIG_fail;
3597 swig_obj[0] = args;
3598 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3599 if (!SWIG_IsOK(res1)) {
3600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3601 }
3602 arg1 = reinterpret_cast< wxColour * >(argp1);
3603 {
3604 PyThreadState* __tstate = wxPyBeginAllowThreads();
3605 result = (bool)(arg1)->Ok();
3606 wxPyEndAllowThreads(__tstate);
3607 if (PyErr_Occurred()) SWIG_fail;
3608 }
3609 {
3610 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3611 }
3612 return resultobj;
3613 fail:
3614 return NULL;
3615 }
3616
3617
3618 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3619 PyObject *resultobj = 0;
3620 wxColour *arg1 = (wxColour *) 0 ;
3621 byte arg2 ;
3622 byte arg3 ;
3623 byte arg4 ;
3624 void *argp1 = 0 ;
3625 int res1 = 0 ;
3626 unsigned char val2 ;
3627 int ecode2 = 0 ;
3628 unsigned char val3 ;
3629 int ecode3 = 0 ;
3630 unsigned char val4 ;
3631 int ecode4 = 0 ;
3632 PyObject * obj0 = 0 ;
3633 PyObject * obj1 = 0 ;
3634 PyObject * obj2 = 0 ;
3635 PyObject * obj3 = 0 ;
3636 char * kwnames[] = {
3637 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3638 };
3639
3640 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3641 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3642 if (!SWIG_IsOK(res1)) {
3643 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3644 }
3645 arg1 = reinterpret_cast< wxColour * >(argp1);
3646 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3647 if (!SWIG_IsOK(ecode2)) {
3648 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3649 }
3650 arg2 = static_cast< byte >(val2);
3651 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3652 if (!SWIG_IsOK(ecode3)) {
3653 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3654 }
3655 arg3 = static_cast< byte >(val3);
3656 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3657 if (!SWIG_IsOK(ecode4)) {
3658 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3659 }
3660 arg4 = static_cast< byte >(val4);
3661 {
3662 PyThreadState* __tstate = wxPyBeginAllowThreads();
3663 (arg1)->Set(arg2,arg3,arg4);
3664 wxPyEndAllowThreads(__tstate);
3665 if (PyErr_Occurred()) SWIG_fail;
3666 }
3667 resultobj = SWIG_Py_Void();
3668 return resultobj;
3669 fail:
3670 return NULL;
3671 }
3672
3673
3674 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3675 PyObject *resultobj = 0;
3676 wxColour *arg1 = (wxColour *) 0 ;
3677 unsigned long arg2 ;
3678 void *argp1 = 0 ;
3679 int res1 = 0 ;
3680 unsigned long val2 ;
3681 int ecode2 = 0 ;
3682 PyObject * obj0 = 0 ;
3683 PyObject * obj1 = 0 ;
3684 char * kwnames[] = {
3685 (char *) "self",(char *) "colRGB", NULL
3686 };
3687
3688 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3689 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3690 if (!SWIG_IsOK(res1)) {
3691 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3692 }
3693 arg1 = reinterpret_cast< wxColour * >(argp1);
3694 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3695 if (!SWIG_IsOK(ecode2)) {
3696 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3697 }
3698 arg2 = static_cast< unsigned long >(val2);
3699 {
3700 PyThreadState* __tstate = wxPyBeginAllowThreads();
3701 (arg1)->Set(arg2);
3702 wxPyEndAllowThreads(__tstate);
3703 if (PyErr_Occurred()) SWIG_fail;
3704 }
3705 resultobj = SWIG_Py_Void();
3706 return resultobj;
3707 fail:
3708 return NULL;
3709 }
3710
3711
3712 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3713 PyObject *resultobj = 0;
3714 wxColour *arg1 = (wxColour *) 0 ;
3715 wxString *arg2 = 0 ;
3716 void *argp1 = 0 ;
3717 int res1 = 0 ;
3718 bool temp2 = false ;
3719 PyObject * obj0 = 0 ;
3720 PyObject * obj1 = 0 ;
3721 char * kwnames[] = {
3722 (char *) "self",(char *) "colourName", NULL
3723 };
3724
3725 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3726 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3727 if (!SWIG_IsOK(res1)) {
3728 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3729 }
3730 arg1 = reinterpret_cast< wxColour * >(argp1);
3731 {
3732 arg2 = wxString_in_helper(obj1);
3733 if (arg2 == NULL) SWIG_fail;
3734 temp2 = true;
3735 }
3736 {
3737 PyThreadState* __tstate = wxPyBeginAllowThreads();
3738 (arg1)->InitFromName((wxString const &)*arg2);
3739 wxPyEndAllowThreads(__tstate);
3740 if (PyErr_Occurred()) SWIG_fail;
3741 }
3742 resultobj = SWIG_Py_Void();
3743 {
3744 if (temp2)
3745 delete arg2;
3746 }
3747 return resultobj;
3748 fail:
3749 {
3750 if (temp2)
3751 delete arg2;
3752 }
3753 return NULL;
3754 }
3755
3756
3757 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3758 PyObject *resultobj = 0;
3759 wxColour *arg1 = (wxColour *) 0 ;
3760 long result;
3761 void *argp1 = 0 ;
3762 int res1 = 0 ;
3763 PyObject *swig_obj[1] ;
3764
3765 if (!args) SWIG_fail;
3766 swig_obj[0] = args;
3767 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3768 if (!SWIG_IsOK(res1)) {
3769 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3770 }
3771 arg1 = reinterpret_cast< wxColour * >(argp1);
3772 {
3773 PyThreadState* __tstate = wxPyBeginAllowThreads();
3774 result = (long)((wxColour const *)arg1)->GetPixel();
3775 wxPyEndAllowThreads(__tstate);
3776 if (PyErr_Occurred()) SWIG_fail;
3777 }
3778 resultobj = SWIG_From_long(static_cast< long >(result));
3779 return resultobj;
3780 fail:
3781 return NULL;
3782 }
3783
3784
3785 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3786 PyObject *resultobj = 0;
3787 wxColour *arg1 = (wxColour *) 0 ;
3788 PyObject *arg2 = (PyObject *) 0 ;
3789 bool result;
3790 void *argp1 = 0 ;
3791 int res1 = 0 ;
3792 PyObject * obj0 = 0 ;
3793 PyObject * obj1 = 0 ;
3794 char * kwnames[] = {
3795 (char *) "self",(char *) "other", NULL
3796 };
3797
3798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3800 if (!SWIG_IsOK(res1)) {
3801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3802 }
3803 arg1 = reinterpret_cast< wxColour * >(argp1);
3804 arg2 = obj1;
3805 {
3806 result = (bool)wxColour___eq__(arg1,arg2);
3807 if (PyErr_Occurred()) SWIG_fail;
3808 }
3809 {
3810 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3811 }
3812 return resultobj;
3813 fail:
3814 return NULL;
3815 }
3816
3817
3818 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3819 PyObject *resultobj = 0;
3820 wxColour *arg1 = (wxColour *) 0 ;
3821 PyObject *arg2 = (PyObject *) 0 ;
3822 bool result;
3823 void *argp1 = 0 ;
3824 int res1 = 0 ;
3825 PyObject * obj0 = 0 ;
3826 PyObject * obj1 = 0 ;
3827 char * kwnames[] = {
3828 (char *) "self",(char *) "other", NULL
3829 };
3830
3831 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3832 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3833 if (!SWIG_IsOK(res1)) {
3834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3835 }
3836 arg1 = reinterpret_cast< wxColour * >(argp1);
3837 arg2 = obj1;
3838 {
3839 result = (bool)wxColour___ne__(arg1,arg2);
3840 if (PyErr_Occurred()) SWIG_fail;
3841 }
3842 {
3843 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3844 }
3845 return resultobj;
3846 fail:
3847 return NULL;
3848 }
3849
3850
3851 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3852 PyObject *resultobj = 0;
3853 wxColour *arg1 = (wxColour *) 0 ;
3854 PyObject *result = 0 ;
3855 void *argp1 = 0 ;
3856 int res1 = 0 ;
3857 PyObject *swig_obj[1] ;
3858
3859 if (!args) SWIG_fail;
3860 swig_obj[0] = args;
3861 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3862 if (!SWIG_IsOK(res1)) {
3863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3864 }
3865 arg1 = reinterpret_cast< wxColour * >(argp1);
3866 {
3867 PyThreadState* __tstate = wxPyBeginAllowThreads();
3868 result = (PyObject *)wxColour_Get(arg1);
3869 wxPyEndAllowThreads(__tstate);
3870 if (PyErr_Occurred()) SWIG_fail;
3871 }
3872 resultobj = result;
3873 return resultobj;
3874 fail:
3875 return NULL;
3876 }
3877
3878
3879 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3880 PyObject *resultobj = 0;
3881 wxColour *arg1 = (wxColour *) 0 ;
3882 unsigned long result;
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_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3892 }
3893 arg1 = reinterpret_cast< wxColour * >(argp1);
3894 {
3895 PyThreadState* __tstate = wxPyBeginAllowThreads();
3896 result = (unsigned long)wxColour_GetRGB(arg1);
3897 wxPyEndAllowThreads(__tstate);
3898 if (PyErr_Occurred()) SWIG_fail;
3899 }
3900 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3901 return resultobj;
3902 fail:
3903 return NULL;
3904 }
3905
3906
3907 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3908 PyObject *obj;
3909 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3910 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3911 return SWIG_Py_Void();
3912 }
3913
3914 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3915 return SWIG_Python_InitShadowInstance(args);
3916 }
3917
3918 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3919 PyObject *resultobj = 0;
3920 int arg1 ;
3921 unsigned char *arg2 = (unsigned char *) 0 ;
3922 unsigned char *arg3 = (unsigned char *) 0 ;
3923 unsigned char *arg4 = (unsigned char *) 0 ;
3924 wxPalette *result = 0 ;
3925 int val1 ;
3926 int ecode1 = 0 ;
3927 void *argp2 = 0 ;
3928 int res2 = 0 ;
3929 void *argp3 = 0 ;
3930 int res3 = 0 ;
3931 void *argp4 = 0 ;
3932 int res4 = 0 ;
3933 PyObject * obj0 = 0 ;
3934 PyObject * obj1 = 0 ;
3935 PyObject * obj2 = 0 ;
3936 PyObject * obj3 = 0 ;
3937 char * kwnames[] = {
3938 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3939 };
3940
3941 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3942 ecode1 = SWIG_AsVal_int(obj0, &val1);
3943 if (!SWIG_IsOK(ecode1)) {
3944 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3945 }
3946 arg1 = static_cast< int >(val1);
3947 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3948 if (!SWIG_IsOK(res2)) {
3949 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3950 }
3951 arg2 = reinterpret_cast< unsigned char * >(argp2);
3952 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3953 if (!SWIG_IsOK(res3)) {
3954 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3955 }
3956 arg3 = reinterpret_cast< unsigned char * >(argp3);
3957 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3958 if (!SWIG_IsOK(res4)) {
3959 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3960 }
3961 arg4 = reinterpret_cast< unsigned char * >(argp4);
3962 {
3963 if (!wxPyCheckForApp()) SWIG_fail;
3964 PyThreadState* __tstate = wxPyBeginAllowThreads();
3965 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3966 wxPyEndAllowThreads(__tstate);
3967 if (PyErr_Occurred()) SWIG_fail;
3968 }
3969 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3970 return resultobj;
3971 fail:
3972 return NULL;
3973 }
3974
3975
3976 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3977 PyObject *resultobj = 0;
3978 wxPalette *arg1 = (wxPalette *) 0 ;
3979 void *argp1 = 0 ;
3980 int res1 = 0 ;
3981 PyObject *swig_obj[1] ;
3982
3983 if (!args) SWIG_fail;
3984 swig_obj[0] = args;
3985 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
3986 if (!SWIG_IsOK(res1)) {
3987 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
3988 }
3989 arg1 = reinterpret_cast< wxPalette * >(argp1);
3990 {
3991 PyThreadState* __tstate = wxPyBeginAllowThreads();
3992 delete arg1;
3993
3994 wxPyEndAllowThreads(__tstate);
3995 if (PyErr_Occurred()) SWIG_fail;
3996 }
3997 resultobj = SWIG_Py_Void();
3998 return resultobj;
3999 fail:
4000 return NULL;
4001 }
4002
4003
4004 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4005 PyObject *resultobj = 0;
4006 wxPalette *arg1 = (wxPalette *) 0 ;
4007 byte arg2 ;
4008 byte arg3 ;
4009 byte arg4 ;
4010 int result;
4011 void *argp1 = 0 ;
4012 int res1 = 0 ;
4013 unsigned char val2 ;
4014 int ecode2 = 0 ;
4015 unsigned char val3 ;
4016 int ecode3 = 0 ;
4017 unsigned char val4 ;
4018 int ecode4 = 0 ;
4019 PyObject * obj0 = 0 ;
4020 PyObject * obj1 = 0 ;
4021 PyObject * obj2 = 0 ;
4022 PyObject * obj3 = 0 ;
4023 char * kwnames[] = {
4024 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4025 };
4026
4027 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4028 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4029 if (!SWIG_IsOK(res1)) {
4030 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4031 }
4032 arg1 = reinterpret_cast< wxPalette * >(argp1);
4033 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4034 if (!SWIG_IsOK(ecode2)) {
4035 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4036 }
4037 arg2 = static_cast< byte >(val2);
4038 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4039 if (!SWIG_IsOK(ecode3)) {
4040 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4041 }
4042 arg3 = static_cast< byte >(val3);
4043 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4044 if (!SWIG_IsOK(ecode4)) {
4045 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4046 }
4047 arg4 = static_cast< byte >(val4);
4048 {
4049 PyThreadState* __tstate = wxPyBeginAllowThreads();
4050 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4051 wxPyEndAllowThreads(__tstate);
4052 if (PyErr_Occurred()) SWIG_fail;
4053 }
4054 resultobj = SWIG_From_int(static_cast< int >(result));
4055 return resultobj;
4056 fail:
4057 return NULL;
4058 }
4059
4060
4061 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4062 PyObject *resultobj = 0;
4063 wxPalette *arg1 = (wxPalette *) 0 ;
4064 int arg2 ;
4065 byte *arg3 = (byte *) 0 ;
4066 byte *arg4 = (byte *) 0 ;
4067 byte *arg5 = (byte *) 0 ;
4068 bool result;
4069 void *argp1 = 0 ;
4070 int res1 = 0 ;
4071 int val2 ;
4072 int ecode2 = 0 ;
4073 byte temp3 ;
4074 int res3 = SWIG_TMPOBJ ;
4075 byte temp4 ;
4076 int res4 = SWIG_TMPOBJ ;
4077 byte temp5 ;
4078 int res5 = SWIG_TMPOBJ ;
4079 PyObject * obj0 = 0 ;
4080 PyObject * obj1 = 0 ;
4081 char * kwnames[] = {
4082 (char *) "self",(char *) "pixel", NULL
4083 };
4084
4085 arg3 = &temp3;
4086 arg4 = &temp4;
4087 arg5 = &temp5;
4088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4089 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4090 if (!SWIG_IsOK(res1)) {
4091 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4092 }
4093 arg1 = reinterpret_cast< wxPalette * >(argp1);
4094 ecode2 = SWIG_AsVal_int(obj1, &val2);
4095 if (!SWIG_IsOK(ecode2)) {
4096 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4097 }
4098 arg2 = static_cast< int >(val2);
4099 {
4100 PyThreadState* __tstate = wxPyBeginAllowThreads();
4101 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4102 wxPyEndAllowThreads(__tstate);
4103 if (PyErr_Occurred()) SWIG_fail;
4104 }
4105 {
4106 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4107 }
4108 if (SWIG_IsTmpObj(res3)) {
4109 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4110 } else {
4111 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4112 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4113 }
4114 if (SWIG_IsTmpObj(res4)) {
4115 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4116 } else {
4117 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4118 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4119 }
4120 if (SWIG_IsTmpObj(res5)) {
4121 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4122 } else {
4123 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4124 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4125 }
4126 return resultobj;
4127 fail:
4128 return NULL;
4129 }
4130
4131
4132 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4133 PyObject *resultobj = 0;
4134 wxPalette *arg1 = (wxPalette *) 0 ;
4135 int result;
4136 void *argp1 = 0 ;
4137 int res1 = 0 ;
4138 PyObject *swig_obj[1] ;
4139
4140 if (!args) SWIG_fail;
4141 swig_obj[0] = args;
4142 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4143 if (!SWIG_IsOK(res1)) {
4144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4145 }
4146 arg1 = reinterpret_cast< wxPalette * >(argp1);
4147 {
4148 PyThreadState* __tstate = wxPyBeginAllowThreads();
4149 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4150 wxPyEndAllowThreads(__tstate);
4151 if (PyErr_Occurred()) SWIG_fail;
4152 }
4153 resultobj = SWIG_From_int(static_cast< int >(result));
4154 return resultobj;
4155 fail:
4156 return NULL;
4157 }
4158
4159
4160 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4161 PyObject *resultobj = 0;
4162 wxPalette *arg1 = (wxPalette *) 0 ;
4163 bool 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_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4173 }
4174 arg1 = reinterpret_cast< wxPalette * >(argp1);
4175 {
4176 PyThreadState* __tstate = wxPyBeginAllowThreads();
4177 result = (bool)(arg1)->Ok();
4178 wxPyEndAllowThreads(__tstate);
4179 if (PyErr_Occurred()) SWIG_fail;
4180 }
4181 {
4182 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4183 }
4184 return resultobj;
4185 fail:
4186 return NULL;
4187 }
4188
4189
4190 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4191 PyObject *obj;
4192 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4193 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4194 return SWIG_Py_Void();
4195 }
4196
4197 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4198 return SWIG_Python_InitShadowInstance(args);
4199 }
4200
4201 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4202 PyObject *resultobj = 0;
4203 wxColour *arg1 = 0 ;
4204 int arg2 = (int) 1 ;
4205 int arg3 = (int) wxSOLID ;
4206 wxPen *result = 0 ;
4207 wxColour temp1 ;
4208 int val2 ;
4209 int ecode2 = 0 ;
4210 int val3 ;
4211 int ecode3 = 0 ;
4212 PyObject * obj0 = 0 ;
4213 PyObject * obj1 = 0 ;
4214 PyObject * obj2 = 0 ;
4215 char * kwnames[] = {
4216 (char *) "colour",(char *) "width",(char *) "style", NULL
4217 };
4218
4219 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4220 {
4221 arg1 = &temp1;
4222 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4223 }
4224 if (obj1) {
4225 ecode2 = SWIG_AsVal_int(obj1, &val2);
4226 if (!SWIG_IsOK(ecode2)) {
4227 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4228 }
4229 arg2 = static_cast< int >(val2);
4230 }
4231 if (obj2) {
4232 ecode3 = SWIG_AsVal_int(obj2, &val3);
4233 if (!SWIG_IsOK(ecode3)) {
4234 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4235 }
4236 arg3 = static_cast< int >(val3);
4237 }
4238 {
4239 if (!wxPyCheckForApp()) SWIG_fail;
4240 PyThreadState* __tstate = wxPyBeginAllowThreads();
4241 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4242 wxPyEndAllowThreads(__tstate);
4243 if (PyErr_Occurred()) SWIG_fail;
4244 }
4245 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4246 return resultobj;
4247 fail:
4248 return NULL;
4249 }
4250
4251
4252 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4253 PyObject *resultobj = 0;
4254 wxPen *arg1 = (wxPen *) 0 ;
4255 void *argp1 = 0 ;
4256 int res1 = 0 ;
4257 PyObject *swig_obj[1] ;
4258
4259 if (!args) SWIG_fail;
4260 swig_obj[0] = args;
4261 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, SWIG_POINTER_DISOWN | 0 );
4262 if (!SWIG_IsOK(res1)) {
4263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4264 }
4265 arg1 = reinterpret_cast< wxPen * >(argp1);
4266 {
4267 PyThreadState* __tstate = wxPyBeginAllowThreads();
4268 delete arg1;
4269
4270 wxPyEndAllowThreads(__tstate);
4271 if (PyErr_Occurred()) SWIG_fail;
4272 }
4273 resultobj = SWIG_Py_Void();
4274 return resultobj;
4275 fail:
4276 return NULL;
4277 }
4278
4279
4280 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4281 PyObject *resultobj = 0;
4282 wxPen *arg1 = (wxPen *) 0 ;
4283 int result;
4284 void *argp1 = 0 ;
4285 int res1 = 0 ;
4286 PyObject *swig_obj[1] ;
4287
4288 if (!args) SWIG_fail;
4289 swig_obj[0] = args;
4290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4293 }
4294 arg1 = reinterpret_cast< wxPen * >(argp1);
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 result = (int)(arg1)->GetCap();
4298 wxPyEndAllowThreads(__tstate);
4299 if (PyErr_Occurred()) SWIG_fail;
4300 }
4301 resultobj = SWIG_From_int(static_cast< int >(result));
4302 return resultobj;
4303 fail:
4304 return NULL;
4305 }
4306
4307
4308 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4309 PyObject *resultobj = 0;
4310 wxPen *arg1 = (wxPen *) 0 ;
4311 wxColour 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_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4321 }
4322 arg1 = reinterpret_cast< wxPen * >(argp1);
4323 {
4324 PyThreadState* __tstate = wxPyBeginAllowThreads();
4325 result = (arg1)->GetColour();
4326 wxPyEndAllowThreads(__tstate);
4327 if (PyErr_Occurred()) SWIG_fail;
4328 }
4329 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4330 return resultobj;
4331 fail:
4332 return NULL;
4333 }
4334
4335
4336 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4337 PyObject *resultobj = 0;
4338 wxPen *arg1 = (wxPen *) 0 ;
4339 int 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_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4349 }
4350 arg1 = reinterpret_cast< wxPen * >(argp1);
4351 {
4352 PyThreadState* __tstate = wxPyBeginAllowThreads();
4353 result = (int)(arg1)->GetJoin();
4354 wxPyEndAllowThreads(__tstate);
4355 if (PyErr_Occurred()) SWIG_fail;
4356 }
4357 resultobj = SWIG_From_int(static_cast< int >(result));
4358 return resultobj;
4359 fail:
4360 return NULL;
4361 }
4362
4363
4364 SWIGINTERN PyObject *_wrap_Pen_GetStyle(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_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4377 }
4378 arg1 = reinterpret_cast< wxPen * >(argp1);
4379 {
4380 PyThreadState* __tstate = wxPyBeginAllowThreads();
4381 result = (int)(arg1)->GetStyle();
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_GetWidth(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_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4405 }
4406 arg1 = reinterpret_cast< wxPen * >(argp1);
4407 {
4408 PyThreadState* __tstate = wxPyBeginAllowThreads();
4409 result = (int)(arg1)->GetWidth();
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_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4421 PyObject *resultobj = 0;
4422 wxPen *arg1 = (wxPen *) 0 ;
4423 bool 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_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4433 }
4434 arg1 = reinterpret_cast< wxPen * >(argp1);
4435 {
4436 PyThreadState* __tstate = wxPyBeginAllowThreads();
4437 result = (bool)(arg1)->Ok();
4438 wxPyEndAllowThreads(__tstate);
4439 if (PyErr_Occurred()) SWIG_fail;
4440 }
4441 {
4442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4443 }
4444 return resultobj;
4445 fail:
4446 return NULL;
4447 }
4448
4449
4450 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4451 PyObject *resultobj = 0;
4452 wxPen *arg1 = (wxPen *) 0 ;
4453 int arg2 ;
4454 void *argp1 = 0 ;
4455 int res1 = 0 ;
4456 int val2 ;
4457 int ecode2 = 0 ;
4458 PyObject * obj0 = 0 ;
4459 PyObject * obj1 = 0 ;
4460 char * kwnames[] = {
4461 (char *) "self",(char *) "cap_style", NULL
4462 };
4463
4464 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4465 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4466 if (!SWIG_IsOK(res1)) {
4467 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4468 }
4469 arg1 = reinterpret_cast< wxPen * >(argp1);
4470 ecode2 = SWIG_AsVal_int(obj1, &val2);
4471 if (!SWIG_IsOK(ecode2)) {
4472 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4473 }
4474 arg2 = static_cast< int >(val2);
4475 {
4476 PyThreadState* __tstate = wxPyBeginAllowThreads();
4477 (arg1)->SetCap(arg2);
4478 wxPyEndAllowThreads(__tstate);
4479 if (PyErr_Occurred()) SWIG_fail;
4480 }
4481 resultobj = SWIG_Py_Void();
4482 return resultobj;
4483 fail:
4484 return NULL;
4485 }
4486
4487
4488 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4489 PyObject *resultobj = 0;
4490 wxPen *arg1 = (wxPen *) 0 ;
4491 wxColour *arg2 = 0 ;
4492 void *argp1 = 0 ;
4493 int res1 = 0 ;
4494 wxColour temp2 ;
4495 PyObject * obj0 = 0 ;
4496 PyObject * obj1 = 0 ;
4497 char * kwnames[] = {
4498 (char *) "self",(char *) "colour", NULL
4499 };
4500
4501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4503 if (!SWIG_IsOK(res1)) {
4504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4505 }
4506 arg1 = reinterpret_cast< wxPen * >(argp1);
4507 {
4508 arg2 = &temp2;
4509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4510 }
4511 {
4512 PyThreadState* __tstate = wxPyBeginAllowThreads();
4513 (arg1)->SetColour(*arg2);
4514 wxPyEndAllowThreads(__tstate);
4515 if (PyErr_Occurred()) SWIG_fail;
4516 }
4517 resultobj = SWIG_Py_Void();
4518 return resultobj;
4519 fail:
4520 return NULL;
4521 }
4522
4523
4524 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4525 PyObject *resultobj = 0;
4526 wxPen *arg1 = (wxPen *) 0 ;
4527 int arg2 ;
4528 void *argp1 = 0 ;
4529 int res1 = 0 ;
4530 int val2 ;
4531 int ecode2 = 0 ;
4532 PyObject * obj0 = 0 ;
4533 PyObject * obj1 = 0 ;
4534 char * kwnames[] = {
4535 (char *) "self",(char *) "join_style", NULL
4536 };
4537
4538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4540 if (!SWIG_IsOK(res1)) {
4541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4542 }
4543 arg1 = reinterpret_cast< wxPen * >(argp1);
4544 ecode2 = SWIG_AsVal_int(obj1, &val2);
4545 if (!SWIG_IsOK(ecode2)) {
4546 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4547 }
4548 arg2 = static_cast< int >(val2);
4549 {
4550 PyThreadState* __tstate = wxPyBeginAllowThreads();
4551 (arg1)->SetJoin(arg2);
4552 wxPyEndAllowThreads(__tstate);
4553 if (PyErr_Occurred()) SWIG_fail;
4554 }
4555 resultobj = SWIG_Py_Void();
4556 return resultobj;
4557 fail:
4558 return NULL;
4559 }
4560
4561
4562 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4563 PyObject *resultobj = 0;
4564 wxPen *arg1 = (wxPen *) 0 ;
4565 int arg2 ;
4566 void *argp1 = 0 ;
4567 int res1 = 0 ;
4568 int val2 ;
4569 int ecode2 = 0 ;
4570 PyObject * obj0 = 0 ;
4571 PyObject * obj1 = 0 ;
4572 char * kwnames[] = {
4573 (char *) "self",(char *) "style", NULL
4574 };
4575
4576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4578 if (!SWIG_IsOK(res1)) {
4579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4580 }
4581 arg1 = reinterpret_cast< wxPen * >(argp1);
4582 ecode2 = SWIG_AsVal_int(obj1, &val2);
4583 if (!SWIG_IsOK(ecode2)) {
4584 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4585 }
4586 arg2 = static_cast< int >(val2);
4587 {
4588 PyThreadState* __tstate = wxPyBeginAllowThreads();
4589 (arg1)->SetStyle(arg2);
4590 wxPyEndAllowThreads(__tstate);
4591 if (PyErr_Occurred()) SWIG_fail;
4592 }
4593 resultobj = SWIG_Py_Void();
4594 return resultobj;
4595 fail:
4596 return NULL;
4597 }
4598
4599
4600 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4601 PyObject *resultobj = 0;
4602 wxPen *arg1 = (wxPen *) 0 ;
4603 int arg2 ;
4604 void *argp1 = 0 ;
4605 int res1 = 0 ;
4606 int val2 ;
4607 int ecode2 = 0 ;
4608 PyObject * obj0 = 0 ;
4609 PyObject * obj1 = 0 ;
4610 char * kwnames[] = {
4611 (char *) "self",(char *) "width", NULL
4612 };
4613
4614 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4615 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4616 if (!SWIG_IsOK(res1)) {
4617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4618 }
4619 arg1 = reinterpret_cast< wxPen * >(argp1);
4620 ecode2 = SWIG_AsVal_int(obj1, &val2);
4621 if (!SWIG_IsOK(ecode2)) {
4622 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4623 }
4624 arg2 = static_cast< int >(val2);
4625 {
4626 PyThreadState* __tstate = wxPyBeginAllowThreads();
4627 (arg1)->SetWidth(arg2);
4628 wxPyEndAllowThreads(__tstate);
4629 if (PyErr_Occurred()) SWIG_fail;
4630 }
4631 resultobj = SWIG_Py_Void();
4632 return resultobj;
4633 fail:
4634 return NULL;
4635 }
4636
4637
4638 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4639 PyObject *resultobj = 0;
4640 wxPen *arg1 = (wxPen *) 0 ;
4641 int arg2 ;
4642 wxDash *arg3 = (wxDash *) 0 ;
4643 void *argp1 = 0 ;
4644 int res1 = 0 ;
4645 PyObject * obj0 = 0 ;
4646 PyObject * obj1 = 0 ;
4647 char * kwnames[] = {
4648 (char *) "self",(char *) "dashes", NULL
4649 };
4650
4651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4653 if (!SWIG_IsOK(res1)) {
4654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4655 }
4656 arg1 = reinterpret_cast< wxPen * >(argp1);
4657 {
4658 arg2 = PyList_Size(obj1);
4659 arg3 = (wxDash*)byte_LIST_helper(obj1);
4660 if (arg3 == NULL) SWIG_fail;
4661 }
4662 {
4663 PyThreadState* __tstate = wxPyBeginAllowThreads();
4664 (arg1)->SetDashes(arg2,arg3);
4665 wxPyEndAllowThreads(__tstate);
4666 if (PyErr_Occurred()) SWIG_fail;
4667 }
4668 resultobj = SWIG_Py_Void();
4669 {
4670 if (arg3) delete [] arg3;
4671 }
4672 return resultobj;
4673 fail:
4674 {
4675 if (arg3) delete [] arg3;
4676 }
4677 return NULL;
4678 }
4679
4680
4681 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4682 PyObject *resultobj = 0;
4683 wxPen *arg1 = (wxPen *) 0 ;
4684 PyObject *result = 0 ;
4685 void *argp1 = 0 ;
4686 int res1 = 0 ;
4687 PyObject *swig_obj[1] ;
4688
4689 if (!args) SWIG_fail;
4690 swig_obj[0] = args;
4691 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4692 if (!SWIG_IsOK(res1)) {
4693 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4694 }
4695 arg1 = reinterpret_cast< wxPen * >(argp1);
4696 {
4697 PyThreadState* __tstate = wxPyBeginAllowThreads();
4698 result = (PyObject *)wxPen_GetDashes(arg1);
4699 wxPyEndAllowThreads(__tstate);
4700 if (PyErr_Occurred()) SWIG_fail;
4701 }
4702 resultobj = result;
4703 return resultobj;
4704 fail:
4705 return NULL;
4706 }
4707
4708
4709 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4710 PyObject *resultobj = 0;
4711 wxPen *arg1 = (wxPen *) 0 ;
4712 PyObject *arg2 = (PyObject *) 0 ;
4713 PyObject *arg3 = (PyObject *) 0 ;
4714 void *argp1 = 0 ;
4715 int res1 = 0 ;
4716 PyObject * obj0 = 0 ;
4717 PyObject * obj1 = 0 ;
4718 PyObject * obj2 = 0 ;
4719 char * kwnames[] = {
4720 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4721 };
4722
4723 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4724 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4725 if (!SWIG_IsOK(res1)) {
4726 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4727 }
4728 arg1 = reinterpret_cast< wxPen * >(argp1);
4729 arg2 = obj1;
4730 arg3 = obj2;
4731 {
4732 PyThreadState* __tstate = wxPyBeginAllowThreads();
4733 wxPen__SetDashes(arg1,arg2,arg3);
4734 wxPyEndAllowThreads(__tstate);
4735 if (PyErr_Occurred()) SWIG_fail;
4736 }
4737 resultobj = SWIG_Py_Void();
4738 return resultobj;
4739 fail:
4740 return NULL;
4741 }
4742
4743
4744 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4745 PyObject *resultobj = 0;
4746 wxPen *arg1 = (wxPen *) 0 ;
4747 int result;
4748 void *argp1 = 0 ;
4749 int res1 = 0 ;
4750 PyObject *swig_obj[1] ;
4751
4752 if (!args) SWIG_fail;
4753 swig_obj[0] = args;
4754 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4755 if (!SWIG_IsOK(res1)) {
4756 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4757 }
4758 arg1 = reinterpret_cast< wxPen * >(argp1);
4759 {
4760 PyThreadState* __tstate = wxPyBeginAllowThreads();
4761 result = (int)((wxPen const *)arg1)->GetDashCount();
4762 wxPyEndAllowThreads(__tstate);
4763 if (PyErr_Occurred()) SWIG_fail;
4764 }
4765 resultobj = SWIG_From_int(static_cast< int >(result));
4766 return resultobj;
4767 fail:
4768 return NULL;
4769 }
4770
4771
4772 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4773 PyObject *resultobj = 0;
4774 wxPen *arg1 = (wxPen *) 0 ;
4775 wxPen *arg2 = (wxPen *) 0 ;
4776 bool result;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 void *argp2 = 0 ;
4780 int res2 = 0 ;
4781 PyObject * obj0 = 0 ;
4782 PyObject * obj1 = 0 ;
4783 char * kwnames[] = {
4784 (char *) "self",(char *) "other", NULL
4785 };
4786
4787 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4788 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4789 if (!SWIG_IsOK(res1)) {
4790 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4791 }
4792 arg1 = reinterpret_cast< wxPen * >(argp1);
4793 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4794 if (!SWIG_IsOK(res2)) {
4795 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4796 }
4797 arg2 = reinterpret_cast< wxPen * >(argp2);
4798 {
4799 PyThreadState* __tstate = wxPyBeginAllowThreads();
4800 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4801 wxPyEndAllowThreads(__tstate);
4802 if (PyErr_Occurred()) SWIG_fail;
4803 }
4804 {
4805 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4806 }
4807 return resultobj;
4808 fail:
4809 return NULL;
4810 }
4811
4812
4813 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4814 PyObject *resultobj = 0;
4815 wxPen *arg1 = (wxPen *) 0 ;
4816 wxPen *arg2 = (wxPen *) 0 ;
4817 bool result;
4818 void *argp1 = 0 ;
4819 int res1 = 0 ;
4820 void *argp2 = 0 ;
4821 int res2 = 0 ;
4822 PyObject * obj0 = 0 ;
4823 PyObject * obj1 = 0 ;
4824 char * kwnames[] = {
4825 (char *) "self",(char *) "other", NULL
4826 };
4827
4828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4830 if (!SWIG_IsOK(res1)) {
4831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4832 }
4833 arg1 = reinterpret_cast< wxPen * >(argp1);
4834 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4835 if (!SWIG_IsOK(res2)) {
4836 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4837 }
4838 arg2 = reinterpret_cast< wxPen * >(argp2);
4839 {
4840 PyThreadState* __tstate = wxPyBeginAllowThreads();
4841 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4842 wxPyEndAllowThreads(__tstate);
4843 if (PyErr_Occurred()) SWIG_fail;
4844 }
4845 {
4846 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4847 }
4848 return resultobj;
4849 fail:
4850 return NULL;
4851 }
4852
4853
4854 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4855 PyObject *obj;
4856 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4857 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4858 return SWIG_Py_Void();
4859 }
4860
4861 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4862 return SWIG_Python_InitShadowInstance(args);
4863 }
4864
4865 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4866 PyObject *resultobj = 0;
4867 wxColour *arg1 = 0 ;
4868 int arg2 = (int) wxSOLID ;
4869 wxBrush *result = 0 ;
4870 wxColour temp1 ;
4871 int val2 ;
4872 int ecode2 = 0 ;
4873 PyObject * obj0 = 0 ;
4874 PyObject * obj1 = 0 ;
4875 char * kwnames[] = {
4876 (char *) "colour",(char *) "style", NULL
4877 };
4878
4879 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4880 {
4881 arg1 = &temp1;
4882 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4883 }
4884 if (obj1) {
4885 ecode2 = SWIG_AsVal_int(obj1, &val2);
4886 if (!SWIG_IsOK(ecode2)) {
4887 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4888 }
4889 arg2 = static_cast< int >(val2);
4890 }
4891 {
4892 if (!wxPyCheckForApp()) SWIG_fail;
4893 PyThreadState* __tstate = wxPyBeginAllowThreads();
4894 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4895 wxPyEndAllowThreads(__tstate);
4896 if (PyErr_Occurred()) SWIG_fail;
4897 }
4898 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4899 return resultobj;
4900 fail:
4901 return NULL;
4902 }
4903
4904
4905 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4906 PyObject *resultobj = 0;
4907 wxBitmap *arg1 = 0 ;
4908 wxBrush *result = 0 ;
4909 void *argp1 = 0 ;
4910 int res1 = 0 ;
4911 PyObject * obj0 = 0 ;
4912 char * kwnames[] = {
4913 (char *) "stippleBitmap", NULL
4914 };
4915
4916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
4917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
4918 if (!SWIG_IsOK(res1)) {
4919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4920 }
4921 if (!argp1) {
4922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
4923 }
4924 arg1 = reinterpret_cast< wxBitmap * >(argp1);
4925 {
4926 if (!wxPyCheckForApp()) SWIG_fail;
4927 PyThreadState* __tstate = wxPyBeginAllowThreads();
4928 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
4929 wxPyEndAllowThreads(__tstate);
4930 if (PyErr_Occurred()) SWIG_fail;
4931 }
4932 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
4933 return resultobj;
4934 fail:
4935 return NULL;
4936 }
4937
4938
4939 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4940 PyObject *resultobj = 0;
4941 wxBrush *arg1 = (wxBrush *) 0 ;
4942 void *argp1 = 0 ;
4943 int res1 = 0 ;
4944 PyObject *swig_obj[1] ;
4945
4946 if (!args) SWIG_fail;
4947 swig_obj[0] = args;
4948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
4949 if (!SWIG_IsOK(res1)) {
4950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
4951 }
4952 arg1 = reinterpret_cast< wxBrush * >(argp1);
4953 {
4954 PyThreadState* __tstate = wxPyBeginAllowThreads();
4955 delete arg1;
4956
4957 wxPyEndAllowThreads(__tstate);
4958 if (PyErr_Occurred()) SWIG_fail;
4959 }
4960 resultobj = SWIG_Py_Void();
4961 return resultobj;
4962 fail:
4963 return NULL;
4964 }
4965
4966
4967 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4968 PyObject *resultobj = 0;
4969 wxBrush *arg1 = (wxBrush *) 0 ;
4970 wxColour *arg2 = 0 ;
4971 void *argp1 = 0 ;
4972 int res1 = 0 ;
4973 wxColour temp2 ;
4974 PyObject * obj0 = 0 ;
4975 PyObject * obj1 = 0 ;
4976 char * kwnames[] = {
4977 (char *) "self",(char *) "col", NULL
4978 };
4979
4980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4981 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
4982 if (!SWIG_IsOK(res1)) {
4983 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
4984 }
4985 arg1 = reinterpret_cast< wxBrush * >(argp1);
4986 {
4987 arg2 = &temp2;
4988 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4989 }
4990 {
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 (arg1)->SetColour((wxColour const &)*arg2);
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 resultobj = SWIG_Py_Void();
4997 return resultobj;
4998 fail:
4999 return NULL;
5000 }
5001
5002
5003 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5004 PyObject *resultobj = 0;
5005 wxBrush *arg1 = (wxBrush *) 0 ;
5006 int arg2 ;
5007 void *argp1 = 0 ;
5008 int res1 = 0 ;
5009 int val2 ;
5010 int ecode2 = 0 ;
5011 PyObject * obj0 = 0 ;
5012 PyObject * obj1 = 0 ;
5013 char * kwnames[] = {
5014 (char *) "self",(char *) "style", NULL
5015 };
5016
5017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5019 if (!SWIG_IsOK(res1)) {
5020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5021 }
5022 arg1 = reinterpret_cast< wxBrush * >(argp1);
5023 ecode2 = SWIG_AsVal_int(obj1, &val2);
5024 if (!SWIG_IsOK(ecode2)) {
5025 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5026 }
5027 arg2 = static_cast< int >(val2);
5028 {
5029 PyThreadState* __tstate = wxPyBeginAllowThreads();
5030 (arg1)->SetStyle(arg2);
5031 wxPyEndAllowThreads(__tstate);
5032 if (PyErr_Occurred()) SWIG_fail;
5033 }
5034 resultobj = SWIG_Py_Void();
5035 return resultobj;
5036 fail:
5037 return NULL;
5038 }
5039
5040
5041 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5042 PyObject *resultobj = 0;
5043 wxBrush *arg1 = (wxBrush *) 0 ;
5044 wxBitmap *arg2 = 0 ;
5045 void *argp1 = 0 ;
5046 int res1 = 0 ;
5047 void *argp2 = 0 ;
5048 int res2 = 0 ;
5049 PyObject * obj0 = 0 ;
5050 PyObject * obj1 = 0 ;
5051 char * kwnames[] = {
5052 (char *) "self",(char *) "stipple", NULL
5053 };
5054
5055 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5056 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5057 if (!SWIG_IsOK(res1)) {
5058 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5059 }
5060 arg1 = reinterpret_cast< wxBrush * >(argp1);
5061 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5062 if (!SWIG_IsOK(res2)) {
5063 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5064 }
5065 if (!argp2) {
5066 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5067 }
5068 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5069 {
5070 PyThreadState* __tstate = wxPyBeginAllowThreads();
5071 (arg1)->SetStipple((wxBitmap const &)*arg2);
5072 wxPyEndAllowThreads(__tstate);
5073 if (PyErr_Occurred()) SWIG_fail;
5074 }
5075 resultobj = SWIG_Py_Void();
5076 return resultobj;
5077 fail:
5078 return NULL;
5079 }
5080
5081
5082 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5083 PyObject *resultobj = 0;
5084 wxBrush *arg1 = (wxBrush *) 0 ;
5085 wxColour result;
5086 void *argp1 = 0 ;
5087 int res1 = 0 ;
5088 PyObject *swig_obj[1] ;
5089
5090 if (!args) SWIG_fail;
5091 swig_obj[0] = args;
5092 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5093 if (!SWIG_IsOK(res1)) {
5094 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5095 }
5096 arg1 = reinterpret_cast< wxBrush * >(argp1);
5097 {
5098 PyThreadState* __tstate = wxPyBeginAllowThreads();
5099 result = ((wxBrush const *)arg1)->GetColour();
5100 wxPyEndAllowThreads(__tstate);
5101 if (PyErr_Occurred()) SWIG_fail;
5102 }
5103 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5104 return resultobj;
5105 fail:
5106 return NULL;
5107 }
5108
5109
5110 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5111 PyObject *resultobj = 0;
5112 wxBrush *arg1 = (wxBrush *) 0 ;
5113 int result;
5114 void *argp1 = 0 ;
5115 int res1 = 0 ;
5116 PyObject *swig_obj[1] ;
5117
5118 if (!args) SWIG_fail;
5119 swig_obj[0] = args;
5120 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5121 if (!SWIG_IsOK(res1)) {
5122 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5123 }
5124 arg1 = reinterpret_cast< wxBrush * >(argp1);
5125 {
5126 PyThreadState* __tstate = wxPyBeginAllowThreads();
5127 result = (int)((wxBrush const *)arg1)->GetStyle();
5128 wxPyEndAllowThreads(__tstate);
5129 if (PyErr_Occurred()) SWIG_fail;
5130 }
5131 resultobj = SWIG_From_int(static_cast< int >(result));
5132 return resultobj;
5133 fail:
5134 return NULL;
5135 }
5136
5137
5138 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5139 PyObject *resultobj = 0;
5140 wxBrush *arg1 = (wxBrush *) 0 ;
5141 wxBitmap *result = 0 ;
5142 void *argp1 = 0 ;
5143 int res1 = 0 ;
5144 PyObject *swig_obj[1] ;
5145
5146 if (!args) SWIG_fail;
5147 swig_obj[0] = args;
5148 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5149 if (!SWIG_IsOK(res1)) {
5150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5151 }
5152 arg1 = reinterpret_cast< wxBrush * >(argp1);
5153 {
5154 PyThreadState* __tstate = wxPyBeginAllowThreads();
5155 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5156 wxPyEndAllowThreads(__tstate);
5157 if (PyErr_Occurred()) SWIG_fail;
5158 }
5159 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5160 return resultobj;
5161 fail:
5162 return NULL;
5163 }
5164
5165
5166 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5167 PyObject *resultobj = 0;
5168 wxBrush *arg1 = (wxBrush *) 0 ;
5169 bool result;
5170 void *argp1 = 0 ;
5171 int res1 = 0 ;
5172 PyObject *swig_obj[1] ;
5173
5174 if (!args) SWIG_fail;
5175 swig_obj[0] = args;
5176 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5177 if (!SWIG_IsOK(res1)) {
5178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5179 }
5180 arg1 = reinterpret_cast< wxBrush * >(argp1);
5181 {
5182 PyThreadState* __tstate = wxPyBeginAllowThreads();
5183 result = (bool)((wxBrush const *)arg1)->IsHatch();
5184 wxPyEndAllowThreads(__tstate);
5185 if (PyErr_Occurred()) SWIG_fail;
5186 }
5187 {
5188 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5189 }
5190 return resultobj;
5191 fail:
5192 return NULL;
5193 }
5194
5195
5196 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5197 PyObject *resultobj = 0;
5198 wxBrush *arg1 = (wxBrush *) 0 ;
5199 bool result;
5200 void *argp1 = 0 ;
5201 int res1 = 0 ;
5202 PyObject *swig_obj[1] ;
5203
5204 if (!args) SWIG_fail;
5205 swig_obj[0] = args;
5206 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5207 if (!SWIG_IsOK(res1)) {
5208 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5209 }
5210 arg1 = reinterpret_cast< wxBrush * >(argp1);
5211 {
5212 PyThreadState* __tstate = wxPyBeginAllowThreads();
5213 result = (bool)(arg1)->Ok();
5214 wxPyEndAllowThreads(__tstate);
5215 if (PyErr_Occurred()) SWIG_fail;
5216 }
5217 {
5218 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5219 }
5220 return resultobj;
5221 fail:
5222 return NULL;
5223 }
5224
5225
5226 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5227 PyObject *obj;
5228 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5229 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5230 return SWIG_Py_Void();
5231 }
5232
5233 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5234 return SWIG_Python_InitShadowInstance(args);
5235 }
5236
5237 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5238 PyObject *resultobj = 0;
5239 wxString *arg1 = 0 ;
5240 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5241 wxBitmap *result = 0 ;
5242 bool temp1 = false ;
5243 int val2 ;
5244 int ecode2 = 0 ;
5245 PyObject * obj0 = 0 ;
5246 PyObject * obj1 = 0 ;
5247 char * kwnames[] = {
5248 (char *) "name",(char *) "type", NULL
5249 };
5250
5251 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5252 {
5253 arg1 = wxString_in_helper(obj0);
5254 if (arg1 == NULL) SWIG_fail;
5255 temp1 = true;
5256 }
5257 if (obj1) {
5258 ecode2 = SWIG_AsVal_int(obj1, &val2);
5259 if (!SWIG_IsOK(ecode2)) {
5260 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5261 }
5262 arg2 = static_cast< wxBitmapType >(val2);
5263 }
5264 {
5265 if (!wxPyCheckForApp()) SWIG_fail;
5266 PyThreadState* __tstate = wxPyBeginAllowThreads();
5267 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5268 wxPyEndAllowThreads(__tstate);
5269 if (PyErr_Occurred()) SWIG_fail;
5270 }
5271 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5272 {
5273 if (temp1)
5274 delete arg1;
5275 }
5276 return resultobj;
5277 fail:
5278 {
5279 if (temp1)
5280 delete arg1;
5281 }
5282 return NULL;
5283 }
5284
5285
5286 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5287 PyObject *resultobj = 0;
5288 wxBitmap *arg1 = (wxBitmap *) 0 ;
5289 void *argp1 = 0 ;
5290 int res1 = 0 ;
5291 PyObject *swig_obj[1] ;
5292
5293 if (!args) SWIG_fail;
5294 swig_obj[0] = args;
5295 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5296 if (!SWIG_IsOK(res1)) {
5297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5298 }
5299 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5300 {
5301 PyThreadState* __tstate = wxPyBeginAllowThreads();
5302 delete arg1;
5303
5304 wxPyEndAllowThreads(__tstate);
5305 if (PyErr_Occurred()) SWIG_fail;
5306 }
5307 resultobj = SWIG_Py_Void();
5308 return resultobj;
5309 fail:
5310 return NULL;
5311 }
5312
5313
5314 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5315 PyObject *resultobj = 0;
5316 int arg1 ;
5317 int arg2 ;
5318 int arg3 = (int) -1 ;
5319 wxBitmap *result = 0 ;
5320 int val1 ;
5321 int ecode1 = 0 ;
5322 int val2 ;
5323 int ecode2 = 0 ;
5324 int val3 ;
5325 int ecode3 = 0 ;
5326 PyObject * obj0 = 0 ;
5327 PyObject * obj1 = 0 ;
5328 PyObject * obj2 = 0 ;
5329 char * kwnames[] = {
5330 (char *) "width",(char *) "height",(char *) "depth", NULL
5331 };
5332
5333 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5334 ecode1 = SWIG_AsVal_int(obj0, &val1);
5335 if (!SWIG_IsOK(ecode1)) {
5336 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5337 }
5338 arg1 = static_cast< int >(val1);
5339 ecode2 = SWIG_AsVal_int(obj1, &val2);
5340 if (!SWIG_IsOK(ecode2)) {
5341 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5342 }
5343 arg2 = static_cast< int >(val2);
5344 if (obj2) {
5345 ecode3 = SWIG_AsVal_int(obj2, &val3);
5346 if (!SWIG_IsOK(ecode3)) {
5347 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5348 }
5349 arg3 = static_cast< int >(val3);
5350 }
5351 {
5352 if (!wxPyCheckForApp()) SWIG_fail;
5353 PyThreadState* __tstate = wxPyBeginAllowThreads();
5354 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5355 wxPyEndAllowThreads(__tstate);
5356 if (PyErr_Occurred()) SWIG_fail;
5357 }
5358 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5359 return resultobj;
5360 fail:
5361 return NULL;
5362 }
5363
5364
5365 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5366 PyObject *resultobj = 0;
5367 wxIcon *arg1 = 0 ;
5368 wxBitmap *result = 0 ;
5369 void *argp1 = 0 ;
5370 int res1 = 0 ;
5371 PyObject * obj0 = 0 ;
5372 char * kwnames[] = {
5373 (char *) "icon", NULL
5374 };
5375
5376 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5377 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5378 if (!SWIG_IsOK(res1)) {
5379 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5380 }
5381 if (!argp1) {
5382 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5383 }
5384 arg1 = reinterpret_cast< wxIcon * >(argp1);
5385 {
5386 if (!wxPyCheckForApp()) SWIG_fail;
5387 PyThreadState* __tstate = wxPyBeginAllowThreads();
5388 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5389 wxPyEndAllowThreads(__tstate);
5390 if (PyErr_Occurred()) SWIG_fail;
5391 }
5392 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5393 return resultobj;
5394 fail:
5395 return NULL;
5396 }
5397
5398
5399 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5400 PyObject *resultobj = 0;
5401 wxImage *arg1 = 0 ;
5402 int arg2 = (int) -1 ;
5403 wxBitmap *result = 0 ;
5404 void *argp1 = 0 ;
5405 int res1 = 0 ;
5406 int val2 ;
5407 int ecode2 = 0 ;
5408 PyObject * obj0 = 0 ;
5409 PyObject * obj1 = 0 ;
5410 char * kwnames[] = {
5411 (char *) "image",(char *) "depth", NULL
5412 };
5413
5414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5415 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5416 if (!SWIG_IsOK(res1)) {
5417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5418 }
5419 if (!argp1) {
5420 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5421 }
5422 arg1 = reinterpret_cast< wxImage * >(argp1);
5423 if (obj1) {
5424 ecode2 = SWIG_AsVal_int(obj1, &val2);
5425 if (!SWIG_IsOK(ecode2)) {
5426 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5427 }
5428 arg2 = static_cast< int >(val2);
5429 }
5430 {
5431 if (!wxPyCheckForApp()) SWIG_fail;
5432 PyThreadState* __tstate = wxPyBeginAllowThreads();
5433 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5434 wxPyEndAllowThreads(__tstate);
5435 if (PyErr_Occurred()) SWIG_fail;
5436 }
5437 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5438 return resultobj;
5439 fail:
5440 return NULL;
5441 }
5442
5443
5444 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5445 PyObject *resultobj = 0;
5446 PyObject *arg1 = (PyObject *) 0 ;
5447 wxBitmap *result = 0 ;
5448 PyObject * obj0 = 0 ;
5449 char * kwnames[] = {
5450 (char *) "listOfStrings", NULL
5451 };
5452
5453 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5454 arg1 = obj0;
5455 {
5456 if (!wxPyCheckForApp()) SWIG_fail;
5457 PyThreadState* __tstate = wxPyBeginAllowThreads();
5458 result = (wxBitmap *)new_wxBitmap(arg1);
5459 wxPyEndAllowThreads(__tstate);
5460 if (PyErr_Occurred()) SWIG_fail;
5461 }
5462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5463 return resultobj;
5464 fail:
5465 return NULL;
5466 }
5467
5468
5469 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5470 PyObject *resultobj = 0;
5471 PyObject *arg1 = (PyObject *) 0 ;
5472 int arg2 ;
5473 int arg3 ;
5474 int arg4 = (int) 1 ;
5475 wxBitmap *result = 0 ;
5476 int val2 ;
5477 int ecode2 = 0 ;
5478 int val3 ;
5479 int ecode3 = 0 ;
5480 int val4 ;
5481 int ecode4 = 0 ;
5482 PyObject * obj0 = 0 ;
5483 PyObject * obj1 = 0 ;
5484 PyObject * obj2 = 0 ;
5485 PyObject * obj3 = 0 ;
5486 char * kwnames[] = {
5487 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5488 };
5489
5490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5491 arg1 = obj0;
5492 ecode2 = SWIG_AsVal_int(obj1, &val2);
5493 if (!SWIG_IsOK(ecode2)) {
5494 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5495 }
5496 arg2 = static_cast< int >(val2);
5497 ecode3 = SWIG_AsVal_int(obj2, &val3);
5498 if (!SWIG_IsOK(ecode3)) {
5499 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5500 }
5501 arg3 = static_cast< int >(val3);
5502 if (obj3) {
5503 ecode4 = SWIG_AsVal_int(obj3, &val4);
5504 if (!SWIG_IsOK(ecode4)) {
5505 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5506 }
5507 arg4 = static_cast< int >(val4);
5508 }
5509 {
5510 if (!wxPyCheckForApp()) SWIG_fail;
5511 PyThreadState* __tstate = wxPyBeginAllowThreads();
5512 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5513 wxPyEndAllowThreads(__tstate);
5514 if (PyErr_Occurred()) SWIG_fail;
5515 }
5516 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5517 return resultobj;
5518 fail:
5519 return NULL;
5520 }
5521
5522
5523 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5524 PyObject *resultobj = 0;
5525 wxBitmap *arg1 = (wxBitmap *) 0 ;
5526 bool result;
5527 void *argp1 = 0 ;
5528 int res1 = 0 ;
5529 PyObject *swig_obj[1] ;
5530
5531 if (!args) SWIG_fail;
5532 swig_obj[0] = args;
5533 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5534 if (!SWIG_IsOK(res1)) {
5535 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5536 }
5537 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5538 {
5539 PyThreadState* __tstate = wxPyBeginAllowThreads();
5540 result = (bool)(arg1)->Ok();
5541 wxPyEndAllowThreads(__tstate);
5542 if (PyErr_Occurred()) SWIG_fail;
5543 }
5544 {
5545 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5546 }
5547 return resultobj;
5548 fail:
5549 return NULL;
5550 }
5551
5552
5553 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5554 PyObject *resultobj = 0;
5555 wxBitmap *arg1 = (wxBitmap *) 0 ;
5556 int result;
5557 void *argp1 = 0 ;
5558 int res1 = 0 ;
5559 PyObject *swig_obj[1] ;
5560
5561 if (!args) SWIG_fail;
5562 swig_obj[0] = args;
5563 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5564 if (!SWIG_IsOK(res1)) {
5565 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5566 }
5567 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5568 {
5569 PyThreadState* __tstate = wxPyBeginAllowThreads();
5570 result = (int)(arg1)->GetWidth();
5571 wxPyEndAllowThreads(__tstate);
5572 if (PyErr_Occurred()) SWIG_fail;
5573 }
5574 resultobj = SWIG_From_int(static_cast< int >(result));
5575 return resultobj;
5576 fail:
5577 return NULL;
5578 }
5579
5580
5581 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5582 PyObject *resultobj = 0;
5583 wxBitmap *arg1 = (wxBitmap *) 0 ;
5584 int result;
5585 void *argp1 = 0 ;
5586 int res1 = 0 ;
5587 PyObject *swig_obj[1] ;
5588
5589 if (!args) SWIG_fail;
5590 swig_obj[0] = args;
5591 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5592 if (!SWIG_IsOK(res1)) {
5593 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5594 }
5595 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5596 {
5597 PyThreadState* __tstate = wxPyBeginAllowThreads();
5598 result = (int)(arg1)->GetHeight();
5599 wxPyEndAllowThreads(__tstate);
5600 if (PyErr_Occurred()) SWIG_fail;
5601 }
5602 resultobj = SWIG_From_int(static_cast< int >(result));
5603 return resultobj;
5604 fail:
5605 return NULL;
5606 }
5607
5608
5609 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5610 PyObject *resultobj = 0;
5611 wxBitmap *arg1 = (wxBitmap *) 0 ;
5612 int result;
5613 void *argp1 = 0 ;
5614 int res1 = 0 ;
5615 PyObject *swig_obj[1] ;
5616
5617 if (!args) SWIG_fail;
5618 swig_obj[0] = args;
5619 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5620 if (!SWIG_IsOK(res1)) {
5621 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5622 }
5623 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5624 {
5625 PyThreadState* __tstate = wxPyBeginAllowThreads();
5626 result = (int)(arg1)->GetDepth();
5627 wxPyEndAllowThreads(__tstate);
5628 if (PyErr_Occurred()) SWIG_fail;
5629 }
5630 resultobj = SWIG_From_int(static_cast< int >(result));
5631 return resultobj;
5632 fail:
5633 return NULL;
5634 }
5635
5636
5637 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5638 PyObject *resultobj = 0;
5639 wxBitmap *arg1 = (wxBitmap *) 0 ;
5640 wxSize result;
5641 void *argp1 = 0 ;
5642 int res1 = 0 ;
5643 PyObject *swig_obj[1] ;
5644
5645 if (!args) SWIG_fail;
5646 swig_obj[0] = args;
5647 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5648 if (!SWIG_IsOK(res1)) {
5649 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5650 }
5651 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5652 {
5653 PyThreadState* __tstate = wxPyBeginAllowThreads();
5654 result = wxBitmap_GetSize(arg1);
5655 wxPyEndAllowThreads(__tstate);
5656 if (PyErr_Occurred()) SWIG_fail;
5657 }
5658 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5659 return resultobj;
5660 fail:
5661 return NULL;
5662 }
5663
5664
5665 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5666 PyObject *resultobj = 0;
5667 wxBitmap *arg1 = (wxBitmap *) 0 ;
5668 SwigValueWrapper<wxImage > result;
5669 void *argp1 = 0 ;
5670 int res1 = 0 ;
5671 PyObject *swig_obj[1] ;
5672
5673 if (!args) SWIG_fail;
5674 swig_obj[0] = args;
5675 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5676 if (!SWIG_IsOK(res1)) {
5677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5678 }
5679 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5680 {
5681 PyThreadState* __tstate = wxPyBeginAllowThreads();
5682 result = ((wxBitmap const *)arg1)->ConvertToImage();
5683 wxPyEndAllowThreads(__tstate);
5684 if (PyErr_Occurred()) SWIG_fail;
5685 }
5686 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5687 return resultobj;
5688 fail:
5689 return NULL;
5690 }
5691
5692
5693 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5694 PyObject *resultobj = 0;
5695 wxBitmap *arg1 = (wxBitmap *) 0 ;
5696 wxMask *result = 0 ;
5697 void *argp1 = 0 ;
5698 int res1 = 0 ;
5699 PyObject *swig_obj[1] ;
5700
5701 if (!args) SWIG_fail;
5702 swig_obj[0] = args;
5703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5704 if (!SWIG_IsOK(res1)) {
5705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5706 }
5707 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5708 {
5709 PyThreadState* __tstate = wxPyBeginAllowThreads();
5710 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5711 wxPyEndAllowThreads(__tstate);
5712 if (PyErr_Occurred()) SWIG_fail;
5713 }
5714 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5715 return resultobj;
5716 fail:
5717 return NULL;
5718 }
5719
5720
5721 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5722 PyObject *resultobj = 0;
5723 wxBitmap *arg1 = (wxBitmap *) 0 ;
5724 wxMask *arg2 = (wxMask *) 0 ;
5725 void *argp1 = 0 ;
5726 int res1 = 0 ;
5727 int res2 = 0 ;
5728 PyObject * obj0 = 0 ;
5729 PyObject * obj1 = 0 ;
5730 char * kwnames[] = {
5731 (char *) "self",(char *) "mask", NULL
5732 };
5733
5734 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5735 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5736 if (!SWIG_IsOK(res1)) {
5737 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5738 }
5739 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5740 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5741 if (!SWIG_IsOK(res2)) {
5742 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5743 }
5744 {
5745 PyThreadState* __tstate = wxPyBeginAllowThreads();
5746 (arg1)->SetMask(arg2);
5747 wxPyEndAllowThreads(__tstate);
5748 if (PyErr_Occurred()) SWIG_fail;
5749 }
5750 resultobj = SWIG_Py_Void();
5751 return resultobj;
5752 fail:
5753 return NULL;
5754 }
5755
5756
5757 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5758 PyObject *resultobj = 0;
5759 wxBitmap *arg1 = (wxBitmap *) 0 ;
5760 wxColour *arg2 = 0 ;
5761 void *argp1 = 0 ;
5762 int res1 = 0 ;
5763 wxColour temp2 ;
5764 PyObject * obj0 = 0 ;
5765 PyObject * obj1 = 0 ;
5766 char * kwnames[] = {
5767 (char *) "self",(char *) "colour", NULL
5768 };
5769
5770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5772 if (!SWIG_IsOK(res1)) {
5773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5774 }
5775 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5776 {
5777 arg2 = &temp2;
5778 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5779 }
5780 {
5781 PyThreadState* __tstate = wxPyBeginAllowThreads();
5782 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5783 wxPyEndAllowThreads(__tstate);
5784 if (PyErr_Occurred()) SWIG_fail;
5785 }
5786 resultobj = SWIG_Py_Void();
5787 return resultobj;
5788 fail:
5789 return NULL;
5790 }
5791
5792
5793 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5794 PyObject *resultobj = 0;
5795 wxBitmap *arg1 = (wxBitmap *) 0 ;
5796 wxRect *arg2 = 0 ;
5797 SwigValueWrapper<wxBitmap > result;
5798 void *argp1 = 0 ;
5799 int res1 = 0 ;
5800 wxRect temp2 ;
5801 PyObject * obj0 = 0 ;
5802 PyObject * obj1 = 0 ;
5803 char * kwnames[] = {
5804 (char *) "self",(char *) "rect", NULL
5805 };
5806
5807 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5808 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5809 if (!SWIG_IsOK(res1)) {
5810 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5811 }
5812 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5813 {
5814 arg2 = &temp2;
5815 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5816 }
5817 {
5818 PyThreadState* __tstate = wxPyBeginAllowThreads();
5819 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5820 wxPyEndAllowThreads(__tstate);
5821 if (PyErr_Occurred()) SWIG_fail;
5822 }
5823 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5824 return resultobj;
5825 fail:
5826 return NULL;
5827 }
5828
5829
5830 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5831 PyObject *resultobj = 0;
5832 wxBitmap *arg1 = (wxBitmap *) 0 ;
5833 wxString *arg2 = 0 ;
5834 wxBitmapType arg3 ;
5835 wxPalette *arg4 = (wxPalette *) NULL ;
5836 bool result;
5837 void *argp1 = 0 ;
5838 int res1 = 0 ;
5839 bool temp2 = false ;
5840 int val3 ;
5841 int ecode3 = 0 ;
5842 void *argp4 = 0 ;
5843 int res4 = 0 ;
5844 PyObject * obj0 = 0 ;
5845 PyObject * obj1 = 0 ;
5846 PyObject * obj2 = 0 ;
5847 PyObject * obj3 = 0 ;
5848 char * kwnames[] = {
5849 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
5850 };
5851
5852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5853 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5854 if (!SWIG_IsOK(res1)) {
5855 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5856 }
5857 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5858 {
5859 arg2 = wxString_in_helper(obj1);
5860 if (arg2 == NULL) SWIG_fail;
5861 temp2 = true;
5862 }
5863 ecode3 = SWIG_AsVal_int(obj2, &val3);
5864 if (!SWIG_IsOK(ecode3)) {
5865 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5866 }
5867 arg3 = static_cast< wxBitmapType >(val3);
5868 if (obj3) {
5869 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
5870 if (!SWIG_IsOK(res4)) {
5871 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
5872 }
5873 arg4 = reinterpret_cast< wxPalette * >(argp4);
5874 }
5875 {
5876 PyThreadState* __tstate = wxPyBeginAllowThreads();
5877 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
5878 wxPyEndAllowThreads(__tstate);
5879 if (PyErr_Occurred()) SWIG_fail;
5880 }
5881 {
5882 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5883 }
5884 {
5885 if (temp2)
5886 delete arg2;
5887 }
5888 return resultobj;
5889 fail:
5890 {
5891 if (temp2)
5892 delete arg2;
5893 }
5894 return NULL;
5895 }
5896
5897
5898 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5899 PyObject *resultobj = 0;
5900 wxBitmap *arg1 = (wxBitmap *) 0 ;
5901 wxString *arg2 = 0 ;
5902 wxBitmapType arg3 ;
5903 bool result;
5904 void *argp1 = 0 ;
5905 int res1 = 0 ;
5906 bool temp2 = false ;
5907 int val3 ;
5908 int ecode3 = 0 ;
5909 PyObject * obj0 = 0 ;
5910 PyObject * obj1 = 0 ;
5911 PyObject * obj2 = 0 ;
5912 char * kwnames[] = {
5913 (char *) "self",(char *) "name",(char *) "type", NULL
5914 };
5915
5916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5917 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5918 if (!SWIG_IsOK(res1)) {
5919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
5920 }
5921 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5922 {
5923 arg2 = wxString_in_helper(obj1);
5924 if (arg2 == NULL) SWIG_fail;
5925 temp2 = true;
5926 }
5927 ecode3 = SWIG_AsVal_int(obj2, &val3);
5928 if (!SWIG_IsOK(ecode3)) {
5929 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
5930 }
5931 arg3 = static_cast< wxBitmapType >(val3);
5932 {
5933 PyThreadState* __tstate = wxPyBeginAllowThreads();
5934 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
5935 wxPyEndAllowThreads(__tstate);
5936 if (PyErr_Occurred()) SWIG_fail;
5937 }
5938 {
5939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5940 }
5941 {
5942 if (temp2)
5943 delete arg2;
5944 }
5945 return resultobj;
5946 fail:
5947 {
5948 if (temp2)
5949 delete arg2;
5950 }
5951 return NULL;
5952 }
5953
5954
5955 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5956 PyObject *resultobj = 0;
5957 wxBitmap *arg1 = (wxBitmap *) 0 ;
5958 wxPalette *result = 0 ;
5959 void *argp1 = 0 ;
5960 int res1 = 0 ;
5961 PyObject *swig_obj[1] ;
5962
5963 if (!args) SWIG_fail;
5964 swig_obj[0] = args;
5965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5966 if (!SWIG_IsOK(res1)) {
5967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5968 }
5969 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5970 {
5971 PyThreadState* __tstate = wxPyBeginAllowThreads();
5972 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
5973 wxPyEndAllowThreads(__tstate);
5974 if (PyErr_Occurred()) SWIG_fail;
5975 }
5976 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
5977 return resultobj;
5978 fail:
5979 return NULL;
5980 }
5981
5982
5983 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5984 PyObject *resultobj = 0;
5985 wxBitmap *arg1 = (wxBitmap *) 0 ;
5986 wxIcon *arg2 = 0 ;
5987 bool result;
5988 void *argp1 = 0 ;
5989 int res1 = 0 ;
5990 void *argp2 = 0 ;
5991 int res2 = 0 ;
5992 PyObject * obj0 = 0 ;
5993 PyObject * obj1 = 0 ;
5994 char * kwnames[] = {
5995 (char *) "self",(char *) "icon", NULL
5996 };
5997
5998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
5999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6000 if (!SWIG_IsOK(res1)) {
6001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6002 }
6003 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6004 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6005 if (!SWIG_IsOK(res2)) {
6006 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6007 }
6008 if (!argp2) {
6009 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6010 }
6011 arg2 = reinterpret_cast< wxIcon * >(argp2);
6012 {
6013 PyThreadState* __tstate = wxPyBeginAllowThreads();
6014 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6015 wxPyEndAllowThreads(__tstate);
6016 if (PyErr_Occurred()) SWIG_fail;
6017 }
6018 {
6019 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6020 }
6021 return resultobj;
6022 fail:
6023 return NULL;
6024 }
6025
6026
6027 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6028 PyObject *resultobj = 0;
6029 wxBitmap *arg1 = (wxBitmap *) 0 ;
6030 int arg2 ;
6031 void *argp1 = 0 ;
6032 int res1 = 0 ;
6033 int val2 ;
6034 int ecode2 = 0 ;
6035 PyObject * obj0 = 0 ;
6036 PyObject * obj1 = 0 ;
6037 char * kwnames[] = {
6038 (char *) "self",(char *) "height", NULL
6039 };
6040
6041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6043 if (!SWIG_IsOK(res1)) {
6044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6045 }
6046 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6047 ecode2 = SWIG_AsVal_int(obj1, &val2);
6048 if (!SWIG_IsOK(ecode2)) {
6049 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6050 }
6051 arg2 = static_cast< int >(val2);
6052 {
6053 PyThreadState* __tstate = wxPyBeginAllowThreads();
6054 (arg1)->SetHeight(arg2);
6055 wxPyEndAllowThreads(__tstate);
6056 if (PyErr_Occurred()) SWIG_fail;
6057 }
6058 resultobj = SWIG_Py_Void();
6059 return resultobj;
6060 fail:
6061 return NULL;
6062 }
6063
6064
6065 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6066 PyObject *resultobj = 0;
6067 wxBitmap *arg1 = (wxBitmap *) 0 ;
6068 int arg2 ;
6069 void *argp1 = 0 ;
6070 int res1 = 0 ;
6071 int val2 ;
6072 int ecode2 = 0 ;
6073 PyObject * obj0 = 0 ;
6074 PyObject * obj1 = 0 ;
6075 char * kwnames[] = {
6076 (char *) "self",(char *) "width", NULL
6077 };
6078
6079 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) 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_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6083 }
6084 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6085 ecode2 = SWIG_AsVal_int(obj1, &val2);
6086 if (!SWIG_IsOK(ecode2)) {
6087 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6088 }
6089 arg2 = static_cast< int >(val2);
6090 {
6091 PyThreadState* __tstate = wxPyBeginAllowThreads();
6092 (arg1)->SetWidth(arg2);
6093 wxPyEndAllowThreads(__tstate);
6094 if (PyErr_Occurred()) SWIG_fail;
6095 }
6096 resultobj = SWIG_Py_Void();
6097 return resultobj;
6098 fail:
6099 return NULL;
6100 }
6101
6102
6103 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6104 PyObject *resultobj = 0;
6105 wxBitmap *arg1 = (wxBitmap *) 0 ;
6106 int arg2 ;
6107 void *argp1 = 0 ;
6108 int res1 = 0 ;
6109 int val2 ;
6110 int ecode2 = 0 ;
6111 PyObject * obj0 = 0 ;
6112 PyObject * obj1 = 0 ;
6113 char * kwnames[] = {
6114 (char *) "self",(char *) "depth", NULL
6115 };
6116
6117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6119 if (!SWIG_IsOK(res1)) {
6120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6121 }
6122 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6123 ecode2 = SWIG_AsVal_int(obj1, &val2);
6124 if (!SWIG_IsOK(ecode2)) {
6125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6126 }
6127 arg2 = static_cast< int >(val2);
6128 {
6129 PyThreadState* __tstate = wxPyBeginAllowThreads();
6130 (arg1)->SetDepth(arg2);
6131 wxPyEndAllowThreads(__tstate);
6132 if (PyErr_Occurred()) SWIG_fail;
6133 }
6134 resultobj = SWIG_Py_Void();
6135 return resultobj;
6136 fail:
6137 return NULL;
6138 }
6139
6140
6141 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6142 PyObject *resultobj = 0;
6143 wxBitmap *arg1 = (wxBitmap *) 0 ;
6144 wxSize *arg2 = 0 ;
6145 void *argp1 = 0 ;
6146 int res1 = 0 ;
6147 wxSize temp2 ;
6148 PyObject * obj0 = 0 ;
6149 PyObject * obj1 = 0 ;
6150 char * kwnames[] = {
6151 (char *) "self",(char *) "size", NULL
6152 };
6153
6154 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6155 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6156 if (!SWIG_IsOK(res1)) {
6157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6158 }
6159 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6160 {
6161 arg2 = &temp2;
6162 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6163 }
6164 {
6165 PyThreadState* __tstate = wxPyBeginAllowThreads();
6166 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6167 wxPyEndAllowThreads(__tstate);
6168 if (PyErr_Occurred()) SWIG_fail;
6169 }
6170 resultobj = SWIG_Py_Void();
6171 return resultobj;
6172 fail:
6173 return NULL;
6174 }
6175
6176
6177 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6178 PyObject *resultobj = 0;
6179 wxBitmap *arg1 = (wxBitmap *) 0 ;
6180 wxBitmap *arg2 = (wxBitmap *) 0 ;
6181 bool result;
6182 void *argp1 = 0 ;
6183 int res1 = 0 ;
6184 void *argp2 = 0 ;
6185 int res2 = 0 ;
6186 PyObject * obj0 = 0 ;
6187 PyObject * obj1 = 0 ;
6188 char * kwnames[] = {
6189 (char *) "self",(char *) "other", NULL
6190 };
6191
6192 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6193 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6194 if (!SWIG_IsOK(res1)) {
6195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6196 }
6197 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6198 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6199 if (!SWIG_IsOK(res2)) {
6200 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6201 }
6202 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6203 {
6204 PyThreadState* __tstate = wxPyBeginAllowThreads();
6205 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6206 wxPyEndAllowThreads(__tstate);
6207 if (PyErr_Occurred()) SWIG_fail;
6208 }
6209 {
6210 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6211 }
6212 return resultobj;
6213 fail:
6214 return NULL;
6215 }
6216
6217
6218 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6219 PyObject *resultobj = 0;
6220 wxBitmap *arg1 = (wxBitmap *) 0 ;
6221 wxBitmap *arg2 = (wxBitmap *) 0 ;
6222 bool result;
6223 void *argp1 = 0 ;
6224 int res1 = 0 ;
6225 void *argp2 = 0 ;
6226 int res2 = 0 ;
6227 PyObject * obj0 = 0 ;
6228 PyObject * obj1 = 0 ;
6229 char * kwnames[] = {
6230 (char *) "self",(char *) "other", NULL
6231 };
6232
6233 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6234 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6235 if (!SWIG_IsOK(res1)) {
6236 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6237 }
6238 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6239 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6240 if (!SWIG_IsOK(res2)) {
6241 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6242 }
6243 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6244 {
6245 PyThreadState* __tstate = wxPyBeginAllowThreads();
6246 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6247 wxPyEndAllowThreads(__tstate);
6248 if (PyErr_Occurred()) SWIG_fail;
6249 }
6250 {
6251 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6252 }
6253 return resultobj;
6254 fail:
6255 return NULL;
6256 }
6257
6258
6259 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6260 PyObject *obj;
6261 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6262 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6263 return SWIG_Py_Void();
6264 }
6265
6266 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6267 return SWIG_Python_InitShadowInstance(args);
6268 }
6269
6270 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj = 0;
6272 wxBitmap *arg1 = 0 ;
6273 wxColour const &arg2_defvalue = wxNullColour ;
6274 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6275 wxMask *result = 0 ;
6276 void *argp1 = 0 ;
6277 int res1 = 0 ;
6278 wxColour temp2 ;
6279 PyObject * obj0 = 0 ;
6280 PyObject * obj1 = 0 ;
6281 char * kwnames[] = {
6282 (char *) "bitmap",(char *) "colour", NULL
6283 };
6284
6285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6286 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6287 if (!SWIG_IsOK(res1)) {
6288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6289 }
6290 if (!argp1) {
6291 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6292 }
6293 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6294 if (obj1) {
6295 {
6296 arg2 = &temp2;
6297 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6298 }
6299 }
6300 {
6301 if (!wxPyCheckForApp()) SWIG_fail;
6302 PyThreadState* __tstate = wxPyBeginAllowThreads();
6303 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6304 wxPyEndAllowThreads(__tstate);
6305 if (PyErr_Occurred()) SWIG_fail;
6306 }
6307 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6308 return resultobj;
6309 fail:
6310 return NULL;
6311 }
6312
6313
6314 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6315 PyObject *resultobj = 0;
6316 wxMask *arg1 = (wxMask *) 0 ;
6317 void *argp1 = 0 ;
6318 int res1 = 0 ;
6319 PyObject *swig_obj[1] ;
6320
6321 if (!args) SWIG_fail;
6322 swig_obj[0] = args;
6323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6324 if (!SWIG_IsOK(res1)) {
6325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6326 }
6327 arg1 = reinterpret_cast< wxMask * >(argp1);
6328 {
6329 PyThreadState* __tstate = wxPyBeginAllowThreads();
6330 delete arg1;
6331
6332 wxPyEndAllowThreads(__tstate);
6333 if (PyErr_Occurred()) SWIG_fail;
6334 }
6335 resultobj = SWIG_Py_Void();
6336 return resultobj;
6337 fail:
6338 return NULL;
6339 }
6340
6341
6342 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6343 PyObject *obj;
6344 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6345 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6346 return SWIG_Py_Void();
6347 }
6348
6349 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6350 return SWIG_Python_InitShadowInstance(args);
6351 }
6352
6353 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6354 PyObject *resultobj = 0;
6355 wxString *arg1 = 0 ;
6356 wxBitmapType arg2 ;
6357 int arg3 = (int) -1 ;
6358 int arg4 = (int) -1 ;
6359 wxIcon *result = 0 ;
6360 bool temp1 = false ;
6361 int val2 ;
6362 int ecode2 = 0 ;
6363 int val3 ;
6364 int ecode3 = 0 ;
6365 int val4 ;
6366 int ecode4 = 0 ;
6367 PyObject * obj0 = 0 ;
6368 PyObject * obj1 = 0 ;
6369 PyObject * obj2 = 0 ;
6370 PyObject * obj3 = 0 ;
6371 char * kwnames[] = {
6372 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6373 };
6374
6375 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6376 {
6377 arg1 = wxString_in_helper(obj0);
6378 if (arg1 == NULL) SWIG_fail;
6379 temp1 = true;
6380 }
6381 ecode2 = SWIG_AsVal_int(obj1, &val2);
6382 if (!SWIG_IsOK(ecode2)) {
6383 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6384 }
6385 arg2 = static_cast< wxBitmapType >(val2);
6386 if (obj2) {
6387 ecode3 = SWIG_AsVal_int(obj2, &val3);
6388 if (!SWIG_IsOK(ecode3)) {
6389 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6390 }
6391 arg3 = static_cast< int >(val3);
6392 }
6393 if (obj3) {
6394 ecode4 = SWIG_AsVal_int(obj3, &val4);
6395 if (!SWIG_IsOK(ecode4)) {
6396 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6397 }
6398 arg4 = static_cast< int >(val4);
6399 }
6400 {
6401 if (!wxPyCheckForApp()) SWIG_fail;
6402 PyThreadState* __tstate = wxPyBeginAllowThreads();
6403 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6404 wxPyEndAllowThreads(__tstate);
6405 if (PyErr_Occurred()) SWIG_fail;
6406 }
6407 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6408 {
6409 if (temp1)
6410 delete arg1;
6411 }
6412 return resultobj;
6413 fail:
6414 {
6415 if (temp1)
6416 delete arg1;
6417 }
6418 return NULL;
6419 }
6420
6421
6422 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6423 PyObject *resultobj = 0;
6424 wxIcon *arg1 = (wxIcon *) 0 ;
6425 void *argp1 = 0 ;
6426 int res1 = 0 ;
6427 PyObject *swig_obj[1] ;
6428
6429 if (!args) SWIG_fail;
6430 swig_obj[0] = args;
6431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6432 if (!SWIG_IsOK(res1)) {
6433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6434 }
6435 arg1 = reinterpret_cast< wxIcon * >(argp1);
6436 {
6437 PyThreadState* __tstate = wxPyBeginAllowThreads();
6438 delete arg1;
6439
6440 wxPyEndAllowThreads(__tstate);
6441 if (PyErr_Occurred()) SWIG_fail;
6442 }
6443 resultobj = SWIG_Py_Void();
6444 return resultobj;
6445 fail:
6446 return NULL;
6447 }
6448
6449
6450 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6451 PyObject *resultobj = 0;
6452 wxIcon *result = 0 ;
6453
6454 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6455 {
6456 if (!wxPyCheckForApp()) SWIG_fail;
6457 PyThreadState* __tstate = wxPyBeginAllowThreads();
6458 result = (wxIcon *)new wxIcon();
6459 wxPyEndAllowThreads(__tstate);
6460 if (PyErr_Occurred()) SWIG_fail;
6461 }
6462 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6463 return resultobj;
6464 fail:
6465 return NULL;
6466 }
6467
6468
6469 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6470 PyObject *resultobj = 0;
6471 wxIconLocation *arg1 = 0 ;
6472 wxIcon *result = 0 ;
6473 void *argp1 = 0 ;
6474 int res1 = 0 ;
6475 PyObject * obj0 = 0 ;
6476 char * kwnames[] = {
6477 (char *) "loc", NULL
6478 };
6479
6480 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6481 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6482 if (!SWIG_IsOK(res1)) {
6483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6484 }
6485 if (!argp1) {
6486 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6487 }
6488 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6489 {
6490 if (!wxPyCheckForApp()) SWIG_fail;
6491 PyThreadState* __tstate = wxPyBeginAllowThreads();
6492 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6493 wxPyEndAllowThreads(__tstate);
6494 if (PyErr_Occurred()) SWIG_fail;
6495 }
6496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6497 return resultobj;
6498 fail:
6499 return NULL;
6500 }
6501
6502
6503 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6504 PyObject *resultobj = 0;
6505 wxBitmap *arg1 = 0 ;
6506 wxIcon *result = 0 ;
6507 void *argp1 = 0 ;
6508 int res1 = 0 ;
6509 PyObject * obj0 = 0 ;
6510 char * kwnames[] = {
6511 (char *) "bmp", NULL
6512 };
6513
6514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6515 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6516 if (!SWIG_IsOK(res1)) {
6517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6518 }
6519 if (!argp1) {
6520 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6521 }
6522 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6523 {
6524 if (!wxPyCheckForApp()) SWIG_fail;
6525 PyThreadState* __tstate = wxPyBeginAllowThreads();
6526 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6527 wxPyEndAllowThreads(__tstate);
6528 if (PyErr_Occurred()) SWIG_fail;
6529 }
6530 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6531 return resultobj;
6532 fail:
6533 return NULL;
6534 }
6535
6536
6537 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6538 PyObject *resultobj = 0;
6539 PyObject *arg1 = (PyObject *) 0 ;
6540 wxIcon *result = 0 ;
6541 PyObject * obj0 = 0 ;
6542 char * kwnames[] = {
6543 (char *) "listOfStrings", NULL
6544 };
6545
6546 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6547 arg1 = obj0;
6548 {
6549 if (!wxPyCheckForApp()) SWIG_fail;
6550 PyThreadState* __tstate = wxPyBeginAllowThreads();
6551 result = (wxIcon *)new_wxIcon(arg1);
6552 wxPyEndAllowThreads(__tstate);
6553 if (PyErr_Occurred()) SWIG_fail;
6554 }
6555 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6556 return resultobj;
6557 fail:
6558 return NULL;
6559 }
6560
6561
6562 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6563 PyObject *resultobj = 0;
6564 wxIcon *arg1 = (wxIcon *) 0 ;
6565 wxString *arg2 = 0 ;
6566 wxBitmapType arg3 ;
6567 bool result;
6568 void *argp1 = 0 ;
6569 int res1 = 0 ;
6570 bool temp2 = false ;
6571 int val3 ;
6572 int ecode3 = 0 ;
6573 PyObject * obj0 = 0 ;
6574 PyObject * obj1 = 0 ;
6575 PyObject * obj2 = 0 ;
6576 char * kwnames[] = {
6577 (char *) "self",(char *) "name",(char *) "type", NULL
6578 };
6579
6580 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6581 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6582 if (!SWIG_IsOK(res1)) {
6583 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6584 }
6585 arg1 = reinterpret_cast< wxIcon * >(argp1);
6586 {
6587 arg2 = wxString_in_helper(obj1);
6588 if (arg2 == NULL) SWIG_fail;
6589 temp2 = true;
6590 }
6591 ecode3 = SWIG_AsVal_int(obj2, &val3);
6592 if (!SWIG_IsOK(ecode3)) {
6593 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6594 }
6595 arg3 = static_cast< wxBitmapType >(val3);
6596 {
6597 PyThreadState* __tstate = wxPyBeginAllowThreads();
6598 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6599 wxPyEndAllowThreads(__tstate);
6600 if (PyErr_Occurred()) SWIG_fail;
6601 }
6602 {
6603 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6604 }
6605 {
6606 if (temp2)
6607 delete arg2;
6608 }
6609 return resultobj;
6610 fail:
6611 {
6612 if (temp2)
6613 delete arg2;
6614 }
6615 return NULL;
6616 }
6617
6618
6619 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6620 PyObject *resultobj = 0;
6621 wxIcon *arg1 = (wxIcon *) 0 ;
6622 bool result;
6623 void *argp1 = 0 ;
6624 int res1 = 0 ;
6625 PyObject *swig_obj[1] ;
6626
6627 if (!args) SWIG_fail;
6628 swig_obj[0] = args;
6629 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6630 if (!SWIG_IsOK(res1)) {
6631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6632 }
6633 arg1 = reinterpret_cast< wxIcon * >(argp1);
6634 {
6635 PyThreadState* __tstate = wxPyBeginAllowThreads();
6636 result = (bool)(arg1)->Ok();
6637 wxPyEndAllowThreads(__tstate);
6638 if (PyErr_Occurred()) SWIG_fail;
6639 }
6640 {
6641 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6642 }
6643 return resultobj;
6644 fail:
6645 return NULL;
6646 }
6647
6648
6649 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6650 PyObject *resultobj = 0;
6651 wxIcon *arg1 = (wxIcon *) 0 ;
6652 int result;
6653 void *argp1 = 0 ;
6654 int res1 = 0 ;
6655 PyObject *swig_obj[1] ;
6656
6657 if (!args) SWIG_fail;
6658 swig_obj[0] = args;
6659 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6660 if (!SWIG_IsOK(res1)) {
6661 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6662 }
6663 arg1 = reinterpret_cast< wxIcon * >(argp1);
6664 {
6665 PyThreadState* __tstate = wxPyBeginAllowThreads();
6666 result = (int)(arg1)->GetWidth();
6667 wxPyEndAllowThreads(__tstate);
6668 if (PyErr_Occurred()) SWIG_fail;
6669 }
6670 resultobj = SWIG_From_int(static_cast< int >(result));
6671 return resultobj;
6672 fail:
6673 return NULL;
6674 }
6675
6676
6677 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6678 PyObject *resultobj = 0;
6679 wxIcon *arg1 = (wxIcon *) 0 ;
6680 int result;
6681 void *argp1 = 0 ;
6682 int res1 = 0 ;
6683 PyObject *swig_obj[1] ;
6684
6685 if (!args) SWIG_fail;
6686 swig_obj[0] = args;
6687 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6688 if (!SWIG_IsOK(res1)) {
6689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6690 }
6691 arg1 = reinterpret_cast< wxIcon * >(argp1);
6692 {
6693 PyThreadState* __tstate = wxPyBeginAllowThreads();
6694 result = (int)(arg1)->GetHeight();
6695 wxPyEndAllowThreads(__tstate);
6696 if (PyErr_Occurred()) SWIG_fail;
6697 }
6698 resultobj = SWIG_From_int(static_cast< int >(result));
6699 return resultobj;
6700 fail:
6701 return NULL;
6702 }
6703
6704
6705 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6706 PyObject *resultobj = 0;
6707 wxIcon *arg1 = (wxIcon *) 0 ;
6708 int result;
6709 void *argp1 = 0 ;
6710 int res1 = 0 ;
6711 PyObject *swig_obj[1] ;
6712
6713 if (!args) SWIG_fail;
6714 swig_obj[0] = args;
6715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6716 if (!SWIG_IsOK(res1)) {
6717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6718 }
6719 arg1 = reinterpret_cast< wxIcon * >(argp1);
6720 {
6721 PyThreadState* __tstate = wxPyBeginAllowThreads();
6722 result = (int)(arg1)->GetDepth();
6723 wxPyEndAllowThreads(__tstate);
6724 if (PyErr_Occurred()) SWIG_fail;
6725 }
6726 resultobj = SWIG_From_int(static_cast< int >(result));
6727 return resultobj;
6728 fail:
6729 return NULL;
6730 }
6731
6732
6733 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6734 PyObject *resultobj = 0;
6735 wxIcon *arg1 = (wxIcon *) 0 ;
6736 int arg2 ;
6737 void *argp1 = 0 ;
6738 int res1 = 0 ;
6739 int val2 ;
6740 int ecode2 = 0 ;
6741 PyObject * obj0 = 0 ;
6742 PyObject * obj1 = 0 ;
6743 char * kwnames[] = {
6744 (char *) "self",(char *) "w", NULL
6745 };
6746
6747 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6748 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6749 if (!SWIG_IsOK(res1)) {
6750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6751 }
6752 arg1 = reinterpret_cast< wxIcon * >(argp1);
6753 ecode2 = SWIG_AsVal_int(obj1, &val2);
6754 if (!SWIG_IsOK(ecode2)) {
6755 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
6756 }
6757 arg2 = static_cast< int >(val2);
6758 {
6759 PyThreadState* __tstate = wxPyBeginAllowThreads();
6760 (arg1)->SetWidth(arg2);
6761 wxPyEndAllowThreads(__tstate);
6762 if (PyErr_Occurred()) SWIG_fail;
6763 }
6764 resultobj = SWIG_Py_Void();
6765 return resultobj;
6766 fail:
6767 return NULL;
6768 }
6769
6770
6771 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6772 PyObject *resultobj = 0;
6773 wxIcon *arg1 = (wxIcon *) 0 ;
6774 int arg2 ;
6775 void *argp1 = 0 ;
6776 int res1 = 0 ;
6777 int val2 ;
6778 int ecode2 = 0 ;
6779 PyObject * obj0 = 0 ;
6780 PyObject * obj1 = 0 ;
6781 char * kwnames[] = {
6782 (char *) "self",(char *) "h", NULL
6783 };
6784
6785 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6786 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6787 if (!SWIG_IsOK(res1)) {
6788 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
6789 }
6790 arg1 = reinterpret_cast< wxIcon * >(argp1);
6791 ecode2 = SWIG_AsVal_int(obj1, &val2);
6792 if (!SWIG_IsOK(ecode2)) {
6793 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
6794 }
6795 arg2 = static_cast< int >(val2);
6796 {
6797 PyThreadState* __tstate = wxPyBeginAllowThreads();
6798 (arg1)->SetHeight(arg2);
6799 wxPyEndAllowThreads(__tstate);
6800 if (PyErr_Occurred()) SWIG_fail;
6801 }
6802 resultobj = SWIG_Py_Void();
6803 return resultobj;
6804 fail:
6805 return NULL;
6806 }
6807
6808
6809 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6810 PyObject *resultobj = 0;
6811 wxIcon *arg1 = (wxIcon *) 0 ;
6812 int arg2 ;
6813 void *argp1 = 0 ;
6814 int res1 = 0 ;
6815 int val2 ;
6816 int ecode2 = 0 ;
6817 PyObject * obj0 = 0 ;
6818 PyObject * obj1 = 0 ;
6819 char * kwnames[] = {
6820 (char *) "self",(char *) "d", NULL
6821 };
6822
6823 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6824 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6825 if (!SWIG_IsOK(res1)) {
6826 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
6827 }
6828 arg1 = reinterpret_cast< wxIcon * >(argp1);
6829 ecode2 = SWIG_AsVal_int(obj1, &val2);
6830 if (!SWIG_IsOK(ecode2)) {
6831 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
6832 }
6833 arg2 = static_cast< int >(val2);
6834 {
6835 PyThreadState* __tstate = wxPyBeginAllowThreads();
6836 (arg1)->SetDepth(arg2);
6837 wxPyEndAllowThreads(__tstate);
6838 if (PyErr_Occurred()) SWIG_fail;
6839 }
6840 resultobj = SWIG_Py_Void();
6841 return resultobj;
6842 fail:
6843 return NULL;
6844 }
6845
6846
6847 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6848 PyObject *resultobj = 0;
6849 wxIcon *arg1 = (wxIcon *) 0 ;
6850 wxBitmap *arg2 = 0 ;
6851 void *argp1 = 0 ;
6852 int res1 = 0 ;
6853 void *argp2 = 0 ;
6854 int res2 = 0 ;
6855 PyObject * obj0 = 0 ;
6856 PyObject * obj1 = 0 ;
6857 char * kwnames[] = {
6858 (char *) "self",(char *) "bmp", NULL
6859 };
6860
6861 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
6862 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6863 if (!SWIG_IsOK(res1)) {
6864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
6865 }
6866 arg1 = reinterpret_cast< wxIcon * >(argp1);
6867 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
6868 if (!SWIG_IsOK(res2)) {
6869 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6870 }
6871 if (!argp2) {
6872 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
6873 }
6874 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6875 {
6876 PyThreadState* __tstate = wxPyBeginAllowThreads();
6877 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
6878 wxPyEndAllowThreads(__tstate);
6879 if (PyErr_Occurred()) SWIG_fail;
6880 }
6881 resultobj = SWIG_Py_Void();
6882 return resultobj;
6883 fail:
6884 return NULL;
6885 }
6886
6887
6888 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6889 PyObject *obj;
6890 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6891 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
6892 return SWIG_Py_Void();
6893 }
6894
6895 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6896 return SWIG_Python_InitShadowInstance(args);
6897 }
6898
6899 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6900 PyObject *resultobj = 0;
6901 wxString *arg1 = (wxString *) &wxPyEmptyString ;
6902 int arg2 = (int) 0 ;
6903 wxIconLocation *result = 0 ;
6904 bool temp1 = false ;
6905 int val2 ;
6906 int ecode2 = 0 ;
6907 PyObject * obj0 = 0 ;
6908 PyObject * obj1 = 0 ;
6909 char * kwnames[] = {
6910 (char *) "filename",(char *) "num", NULL
6911 };
6912
6913 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
6914 if (obj0) {
6915 {
6916 arg1 = wxString_in_helper(obj0);
6917 if (arg1 == NULL) SWIG_fail;
6918 temp1 = true;
6919 }
6920 }
6921 if (obj1) {
6922 ecode2 = SWIG_AsVal_int(obj1, &val2);
6923 if (!SWIG_IsOK(ecode2)) {
6924 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
6925 }
6926 arg2 = static_cast< int >(val2);
6927 }
6928 {
6929 PyThreadState* __tstate = wxPyBeginAllowThreads();
6930 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
6931 wxPyEndAllowThreads(__tstate);
6932 if (PyErr_Occurred()) SWIG_fail;
6933 }
6934 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
6935 {
6936 if (temp1)
6937 delete arg1;
6938 }
6939 return resultobj;
6940 fail:
6941 {
6942 if (temp1)
6943 delete arg1;
6944 }
6945 return NULL;
6946 }
6947
6948
6949 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6950 PyObject *resultobj = 0;
6951 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6952 void *argp1 = 0 ;
6953 int res1 = 0 ;
6954 PyObject *swig_obj[1] ;
6955
6956 if (!args) SWIG_fail;
6957 swig_obj[0] = args;
6958 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
6959 if (!SWIG_IsOK(res1)) {
6960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
6961 }
6962 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6963 {
6964 PyThreadState* __tstate = wxPyBeginAllowThreads();
6965 delete arg1;
6966
6967 wxPyEndAllowThreads(__tstate);
6968 if (PyErr_Occurred()) SWIG_fail;
6969 }
6970 resultobj = SWIG_Py_Void();
6971 return resultobj;
6972 fail:
6973 return NULL;
6974 }
6975
6976
6977 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6978 PyObject *resultobj = 0;
6979 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
6980 bool result;
6981 void *argp1 = 0 ;
6982 int res1 = 0 ;
6983 PyObject *swig_obj[1] ;
6984
6985 if (!args) SWIG_fail;
6986 swig_obj[0] = args;
6987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
6988 if (!SWIG_IsOK(res1)) {
6989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
6990 }
6991 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6992 {
6993 PyThreadState* __tstate = wxPyBeginAllowThreads();
6994 result = (bool)((wxIconLocation const *)arg1)->IsOk();
6995 wxPyEndAllowThreads(__tstate);
6996 if (PyErr_Occurred()) SWIG_fail;
6997 }
6998 {
6999 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7000 }
7001 return resultobj;
7002 fail:
7003 return NULL;
7004 }
7005
7006
7007 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7008 PyObject *resultobj = 0;
7009 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7010 wxString *arg2 = 0 ;
7011 void *argp1 = 0 ;
7012 int res1 = 0 ;
7013 bool temp2 = false ;
7014 PyObject * obj0 = 0 ;
7015 PyObject * obj1 = 0 ;
7016 char * kwnames[] = {
7017 (char *) "self",(char *) "filename", NULL
7018 };
7019
7020 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7021 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7022 if (!SWIG_IsOK(res1)) {
7023 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7024 }
7025 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7026 {
7027 arg2 = wxString_in_helper(obj1);
7028 if (arg2 == NULL) SWIG_fail;
7029 temp2 = true;
7030 }
7031 {
7032 PyThreadState* __tstate = wxPyBeginAllowThreads();
7033 (arg1)->SetFileName((wxString const &)*arg2);
7034 wxPyEndAllowThreads(__tstate);
7035 if (PyErr_Occurred()) SWIG_fail;
7036 }
7037 resultobj = SWIG_Py_Void();
7038 {
7039 if (temp2)
7040 delete arg2;
7041 }
7042 return resultobj;
7043 fail:
7044 {
7045 if (temp2)
7046 delete arg2;
7047 }
7048 return NULL;
7049 }
7050
7051
7052 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7053 PyObject *resultobj = 0;
7054 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7055 wxString *result = 0 ;
7056 void *argp1 = 0 ;
7057 int res1 = 0 ;
7058 PyObject *swig_obj[1] ;
7059
7060 if (!args) SWIG_fail;
7061 swig_obj[0] = args;
7062 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7063 if (!SWIG_IsOK(res1)) {
7064 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7065 }
7066 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7067 {
7068 PyThreadState* __tstate = wxPyBeginAllowThreads();
7069 {
7070 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7071 result = (wxString *) &_result_ref;
7072 }
7073 wxPyEndAllowThreads(__tstate);
7074 if (PyErr_Occurred()) SWIG_fail;
7075 }
7076 {
7077 #if wxUSE_UNICODE
7078 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7079 #else
7080 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7081 #endif
7082 }
7083 return resultobj;
7084 fail:
7085 return NULL;
7086 }
7087
7088
7089 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7090 PyObject *resultobj = 0;
7091 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7092 int arg2 ;
7093 void *argp1 = 0 ;
7094 int res1 = 0 ;
7095 int val2 ;
7096 int ecode2 = 0 ;
7097 PyObject * obj0 = 0 ;
7098 PyObject * obj1 = 0 ;
7099 char * kwnames[] = {
7100 (char *) "self",(char *) "num", NULL
7101 };
7102
7103 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7104 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7105 if (!SWIG_IsOK(res1)) {
7106 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7107 }
7108 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7109 ecode2 = SWIG_AsVal_int(obj1, &val2);
7110 if (!SWIG_IsOK(ecode2)) {
7111 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7112 }
7113 arg2 = static_cast< int >(val2);
7114 {
7115 PyThreadState* __tstate = wxPyBeginAllowThreads();
7116 wxIconLocation_SetIndex(arg1,arg2);
7117 wxPyEndAllowThreads(__tstate);
7118 if (PyErr_Occurred()) SWIG_fail;
7119 }
7120 resultobj = SWIG_Py_Void();
7121 return resultobj;
7122 fail:
7123 return NULL;
7124 }
7125
7126
7127 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7128 PyObject *resultobj = 0;
7129 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7130 int result;
7131 void *argp1 = 0 ;
7132 int res1 = 0 ;
7133 PyObject *swig_obj[1] ;
7134
7135 if (!args) SWIG_fail;
7136 swig_obj[0] = args;
7137 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7138 if (!SWIG_IsOK(res1)) {
7139 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7140 }
7141 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7142 {
7143 PyThreadState* __tstate = wxPyBeginAllowThreads();
7144 result = (int)wxIconLocation_GetIndex(arg1);
7145 wxPyEndAllowThreads(__tstate);
7146 if (PyErr_Occurred()) SWIG_fail;
7147 }
7148 resultobj = SWIG_From_int(static_cast< int >(result));
7149 return resultobj;
7150 fail:
7151 return NULL;
7152 }
7153
7154
7155 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7156 PyObject *obj;
7157 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7158 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7159 return SWIG_Py_Void();
7160 }
7161
7162 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7163 return SWIG_Python_InitShadowInstance(args);
7164 }
7165
7166 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7167 PyObject *resultobj = 0;
7168 wxIconBundle *result = 0 ;
7169
7170 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7171 {
7172 PyThreadState* __tstate = wxPyBeginAllowThreads();
7173 result = (wxIconBundle *)new wxIconBundle();
7174 wxPyEndAllowThreads(__tstate);
7175 if (PyErr_Occurred()) SWIG_fail;
7176 }
7177 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7178 return resultobj;
7179 fail:
7180 return NULL;
7181 }
7182
7183
7184 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7185 PyObject *resultobj = 0;
7186 wxString *arg1 = 0 ;
7187 long arg2 ;
7188 wxIconBundle *result = 0 ;
7189 bool temp1 = false ;
7190 long val2 ;
7191 int ecode2 = 0 ;
7192 PyObject * obj0 = 0 ;
7193 PyObject * obj1 = 0 ;
7194 char * kwnames[] = {
7195 (char *) "file",(char *) "type", NULL
7196 };
7197
7198 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7199 {
7200 arg1 = wxString_in_helper(obj0);
7201 if (arg1 == NULL) SWIG_fail;
7202 temp1 = true;
7203 }
7204 ecode2 = SWIG_AsVal_long(obj1, &val2);
7205 if (!SWIG_IsOK(ecode2)) {
7206 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7207 }
7208 arg2 = static_cast< long >(val2);
7209 {
7210 PyThreadState* __tstate = wxPyBeginAllowThreads();
7211 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7212 wxPyEndAllowThreads(__tstate);
7213 if (PyErr_Occurred()) SWIG_fail;
7214 }
7215 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7216 {
7217 if (temp1)
7218 delete arg1;
7219 }
7220 return resultobj;
7221 fail:
7222 {
7223 if (temp1)
7224 delete arg1;
7225 }
7226 return NULL;
7227 }
7228
7229
7230 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7231 PyObject *resultobj = 0;
7232 wxIcon *arg1 = 0 ;
7233 wxIconBundle *result = 0 ;
7234 void *argp1 = 0 ;
7235 int res1 = 0 ;
7236 PyObject * obj0 = 0 ;
7237 char * kwnames[] = {
7238 (char *) "icon", NULL
7239 };
7240
7241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7243 if (!SWIG_IsOK(res1)) {
7244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7245 }
7246 if (!argp1) {
7247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7248 }
7249 arg1 = reinterpret_cast< wxIcon * >(argp1);
7250 {
7251 PyThreadState* __tstate = wxPyBeginAllowThreads();
7252 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7253 wxPyEndAllowThreads(__tstate);
7254 if (PyErr_Occurred()) SWIG_fail;
7255 }
7256 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7257 return resultobj;
7258 fail:
7259 return NULL;
7260 }
7261
7262
7263 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7264 PyObject *resultobj = 0;
7265 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7266 void *argp1 = 0 ;
7267 int res1 = 0 ;
7268 PyObject *swig_obj[1] ;
7269
7270 if (!args) SWIG_fail;
7271 swig_obj[0] = args;
7272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7273 if (!SWIG_IsOK(res1)) {
7274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7275 }
7276 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7277 {
7278 PyThreadState* __tstate = wxPyBeginAllowThreads();
7279 delete arg1;
7280
7281 wxPyEndAllowThreads(__tstate);
7282 if (PyErr_Occurred()) SWIG_fail;
7283 }
7284 resultobj = SWIG_Py_Void();
7285 return resultobj;
7286 fail:
7287 return NULL;
7288 }
7289
7290
7291 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7292 PyObject *resultobj = 0;
7293 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7294 wxIcon *arg2 = 0 ;
7295 void *argp1 = 0 ;
7296 int res1 = 0 ;
7297 void *argp2 = 0 ;
7298 int res2 = 0 ;
7299 PyObject * obj0 = 0 ;
7300 PyObject * obj1 = 0 ;
7301 char * kwnames[] = {
7302 (char *) "self",(char *) "icon", NULL
7303 };
7304
7305 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7306 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7307 if (!SWIG_IsOK(res1)) {
7308 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7309 }
7310 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7311 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7312 if (!SWIG_IsOK(res2)) {
7313 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7314 }
7315 if (!argp2) {
7316 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7317 }
7318 arg2 = reinterpret_cast< wxIcon * >(argp2);
7319 {
7320 PyThreadState* __tstate = wxPyBeginAllowThreads();
7321 (arg1)->AddIcon((wxIcon const &)*arg2);
7322 wxPyEndAllowThreads(__tstate);
7323 if (PyErr_Occurred()) SWIG_fail;
7324 }
7325 resultobj = SWIG_Py_Void();
7326 return resultobj;
7327 fail:
7328 return NULL;
7329 }
7330
7331
7332 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7333 PyObject *resultobj = 0;
7334 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7335 wxString *arg2 = 0 ;
7336 long arg3 ;
7337 void *argp1 = 0 ;
7338 int res1 = 0 ;
7339 bool temp2 = false ;
7340 long val3 ;
7341 int ecode3 = 0 ;
7342 PyObject * obj0 = 0 ;
7343 PyObject * obj1 = 0 ;
7344 PyObject * obj2 = 0 ;
7345 char * kwnames[] = {
7346 (char *) "self",(char *) "file",(char *) "type", NULL
7347 };
7348
7349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7350 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7351 if (!SWIG_IsOK(res1)) {
7352 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7353 }
7354 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7355 {
7356 arg2 = wxString_in_helper(obj1);
7357 if (arg2 == NULL) SWIG_fail;
7358 temp2 = true;
7359 }
7360 ecode3 = SWIG_AsVal_long(obj2, &val3);
7361 if (!SWIG_IsOK(ecode3)) {
7362 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7363 }
7364 arg3 = static_cast< long >(val3);
7365 {
7366 PyThreadState* __tstate = wxPyBeginAllowThreads();
7367 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7368 wxPyEndAllowThreads(__tstate);
7369 if (PyErr_Occurred()) SWIG_fail;
7370 }
7371 resultobj = SWIG_Py_Void();
7372 {
7373 if (temp2)
7374 delete arg2;
7375 }
7376 return resultobj;
7377 fail:
7378 {
7379 if (temp2)
7380 delete arg2;
7381 }
7382 return NULL;
7383 }
7384
7385
7386 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7387 PyObject *resultobj = 0;
7388 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7389 wxSize *arg2 = 0 ;
7390 wxIcon *result = 0 ;
7391 void *argp1 = 0 ;
7392 int res1 = 0 ;
7393 wxSize temp2 ;
7394 PyObject * obj0 = 0 ;
7395 PyObject * obj1 = 0 ;
7396 char * kwnames[] = {
7397 (char *) "self",(char *) "size", NULL
7398 };
7399
7400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7402 if (!SWIG_IsOK(res1)) {
7403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7404 }
7405 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7406 {
7407 arg2 = &temp2;
7408 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7409 }
7410 {
7411 PyThreadState* __tstate = wxPyBeginAllowThreads();
7412 {
7413 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7414 result = (wxIcon *) &_result_ref;
7415 }
7416 wxPyEndAllowThreads(__tstate);
7417 if (PyErr_Occurred()) SWIG_fail;
7418 }
7419 {
7420 wxIcon* resultptr = new wxIcon(*result);
7421 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7422 }
7423 return resultobj;
7424 fail:
7425 return NULL;
7426 }
7427
7428
7429 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7430 PyObject *obj;
7431 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7432 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7433 return SWIG_Py_Void();
7434 }
7435
7436 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7437 return SWIG_Python_InitShadowInstance(args);
7438 }
7439
7440 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj = 0;
7442 wxString *arg1 = 0 ;
7443 long arg2 ;
7444 int arg3 = (int) 0 ;
7445 int arg4 = (int) 0 ;
7446 wxCursor *result = 0 ;
7447 bool temp1 = false ;
7448 long val2 ;
7449 int ecode2 = 0 ;
7450 int val3 ;
7451 int ecode3 = 0 ;
7452 int val4 ;
7453 int ecode4 = 0 ;
7454 PyObject * obj0 = 0 ;
7455 PyObject * obj1 = 0 ;
7456 PyObject * obj2 = 0 ;
7457 PyObject * obj3 = 0 ;
7458 char * kwnames[] = {
7459 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7460 };
7461
7462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7463 {
7464 arg1 = wxString_in_helper(obj0);
7465 if (arg1 == NULL) SWIG_fail;
7466 temp1 = true;
7467 }
7468 ecode2 = SWIG_AsVal_long(obj1, &val2);
7469 if (!SWIG_IsOK(ecode2)) {
7470 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7471 }
7472 arg2 = static_cast< long >(val2);
7473 if (obj2) {
7474 ecode3 = SWIG_AsVal_int(obj2, &val3);
7475 if (!SWIG_IsOK(ecode3)) {
7476 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7477 }
7478 arg3 = static_cast< int >(val3);
7479 }
7480 if (obj3) {
7481 ecode4 = SWIG_AsVal_int(obj3, &val4);
7482 if (!SWIG_IsOK(ecode4)) {
7483 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7484 }
7485 arg4 = static_cast< int >(val4);
7486 }
7487 {
7488 if (!wxPyCheckForApp()) SWIG_fail;
7489 PyThreadState* __tstate = wxPyBeginAllowThreads();
7490 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7491 wxPyEndAllowThreads(__tstate);
7492 if (PyErr_Occurred()) SWIG_fail;
7493 }
7494 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7495 {
7496 if (temp1)
7497 delete arg1;
7498 }
7499 return resultobj;
7500 fail:
7501 {
7502 if (temp1)
7503 delete arg1;
7504 }
7505 return NULL;
7506 }
7507
7508
7509 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7510 PyObject *resultobj = 0;
7511 wxCursor *arg1 = (wxCursor *) 0 ;
7512 void *argp1 = 0 ;
7513 int res1 = 0 ;
7514 PyObject *swig_obj[1] ;
7515
7516 if (!args) SWIG_fail;
7517 swig_obj[0] = args;
7518 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7519 if (!SWIG_IsOK(res1)) {
7520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7521 }
7522 arg1 = reinterpret_cast< wxCursor * >(argp1);
7523 {
7524 PyThreadState* __tstate = wxPyBeginAllowThreads();
7525 delete arg1;
7526
7527 wxPyEndAllowThreads(__tstate);
7528 if (PyErr_Occurred()) SWIG_fail;
7529 }
7530 resultobj = SWIG_Py_Void();
7531 return resultobj;
7532 fail:
7533 return NULL;
7534 }
7535
7536
7537 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7538 PyObject *resultobj = 0;
7539 int arg1 ;
7540 wxCursor *result = 0 ;
7541 int val1 ;
7542 int ecode1 = 0 ;
7543 PyObject * obj0 = 0 ;
7544 char * kwnames[] = {
7545 (char *) "id", NULL
7546 };
7547
7548 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7549 ecode1 = SWIG_AsVal_int(obj0, &val1);
7550 if (!SWIG_IsOK(ecode1)) {
7551 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7552 }
7553 arg1 = static_cast< int >(val1);
7554 {
7555 if (!wxPyCheckForApp()) SWIG_fail;
7556 PyThreadState* __tstate = wxPyBeginAllowThreads();
7557 result = (wxCursor *)new wxCursor(arg1);
7558 wxPyEndAllowThreads(__tstate);
7559 if (PyErr_Occurred()) SWIG_fail;
7560 }
7561 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7562 return resultobj;
7563 fail:
7564 return NULL;
7565 }
7566
7567
7568 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7569 PyObject *resultobj = 0;
7570 wxImage *arg1 = 0 ;
7571 wxCursor *result = 0 ;
7572 void *argp1 = 0 ;
7573 int res1 = 0 ;
7574 PyObject * obj0 = 0 ;
7575 char * kwnames[] = {
7576 (char *) "image", NULL
7577 };
7578
7579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7580 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7581 if (!SWIG_IsOK(res1)) {
7582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7583 }
7584 if (!argp1) {
7585 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7586 }
7587 arg1 = reinterpret_cast< wxImage * >(argp1);
7588 {
7589 if (!wxPyCheckForApp()) SWIG_fail;
7590 PyThreadState* __tstate = wxPyBeginAllowThreads();
7591 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7592 wxPyEndAllowThreads(__tstate);
7593 if (PyErr_Occurred()) SWIG_fail;
7594 }
7595 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7596 return resultobj;
7597 fail:
7598 return NULL;
7599 }
7600
7601
7602 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7603 PyObject *resultobj = 0;
7604 wxCursor *arg1 = (wxCursor *) 0 ;
7605 bool result;
7606 void *argp1 = 0 ;
7607 int res1 = 0 ;
7608 PyObject *swig_obj[1] ;
7609
7610 if (!args) SWIG_fail;
7611 swig_obj[0] = args;
7612 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7613 if (!SWIG_IsOK(res1)) {
7614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
7615 }
7616 arg1 = reinterpret_cast< wxCursor * >(argp1);
7617 {
7618 PyThreadState* __tstate = wxPyBeginAllowThreads();
7619 result = (bool)(arg1)->Ok();
7620 wxPyEndAllowThreads(__tstate);
7621 if (PyErr_Occurred()) SWIG_fail;
7622 }
7623 {
7624 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7625 }
7626 return resultobj;
7627 fail:
7628 return NULL;
7629 }
7630
7631
7632 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7633 PyObject *obj;
7634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7635 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
7636 return SWIG_Py_Void();
7637 }
7638
7639 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7640 return SWIG_Python_InitShadowInstance(args);
7641 }
7642
7643 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7644 PyObject *resultobj = 0;
7645 int arg1 = (int) 0 ;
7646 int arg2 = (int) 0 ;
7647 int arg3 = (int) 0 ;
7648 int arg4 = (int) 0 ;
7649 wxRegion *result = 0 ;
7650 int val1 ;
7651 int ecode1 = 0 ;
7652 int val2 ;
7653 int ecode2 = 0 ;
7654 int val3 ;
7655 int ecode3 = 0 ;
7656 int val4 ;
7657 int ecode4 = 0 ;
7658 PyObject * obj0 = 0 ;
7659 PyObject * obj1 = 0 ;
7660 PyObject * obj2 = 0 ;
7661 PyObject * obj3 = 0 ;
7662 char * kwnames[] = {
7663 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
7664 };
7665
7666 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7667 if (obj0) {
7668 ecode1 = SWIG_AsVal_int(obj0, &val1);
7669 if (!SWIG_IsOK(ecode1)) {
7670 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
7671 }
7672 arg1 = static_cast< int >(val1);
7673 }
7674 if (obj1) {
7675 ecode2 = SWIG_AsVal_int(obj1, &val2);
7676 if (!SWIG_IsOK(ecode2)) {
7677 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
7678 }
7679 arg2 = static_cast< int >(val2);
7680 }
7681 if (obj2) {
7682 ecode3 = SWIG_AsVal_int(obj2, &val3);
7683 if (!SWIG_IsOK(ecode3)) {
7684 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
7685 }
7686 arg3 = static_cast< int >(val3);
7687 }
7688 if (obj3) {
7689 ecode4 = SWIG_AsVal_int(obj3, &val4);
7690 if (!SWIG_IsOK(ecode4)) {
7691 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
7692 }
7693 arg4 = static_cast< int >(val4);
7694 }
7695 {
7696 if (!wxPyCheckForApp()) SWIG_fail;
7697 PyThreadState* __tstate = wxPyBeginAllowThreads();
7698 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
7699 wxPyEndAllowThreads(__tstate);
7700 if (PyErr_Occurred()) SWIG_fail;
7701 }
7702 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
7703 return resultobj;
7704 fail:
7705 return NULL;
7706 }
7707
7708
7709 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7710 PyObject *resultobj = 0;
7711 wxBitmap *arg1 = 0 ;
7712 wxRegion *result = 0 ;
7713 void *argp1 = 0 ;
7714 int res1 = 0 ;
7715 PyObject * obj0 = 0 ;
7716 char * kwnames[] = {
7717 (char *) "bmp", NULL
7718 };
7719
7720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
7721 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7722 if (!SWIG_IsOK(res1)) {
7723 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7724 }
7725 if (!argp1) {
7726 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7727 }
7728 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7729 {
7730 if (!wxPyCheckForApp()) SWIG_fail;
7731 PyThreadState* __tstate = wxPyBeginAllowThreads();
7732 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
7733 wxPyEndAllowThreads(__tstate);
7734 if (PyErr_Occurred()) SWIG_fail;
7735 }
7736 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7737 return resultobj;
7738 fail:
7739 return NULL;
7740 }
7741
7742
7743 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7744 PyObject *resultobj = 0;
7745 wxBitmap *arg1 = 0 ;
7746 wxColour *arg2 = 0 ;
7747 int arg3 = (int) 0 ;
7748 wxRegion *result = 0 ;
7749 void *argp1 = 0 ;
7750 int res1 = 0 ;
7751 wxColour temp2 ;
7752 int val3 ;
7753 int ecode3 = 0 ;
7754 PyObject * obj0 = 0 ;
7755 PyObject * obj1 = 0 ;
7756 PyObject * obj2 = 0 ;
7757 char * kwnames[] = {
7758 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
7759 };
7760
7761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7762 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
7763 if (!SWIG_IsOK(res1)) {
7764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7765 }
7766 if (!argp1) {
7767 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
7768 }
7769 arg1 = reinterpret_cast< wxBitmap * >(argp1);
7770 {
7771 arg2 = &temp2;
7772 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
7773 }
7774 if (obj2) {
7775 ecode3 = SWIG_AsVal_int(obj2, &val3);
7776 if (!SWIG_IsOK(ecode3)) {
7777 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
7778 }
7779 arg3 = static_cast< int >(val3);
7780 }
7781 {
7782 if (!wxPyCheckForApp()) SWIG_fail;
7783 PyThreadState* __tstate = wxPyBeginAllowThreads();
7784 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
7785 wxPyEndAllowThreads(__tstate);
7786 if (PyErr_Occurred()) SWIG_fail;
7787 }
7788 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7789 return resultobj;
7790 fail:
7791 return NULL;
7792 }
7793
7794
7795 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7796 PyObject *resultobj = 0;
7797 int arg1 ;
7798 wxPoint *arg2 = (wxPoint *) 0 ;
7799 int arg3 = (int) wxWINDING_RULE ;
7800 wxRegion *result = 0 ;
7801 int val3 ;
7802 int ecode3 = 0 ;
7803 PyObject * obj0 = 0 ;
7804 PyObject * obj1 = 0 ;
7805 char * kwnames[] = {
7806 (char *) "points",(char *) "fillStyle", NULL
7807 };
7808
7809 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
7810 {
7811 arg2 = wxPoint_LIST_helper(obj0, &arg1);
7812 if (arg2 == NULL) SWIG_fail;
7813 }
7814 if (obj1) {
7815 ecode3 = SWIG_AsVal_int(obj1, &val3);
7816 if (!SWIG_IsOK(ecode3)) {
7817 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
7818 }
7819 arg3 = static_cast< int >(val3);
7820 }
7821 {
7822 if (!wxPyCheckForApp()) SWIG_fail;
7823 PyThreadState* __tstate = wxPyBeginAllowThreads();
7824 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
7825 wxPyEndAllowThreads(__tstate);
7826 if (PyErr_Occurred()) SWIG_fail;
7827 }
7828 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
7829 {
7830 if (arg2) delete [] arg2;
7831 }
7832 return resultobj;
7833 fail:
7834 {
7835 if (arg2) delete [] arg2;
7836 }
7837 return NULL;
7838 }
7839
7840
7841 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7842 PyObject *resultobj = 0;
7843 wxRegion *arg1 = (wxRegion *) 0 ;
7844 void *argp1 = 0 ;
7845 int res1 = 0 ;
7846 PyObject *swig_obj[1] ;
7847
7848 if (!args) SWIG_fail;
7849 swig_obj[0] = args;
7850 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
7851 if (!SWIG_IsOK(res1)) {
7852 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
7853 }
7854 arg1 = reinterpret_cast< wxRegion * >(argp1);
7855 {
7856 PyThreadState* __tstate = wxPyBeginAllowThreads();
7857 delete arg1;
7858
7859 wxPyEndAllowThreads(__tstate);
7860 if (PyErr_Occurred()) SWIG_fail;
7861 }
7862 resultobj = SWIG_Py_Void();
7863 return resultobj;
7864 fail:
7865 return NULL;
7866 }
7867
7868
7869 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7870 PyObject *resultobj = 0;
7871 wxRegion *arg1 = (wxRegion *) 0 ;
7872 void *argp1 = 0 ;
7873 int res1 = 0 ;
7874 PyObject *swig_obj[1] ;
7875
7876 if (!args) SWIG_fail;
7877 swig_obj[0] = args;
7878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7879 if (!SWIG_IsOK(res1)) {
7880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
7881 }
7882 arg1 = reinterpret_cast< wxRegion * >(argp1);
7883 {
7884 PyThreadState* __tstate = wxPyBeginAllowThreads();
7885 (arg1)->Clear();
7886 wxPyEndAllowThreads(__tstate);
7887 if (PyErr_Occurred()) SWIG_fail;
7888 }
7889 resultobj = SWIG_Py_Void();
7890 return resultobj;
7891 fail:
7892 return NULL;
7893 }
7894
7895
7896 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7897 PyObject *resultobj = 0;
7898 wxRegion *arg1 = (wxRegion *) 0 ;
7899 int arg2 ;
7900 int arg3 ;
7901 bool result;
7902 void *argp1 = 0 ;
7903 int res1 = 0 ;
7904 int val2 ;
7905 int ecode2 = 0 ;
7906 int val3 ;
7907 int ecode3 = 0 ;
7908 PyObject * obj0 = 0 ;
7909 PyObject * obj1 = 0 ;
7910 PyObject * obj2 = 0 ;
7911 char * kwnames[] = {
7912 (char *) "self",(char *) "x",(char *) "y", NULL
7913 };
7914
7915 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7916 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7917 if (!SWIG_IsOK(res1)) {
7918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
7919 }
7920 arg1 = reinterpret_cast< wxRegion * >(argp1);
7921 ecode2 = SWIG_AsVal_int(obj1, &val2);
7922 if (!SWIG_IsOK(ecode2)) {
7923 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
7924 }
7925 arg2 = static_cast< int >(val2);
7926 ecode3 = SWIG_AsVal_int(obj2, &val3);
7927 if (!SWIG_IsOK(ecode3)) {
7928 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
7929 }
7930 arg3 = static_cast< int >(val3);
7931 {
7932 PyThreadState* __tstate = wxPyBeginAllowThreads();
7933 result = (bool)(arg1)->Offset(arg2,arg3);
7934 wxPyEndAllowThreads(__tstate);
7935 if (PyErr_Occurred()) SWIG_fail;
7936 }
7937 {
7938 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7939 }
7940 return resultobj;
7941 fail:
7942 return NULL;
7943 }
7944
7945
7946 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7947 PyObject *resultobj = 0;
7948 wxRegion *arg1 = (wxRegion *) 0 ;
7949 int arg2 ;
7950 int arg3 ;
7951 wxRegionContain result;
7952 void *argp1 = 0 ;
7953 int res1 = 0 ;
7954 int val2 ;
7955 int ecode2 = 0 ;
7956 int val3 ;
7957 int ecode3 = 0 ;
7958 PyObject * obj0 = 0 ;
7959 PyObject * obj1 = 0 ;
7960 PyObject * obj2 = 0 ;
7961 char * kwnames[] = {
7962 (char *) "self",(char *) "x",(char *) "y", NULL
7963 };
7964
7965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
7967 if (!SWIG_IsOK(res1)) {
7968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
7969 }
7970 arg1 = reinterpret_cast< wxRegion * >(argp1);
7971 ecode2 = SWIG_AsVal_int(obj1, &val2);
7972 if (!SWIG_IsOK(ecode2)) {
7973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
7974 }
7975 arg2 = static_cast< int >(val2);
7976 ecode3 = SWIG_AsVal_int(obj2, &val3);
7977 if (!SWIG_IsOK(ecode3)) {
7978 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
7979 }
7980 arg3 = static_cast< int >(val3);
7981 {
7982 PyThreadState* __tstate = wxPyBeginAllowThreads();
7983 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
7984 wxPyEndAllowThreads(__tstate);
7985 if (PyErr_Occurred()) SWIG_fail;
7986 }
7987 resultobj = SWIG_From_int(static_cast< int >(result));
7988 return resultobj;
7989 fail:
7990 return NULL;
7991 }
7992
7993
7994 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7995 PyObject *resultobj = 0;
7996 wxRegion *arg1 = (wxRegion *) 0 ;
7997 wxPoint *arg2 = 0 ;
7998 wxRegionContain result;
7999 void *argp1 = 0 ;
8000 int res1 = 0 ;
8001 wxPoint temp2 ;
8002 PyObject * obj0 = 0 ;
8003 PyObject * obj1 = 0 ;
8004 char * kwnames[] = {
8005 (char *) "self",(char *) "pt", NULL
8006 };
8007
8008 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8009 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8010 if (!SWIG_IsOK(res1)) {
8011 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8012 }
8013 arg1 = reinterpret_cast< wxRegion * >(argp1);
8014 {
8015 arg2 = &temp2;
8016 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8017 }
8018 {
8019 PyThreadState* __tstate = wxPyBeginAllowThreads();
8020 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8021 wxPyEndAllowThreads(__tstate);
8022 if (PyErr_Occurred()) SWIG_fail;
8023 }
8024 resultobj = SWIG_From_int(static_cast< int >(result));
8025 return resultobj;
8026 fail:
8027 return NULL;
8028 }
8029
8030
8031 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8032 PyObject *resultobj = 0;
8033 wxRegion *arg1 = (wxRegion *) 0 ;
8034 wxRect *arg2 = 0 ;
8035 wxRegionContain result;
8036 void *argp1 = 0 ;
8037 int res1 = 0 ;
8038 wxRect temp2 ;
8039 PyObject * obj0 = 0 ;
8040 PyObject * obj1 = 0 ;
8041 char * kwnames[] = {
8042 (char *) "self",(char *) "rect", NULL
8043 };
8044
8045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8047 if (!SWIG_IsOK(res1)) {
8048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8049 }
8050 arg1 = reinterpret_cast< wxRegion * >(argp1);
8051 {
8052 arg2 = &temp2;
8053 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8054 }
8055 {
8056 PyThreadState* __tstate = wxPyBeginAllowThreads();
8057 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8058 wxPyEndAllowThreads(__tstate);
8059 if (PyErr_Occurred()) SWIG_fail;
8060 }
8061 resultobj = SWIG_From_int(static_cast< int >(result));
8062 return resultobj;
8063 fail:
8064 return NULL;
8065 }
8066
8067
8068 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8069 PyObject *resultobj = 0;
8070 wxRegion *arg1 = (wxRegion *) 0 ;
8071 int arg2 ;
8072 int arg3 ;
8073 int arg4 ;
8074 int arg5 ;
8075 wxRegionContain result;
8076 void *argp1 = 0 ;
8077 int res1 = 0 ;
8078 int val2 ;
8079 int ecode2 = 0 ;
8080 int val3 ;
8081 int ecode3 = 0 ;
8082 int val4 ;
8083 int ecode4 = 0 ;
8084 int val5 ;
8085 int ecode5 = 0 ;
8086 PyObject * obj0 = 0 ;
8087 PyObject * obj1 = 0 ;
8088 PyObject * obj2 = 0 ;
8089 PyObject * obj3 = 0 ;
8090 PyObject * obj4 = 0 ;
8091 char * kwnames[] = {
8092 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8093 };
8094
8095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8097 if (!SWIG_IsOK(res1)) {
8098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8099 }
8100 arg1 = reinterpret_cast< wxRegion * >(argp1);
8101 ecode2 = SWIG_AsVal_int(obj1, &val2);
8102 if (!SWIG_IsOK(ecode2)) {
8103 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8104 }
8105 arg2 = static_cast< int >(val2);
8106 ecode3 = SWIG_AsVal_int(obj2, &val3);
8107 if (!SWIG_IsOK(ecode3)) {
8108 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8109 }
8110 arg3 = static_cast< int >(val3);
8111 ecode4 = SWIG_AsVal_int(obj3, &val4);
8112 if (!SWIG_IsOK(ecode4)) {
8113 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8114 }
8115 arg4 = static_cast< int >(val4);
8116 ecode5 = SWIG_AsVal_int(obj4, &val5);
8117 if (!SWIG_IsOK(ecode5)) {
8118 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8119 }
8120 arg5 = static_cast< int >(val5);
8121 {
8122 PyThreadState* __tstate = wxPyBeginAllowThreads();
8123 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8124 wxPyEndAllowThreads(__tstate);
8125 if (PyErr_Occurred()) SWIG_fail;
8126 }
8127 resultobj = SWIG_From_int(static_cast< int >(result));
8128 return resultobj;
8129 fail:
8130 return NULL;
8131 }
8132
8133
8134 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8135 PyObject *resultobj = 0;
8136 wxRegion *arg1 = (wxRegion *) 0 ;
8137 wxRect result;
8138 void *argp1 = 0 ;
8139 int res1 = 0 ;
8140 PyObject *swig_obj[1] ;
8141
8142 if (!args) SWIG_fail;
8143 swig_obj[0] = args;
8144 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8145 if (!SWIG_IsOK(res1)) {
8146 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8147 }
8148 arg1 = reinterpret_cast< wxRegion * >(argp1);
8149 {
8150 PyThreadState* __tstate = wxPyBeginAllowThreads();
8151 result = (arg1)->GetBox();
8152 wxPyEndAllowThreads(__tstate);
8153 if (PyErr_Occurred()) SWIG_fail;
8154 }
8155 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8156 return resultobj;
8157 fail:
8158 return NULL;
8159 }
8160
8161
8162 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8163 PyObject *resultobj = 0;
8164 wxRegion *arg1 = (wxRegion *) 0 ;
8165 int arg2 ;
8166 int arg3 ;
8167 int arg4 ;
8168 int arg5 ;
8169 bool result;
8170 void *argp1 = 0 ;
8171 int res1 = 0 ;
8172 int val2 ;
8173 int ecode2 = 0 ;
8174 int val3 ;
8175 int ecode3 = 0 ;
8176 int val4 ;
8177 int ecode4 = 0 ;
8178 int val5 ;
8179 int ecode5 = 0 ;
8180 PyObject * obj0 = 0 ;
8181 PyObject * obj1 = 0 ;
8182 PyObject * obj2 = 0 ;
8183 PyObject * obj3 = 0 ;
8184 PyObject * obj4 = 0 ;
8185 char * kwnames[] = {
8186 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8187 };
8188
8189 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8190 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8191 if (!SWIG_IsOK(res1)) {
8192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8193 }
8194 arg1 = reinterpret_cast< wxRegion * >(argp1);
8195 ecode2 = SWIG_AsVal_int(obj1, &val2);
8196 if (!SWIG_IsOK(ecode2)) {
8197 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8198 }
8199 arg2 = static_cast< int >(val2);
8200 ecode3 = SWIG_AsVal_int(obj2, &val3);
8201 if (!SWIG_IsOK(ecode3)) {
8202 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8203 }
8204 arg3 = static_cast< int >(val3);
8205 ecode4 = SWIG_AsVal_int(obj3, &val4);
8206 if (!SWIG_IsOK(ecode4)) {
8207 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8208 }
8209 arg4 = static_cast< int >(val4);
8210 ecode5 = SWIG_AsVal_int(obj4, &val5);
8211 if (!SWIG_IsOK(ecode5)) {
8212 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8213 }
8214 arg5 = static_cast< int >(val5);
8215 {
8216 PyThreadState* __tstate = wxPyBeginAllowThreads();
8217 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8218 wxPyEndAllowThreads(__tstate);
8219 if (PyErr_Occurred()) SWIG_fail;
8220 }
8221 {
8222 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8223 }
8224 return resultobj;
8225 fail:
8226 return NULL;
8227 }
8228
8229
8230 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8231 PyObject *resultobj = 0;
8232 wxRegion *arg1 = (wxRegion *) 0 ;
8233 wxRect *arg2 = 0 ;
8234 bool result;
8235 void *argp1 = 0 ;
8236 int res1 = 0 ;
8237 wxRect temp2 ;
8238 PyObject * obj0 = 0 ;
8239 PyObject * obj1 = 0 ;
8240 char * kwnames[] = {
8241 (char *) "self",(char *) "rect", NULL
8242 };
8243
8244 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8245 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8246 if (!SWIG_IsOK(res1)) {
8247 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8248 }
8249 arg1 = reinterpret_cast< wxRegion * >(argp1);
8250 {
8251 arg2 = &temp2;
8252 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8253 }
8254 {
8255 PyThreadState* __tstate = wxPyBeginAllowThreads();
8256 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8257 wxPyEndAllowThreads(__tstate);
8258 if (PyErr_Occurred()) SWIG_fail;
8259 }
8260 {
8261 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8262 }
8263 return resultobj;
8264 fail:
8265 return NULL;
8266 }
8267
8268
8269 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8270 PyObject *resultobj = 0;
8271 wxRegion *arg1 = (wxRegion *) 0 ;
8272 wxRegion *arg2 = 0 ;
8273 bool result;
8274 void *argp1 = 0 ;
8275 int res1 = 0 ;
8276 void *argp2 = 0 ;
8277 int res2 = 0 ;
8278 PyObject * obj0 = 0 ;
8279 PyObject * obj1 = 0 ;
8280 char * kwnames[] = {
8281 (char *) "self",(char *) "region", NULL
8282 };
8283
8284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8286 if (!SWIG_IsOK(res1)) {
8287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8288 }
8289 arg1 = reinterpret_cast< wxRegion * >(argp1);
8290 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8291 if (!SWIG_IsOK(res2)) {
8292 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8293 }
8294 if (!argp2) {
8295 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8296 }
8297 arg2 = reinterpret_cast< wxRegion * >(argp2);
8298 {
8299 PyThreadState* __tstate = wxPyBeginAllowThreads();
8300 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8301 wxPyEndAllowThreads(__tstate);
8302 if (PyErr_Occurred()) SWIG_fail;
8303 }
8304 {
8305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8306 }
8307 return resultobj;
8308 fail:
8309 return NULL;
8310 }
8311
8312
8313 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8314 PyObject *resultobj = 0;
8315 wxRegion *arg1 = (wxRegion *) 0 ;
8316 bool result;
8317 void *argp1 = 0 ;
8318 int res1 = 0 ;
8319 PyObject *swig_obj[1] ;
8320
8321 if (!args) SWIG_fail;
8322 swig_obj[0] = args;
8323 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8324 if (!SWIG_IsOK(res1)) {
8325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8326 }
8327 arg1 = reinterpret_cast< wxRegion * >(argp1);
8328 {
8329 PyThreadState* __tstate = wxPyBeginAllowThreads();
8330 result = (bool)(arg1)->IsEmpty();
8331 wxPyEndAllowThreads(__tstate);
8332 if (PyErr_Occurred()) SWIG_fail;
8333 }
8334 {
8335 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8336 }
8337 return resultobj;
8338 fail:
8339 return NULL;
8340 }
8341
8342
8343 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8344 PyObject *resultobj = 0;
8345 wxRegion *arg1 = (wxRegion *) 0 ;
8346 int arg2 ;
8347 int arg3 ;
8348 int arg4 ;
8349 int arg5 ;
8350 bool result;
8351 void *argp1 = 0 ;
8352 int res1 = 0 ;
8353 int val2 ;
8354 int ecode2 = 0 ;
8355 int val3 ;
8356 int ecode3 = 0 ;
8357 int val4 ;
8358 int ecode4 = 0 ;
8359 int val5 ;
8360 int ecode5 = 0 ;
8361 PyObject * obj0 = 0 ;
8362 PyObject * obj1 = 0 ;
8363 PyObject * obj2 = 0 ;
8364 PyObject * obj3 = 0 ;
8365 PyObject * obj4 = 0 ;
8366 char * kwnames[] = {
8367 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8368 };
8369
8370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8372 if (!SWIG_IsOK(res1)) {
8373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
8374 }
8375 arg1 = reinterpret_cast< wxRegion * >(argp1);
8376 ecode2 = SWIG_AsVal_int(obj1, &val2);
8377 if (!SWIG_IsOK(ecode2)) {
8378 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
8379 }
8380 arg2 = static_cast< int >(val2);
8381 ecode3 = SWIG_AsVal_int(obj2, &val3);
8382 if (!SWIG_IsOK(ecode3)) {
8383 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
8384 }
8385 arg3 = static_cast< int >(val3);
8386 ecode4 = SWIG_AsVal_int(obj3, &val4);
8387 if (!SWIG_IsOK(ecode4)) {
8388 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
8389 }
8390 arg4 = static_cast< int >(val4);
8391 ecode5 = SWIG_AsVal_int(obj4, &val5);
8392 if (!SWIG_IsOK(ecode5)) {
8393 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
8394 }
8395 arg5 = static_cast< int >(val5);
8396 {
8397 PyThreadState* __tstate = wxPyBeginAllowThreads();
8398 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
8399 wxPyEndAllowThreads(__tstate);
8400 if (PyErr_Occurred()) SWIG_fail;
8401 }
8402 {
8403 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8404 }
8405 return resultobj;
8406 fail:
8407 return NULL;
8408 }
8409
8410
8411 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8412 PyObject *resultobj = 0;
8413 wxRegion *arg1 = (wxRegion *) 0 ;
8414 wxRect *arg2 = 0 ;
8415 bool result;
8416 void *argp1 = 0 ;
8417 int res1 = 0 ;
8418 wxRect temp2 ;
8419 PyObject * obj0 = 0 ;
8420 PyObject * obj1 = 0 ;
8421 char * kwnames[] = {
8422 (char *) "self",(char *) "rect", NULL
8423 };
8424
8425 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
8426 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8427 if (!SWIG_IsOK(res1)) {
8428 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8429 }
8430 arg1 = reinterpret_cast< wxRegion * >(argp1);
8431 {
8432 arg2 = &temp2;
8433 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8434 }
8435 {
8436 PyThreadState* __tstate = wxPyBeginAllowThreads();
8437 result = (bool)(arg1)->Union((wxRect const &)*arg2);
8438 wxPyEndAllowThreads(__tstate);
8439 if (PyErr_Occurred()) SWIG_fail;
8440 }
8441 {
8442 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8443 }
8444 return resultobj;
8445 fail:
8446 return NULL;
8447 }
8448
8449
8450 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8451 PyObject *resultobj = 0;
8452 wxRegion *arg1 = (wxRegion *) 0 ;
8453 wxRegion *arg2 = 0 ;
8454 bool result;
8455 void *argp1 = 0 ;
8456 int res1 = 0 ;
8457 void *argp2 = 0 ;
8458 int res2 = 0 ;
8459 PyObject * obj0 = 0 ;
8460 PyObject * obj1 = 0 ;
8461 char * kwnames[] = {
8462 (char *) "self",(char *) "region", NULL
8463 };
8464
8465 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8466 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8467 if (!SWIG_IsOK(res1)) {
8468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8469 }
8470 arg1 = reinterpret_cast< wxRegion * >(argp1);
8471 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8472 if (!SWIG_IsOK(res2)) {
8473 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8474 }
8475 if (!argp2) {
8476 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8477 }
8478 arg2 = reinterpret_cast< wxRegion * >(argp2);
8479 {
8480 PyThreadState* __tstate = wxPyBeginAllowThreads();
8481 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
8482 wxPyEndAllowThreads(__tstate);
8483 if (PyErr_Occurred()) SWIG_fail;
8484 }
8485 {
8486 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8487 }
8488 return resultobj;
8489 fail:
8490 return NULL;
8491 }
8492
8493
8494 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8495 PyObject *resultobj = 0;
8496 wxRegion *arg1 = (wxRegion *) 0 ;
8497 int arg2 ;
8498 int arg3 ;
8499 int arg4 ;
8500 int arg5 ;
8501 bool result;
8502 void *argp1 = 0 ;
8503 int res1 = 0 ;
8504 int val2 ;
8505 int ecode2 = 0 ;
8506 int val3 ;
8507 int ecode3 = 0 ;
8508 int val4 ;
8509 int ecode4 = 0 ;
8510 int val5 ;
8511 int ecode5 = 0 ;
8512 PyObject * obj0 = 0 ;
8513 PyObject * obj1 = 0 ;
8514 PyObject * obj2 = 0 ;
8515 PyObject * obj3 = 0 ;
8516 PyObject * obj4 = 0 ;
8517 char * kwnames[] = {
8518 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8519 };
8520
8521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8523 if (!SWIG_IsOK(res1)) {
8524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
8525 }
8526 arg1 = reinterpret_cast< wxRegion * >(argp1);
8527 ecode2 = SWIG_AsVal_int(obj1, &val2);
8528 if (!SWIG_IsOK(ecode2)) {
8529 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
8530 }
8531 arg2 = static_cast< int >(val2);
8532 ecode3 = SWIG_AsVal_int(obj2, &val3);
8533 if (!SWIG_IsOK(ecode3)) {
8534 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
8535 }
8536 arg3 = static_cast< int >(val3);
8537 ecode4 = SWIG_AsVal_int(obj3, &val4);
8538 if (!SWIG_IsOK(ecode4)) {
8539 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
8540 }
8541 arg4 = static_cast< int >(val4);
8542 ecode5 = SWIG_AsVal_int(obj4, &val5);
8543 if (!SWIG_IsOK(ecode5)) {
8544 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
8545 }
8546 arg5 = static_cast< int >(val5);
8547 {
8548 PyThreadState* __tstate = wxPyBeginAllowThreads();
8549 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
8550 wxPyEndAllowThreads(__tstate);
8551 if (PyErr_Occurred()) SWIG_fail;
8552 }
8553 {
8554 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8555 }
8556 return resultobj;
8557 fail:
8558 return NULL;
8559 }
8560
8561
8562 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8563 PyObject *resultobj = 0;
8564 wxRegion *arg1 = (wxRegion *) 0 ;
8565 wxRect *arg2 = 0 ;
8566 bool result;
8567 void *argp1 = 0 ;
8568 int res1 = 0 ;
8569 wxRect temp2 ;
8570 PyObject * obj0 = 0 ;
8571 PyObject * obj1 = 0 ;
8572 char * kwnames[] = {
8573 (char *) "self",(char *) "rect", NULL
8574 };
8575
8576 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
8577 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8578 if (!SWIG_IsOK(res1)) {
8579 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8580 }
8581 arg1 = reinterpret_cast< wxRegion * >(argp1);
8582 {
8583 arg2 = &temp2;
8584 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8585 }
8586 {
8587 PyThreadState* __tstate = wxPyBeginAllowThreads();
8588 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
8589 wxPyEndAllowThreads(__tstate);
8590 if (PyErr_Occurred()) SWIG_fail;
8591 }
8592 {
8593 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8594 }
8595 return resultobj;
8596 fail:
8597 return NULL;
8598 }
8599
8600
8601 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8602 PyObject *resultobj = 0;
8603 wxRegion *arg1 = (wxRegion *) 0 ;
8604 wxRegion *arg2 = 0 ;
8605 bool result;
8606 void *argp1 = 0 ;
8607 int res1 = 0 ;
8608 void *argp2 = 0 ;
8609 int res2 = 0 ;
8610 PyObject * obj0 = 0 ;
8611 PyObject * obj1 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "self",(char *) "region", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8617 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8618 if (!SWIG_IsOK(res1)) {
8619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8620 }
8621 arg1 = reinterpret_cast< wxRegion * >(argp1);
8622 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8623 if (!SWIG_IsOK(res2)) {
8624 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8625 }
8626 if (!argp2) {
8627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8628 }
8629 arg2 = reinterpret_cast< wxRegion * >(argp2);
8630 {
8631 PyThreadState* __tstate = wxPyBeginAllowThreads();
8632 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
8633 wxPyEndAllowThreads(__tstate);
8634 if (PyErr_Occurred()) SWIG_fail;
8635 }
8636 {
8637 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8638 }
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj = 0;
8647 wxRegion *arg1 = (wxRegion *) 0 ;
8648 int arg2 ;
8649 int arg3 ;
8650 int arg4 ;
8651 int arg5 ;
8652 bool result;
8653 void *argp1 = 0 ;
8654 int res1 = 0 ;
8655 int val2 ;
8656 int ecode2 = 0 ;
8657 int val3 ;
8658 int ecode3 = 0 ;
8659 int val4 ;
8660 int ecode4 = 0 ;
8661 int val5 ;
8662 int ecode5 = 0 ;
8663 PyObject * obj0 = 0 ;
8664 PyObject * obj1 = 0 ;
8665 PyObject * obj2 = 0 ;
8666 PyObject * obj3 = 0 ;
8667 PyObject * obj4 = 0 ;
8668 char * kwnames[] = {
8669 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8670 };
8671
8672 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8673 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8674 if (!SWIG_IsOK(res1)) {
8675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
8676 }
8677 arg1 = reinterpret_cast< wxRegion * >(argp1);
8678 ecode2 = SWIG_AsVal_int(obj1, &val2);
8679 if (!SWIG_IsOK(ecode2)) {
8680 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
8681 }
8682 arg2 = static_cast< int >(val2);
8683 ecode3 = SWIG_AsVal_int(obj2, &val3);
8684 if (!SWIG_IsOK(ecode3)) {
8685 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
8686 }
8687 arg3 = static_cast< int >(val3);
8688 ecode4 = SWIG_AsVal_int(obj3, &val4);
8689 if (!SWIG_IsOK(ecode4)) {
8690 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
8691 }
8692 arg4 = static_cast< int >(val4);
8693 ecode5 = SWIG_AsVal_int(obj4, &val5);
8694 if (!SWIG_IsOK(ecode5)) {
8695 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
8696 }
8697 arg5 = static_cast< int >(val5);
8698 {
8699 PyThreadState* __tstate = wxPyBeginAllowThreads();
8700 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
8701 wxPyEndAllowThreads(__tstate);
8702 if (PyErr_Occurred()) SWIG_fail;
8703 }
8704 {
8705 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8706 }
8707 return resultobj;
8708 fail:
8709 return NULL;
8710 }
8711
8712
8713 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8714 PyObject *resultobj = 0;
8715 wxRegion *arg1 = (wxRegion *) 0 ;
8716 wxRect *arg2 = 0 ;
8717 bool result;
8718 void *argp1 = 0 ;
8719 int res1 = 0 ;
8720 wxRect temp2 ;
8721 PyObject * obj0 = 0 ;
8722 PyObject * obj1 = 0 ;
8723 char * kwnames[] = {
8724 (char *) "self",(char *) "rect", NULL
8725 };
8726
8727 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
8728 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8729 if (!SWIG_IsOK(res1)) {
8730 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8731 }
8732 arg1 = reinterpret_cast< wxRegion * >(argp1);
8733 {
8734 arg2 = &temp2;
8735 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8736 }
8737 {
8738 PyThreadState* __tstate = wxPyBeginAllowThreads();
8739 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
8740 wxPyEndAllowThreads(__tstate);
8741 if (PyErr_Occurred()) SWIG_fail;
8742 }
8743 {
8744 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8745 }
8746 return resultobj;
8747 fail:
8748 return NULL;
8749 }
8750
8751
8752 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8753 PyObject *resultobj = 0;
8754 wxRegion *arg1 = (wxRegion *) 0 ;
8755 wxRegion *arg2 = 0 ;
8756 bool result;
8757 void *argp1 = 0 ;
8758 int res1 = 0 ;
8759 void *argp2 = 0 ;
8760 int res2 = 0 ;
8761 PyObject * obj0 = 0 ;
8762 PyObject * obj1 = 0 ;
8763 char * kwnames[] = {
8764 (char *) "self",(char *) "region", NULL
8765 };
8766
8767 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8768 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8769 if (!SWIG_IsOK(res1)) {
8770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8771 }
8772 arg1 = reinterpret_cast< wxRegion * >(argp1);
8773 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8774 if (!SWIG_IsOK(res2)) {
8775 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8776 }
8777 if (!argp2) {
8778 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8779 }
8780 arg2 = reinterpret_cast< wxRegion * >(argp2);
8781 {
8782 PyThreadState* __tstate = wxPyBeginAllowThreads();
8783 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
8784 wxPyEndAllowThreads(__tstate);
8785 if (PyErr_Occurred()) SWIG_fail;
8786 }
8787 {
8788 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8789 }
8790 return resultobj;
8791 fail:
8792 return NULL;
8793 }
8794
8795
8796 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8797 PyObject *resultobj = 0;
8798 wxRegion *arg1 = (wxRegion *) 0 ;
8799 SwigValueWrapper<wxBitmap > result;
8800 void *argp1 = 0 ;
8801 int res1 = 0 ;
8802 PyObject *swig_obj[1] ;
8803
8804 if (!args) SWIG_fail;
8805 swig_obj[0] = args;
8806 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8807 if (!SWIG_IsOK(res1)) {
8808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8809 }
8810 arg1 = reinterpret_cast< wxRegion * >(argp1);
8811 {
8812 PyThreadState* __tstate = wxPyBeginAllowThreads();
8813 result = (arg1)->ConvertToBitmap();
8814 wxPyEndAllowThreads(__tstate);
8815 if (PyErr_Occurred()) SWIG_fail;
8816 }
8817 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
8818 return resultobj;
8819 fail:
8820 return NULL;
8821 }
8822
8823
8824 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8825 PyObject *resultobj = 0;
8826 wxRegion *arg1 = (wxRegion *) 0 ;
8827 wxBitmap *arg2 = 0 ;
8828 bool result;
8829 void *argp1 = 0 ;
8830 int res1 = 0 ;
8831 void *argp2 = 0 ;
8832 int res2 = 0 ;
8833 PyObject * obj0 = 0 ;
8834 PyObject * obj1 = 0 ;
8835 char * kwnames[] = {
8836 (char *) "self",(char *) "bmp", NULL
8837 };
8838
8839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) 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_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
8843 }
8844 arg1 = reinterpret_cast< wxRegion * >(argp1);
8845 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8846 if (!SWIG_IsOK(res2)) {
8847 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8848 }
8849 if (!argp2) {
8850 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8851 }
8852 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8853 {
8854 PyThreadState* __tstate = wxPyBeginAllowThreads();
8855 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
8856 wxPyEndAllowThreads(__tstate);
8857 if (PyErr_Occurred()) SWIG_fail;
8858 }
8859 {
8860 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8861 }
8862 return resultobj;
8863 fail:
8864 return NULL;
8865 }
8866
8867
8868 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8869 PyObject *resultobj = 0;
8870 wxRegion *arg1 = (wxRegion *) 0 ;
8871 wxBitmap *arg2 = 0 ;
8872 wxColour *arg3 = 0 ;
8873 int arg4 = (int) 0 ;
8874 bool result;
8875 void *argp1 = 0 ;
8876 int res1 = 0 ;
8877 void *argp2 = 0 ;
8878 int res2 = 0 ;
8879 wxColour temp3 ;
8880 int val4 ;
8881 int ecode4 = 0 ;
8882 PyObject * obj0 = 0 ;
8883 PyObject * obj1 = 0 ;
8884 PyObject * obj2 = 0 ;
8885 PyObject * obj3 = 0 ;
8886 char * kwnames[] = {
8887 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8888 };
8889
8890 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8891 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8892 if (!SWIG_IsOK(res1)) {
8893 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
8894 }
8895 arg1 = reinterpret_cast< wxRegion * >(argp1);
8896 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
8897 if (!SWIG_IsOK(res2)) {
8898 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8899 }
8900 if (!argp2) {
8901 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
8902 }
8903 arg2 = reinterpret_cast< wxBitmap * >(argp2);
8904 {
8905 arg3 = &temp3;
8906 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
8907 }
8908 if (obj3) {
8909 ecode4 = SWIG_AsVal_int(obj3, &val4);
8910 if (!SWIG_IsOK(ecode4)) {
8911 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
8912 }
8913 arg4 = static_cast< int >(val4);
8914 }
8915 {
8916 PyThreadState* __tstate = wxPyBeginAllowThreads();
8917 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
8918 wxPyEndAllowThreads(__tstate);
8919 if (PyErr_Occurred()) SWIG_fail;
8920 }
8921 {
8922 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8923 }
8924 return resultobj;
8925 fail:
8926 return NULL;
8927 }
8928
8929
8930 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8931 PyObject *obj;
8932 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8933 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
8934 return SWIG_Py_Void();
8935 }
8936
8937 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8938 return SWIG_Python_InitShadowInstance(args);
8939 }
8940
8941 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8942 PyObject *resultobj = 0;
8943 wxRegion *arg1 = 0 ;
8944 wxRegionIterator *result = 0 ;
8945 void *argp1 = 0 ;
8946 int res1 = 0 ;
8947 PyObject * obj0 = 0 ;
8948 char * kwnames[] = {
8949 (char *) "region", NULL
8950 };
8951
8952 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
8953 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
8954 if (!SWIG_IsOK(res1)) {
8955 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8956 }
8957 if (!argp1) {
8958 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
8959 }
8960 arg1 = reinterpret_cast< wxRegion * >(argp1);
8961 {
8962 if (!wxPyCheckForApp()) SWIG_fail;
8963 PyThreadState* __tstate = wxPyBeginAllowThreads();
8964 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
8965 wxPyEndAllowThreads(__tstate);
8966 if (PyErr_Occurred()) SWIG_fail;
8967 }
8968 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
8969 return resultobj;
8970 fail:
8971 return NULL;
8972 }
8973
8974
8975 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8976 PyObject *resultobj = 0;
8977 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
8978 void *argp1 = 0 ;
8979 int res1 = 0 ;
8980 PyObject *swig_obj[1] ;
8981
8982 if (!args) SWIG_fail;
8983 swig_obj[0] = args;
8984 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
8985 if (!SWIG_IsOK(res1)) {
8986 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
8987 }
8988 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
8989 {
8990 PyThreadState* __tstate = wxPyBeginAllowThreads();
8991 delete arg1;
8992
8993 wxPyEndAllowThreads(__tstate);
8994 if (PyErr_Occurred()) SWIG_fail;
8995 }
8996 resultobj = SWIG_Py_Void();
8997 return resultobj;
8998 fail:
8999 return NULL;
9000 }
9001
9002
9003 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9004 PyObject *resultobj = 0;
9005 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9006 int result;
9007 void *argp1 = 0 ;
9008 int res1 = 0 ;
9009 PyObject *swig_obj[1] ;
9010
9011 if (!args) SWIG_fail;
9012 swig_obj[0] = args;
9013 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9014 if (!SWIG_IsOK(res1)) {
9015 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9016 }
9017 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9018 {
9019 PyThreadState* __tstate = wxPyBeginAllowThreads();
9020 result = (int)(arg1)->GetX();
9021 wxPyEndAllowThreads(__tstate);
9022 if (PyErr_Occurred()) SWIG_fail;
9023 }
9024 resultobj = SWIG_From_int(static_cast< int >(result));
9025 return resultobj;
9026 fail:
9027 return NULL;
9028 }
9029
9030
9031 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9032 PyObject *resultobj = 0;
9033 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9034 int result;
9035 void *argp1 = 0 ;
9036 int res1 = 0 ;
9037 PyObject *swig_obj[1] ;
9038
9039 if (!args) SWIG_fail;
9040 swig_obj[0] = args;
9041 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9042 if (!SWIG_IsOK(res1)) {
9043 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9044 }
9045 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9046 {
9047 PyThreadState* __tstate = wxPyBeginAllowThreads();
9048 result = (int)(arg1)->GetY();
9049 wxPyEndAllowThreads(__tstate);
9050 if (PyErr_Occurred()) SWIG_fail;
9051 }
9052 resultobj = SWIG_From_int(static_cast< int >(result));
9053 return resultobj;
9054 fail:
9055 return NULL;
9056 }
9057
9058
9059 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9060 PyObject *resultobj = 0;
9061 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9062 int result;
9063 void *argp1 = 0 ;
9064 int res1 = 0 ;
9065 PyObject *swig_obj[1] ;
9066
9067 if (!args) SWIG_fail;
9068 swig_obj[0] = args;
9069 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9070 if (!SWIG_IsOK(res1)) {
9071 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9072 }
9073 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9074 {
9075 PyThreadState* __tstate = wxPyBeginAllowThreads();
9076 result = (int)(arg1)->GetW();
9077 wxPyEndAllowThreads(__tstate);
9078 if (PyErr_Occurred()) SWIG_fail;
9079 }
9080 resultobj = SWIG_From_int(static_cast< int >(result));
9081 return resultobj;
9082 fail:
9083 return NULL;
9084 }
9085
9086
9087 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9088 PyObject *resultobj = 0;
9089 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9090 int result;
9091 void *argp1 = 0 ;
9092 int res1 = 0 ;
9093 PyObject *swig_obj[1] ;
9094
9095 if (!args) SWIG_fail;
9096 swig_obj[0] = args;
9097 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9098 if (!SWIG_IsOK(res1)) {
9099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9100 }
9101 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9102 {
9103 PyThreadState* __tstate = wxPyBeginAllowThreads();
9104 result = (int)(arg1)->GetWidth();
9105 wxPyEndAllowThreads(__tstate);
9106 if (PyErr_Occurred()) SWIG_fail;
9107 }
9108 resultobj = SWIG_From_int(static_cast< int >(result));
9109 return resultobj;
9110 fail:
9111 return NULL;
9112 }
9113
9114
9115 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9116 PyObject *resultobj = 0;
9117 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9118 int result;
9119 void *argp1 = 0 ;
9120 int res1 = 0 ;
9121 PyObject *swig_obj[1] ;
9122
9123 if (!args) SWIG_fail;
9124 swig_obj[0] = args;
9125 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9126 if (!SWIG_IsOK(res1)) {
9127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9128 }
9129 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (int)(arg1)->GetH();
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 resultobj = SWIG_From_int(static_cast< int >(result));
9137 return resultobj;
9138 fail:
9139 return NULL;
9140 }
9141
9142
9143 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9144 PyObject *resultobj = 0;
9145 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9146 int result;
9147 void *argp1 = 0 ;
9148 int res1 = 0 ;
9149 PyObject *swig_obj[1] ;
9150
9151 if (!args) SWIG_fail;
9152 swig_obj[0] = args;
9153 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9154 if (!SWIG_IsOK(res1)) {
9155 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9156 }
9157 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9158 {
9159 PyThreadState* __tstate = wxPyBeginAllowThreads();
9160 result = (int)(arg1)->GetHeight();
9161 wxPyEndAllowThreads(__tstate);
9162 if (PyErr_Occurred()) SWIG_fail;
9163 }
9164 resultobj = SWIG_From_int(static_cast< int >(result));
9165 return resultobj;
9166 fail:
9167 return NULL;
9168 }
9169
9170
9171 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9172 PyObject *resultobj = 0;
9173 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9174 wxRect result;
9175 void *argp1 = 0 ;
9176 int res1 = 0 ;
9177 PyObject *swig_obj[1] ;
9178
9179 if (!args) SWIG_fail;
9180 swig_obj[0] = args;
9181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9182 if (!SWIG_IsOK(res1)) {
9183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9184 }
9185 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9186 {
9187 PyThreadState* __tstate = wxPyBeginAllowThreads();
9188 result = (arg1)->GetRect();
9189 wxPyEndAllowThreads(__tstate);
9190 if (PyErr_Occurred()) SWIG_fail;
9191 }
9192 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9193 return resultobj;
9194 fail:
9195 return NULL;
9196 }
9197
9198
9199 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9200 PyObject *resultobj = 0;
9201 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9202 bool result;
9203 void *argp1 = 0 ;
9204 int res1 = 0 ;
9205 PyObject *swig_obj[1] ;
9206
9207 if (!args) SWIG_fail;
9208 swig_obj[0] = args;
9209 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9210 if (!SWIG_IsOK(res1)) {
9211 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9212 }
9213 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9214 {
9215 PyThreadState* __tstate = wxPyBeginAllowThreads();
9216 result = (bool)(arg1)->HaveRects();
9217 wxPyEndAllowThreads(__tstate);
9218 if (PyErr_Occurred()) SWIG_fail;
9219 }
9220 {
9221 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9222 }
9223 return resultobj;
9224 fail:
9225 return NULL;
9226 }
9227
9228
9229 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9230 PyObject *resultobj = 0;
9231 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9232 void *argp1 = 0 ;
9233 int res1 = 0 ;
9234 PyObject *swig_obj[1] ;
9235
9236 if (!args) SWIG_fail;
9237 swig_obj[0] = args;
9238 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9239 if (!SWIG_IsOK(res1)) {
9240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9241 }
9242 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9243 {
9244 PyThreadState* __tstate = wxPyBeginAllowThreads();
9245 (arg1)->Reset();
9246 wxPyEndAllowThreads(__tstate);
9247 if (PyErr_Occurred()) SWIG_fail;
9248 }
9249 resultobj = SWIG_Py_Void();
9250 return resultobj;
9251 fail:
9252 return NULL;
9253 }
9254
9255
9256 SWIGINTERN PyObject *_wrap_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9257 PyObject *resultobj = 0;
9258 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9259 void *argp1 = 0 ;
9260 int res1 = 0 ;
9261 PyObject *swig_obj[1] ;
9262
9263 if (!args) SWIG_fail;
9264 swig_obj[0] = args;
9265 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9266 if (!SWIG_IsOK(res1)) {
9267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9268 }
9269 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9270 {
9271 PyThreadState* __tstate = wxPyBeginAllowThreads();
9272 wxRegionIterator_Next(arg1);
9273 wxPyEndAllowThreads(__tstate);
9274 if (PyErr_Occurred()) SWIG_fail;
9275 }
9276 resultobj = SWIG_Py_Void();
9277 return resultobj;
9278 fail:
9279 return NULL;
9280 }
9281
9282
9283 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9284 PyObject *resultobj = 0;
9285 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9286 bool result;
9287 void *argp1 = 0 ;
9288 int res1 = 0 ;
9289 PyObject *swig_obj[1] ;
9290
9291 if (!args) SWIG_fail;
9292 swig_obj[0] = args;
9293 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9294 if (!SWIG_IsOK(res1)) {
9295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9296 }
9297 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9298 {
9299 PyThreadState* __tstate = wxPyBeginAllowThreads();
9300 result = (bool)wxRegionIterator___nonzero__(arg1);
9301 wxPyEndAllowThreads(__tstate);
9302 if (PyErr_Occurred()) SWIG_fail;
9303 }
9304 {
9305 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9306 }
9307 return resultobj;
9308 fail:
9309 return NULL;
9310 }
9311
9312
9313 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9314 PyObject *obj;
9315 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9316 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9317 return SWIG_Py_Void();
9318 }
9319
9320 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9321 return SWIG_Python_InitShadowInstance(args);
9322 }
9323
9324 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9325 PyObject *resultobj = 0;
9326 wxNativeFontInfo *result = 0 ;
9327
9328 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9329 {
9330 PyThreadState* __tstate = wxPyBeginAllowThreads();
9331 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9332 wxPyEndAllowThreads(__tstate);
9333 if (PyErr_Occurred()) SWIG_fail;
9334 }
9335 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9336 return resultobj;
9337 fail:
9338 return NULL;
9339 }
9340
9341
9342 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9343 PyObject *resultobj = 0;
9344 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9345 void *argp1 = 0 ;
9346 int res1 = 0 ;
9347 PyObject *swig_obj[1] ;
9348
9349 if (!args) SWIG_fail;
9350 swig_obj[0] = args;
9351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
9352 if (!SWIG_IsOK(res1)) {
9353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9354 }
9355 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9356 {
9357 PyThreadState* __tstate = wxPyBeginAllowThreads();
9358 delete arg1;
9359
9360 wxPyEndAllowThreads(__tstate);
9361 if (PyErr_Occurred()) SWIG_fail;
9362 }
9363 resultobj = SWIG_Py_Void();
9364 return resultobj;
9365 fail:
9366 return NULL;
9367 }
9368
9369
9370 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9371 PyObject *resultobj = 0;
9372 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9373 void *argp1 = 0 ;
9374 int res1 = 0 ;
9375 PyObject *swig_obj[1] ;
9376
9377 if (!args) SWIG_fail;
9378 swig_obj[0] = args;
9379 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9380 if (!SWIG_IsOK(res1)) {
9381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9382 }
9383 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9384 {
9385 PyThreadState* __tstate = wxPyBeginAllowThreads();
9386 (arg1)->Init();
9387 wxPyEndAllowThreads(__tstate);
9388 if (PyErr_Occurred()) SWIG_fail;
9389 }
9390 resultobj = SWIG_Py_Void();
9391 return resultobj;
9392 fail:
9393 return NULL;
9394 }
9395
9396
9397 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9398 PyObject *resultobj = 0;
9399 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9400 wxFont *arg2 = 0 ;
9401 void *argp1 = 0 ;
9402 int res1 = 0 ;
9403 void *argp2 = 0 ;
9404 int res2 = 0 ;
9405 PyObject * obj0 = 0 ;
9406 PyObject * obj1 = 0 ;
9407 char * kwnames[] = {
9408 (char *) "self",(char *) "font", NULL
9409 };
9410
9411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
9412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9413 if (!SWIG_IsOK(res1)) {
9414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9415 }
9416 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9417 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
9418 if (!SWIG_IsOK(res2)) {
9419 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9420 }
9421 if (!argp2) {
9422 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
9423 }
9424 arg2 = reinterpret_cast< wxFont * >(argp2);
9425 {
9426 PyThreadState* __tstate = wxPyBeginAllowThreads();
9427 (arg1)->InitFromFont((wxFont const &)*arg2);
9428 wxPyEndAllowThreads(__tstate);
9429 if (PyErr_Occurred()) SWIG_fail;
9430 }
9431 resultobj = SWIG_Py_Void();
9432 return resultobj;
9433 fail:
9434 return NULL;
9435 }
9436
9437
9438 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9439 PyObject *resultobj = 0;
9440 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9441 int result;
9442 void *argp1 = 0 ;
9443 int res1 = 0 ;
9444 PyObject *swig_obj[1] ;
9445
9446 if (!args) SWIG_fail;
9447 swig_obj[0] = args;
9448 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9449 if (!SWIG_IsOK(res1)) {
9450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9451 }
9452 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9453 {
9454 PyThreadState* __tstate = wxPyBeginAllowThreads();
9455 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
9456 wxPyEndAllowThreads(__tstate);
9457 if (PyErr_Occurred()) SWIG_fail;
9458 }
9459 resultobj = SWIG_From_int(static_cast< int >(result));
9460 return resultobj;
9461 fail:
9462 return NULL;
9463 }
9464
9465
9466 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9467 PyObject *resultobj = 0;
9468 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9469 wxFontStyle result;
9470 void *argp1 = 0 ;
9471 int res1 = 0 ;
9472 PyObject *swig_obj[1] ;
9473
9474 if (!args) SWIG_fail;
9475 swig_obj[0] = args;
9476 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9477 if (!SWIG_IsOK(res1)) {
9478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9479 }
9480 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9481 {
9482 PyThreadState* __tstate = wxPyBeginAllowThreads();
9483 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
9484 wxPyEndAllowThreads(__tstate);
9485 if (PyErr_Occurred()) SWIG_fail;
9486 }
9487 resultobj = SWIG_From_int(static_cast< int >(result));
9488 return resultobj;
9489 fail:
9490 return NULL;
9491 }
9492
9493
9494 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9495 PyObject *resultobj = 0;
9496 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9497 wxFontWeight result;
9498 void *argp1 = 0 ;
9499 int res1 = 0 ;
9500 PyObject *swig_obj[1] ;
9501
9502 if (!args) SWIG_fail;
9503 swig_obj[0] = args;
9504 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9505 if (!SWIG_IsOK(res1)) {
9506 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9507 }
9508 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9509 {
9510 PyThreadState* __tstate = wxPyBeginAllowThreads();
9511 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
9512 wxPyEndAllowThreads(__tstate);
9513 if (PyErr_Occurred()) SWIG_fail;
9514 }
9515 resultobj = SWIG_From_int(static_cast< int >(result));
9516 return resultobj;
9517 fail:
9518 return NULL;
9519 }
9520
9521
9522 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9523 PyObject *resultobj = 0;
9524 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9525 bool result;
9526 void *argp1 = 0 ;
9527 int res1 = 0 ;
9528 PyObject *swig_obj[1] ;
9529
9530 if (!args) SWIG_fail;
9531 swig_obj[0] = args;
9532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9533 if (!SWIG_IsOK(res1)) {
9534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9535 }
9536 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9537 {
9538 PyThreadState* __tstate = wxPyBeginAllowThreads();
9539 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
9540 wxPyEndAllowThreads(__tstate);
9541 if (PyErr_Occurred()) SWIG_fail;
9542 }
9543 {
9544 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9545 }
9546 return resultobj;
9547 fail:
9548 return NULL;
9549 }
9550
9551
9552 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9553 PyObject *resultobj = 0;
9554 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9555 wxString result;
9556 void *argp1 = 0 ;
9557 int res1 = 0 ;
9558 PyObject *swig_obj[1] ;
9559
9560 if (!args) SWIG_fail;
9561 swig_obj[0] = args;
9562 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9563 if (!SWIG_IsOK(res1)) {
9564 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9565 }
9566 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9567 {
9568 PyThreadState* __tstate = wxPyBeginAllowThreads();
9569 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
9570 wxPyEndAllowThreads(__tstate);
9571 if (PyErr_Occurred()) SWIG_fail;
9572 }
9573 {
9574 #if wxUSE_UNICODE
9575 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9576 #else
9577 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9578 #endif
9579 }
9580 return resultobj;
9581 fail:
9582 return NULL;
9583 }
9584
9585
9586 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9587 PyObject *resultobj = 0;
9588 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9589 wxFontFamily result;
9590 void *argp1 = 0 ;
9591 int res1 = 0 ;
9592 PyObject *swig_obj[1] ;
9593
9594 if (!args) SWIG_fail;
9595 swig_obj[0] = args;
9596 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9597 if (!SWIG_IsOK(res1)) {
9598 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9599 }
9600 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9601 {
9602 PyThreadState* __tstate = wxPyBeginAllowThreads();
9603 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
9604 wxPyEndAllowThreads(__tstate);
9605 if (PyErr_Occurred()) SWIG_fail;
9606 }
9607 resultobj = SWIG_From_int(static_cast< int >(result));
9608 return resultobj;
9609 fail:
9610 return NULL;
9611 }
9612
9613
9614 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9615 PyObject *resultobj = 0;
9616 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9617 wxFontEncoding result;
9618 void *argp1 = 0 ;
9619 int res1 = 0 ;
9620 PyObject *swig_obj[1] ;
9621
9622 if (!args) SWIG_fail;
9623 swig_obj[0] = args;
9624 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9625 if (!SWIG_IsOK(res1)) {
9626 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9627 }
9628 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9629 {
9630 PyThreadState* __tstate = wxPyBeginAllowThreads();
9631 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
9632 wxPyEndAllowThreads(__tstate);
9633 if (PyErr_Occurred()) SWIG_fail;
9634 }
9635 resultobj = SWIG_From_int(static_cast< int >(result));
9636 return resultobj;
9637 fail:
9638 return NULL;
9639 }
9640
9641
9642 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9643 PyObject *resultobj = 0;
9644 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9645 int arg2 ;
9646 void *argp1 = 0 ;
9647 int res1 = 0 ;
9648 int val2 ;
9649 int ecode2 = 0 ;
9650 PyObject * obj0 = 0 ;
9651 PyObject * obj1 = 0 ;
9652 char * kwnames[] = {
9653 (char *) "self",(char *) "pointsize", NULL
9654 };
9655
9656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
9657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9658 if (!SWIG_IsOK(res1)) {
9659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9660 }
9661 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9662 ecode2 = SWIG_AsVal_int(obj1, &val2);
9663 if (!SWIG_IsOK(ecode2)) {
9664 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
9665 }
9666 arg2 = static_cast< int >(val2);
9667 {
9668 PyThreadState* __tstate = wxPyBeginAllowThreads();
9669 (arg1)->SetPointSize(arg2);
9670 wxPyEndAllowThreads(__tstate);
9671 if (PyErr_Occurred()) SWIG_fail;
9672 }
9673 resultobj = SWIG_Py_Void();
9674 return resultobj;
9675 fail:
9676 return NULL;
9677 }
9678
9679
9680 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9681 PyObject *resultobj = 0;
9682 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9683 wxFontStyle arg2 ;
9684 void *argp1 = 0 ;
9685 int res1 = 0 ;
9686 int val2 ;
9687 int ecode2 = 0 ;
9688 PyObject * obj0 = 0 ;
9689 PyObject * obj1 = 0 ;
9690 char * kwnames[] = {
9691 (char *) "self",(char *) "style", NULL
9692 };
9693
9694 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
9695 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9696 if (!SWIG_IsOK(res1)) {
9697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9698 }
9699 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9700 ecode2 = SWIG_AsVal_int(obj1, &val2);
9701 if (!SWIG_IsOK(ecode2)) {
9702 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
9703 }
9704 arg2 = static_cast< wxFontStyle >(val2);
9705 {
9706 PyThreadState* __tstate = wxPyBeginAllowThreads();
9707 (arg1)->SetStyle(arg2);
9708 wxPyEndAllowThreads(__tstate);
9709 if (PyErr_Occurred()) SWIG_fail;
9710 }
9711 resultobj = SWIG_Py_Void();
9712 return resultobj;
9713 fail:
9714 return NULL;
9715 }
9716
9717
9718 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9719 PyObject *resultobj = 0;
9720 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9721 wxFontWeight arg2 ;
9722 void *argp1 = 0 ;
9723 int res1 = 0 ;
9724 int val2 ;
9725 int ecode2 = 0 ;
9726 PyObject * obj0 = 0 ;
9727 PyObject * obj1 = 0 ;
9728 char * kwnames[] = {
9729 (char *) "self",(char *) "weight", NULL
9730 };
9731
9732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
9733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9734 if (!SWIG_IsOK(res1)) {
9735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9736 }
9737 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9738 ecode2 = SWIG_AsVal_int(obj1, &val2);
9739 if (!SWIG_IsOK(ecode2)) {
9740 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
9741 }
9742 arg2 = static_cast< wxFontWeight >(val2);
9743 {
9744 PyThreadState* __tstate = wxPyBeginAllowThreads();
9745 (arg1)->SetWeight(arg2);
9746 wxPyEndAllowThreads(__tstate);
9747 if (PyErr_Occurred()) SWIG_fail;
9748 }
9749 resultobj = SWIG_Py_Void();
9750 return resultobj;
9751 fail:
9752 return NULL;
9753 }
9754
9755
9756 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9757 PyObject *resultobj = 0;
9758 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9759 bool arg2 ;
9760 void *argp1 = 0 ;
9761 int res1 = 0 ;
9762 bool val2 ;
9763 int ecode2 = 0 ;
9764 PyObject * obj0 = 0 ;
9765 PyObject * obj1 = 0 ;
9766 char * kwnames[] = {
9767 (char *) "self",(char *) "underlined", NULL
9768 };
9769
9770 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
9771 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9772 if (!SWIG_IsOK(res1)) {
9773 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9774 }
9775 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9776 ecode2 = SWIG_AsVal_bool(obj1, &val2);
9777 if (!SWIG_IsOK(ecode2)) {
9778 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
9779 }
9780 arg2 = static_cast< bool >(val2);
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 (arg1)->SetUnderlined(arg2);
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_Py_Void();
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9795 PyObject *resultobj = 0;
9796 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9797 wxString arg2 ;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 PyObject * obj0 = 0 ;
9801 PyObject * obj1 = 0 ;
9802 char * kwnames[] = {
9803 (char *) "self",(char *) "facename", NULL
9804 };
9805
9806 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
9807 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9808 if (!SWIG_IsOK(res1)) {
9809 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9810 }
9811 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9812 {
9813 wxString* sptr = wxString_in_helper(obj1);
9814 if (sptr == NULL) SWIG_fail;
9815 arg2 = *sptr;
9816 delete sptr;
9817 }
9818 {
9819 PyThreadState* __tstate = wxPyBeginAllowThreads();
9820 (arg1)->SetFaceName(arg2);
9821 wxPyEndAllowThreads(__tstate);
9822 if (PyErr_Occurred()) SWIG_fail;
9823 }
9824 resultobj = SWIG_Py_Void();
9825 return resultobj;
9826 fail:
9827 return NULL;
9828 }
9829
9830
9831 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9832 PyObject *resultobj = 0;
9833 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9834 wxFontFamily arg2 ;
9835 void *argp1 = 0 ;
9836 int res1 = 0 ;
9837 int val2 ;
9838 int ecode2 = 0 ;
9839 PyObject * obj0 = 0 ;
9840 PyObject * obj1 = 0 ;
9841 char * kwnames[] = {
9842 (char *) "self",(char *) "family", NULL
9843 };
9844
9845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
9846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9847 if (!SWIG_IsOK(res1)) {
9848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9849 }
9850 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9851 ecode2 = SWIG_AsVal_int(obj1, &val2);
9852 if (!SWIG_IsOK(ecode2)) {
9853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
9854 }
9855 arg2 = static_cast< wxFontFamily >(val2);
9856 {
9857 PyThreadState* __tstate = wxPyBeginAllowThreads();
9858 (arg1)->SetFamily(arg2);
9859 wxPyEndAllowThreads(__tstate);
9860 if (PyErr_Occurred()) SWIG_fail;
9861 }
9862 resultobj = SWIG_Py_Void();
9863 return resultobj;
9864 fail:
9865 return NULL;
9866 }
9867
9868
9869 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9870 PyObject *resultobj = 0;
9871 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9872 wxFontEncoding arg2 ;
9873 void *argp1 = 0 ;
9874 int res1 = 0 ;
9875 int val2 ;
9876 int ecode2 = 0 ;
9877 PyObject * obj0 = 0 ;
9878 PyObject * obj1 = 0 ;
9879 char * kwnames[] = {
9880 (char *) "self",(char *) "encoding", NULL
9881 };
9882
9883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
9884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9885 if (!SWIG_IsOK(res1)) {
9886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9887 }
9888 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9889 ecode2 = SWIG_AsVal_int(obj1, &val2);
9890 if (!SWIG_IsOK(ecode2)) {
9891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
9892 }
9893 arg2 = static_cast< wxFontEncoding >(val2);
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 (arg1)->SetEncoding(arg2);
9897 wxPyEndAllowThreads(__tstate);
9898 if (PyErr_Occurred()) SWIG_fail;
9899 }
9900 resultobj = SWIG_Py_Void();
9901 return resultobj;
9902 fail:
9903 return NULL;
9904 }
9905
9906
9907 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9908 PyObject *resultobj = 0;
9909 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9910 wxString *arg2 = 0 ;
9911 bool result;
9912 void *argp1 = 0 ;
9913 int res1 = 0 ;
9914 bool temp2 = false ;
9915 PyObject * obj0 = 0 ;
9916 PyObject * obj1 = 0 ;
9917 char * kwnames[] = {
9918 (char *) "self",(char *) "s", NULL
9919 };
9920
9921 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
9922 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9923 if (!SWIG_IsOK(res1)) {
9924 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
9925 }
9926 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9927 {
9928 arg2 = wxString_in_helper(obj1);
9929 if (arg2 == NULL) SWIG_fail;
9930 temp2 = true;
9931 }
9932 {
9933 PyThreadState* __tstate = wxPyBeginAllowThreads();
9934 result = (bool)(arg1)->FromString((wxString const &)*arg2);
9935 wxPyEndAllowThreads(__tstate);
9936 if (PyErr_Occurred()) SWIG_fail;
9937 }
9938 {
9939 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9940 }
9941 {
9942 if (temp2)
9943 delete arg2;
9944 }
9945 return resultobj;
9946 fail:
9947 {
9948 if (temp2)
9949 delete arg2;
9950 }
9951 return NULL;
9952 }
9953
9954
9955 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9956 PyObject *resultobj = 0;
9957 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9958 wxString result;
9959 void *argp1 = 0 ;
9960 int res1 = 0 ;
9961 PyObject *swig_obj[1] ;
9962
9963 if (!args) SWIG_fail;
9964 swig_obj[0] = args;
9965 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
9966 if (!SWIG_IsOK(res1)) {
9967 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
9968 }
9969 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
9970 {
9971 PyThreadState* __tstate = wxPyBeginAllowThreads();
9972 result = ((wxNativeFontInfo const *)arg1)->ToString();
9973 wxPyEndAllowThreads(__tstate);
9974 if (PyErr_Occurred()) SWIG_fail;
9975 }
9976 {
9977 #if wxUSE_UNICODE
9978 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
9979 #else
9980 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
9981 #endif
9982 }
9983 return resultobj;
9984 fail:
9985 return NULL;
9986 }
9987
9988
9989 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9990 PyObject *resultobj = 0;
9991 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9992 wxString result;
9993 void *argp1 = 0 ;
9994 int res1 = 0 ;
9995 PyObject *swig_obj[1] ;
9996
9997 if (!args) SWIG_fail;
9998 swig_obj[0] = args;
9999 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10000 if (!SWIG_IsOK(res1)) {
10001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10002 }
10003 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10004 {
10005 PyThreadState* __tstate = wxPyBeginAllowThreads();
10006 result = wxNativeFontInfo___str__(arg1);
10007 wxPyEndAllowThreads(__tstate);
10008 if (PyErr_Occurred()) SWIG_fail;
10009 }
10010 {
10011 #if wxUSE_UNICODE
10012 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10013 #else
10014 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10015 #endif
10016 }
10017 return resultobj;
10018 fail:
10019 return NULL;
10020 }
10021
10022
10023 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10024 PyObject *resultobj = 0;
10025 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10026 wxString *arg2 = 0 ;
10027 bool result;
10028 void *argp1 = 0 ;
10029 int res1 = 0 ;
10030 bool temp2 = false ;
10031 PyObject * obj0 = 0 ;
10032 PyObject * obj1 = 0 ;
10033 char * kwnames[] = {
10034 (char *) "self",(char *) "s", NULL
10035 };
10036
10037 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10038 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10039 if (!SWIG_IsOK(res1)) {
10040 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10041 }
10042 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10043 {
10044 arg2 = wxString_in_helper(obj1);
10045 if (arg2 == NULL) SWIG_fail;
10046 temp2 = true;
10047 }
10048 {
10049 PyThreadState* __tstate = wxPyBeginAllowThreads();
10050 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10051 wxPyEndAllowThreads(__tstate);
10052 if (PyErr_Occurred()) SWIG_fail;
10053 }
10054 {
10055 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10056 }
10057 {
10058 if (temp2)
10059 delete arg2;
10060 }
10061 return resultobj;
10062 fail:
10063 {
10064 if (temp2)
10065 delete arg2;
10066 }
10067 return NULL;
10068 }
10069
10070
10071 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10072 PyObject *resultobj = 0;
10073 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10074 wxString result;
10075 void *argp1 = 0 ;
10076 int res1 = 0 ;
10077 PyObject *swig_obj[1] ;
10078
10079 if (!args) SWIG_fail;
10080 swig_obj[0] = args;
10081 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10082 if (!SWIG_IsOK(res1)) {
10083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10084 }
10085 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10086 {
10087 PyThreadState* __tstate = wxPyBeginAllowThreads();
10088 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10089 wxPyEndAllowThreads(__tstate);
10090 if (PyErr_Occurred()) SWIG_fail;
10091 }
10092 {
10093 #if wxUSE_UNICODE
10094 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10095 #else
10096 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10097 #endif
10098 }
10099 return resultobj;
10100 fail:
10101 return NULL;
10102 }
10103
10104
10105 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10106 PyObject *obj;
10107 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10108 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10109 return SWIG_Py_Void();
10110 }
10111
10112 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10113 return SWIG_Python_InitShadowInstance(args);
10114 }
10115
10116 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10117 PyObject *resultobj = 0;
10118 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10119 wxString *arg2 = (wxString *) 0 ;
10120 void *argp1 = 0 ;
10121 int res1 = 0 ;
10122 bool temp2 = false ;
10123 PyObject *swig_obj[2] ;
10124
10125 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10127 if (!SWIG_IsOK(res1)) {
10128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10129 }
10130 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10131 {
10132 arg2 = wxString_in_helper(swig_obj[1]);
10133 if (arg2 == NULL) SWIG_fail;
10134 temp2 = true;
10135 }
10136 if (arg1) (arg1)->facename = *arg2;
10137
10138 resultobj = SWIG_Py_Void();
10139 {
10140 if (temp2)
10141 delete arg2;
10142 }
10143 return resultobj;
10144 fail:
10145 {
10146 if (temp2)
10147 delete arg2;
10148 }
10149 return NULL;
10150 }
10151
10152
10153 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10154 PyObject *resultobj = 0;
10155 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10156 wxString *result = 0 ;
10157 void *argp1 = 0 ;
10158 int res1 = 0 ;
10159 PyObject *swig_obj[1] ;
10160
10161 if (!args) SWIG_fail;
10162 swig_obj[0] = args;
10163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10164 if (!SWIG_IsOK(res1)) {
10165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10166 }
10167 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10168 result = (wxString *)& ((arg1)->facename);
10169 {
10170 #if wxUSE_UNICODE
10171 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10172 #else
10173 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10174 #endif
10175 }
10176 return resultobj;
10177 fail:
10178 return NULL;
10179 }
10180
10181
10182 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10183 PyObject *resultobj = 0;
10184 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10185 wxFontEncoding arg2 ;
10186 void *argp1 = 0 ;
10187 int res1 = 0 ;
10188 int val2 ;
10189 int ecode2 = 0 ;
10190 PyObject *swig_obj[2] ;
10191
10192 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10193 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10194 if (!SWIG_IsOK(res1)) {
10195 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10196 }
10197 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10198 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10199 if (!SWIG_IsOK(ecode2)) {
10200 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10201 }
10202 arg2 = static_cast< wxFontEncoding >(val2);
10203 if (arg1) (arg1)->encoding = arg2;
10204
10205 resultobj = SWIG_Py_Void();
10206 return resultobj;
10207 fail:
10208 return NULL;
10209 }
10210
10211
10212 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10213 PyObject *resultobj = 0;
10214 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10215 wxFontEncoding result;
10216 void *argp1 = 0 ;
10217 int res1 = 0 ;
10218 PyObject *swig_obj[1] ;
10219
10220 if (!args) SWIG_fail;
10221 swig_obj[0] = args;
10222 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10223 if (!SWIG_IsOK(res1)) {
10224 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10225 }
10226 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10227 result = (wxFontEncoding) ((arg1)->encoding);
10228 resultobj = SWIG_From_int(static_cast< int >(result));
10229 return resultobj;
10230 fail:
10231 return NULL;
10232 }
10233
10234
10235 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10236 PyObject *resultobj = 0;
10237 wxNativeEncodingInfo *result = 0 ;
10238
10239 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10240 {
10241 PyThreadState* __tstate = wxPyBeginAllowThreads();
10242 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10243 wxPyEndAllowThreads(__tstate);
10244 if (PyErr_Occurred()) SWIG_fail;
10245 }
10246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10247 return resultobj;
10248 fail:
10249 return NULL;
10250 }
10251
10252
10253 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10254 PyObject *resultobj = 0;
10255 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10256 void *argp1 = 0 ;
10257 int res1 = 0 ;
10258 PyObject *swig_obj[1] ;
10259
10260 if (!args) SWIG_fail;
10261 swig_obj[0] = args;
10262 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10263 if (!SWIG_IsOK(res1)) {
10264 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10265 }
10266 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10267 {
10268 PyThreadState* __tstate = wxPyBeginAllowThreads();
10269 delete arg1;
10270
10271 wxPyEndAllowThreads(__tstate);
10272 if (PyErr_Occurred()) SWIG_fail;
10273 }
10274 resultobj = SWIG_Py_Void();
10275 return resultobj;
10276 fail:
10277 return NULL;
10278 }
10279
10280
10281 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10282 PyObject *resultobj = 0;
10283 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10284 wxString *arg2 = 0 ;
10285 bool result;
10286 void *argp1 = 0 ;
10287 int res1 = 0 ;
10288 bool temp2 = false ;
10289 PyObject * obj0 = 0 ;
10290 PyObject * obj1 = 0 ;
10291 char * kwnames[] = {
10292 (char *) "self",(char *) "s", NULL
10293 };
10294
10295 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10296 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10297 if (!SWIG_IsOK(res1)) {
10298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10299 }
10300 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10301 {
10302 arg2 = wxString_in_helper(obj1);
10303 if (arg2 == NULL) SWIG_fail;
10304 temp2 = true;
10305 }
10306 {
10307 PyThreadState* __tstate = wxPyBeginAllowThreads();
10308 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10309 wxPyEndAllowThreads(__tstate);
10310 if (PyErr_Occurred()) SWIG_fail;
10311 }
10312 {
10313 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10314 }
10315 {
10316 if (temp2)
10317 delete arg2;
10318 }
10319 return resultobj;
10320 fail:
10321 {
10322 if (temp2)
10323 delete arg2;
10324 }
10325 return NULL;
10326 }
10327
10328
10329 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10330 PyObject *resultobj = 0;
10331 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10332 wxString result;
10333 void *argp1 = 0 ;
10334 int res1 = 0 ;
10335 PyObject *swig_obj[1] ;
10336
10337 if (!args) SWIG_fail;
10338 swig_obj[0] = args;
10339 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10340 if (!SWIG_IsOK(res1)) {
10341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
10342 }
10343 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10344 {
10345 PyThreadState* __tstate = wxPyBeginAllowThreads();
10346 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
10347 wxPyEndAllowThreads(__tstate);
10348 if (PyErr_Occurred()) SWIG_fail;
10349 }
10350 {
10351 #if wxUSE_UNICODE
10352 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10353 #else
10354 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10355 #endif
10356 }
10357 return resultobj;
10358 fail:
10359 return NULL;
10360 }
10361
10362
10363 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10364 PyObject *obj;
10365 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10366 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
10367 return SWIG_Py_Void();
10368 }
10369
10370 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10371 return SWIG_Python_InitShadowInstance(args);
10372 }
10373
10374 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10375 PyObject *resultobj = 0;
10376 wxFontEncoding arg1 ;
10377 wxNativeEncodingInfo *result = 0 ;
10378 int val1 ;
10379 int ecode1 = 0 ;
10380 PyObject * obj0 = 0 ;
10381 char * kwnames[] = {
10382 (char *) "encoding", NULL
10383 };
10384
10385 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
10386 ecode1 = SWIG_AsVal_int(obj0, &val1);
10387 if (!SWIG_IsOK(ecode1)) {
10388 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10389 }
10390 arg1 = static_cast< wxFontEncoding >(val1);
10391 {
10392 PyThreadState* __tstate = wxPyBeginAllowThreads();
10393 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
10394 wxPyEndAllowThreads(__tstate);
10395 if (PyErr_Occurred()) SWIG_fail;
10396 }
10397 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10398 return resultobj;
10399 fail:
10400 return NULL;
10401 }
10402
10403
10404 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10405 PyObject *resultobj = 0;
10406 wxNativeEncodingInfo *arg1 = 0 ;
10407 bool result;
10408 void *argp1 = 0 ;
10409 int res1 = 0 ;
10410 PyObject * obj0 = 0 ;
10411 char * kwnames[] = {
10412 (char *) "info", NULL
10413 };
10414
10415 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
10416 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
10417 if (!SWIG_IsOK(res1)) {
10418 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10419 }
10420 if (!argp1) {
10421 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
10422 }
10423 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10424 {
10425 PyThreadState* __tstate = wxPyBeginAllowThreads();
10426 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
10427 wxPyEndAllowThreads(__tstate);
10428 if (PyErr_Occurred()) SWIG_fail;
10429 }
10430 {
10431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10432 }
10433 return resultobj;
10434 fail:
10435 return NULL;
10436 }
10437
10438
10439 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10440 PyObject *resultobj = 0;
10441 wxFontMapper *result = 0 ;
10442
10443 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
10444 {
10445 PyThreadState* __tstate = wxPyBeginAllowThreads();
10446 result = (wxFontMapper *)new wxFontMapper();
10447 wxPyEndAllowThreads(__tstate);
10448 if (PyErr_Occurred()) SWIG_fail;
10449 }
10450 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
10451 return resultobj;
10452 fail:
10453 return NULL;
10454 }
10455
10456
10457 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10458 PyObject *resultobj = 0;
10459 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10460 void *argp1 = 0 ;
10461 int res1 = 0 ;
10462 PyObject *swig_obj[1] ;
10463
10464 if (!args) SWIG_fail;
10465 swig_obj[0] = args;
10466 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
10467 if (!SWIG_IsOK(res1)) {
10468 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10469 }
10470 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10471 {
10472 PyThreadState* __tstate = wxPyBeginAllowThreads();
10473 delete arg1;
10474
10475 wxPyEndAllowThreads(__tstate);
10476 if (PyErr_Occurred()) SWIG_fail;
10477 }
10478 resultobj = SWIG_Py_Void();
10479 return resultobj;
10480 fail:
10481 return NULL;
10482 }
10483
10484
10485 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10486 PyObject *resultobj = 0;
10487 wxFontMapper *result = 0 ;
10488
10489 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
10490 {
10491 PyThreadState* __tstate = wxPyBeginAllowThreads();
10492 result = (wxFontMapper *)wxFontMapper::Get();
10493 wxPyEndAllowThreads(__tstate);
10494 if (PyErr_Occurred()) SWIG_fail;
10495 }
10496 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10497 return resultobj;
10498 fail:
10499 return NULL;
10500 }
10501
10502
10503 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10504 PyObject *resultobj = 0;
10505 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10506 wxFontMapper *result = 0 ;
10507 void *argp1 = 0 ;
10508 int res1 = 0 ;
10509 PyObject * obj0 = 0 ;
10510 char * kwnames[] = {
10511 (char *) "mapper", NULL
10512 };
10513
10514 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
10515 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10516 if (!SWIG_IsOK(res1)) {
10517 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10518 }
10519 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10520 {
10521 PyThreadState* __tstate = wxPyBeginAllowThreads();
10522 result = (wxFontMapper *)wxFontMapper::Set(arg1);
10523 wxPyEndAllowThreads(__tstate);
10524 if (PyErr_Occurred()) SWIG_fail;
10525 }
10526 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
10527 return resultobj;
10528 fail:
10529 return NULL;
10530 }
10531
10532
10533 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10534 PyObject *resultobj = 0;
10535 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10536 wxString *arg2 = 0 ;
10537 bool arg3 = (bool) true ;
10538 wxFontEncoding result;
10539 void *argp1 = 0 ;
10540 int res1 = 0 ;
10541 bool temp2 = false ;
10542 bool val3 ;
10543 int ecode3 = 0 ;
10544 PyObject * obj0 = 0 ;
10545 PyObject * obj1 = 0 ;
10546 PyObject * obj2 = 0 ;
10547 char * kwnames[] = {
10548 (char *) "self",(char *) "charset",(char *) "interactive", NULL
10549 };
10550
10551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10553 if (!SWIG_IsOK(res1)) {
10554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10555 }
10556 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10557 {
10558 arg2 = wxString_in_helper(obj1);
10559 if (arg2 == NULL) SWIG_fail;
10560 temp2 = true;
10561 }
10562 if (obj2) {
10563 ecode3 = SWIG_AsVal_bool(obj2, &val3);
10564 if (!SWIG_IsOK(ecode3)) {
10565 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
10566 }
10567 arg3 = static_cast< bool >(val3);
10568 }
10569 {
10570 PyThreadState* __tstate = wxPyBeginAllowThreads();
10571 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
10572 wxPyEndAllowThreads(__tstate);
10573 if (PyErr_Occurred()) SWIG_fail;
10574 }
10575 resultobj = SWIG_From_int(static_cast< int >(result));
10576 {
10577 if (temp2)
10578 delete arg2;
10579 }
10580 return resultobj;
10581 fail:
10582 {
10583 if (temp2)
10584 delete arg2;
10585 }
10586 return NULL;
10587 }
10588
10589
10590 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10591 PyObject *resultobj = 0;
10592 size_t result;
10593
10594 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
10595 {
10596 PyThreadState* __tstate = wxPyBeginAllowThreads();
10597 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
10598 wxPyEndAllowThreads(__tstate);
10599 if (PyErr_Occurred()) SWIG_fail;
10600 }
10601 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
10602 return resultobj;
10603 fail:
10604 return NULL;
10605 }
10606
10607
10608 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10609 PyObject *resultobj = 0;
10610 size_t arg1 ;
10611 wxFontEncoding result;
10612 size_t val1 ;
10613 int ecode1 = 0 ;
10614 PyObject * obj0 = 0 ;
10615 char * kwnames[] = {
10616 (char *) "n", NULL
10617 };
10618
10619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
10620 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
10621 if (!SWIG_IsOK(ecode1)) {
10622 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
10623 }
10624 arg1 = static_cast< size_t >(val1);
10625 {
10626 PyThreadState* __tstate = wxPyBeginAllowThreads();
10627 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
10628 wxPyEndAllowThreads(__tstate);
10629 if (PyErr_Occurred()) SWIG_fail;
10630 }
10631 resultobj = SWIG_From_int(static_cast< int >(result));
10632 return resultobj;
10633 fail:
10634 return NULL;
10635 }
10636
10637
10638 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10639 PyObject *resultobj = 0;
10640 wxFontEncoding arg1 ;
10641 wxString result;
10642 int val1 ;
10643 int ecode1 = 0 ;
10644 PyObject * obj0 = 0 ;
10645 char * kwnames[] = {
10646 (char *) "encoding", NULL
10647 };
10648
10649 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
10650 ecode1 = SWIG_AsVal_int(obj0, &val1);
10651 if (!SWIG_IsOK(ecode1)) {
10652 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10653 }
10654 arg1 = static_cast< wxFontEncoding >(val1);
10655 {
10656 PyThreadState* __tstate = wxPyBeginAllowThreads();
10657 result = wxFontMapper::GetEncodingName(arg1);
10658 wxPyEndAllowThreads(__tstate);
10659 if (PyErr_Occurred()) SWIG_fail;
10660 }
10661 {
10662 #if wxUSE_UNICODE
10663 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10664 #else
10665 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10666 #endif
10667 }
10668 return resultobj;
10669 fail:
10670 return NULL;
10671 }
10672
10673
10674 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10675 PyObject *resultobj = 0;
10676 wxFontEncoding arg1 ;
10677 wxString result;
10678 int val1 ;
10679 int ecode1 = 0 ;
10680 PyObject * obj0 = 0 ;
10681 char * kwnames[] = {
10682 (char *) "encoding", NULL
10683 };
10684
10685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
10686 ecode1 = SWIG_AsVal_int(obj0, &val1);
10687 if (!SWIG_IsOK(ecode1)) {
10688 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
10689 }
10690 arg1 = static_cast< wxFontEncoding >(val1);
10691 {
10692 PyThreadState* __tstate = wxPyBeginAllowThreads();
10693 result = wxFontMapper::GetEncodingDescription(arg1);
10694 wxPyEndAllowThreads(__tstate);
10695 if (PyErr_Occurred()) SWIG_fail;
10696 }
10697 {
10698 #if wxUSE_UNICODE
10699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10700 #else
10701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10702 #endif
10703 }
10704 return resultobj;
10705 fail:
10706 return NULL;
10707 }
10708
10709
10710 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10711 PyObject *resultobj = 0;
10712 wxString *arg1 = 0 ;
10713 wxFontEncoding result;
10714 bool temp1 = false ;
10715 PyObject * obj0 = 0 ;
10716 char * kwnames[] = {
10717 (char *) "name", NULL
10718 };
10719
10720 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
10721 {
10722 arg1 = wxString_in_helper(obj0);
10723 if (arg1 == NULL) SWIG_fail;
10724 temp1 = true;
10725 }
10726 {
10727 PyThreadState* __tstate = wxPyBeginAllowThreads();
10728 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
10729 wxPyEndAllowThreads(__tstate);
10730 if (PyErr_Occurred()) SWIG_fail;
10731 }
10732 resultobj = SWIG_From_int(static_cast< int >(result));
10733 {
10734 if (temp1)
10735 delete arg1;
10736 }
10737 return resultobj;
10738 fail:
10739 {
10740 if (temp1)
10741 delete arg1;
10742 }
10743 return NULL;
10744 }
10745
10746
10747 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10748 PyObject *resultobj = 0;
10749 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10750 wxString *arg2 = 0 ;
10751 void *argp1 = 0 ;
10752 int res1 = 0 ;
10753 bool temp2 = false ;
10754 PyObject * obj0 = 0 ;
10755 PyObject * obj1 = 0 ;
10756 char * kwnames[] = {
10757 (char *) "self",(char *) "prefix", NULL
10758 };
10759
10760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
10761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10762 if (!SWIG_IsOK(res1)) {
10763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10764 }
10765 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10766 {
10767 arg2 = wxString_in_helper(obj1);
10768 if (arg2 == NULL) SWIG_fail;
10769 temp2 = true;
10770 }
10771 {
10772 PyThreadState* __tstate = wxPyBeginAllowThreads();
10773 (arg1)->SetConfigPath((wxString const &)*arg2);
10774 wxPyEndAllowThreads(__tstate);
10775 if (PyErr_Occurred()) SWIG_fail;
10776 }
10777 resultobj = SWIG_Py_Void();
10778 {
10779 if (temp2)
10780 delete arg2;
10781 }
10782 return resultobj;
10783 fail:
10784 {
10785 if (temp2)
10786 delete arg2;
10787 }
10788 return NULL;
10789 }
10790
10791
10792 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10793 PyObject *resultobj = 0;
10794 wxString result;
10795
10796 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
10797 {
10798 PyThreadState* __tstate = wxPyBeginAllowThreads();
10799 result = wxFontMapper::GetDefaultConfigPath();
10800 wxPyEndAllowThreads(__tstate);
10801 if (PyErr_Occurred()) SWIG_fail;
10802 }
10803 {
10804 #if wxUSE_UNICODE
10805 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10806 #else
10807 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10808 #endif
10809 }
10810 return resultobj;
10811 fail:
10812 return NULL;
10813 }
10814
10815
10816 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10817 PyObject *resultobj = 0;
10818 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10819 wxFontEncoding arg2 ;
10820 wxString const &arg3_defvalue = wxPyEmptyString ;
10821 wxString *arg3 = (wxString *) &arg3_defvalue ;
10822 bool arg4 = (bool) true ;
10823 PyObject *result = 0 ;
10824 void *argp1 = 0 ;
10825 int res1 = 0 ;
10826 int val2 ;
10827 int ecode2 = 0 ;
10828 bool temp3 = false ;
10829 bool val4 ;
10830 int ecode4 = 0 ;
10831 PyObject * obj0 = 0 ;
10832 PyObject * obj1 = 0 ;
10833 PyObject * obj2 = 0 ;
10834 PyObject * obj3 = 0 ;
10835 char * kwnames[] = {
10836 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
10837 };
10838
10839 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
10840 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10841 if (!SWIG_IsOK(res1)) {
10842 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10843 }
10844 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10845 ecode2 = SWIG_AsVal_int(obj1, &val2);
10846 if (!SWIG_IsOK(ecode2)) {
10847 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10848 }
10849 arg2 = static_cast< wxFontEncoding >(val2);
10850 if (obj2) {
10851 {
10852 arg3 = wxString_in_helper(obj2);
10853 if (arg3 == NULL) SWIG_fail;
10854 temp3 = true;
10855 }
10856 }
10857 if (obj3) {
10858 ecode4 = SWIG_AsVal_bool(obj3, &val4);
10859 if (!SWIG_IsOK(ecode4)) {
10860 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
10861 }
10862 arg4 = static_cast< bool >(val4);
10863 }
10864 {
10865 PyThreadState* __tstate = wxPyBeginAllowThreads();
10866 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
10867 wxPyEndAllowThreads(__tstate);
10868 if (PyErr_Occurred()) SWIG_fail;
10869 }
10870 resultobj = result;
10871 {
10872 if (temp3)
10873 delete arg3;
10874 }
10875 return resultobj;
10876 fail:
10877 {
10878 if (temp3)
10879 delete arg3;
10880 }
10881 return NULL;
10882 }
10883
10884
10885 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10886 PyObject *resultobj = 0;
10887 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10888 wxFontEncoding arg2 ;
10889 wxString const &arg3_defvalue = wxPyEmptyString ;
10890 wxString *arg3 = (wxString *) &arg3_defvalue ;
10891 bool result;
10892 void *argp1 = 0 ;
10893 int res1 = 0 ;
10894 int val2 ;
10895 int ecode2 = 0 ;
10896 bool temp3 = false ;
10897 PyObject * obj0 = 0 ;
10898 PyObject * obj1 = 0 ;
10899 PyObject * obj2 = 0 ;
10900 char * kwnames[] = {
10901 (char *) "self",(char *) "encoding",(char *) "facename", NULL
10902 };
10903
10904 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
10905 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10906 if (!SWIG_IsOK(res1)) {
10907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10908 }
10909 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10910 ecode2 = SWIG_AsVal_int(obj1, &val2);
10911 if (!SWIG_IsOK(ecode2)) {
10912 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10913 }
10914 arg2 = static_cast< wxFontEncoding >(val2);
10915 if (obj2) {
10916 {
10917 arg3 = wxString_in_helper(obj2);
10918 if (arg3 == NULL) SWIG_fail;
10919 temp3 = true;
10920 }
10921 }
10922 {
10923 PyThreadState* __tstate = wxPyBeginAllowThreads();
10924 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
10925 wxPyEndAllowThreads(__tstate);
10926 if (PyErr_Occurred()) SWIG_fail;
10927 }
10928 {
10929 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10930 }
10931 {
10932 if (temp3)
10933 delete arg3;
10934 }
10935 return resultobj;
10936 fail:
10937 {
10938 if (temp3)
10939 delete arg3;
10940 }
10941 return NULL;
10942 }
10943
10944
10945 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10946 PyObject *resultobj = 0;
10947 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10948 wxWindow *arg2 = (wxWindow *) 0 ;
10949 void *argp1 = 0 ;
10950 int res1 = 0 ;
10951 void *argp2 = 0 ;
10952 int res2 = 0 ;
10953 PyObject * obj0 = 0 ;
10954 PyObject * obj1 = 0 ;
10955 char * kwnames[] = {
10956 (char *) "self",(char *) "parent", NULL
10957 };
10958
10959 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
10960 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10961 if (!SWIG_IsOK(res1)) {
10962 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
10963 }
10964 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
10965 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
10966 if (!SWIG_IsOK(res2)) {
10967 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
10968 }
10969 arg2 = reinterpret_cast< wxWindow * >(argp2);
10970 {
10971 PyThreadState* __tstate = wxPyBeginAllowThreads();
10972 (arg1)->SetDialogParent(arg2);
10973 wxPyEndAllowThreads(__tstate);
10974 if (PyErr_Occurred()) SWIG_fail;
10975 }
10976 resultobj = SWIG_Py_Void();
10977 return resultobj;
10978 fail:
10979 return NULL;
10980 }
10981
10982
10983 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10984 PyObject *resultobj = 0;
10985 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
10986 wxString *arg2 = 0 ;
10987 void *argp1 = 0 ;
10988 int res1 = 0 ;
10989 bool temp2 = false ;
10990 PyObject * obj0 = 0 ;
10991 PyObject * obj1 = 0 ;
10992 char * kwnames[] = {
10993 (char *) "self",(char *) "title", NULL
10994 };
10995
10996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
10997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
10998 if (!SWIG_IsOK(res1)) {
10999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11000 }
11001 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11002 {
11003 arg2 = wxString_in_helper(obj1);
11004 if (arg2 == NULL) SWIG_fail;
11005 temp2 = true;
11006 }
11007 {
11008 PyThreadState* __tstate = wxPyBeginAllowThreads();
11009 (arg1)->SetDialogTitle((wxString const &)*arg2);
11010 wxPyEndAllowThreads(__tstate);
11011 if (PyErr_Occurred()) SWIG_fail;
11012 }
11013 resultobj = SWIG_Py_Void();
11014 {
11015 if (temp2)
11016 delete arg2;
11017 }
11018 return resultobj;
11019 fail:
11020 {
11021 if (temp2)
11022 delete arg2;
11023 }
11024 return NULL;
11025 }
11026
11027
11028 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11029 PyObject *obj;
11030 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11031 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11032 return SWIG_Py_Void();
11033 }
11034
11035 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11036 return SWIG_Python_InitShadowInstance(args);
11037 }
11038
11039 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11040 PyObject *resultobj = 0;
11041 int arg1 ;
11042 int arg2 ;
11043 int arg3 ;
11044 int arg4 ;
11045 bool arg5 = (bool) false ;
11046 wxString const &arg6_defvalue = wxPyEmptyString ;
11047 wxString *arg6 = (wxString *) &arg6_defvalue ;
11048 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11049 wxFont *result = 0 ;
11050 int val1 ;
11051 int ecode1 = 0 ;
11052 int val2 ;
11053 int ecode2 = 0 ;
11054 int val3 ;
11055 int ecode3 = 0 ;
11056 int val4 ;
11057 int ecode4 = 0 ;
11058 bool val5 ;
11059 int ecode5 = 0 ;
11060 bool temp6 = false ;
11061 int val7 ;
11062 int ecode7 = 0 ;
11063 PyObject * obj0 = 0 ;
11064 PyObject * obj1 = 0 ;
11065 PyObject * obj2 = 0 ;
11066 PyObject * obj3 = 0 ;
11067 PyObject * obj4 = 0 ;
11068 PyObject * obj5 = 0 ;
11069 PyObject * obj6 = 0 ;
11070 char * kwnames[] = {
11071 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11072 };
11073
11074 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11075 ecode1 = SWIG_AsVal_int(obj0, &val1);
11076 if (!SWIG_IsOK(ecode1)) {
11077 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11078 }
11079 arg1 = static_cast< int >(val1);
11080 ecode2 = SWIG_AsVal_int(obj1, &val2);
11081 if (!SWIG_IsOK(ecode2)) {
11082 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11083 }
11084 arg2 = static_cast< int >(val2);
11085 ecode3 = SWIG_AsVal_int(obj2, &val3);
11086 if (!SWIG_IsOK(ecode3)) {
11087 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11088 }
11089 arg3 = static_cast< int >(val3);
11090 ecode4 = SWIG_AsVal_int(obj3, &val4);
11091 if (!SWIG_IsOK(ecode4)) {
11092 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11093 }
11094 arg4 = static_cast< int >(val4);
11095 if (obj4) {
11096 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11097 if (!SWIG_IsOK(ecode5)) {
11098 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11099 }
11100 arg5 = static_cast< bool >(val5);
11101 }
11102 if (obj5) {
11103 {
11104 arg6 = wxString_in_helper(obj5);
11105 if (arg6 == NULL) SWIG_fail;
11106 temp6 = true;
11107 }
11108 }
11109 if (obj6) {
11110 ecode7 = SWIG_AsVal_int(obj6, &val7);
11111 if (!SWIG_IsOK(ecode7)) {
11112 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11113 }
11114 arg7 = static_cast< wxFontEncoding >(val7);
11115 }
11116 {
11117 if (!wxPyCheckForApp()) SWIG_fail;
11118 PyThreadState* __tstate = wxPyBeginAllowThreads();
11119 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11120 wxPyEndAllowThreads(__tstate);
11121 if (PyErr_Occurred()) SWIG_fail;
11122 }
11123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11124 {
11125 if (temp6)
11126 delete arg6;
11127 }
11128 return resultobj;
11129 fail:
11130 {
11131 if (temp6)
11132 delete arg6;
11133 }
11134 return NULL;
11135 }
11136
11137
11138 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11139 PyObject *resultobj = 0;
11140 wxFont *arg1 = (wxFont *) 0 ;
11141 void *argp1 = 0 ;
11142 int res1 = 0 ;
11143 PyObject *swig_obj[1] ;
11144
11145 if (!args) SWIG_fail;
11146 swig_obj[0] = args;
11147 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11148 if (!SWIG_IsOK(res1)) {
11149 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11150 }
11151 arg1 = reinterpret_cast< wxFont * >(argp1);
11152 {
11153 PyThreadState* __tstate = wxPyBeginAllowThreads();
11154 delete arg1;
11155
11156 wxPyEndAllowThreads(__tstate);
11157 if (PyErr_Occurred()) SWIG_fail;
11158 }
11159 resultobj = SWIG_Py_Void();
11160 return resultobj;
11161 fail:
11162 return NULL;
11163 }
11164
11165
11166 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11167 PyObject *resultobj = 0;
11168 wxNativeFontInfo *arg1 = 0 ;
11169 wxFont *result = 0 ;
11170 void *argp1 = 0 ;
11171 int res1 = 0 ;
11172 PyObject * obj0 = 0 ;
11173 char * kwnames[] = {
11174 (char *) "info", NULL
11175 };
11176
11177 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11178 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11179 if (!SWIG_IsOK(res1)) {
11180 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11181 }
11182 if (!argp1) {
11183 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11184 }
11185 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11186 {
11187 if (!wxPyCheckForApp()) SWIG_fail;
11188 PyThreadState* __tstate = wxPyBeginAllowThreads();
11189 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11194 return resultobj;
11195 fail:
11196 return NULL;
11197 }
11198
11199
11200 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11201 PyObject *resultobj = 0;
11202 wxString *arg1 = 0 ;
11203 wxFont *result = 0 ;
11204 bool temp1 = false ;
11205 PyObject * obj0 = 0 ;
11206 char * kwnames[] = {
11207 (char *) "info", NULL
11208 };
11209
11210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11211 {
11212 arg1 = wxString_in_helper(obj0);
11213 if (arg1 == NULL) SWIG_fail;
11214 temp1 = true;
11215 }
11216 {
11217 if (!wxPyCheckForApp()) SWIG_fail;
11218 PyThreadState* __tstate = wxPyBeginAllowThreads();
11219 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11220 wxPyEndAllowThreads(__tstate);
11221 if (PyErr_Occurred()) SWIG_fail;
11222 }
11223 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11224 {
11225 if (temp1)
11226 delete arg1;
11227 }
11228 return resultobj;
11229 fail:
11230 {
11231 if (temp1)
11232 delete arg1;
11233 }
11234 return NULL;
11235 }
11236
11237
11238 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11239 PyObject *resultobj = 0;
11240 int arg1 ;
11241 wxFontFamily arg2 ;
11242 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11243 wxString const &arg4_defvalue = wxPyEmptyString ;
11244 wxString *arg4 = (wxString *) &arg4_defvalue ;
11245 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11246 wxFont *result = 0 ;
11247 int val1 ;
11248 int ecode1 = 0 ;
11249 int val2 ;
11250 int ecode2 = 0 ;
11251 int val3 ;
11252 int ecode3 = 0 ;
11253 bool temp4 = false ;
11254 int val5 ;
11255 int ecode5 = 0 ;
11256 PyObject * obj0 = 0 ;
11257 PyObject * obj1 = 0 ;
11258 PyObject * obj2 = 0 ;
11259 PyObject * obj3 = 0 ;
11260 PyObject * obj4 = 0 ;
11261 char * kwnames[] = {
11262 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11263 };
11264
11265 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11266 ecode1 = SWIG_AsVal_int(obj0, &val1);
11267 if (!SWIG_IsOK(ecode1)) {
11268 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11269 }
11270 arg1 = static_cast< int >(val1);
11271 ecode2 = SWIG_AsVal_int(obj1, &val2);
11272 if (!SWIG_IsOK(ecode2)) {
11273 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11274 }
11275 arg2 = static_cast< wxFontFamily >(val2);
11276 if (obj2) {
11277 ecode3 = SWIG_AsVal_int(obj2, &val3);
11278 if (!SWIG_IsOK(ecode3)) {
11279 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11280 }
11281 arg3 = static_cast< int >(val3);
11282 }
11283 if (obj3) {
11284 {
11285 arg4 = wxString_in_helper(obj3);
11286 if (arg4 == NULL) SWIG_fail;
11287 temp4 = true;
11288 }
11289 }
11290 if (obj4) {
11291 ecode5 = SWIG_AsVal_int(obj4, &val5);
11292 if (!SWIG_IsOK(ecode5)) {
11293 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11294 }
11295 arg5 = static_cast< wxFontEncoding >(val5);
11296 }
11297 {
11298 if (!wxPyCheckForApp()) SWIG_fail;
11299 PyThreadState* __tstate = wxPyBeginAllowThreads();
11300 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11301 wxPyEndAllowThreads(__tstate);
11302 if (PyErr_Occurred()) SWIG_fail;
11303 }
11304 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11305 {
11306 if (temp4)
11307 delete arg4;
11308 }
11309 return resultobj;
11310 fail:
11311 {
11312 if (temp4)
11313 delete arg4;
11314 }
11315 return NULL;
11316 }
11317
11318
11319 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11320 PyObject *resultobj = 0;
11321 wxSize *arg1 = 0 ;
11322 int arg2 ;
11323 int arg3 ;
11324 int arg4 ;
11325 bool arg5 = (bool) false ;
11326 wxString const &arg6_defvalue = wxEmptyString ;
11327 wxString *arg6 = (wxString *) &arg6_defvalue ;
11328 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11329 wxFont *result = 0 ;
11330 wxSize temp1 ;
11331 int val2 ;
11332 int ecode2 = 0 ;
11333 int val3 ;
11334 int ecode3 = 0 ;
11335 int val4 ;
11336 int ecode4 = 0 ;
11337 bool val5 ;
11338 int ecode5 = 0 ;
11339 bool temp6 = false ;
11340 int val7 ;
11341 int ecode7 = 0 ;
11342 PyObject * obj0 = 0 ;
11343 PyObject * obj1 = 0 ;
11344 PyObject * obj2 = 0 ;
11345 PyObject * obj3 = 0 ;
11346 PyObject * obj4 = 0 ;
11347 PyObject * obj5 = 0 ;
11348 PyObject * obj6 = 0 ;
11349 char * kwnames[] = {
11350 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
11351 };
11352
11353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11354 {
11355 arg1 = &temp1;
11356 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11357 }
11358 ecode2 = SWIG_AsVal_int(obj1, &val2);
11359 if (!SWIG_IsOK(ecode2)) {
11360 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
11361 }
11362 arg2 = static_cast< int >(val2);
11363 ecode3 = SWIG_AsVal_int(obj2, &val3);
11364 if (!SWIG_IsOK(ecode3)) {
11365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11366 }
11367 arg3 = static_cast< int >(val3);
11368 ecode4 = SWIG_AsVal_int(obj3, &val4);
11369 if (!SWIG_IsOK(ecode4)) {
11370 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
11371 }
11372 arg4 = static_cast< int >(val4);
11373 if (obj4) {
11374 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11375 if (!SWIG_IsOK(ecode5)) {
11376 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
11377 }
11378 arg5 = static_cast< bool >(val5);
11379 }
11380 if (obj5) {
11381 {
11382 arg6 = wxString_in_helper(obj5);
11383 if (arg6 == NULL) SWIG_fail;
11384 temp6 = true;
11385 }
11386 }
11387 if (obj6) {
11388 ecode7 = SWIG_AsVal_int(obj6, &val7);
11389 if (!SWIG_IsOK(ecode7)) {
11390 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11391 }
11392 arg7 = static_cast< wxFontEncoding >(val7);
11393 }
11394 {
11395 if (!wxPyCheckForApp()) SWIG_fail;
11396 PyThreadState* __tstate = wxPyBeginAllowThreads();
11397 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11398 wxPyEndAllowThreads(__tstate);
11399 if (PyErr_Occurred()) SWIG_fail;
11400 }
11401 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11402 {
11403 if (temp6)
11404 delete arg6;
11405 }
11406 return resultobj;
11407 fail:
11408 {
11409 if (temp6)
11410 delete arg6;
11411 }
11412 return NULL;
11413 }
11414
11415
11416 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11417 PyObject *resultobj = 0;
11418 wxSize *arg1 = 0 ;
11419 wxFontFamily arg2 ;
11420 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11421 wxString const &arg4_defvalue = wxEmptyString ;
11422 wxString *arg4 = (wxString *) &arg4_defvalue ;
11423 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11424 wxFont *result = 0 ;
11425 wxSize temp1 ;
11426 int val2 ;
11427 int ecode2 = 0 ;
11428 int val3 ;
11429 int ecode3 = 0 ;
11430 bool temp4 = false ;
11431 int val5 ;
11432 int ecode5 = 0 ;
11433 PyObject * obj0 = 0 ;
11434 PyObject * obj1 = 0 ;
11435 PyObject * obj2 = 0 ;
11436 PyObject * obj3 = 0 ;
11437 PyObject * obj4 = 0 ;
11438 char * kwnames[] = {
11439 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11440 };
11441
11442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11443 {
11444 arg1 = &temp1;
11445 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
11446 }
11447 ecode2 = SWIG_AsVal_int(obj1, &val2);
11448 if (!SWIG_IsOK(ecode2)) {
11449 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
11450 }
11451 arg2 = static_cast< wxFontFamily >(val2);
11452 if (obj2) {
11453 ecode3 = SWIG_AsVal_int(obj2, &val3);
11454 if (!SWIG_IsOK(ecode3)) {
11455 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
11456 }
11457 arg3 = static_cast< int >(val3);
11458 }
11459 if (obj3) {
11460 {
11461 arg4 = wxString_in_helper(obj3);
11462 if (arg4 == NULL) SWIG_fail;
11463 temp4 = true;
11464 }
11465 }
11466 if (obj4) {
11467 ecode5 = SWIG_AsVal_int(obj4, &val5);
11468 if (!SWIG_IsOK(ecode5)) {
11469 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
11470 }
11471 arg5 = static_cast< wxFontEncoding >(val5);
11472 }
11473 {
11474 if (!wxPyCheckForApp()) SWIG_fail;
11475 PyThreadState* __tstate = wxPyBeginAllowThreads();
11476 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
11477 wxPyEndAllowThreads(__tstate);
11478 if (PyErr_Occurred()) SWIG_fail;
11479 }
11480 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11481 {
11482 if (temp4)
11483 delete arg4;
11484 }
11485 return resultobj;
11486 fail:
11487 {
11488 if (temp4)
11489 delete arg4;
11490 }
11491 return NULL;
11492 }
11493
11494
11495 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11496 PyObject *resultobj = 0;
11497 wxFont *arg1 = (wxFont *) 0 ;
11498 bool result;
11499 void *argp1 = 0 ;
11500 int res1 = 0 ;
11501 PyObject *swig_obj[1] ;
11502
11503 if (!args) SWIG_fail;
11504 swig_obj[0] = args;
11505 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11506 if (!SWIG_IsOK(res1)) {
11507 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
11508 }
11509 arg1 = reinterpret_cast< wxFont * >(argp1);
11510 {
11511 PyThreadState* __tstate = wxPyBeginAllowThreads();
11512 result = (bool)((wxFont const *)arg1)->Ok();
11513 wxPyEndAllowThreads(__tstate);
11514 if (PyErr_Occurred()) SWIG_fail;
11515 }
11516 {
11517 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11518 }
11519 return resultobj;
11520 fail:
11521 return NULL;
11522 }
11523
11524
11525 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11526 PyObject *resultobj = 0;
11527 wxFont *arg1 = (wxFont *) 0 ;
11528 wxFont *arg2 = (wxFont *) 0 ;
11529 bool result;
11530 void *argp1 = 0 ;
11531 int res1 = 0 ;
11532 void *argp2 = 0 ;
11533 int res2 = 0 ;
11534 PyObject * obj0 = 0 ;
11535 PyObject * obj1 = 0 ;
11536 char * kwnames[] = {
11537 (char *) "self",(char *) "other", NULL
11538 };
11539
11540 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
11541 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11542 if (!SWIG_IsOK(res1)) {
11543 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
11544 }
11545 arg1 = reinterpret_cast< wxFont * >(argp1);
11546 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11547 if (!SWIG_IsOK(res2)) {
11548 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
11549 }
11550 arg2 = reinterpret_cast< wxFont * >(argp2);
11551 {
11552 PyThreadState* __tstate = wxPyBeginAllowThreads();
11553 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
11554 wxPyEndAllowThreads(__tstate);
11555 if (PyErr_Occurred()) SWIG_fail;
11556 }
11557 {
11558 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11559 }
11560 return resultobj;
11561 fail:
11562 return NULL;
11563 }
11564
11565
11566 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11567 PyObject *resultobj = 0;
11568 wxFont *arg1 = (wxFont *) 0 ;
11569 wxFont *arg2 = (wxFont *) 0 ;
11570 bool result;
11571 void *argp1 = 0 ;
11572 int res1 = 0 ;
11573 void *argp2 = 0 ;
11574 int res2 = 0 ;
11575 PyObject * obj0 = 0 ;
11576 PyObject * obj1 = 0 ;
11577 char * kwnames[] = {
11578 (char *) "self",(char *) "other", NULL
11579 };
11580
11581 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
11582 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11583 if (!SWIG_IsOK(res1)) {
11584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
11585 }
11586 arg1 = reinterpret_cast< wxFont * >(argp1);
11587 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
11588 if (!SWIG_IsOK(res2)) {
11589 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
11590 }
11591 arg2 = reinterpret_cast< wxFont * >(argp2);
11592 {
11593 PyThreadState* __tstate = wxPyBeginAllowThreads();
11594 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
11595 wxPyEndAllowThreads(__tstate);
11596 if (PyErr_Occurred()) SWIG_fail;
11597 }
11598 {
11599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11600 }
11601 return resultobj;
11602 fail:
11603 return NULL;
11604 }
11605
11606
11607 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11608 PyObject *resultobj = 0;
11609 wxFont *arg1 = (wxFont *) 0 ;
11610 int result;
11611 void *argp1 = 0 ;
11612 int res1 = 0 ;
11613 PyObject *swig_obj[1] ;
11614
11615 if (!args) SWIG_fail;
11616 swig_obj[0] = args;
11617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11618 if (!SWIG_IsOK(res1)) {
11619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11620 }
11621 arg1 = reinterpret_cast< wxFont * >(argp1);
11622 {
11623 PyThreadState* __tstate = wxPyBeginAllowThreads();
11624 result = (int)((wxFont const *)arg1)->GetPointSize();
11625 wxPyEndAllowThreads(__tstate);
11626 if (PyErr_Occurred()) SWIG_fail;
11627 }
11628 resultobj = SWIG_From_int(static_cast< int >(result));
11629 return resultobj;
11630 fail:
11631 return NULL;
11632 }
11633
11634
11635 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11636 PyObject *resultobj = 0;
11637 wxFont *arg1 = (wxFont *) 0 ;
11638 wxSize result;
11639 void *argp1 = 0 ;
11640 int res1 = 0 ;
11641 PyObject *swig_obj[1] ;
11642
11643 if (!args) SWIG_fail;
11644 swig_obj[0] = args;
11645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11646 if (!SWIG_IsOK(res1)) {
11647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
11648 }
11649 arg1 = reinterpret_cast< wxFont * >(argp1);
11650 {
11651 PyThreadState* __tstate = wxPyBeginAllowThreads();
11652 result = ((wxFont const *)arg1)->GetPixelSize();
11653 wxPyEndAllowThreads(__tstate);
11654 if (PyErr_Occurred()) SWIG_fail;
11655 }
11656 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
11657 return resultobj;
11658 fail:
11659 return NULL;
11660 }
11661
11662
11663 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11664 PyObject *resultobj = 0;
11665 wxFont *arg1 = (wxFont *) 0 ;
11666 bool result;
11667 void *argp1 = 0 ;
11668 int res1 = 0 ;
11669 PyObject *swig_obj[1] ;
11670
11671 if (!args) SWIG_fail;
11672 swig_obj[0] = args;
11673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11674 if (!SWIG_IsOK(res1)) {
11675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
11676 }
11677 arg1 = reinterpret_cast< wxFont * >(argp1);
11678 {
11679 PyThreadState* __tstate = wxPyBeginAllowThreads();
11680 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
11681 wxPyEndAllowThreads(__tstate);
11682 if (PyErr_Occurred()) SWIG_fail;
11683 }
11684 {
11685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11686 }
11687 return resultobj;
11688 fail:
11689 return NULL;
11690 }
11691
11692
11693 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11694 PyObject *resultobj = 0;
11695 wxFont *arg1 = (wxFont *) 0 ;
11696 int result;
11697 void *argp1 = 0 ;
11698 int res1 = 0 ;
11699 PyObject *swig_obj[1] ;
11700
11701 if (!args) SWIG_fail;
11702 swig_obj[0] = args;
11703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11704 if (!SWIG_IsOK(res1)) {
11705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
11706 }
11707 arg1 = reinterpret_cast< wxFont * >(argp1);
11708 {
11709 PyThreadState* __tstate = wxPyBeginAllowThreads();
11710 result = (int)((wxFont const *)arg1)->GetFamily();
11711 wxPyEndAllowThreads(__tstate);
11712 if (PyErr_Occurred()) SWIG_fail;
11713 }
11714 resultobj = SWIG_From_int(static_cast< int >(result));
11715 return resultobj;
11716 fail:
11717 return NULL;
11718 }
11719
11720
11721 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11722 PyObject *resultobj = 0;
11723 wxFont *arg1 = (wxFont *) 0 ;
11724 int result;
11725 void *argp1 = 0 ;
11726 int res1 = 0 ;
11727 PyObject *swig_obj[1] ;
11728
11729 if (!args) SWIG_fail;
11730 swig_obj[0] = args;
11731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11732 if (!SWIG_IsOK(res1)) {
11733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
11734 }
11735 arg1 = reinterpret_cast< wxFont * >(argp1);
11736 {
11737 PyThreadState* __tstate = wxPyBeginAllowThreads();
11738 result = (int)((wxFont const *)arg1)->GetStyle();
11739 wxPyEndAllowThreads(__tstate);
11740 if (PyErr_Occurred()) SWIG_fail;
11741 }
11742 resultobj = SWIG_From_int(static_cast< int >(result));
11743 return resultobj;
11744 fail:
11745 return NULL;
11746 }
11747
11748
11749 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11750 PyObject *resultobj = 0;
11751 wxFont *arg1 = (wxFont *) 0 ;
11752 int result;
11753 void *argp1 = 0 ;
11754 int res1 = 0 ;
11755 PyObject *swig_obj[1] ;
11756
11757 if (!args) SWIG_fail;
11758 swig_obj[0] = args;
11759 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11760 if (!SWIG_IsOK(res1)) {
11761 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
11762 }
11763 arg1 = reinterpret_cast< wxFont * >(argp1);
11764 {
11765 PyThreadState* __tstate = wxPyBeginAllowThreads();
11766 result = (int)((wxFont const *)arg1)->GetWeight();
11767 wxPyEndAllowThreads(__tstate);
11768 if (PyErr_Occurred()) SWIG_fail;
11769 }
11770 resultobj = SWIG_From_int(static_cast< int >(result));
11771 return resultobj;
11772 fail:
11773 return NULL;
11774 }
11775
11776
11777 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11778 PyObject *resultobj = 0;
11779 wxFont *arg1 = (wxFont *) 0 ;
11780 bool result;
11781 void *argp1 = 0 ;
11782 int res1 = 0 ;
11783 PyObject *swig_obj[1] ;
11784
11785 if (!args) SWIG_fail;
11786 swig_obj[0] = args;
11787 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11788 if (!SWIG_IsOK(res1)) {
11789 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
11790 }
11791 arg1 = reinterpret_cast< wxFont * >(argp1);
11792 {
11793 PyThreadState* __tstate = wxPyBeginAllowThreads();
11794 result = (bool)((wxFont const *)arg1)->GetUnderlined();
11795 wxPyEndAllowThreads(__tstate);
11796 if (PyErr_Occurred()) SWIG_fail;
11797 }
11798 {
11799 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11800 }
11801 return resultobj;
11802 fail:
11803 return NULL;
11804 }
11805
11806
11807 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11808 PyObject *resultobj = 0;
11809 wxFont *arg1 = (wxFont *) 0 ;
11810 wxString result;
11811 void *argp1 = 0 ;
11812 int res1 = 0 ;
11813 PyObject *swig_obj[1] ;
11814
11815 if (!args) SWIG_fail;
11816 swig_obj[0] = args;
11817 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11818 if (!SWIG_IsOK(res1)) {
11819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
11820 }
11821 arg1 = reinterpret_cast< wxFont * >(argp1);
11822 {
11823 PyThreadState* __tstate = wxPyBeginAllowThreads();
11824 result = ((wxFont const *)arg1)->GetFaceName();
11825 wxPyEndAllowThreads(__tstate);
11826 if (PyErr_Occurred()) SWIG_fail;
11827 }
11828 {
11829 #if wxUSE_UNICODE
11830 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11831 #else
11832 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11833 #endif
11834 }
11835 return resultobj;
11836 fail:
11837 return NULL;
11838 }
11839
11840
11841 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11842 PyObject *resultobj = 0;
11843 wxFont *arg1 = (wxFont *) 0 ;
11844 wxFontEncoding result;
11845 void *argp1 = 0 ;
11846 int res1 = 0 ;
11847 PyObject *swig_obj[1] ;
11848
11849 if (!args) SWIG_fail;
11850 swig_obj[0] = args;
11851 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11852 if (!SWIG_IsOK(res1)) {
11853 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
11854 }
11855 arg1 = reinterpret_cast< wxFont * >(argp1);
11856 {
11857 PyThreadState* __tstate = wxPyBeginAllowThreads();
11858 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
11859 wxPyEndAllowThreads(__tstate);
11860 if (PyErr_Occurred()) SWIG_fail;
11861 }
11862 resultobj = SWIG_From_int(static_cast< int >(result));
11863 return resultobj;
11864 fail:
11865 return NULL;
11866 }
11867
11868
11869 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11870 PyObject *resultobj = 0;
11871 wxFont *arg1 = (wxFont *) 0 ;
11872 wxNativeFontInfo *result = 0 ;
11873 void *argp1 = 0 ;
11874 int res1 = 0 ;
11875 PyObject *swig_obj[1] ;
11876
11877 if (!args) SWIG_fail;
11878 swig_obj[0] = args;
11879 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11880 if (!SWIG_IsOK(res1)) {
11881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
11882 }
11883 arg1 = reinterpret_cast< wxFont * >(argp1);
11884 {
11885 PyThreadState* __tstate = wxPyBeginAllowThreads();
11886 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
11887 wxPyEndAllowThreads(__tstate);
11888 if (PyErr_Occurred()) SWIG_fail;
11889 }
11890 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
11891 return resultobj;
11892 fail:
11893 return NULL;
11894 }
11895
11896
11897 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11898 PyObject *resultobj = 0;
11899 wxFont *arg1 = (wxFont *) 0 ;
11900 bool result;
11901 void *argp1 = 0 ;
11902 int res1 = 0 ;
11903 PyObject *swig_obj[1] ;
11904
11905 if (!args) SWIG_fail;
11906 swig_obj[0] = args;
11907 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11908 if (!SWIG_IsOK(res1)) {
11909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
11910 }
11911 arg1 = reinterpret_cast< wxFont * >(argp1);
11912 {
11913 PyThreadState* __tstate = wxPyBeginAllowThreads();
11914 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
11915 wxPyEndAllowThreads(__tstate);
11916 if (PyErr_Occurred()) SWIG_fail;
11917 }
11918 {
11919 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11920 }
11921 return resultobj;
11922 fail:
11923 return NULL;
11924 }
11925
11926
11927 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11928 PyObject *resultobj = 0;
11929 wxFont *arg1 = (wxFont *) 0 ;
11930 wxString result;
11931 void *argp1 = 0 ;
11932 int res1 = 0 ;
11933 PyObject *swig_obj[1] ;
11934
11935 if (!args) SWIG_fail;
11936 swig_obj[0] = args;
11937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11938 if (!SWIG_IsOK(res1)) {
11939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11940 }
11941 arg1 = reinterpret_cast< wxFont * >(argp1);
11942 {
11943 PyThreadState* __tstate = wxPyBeginAllowThreads();
11944 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
11945 wxPyEndAllowThreads(__tstate);
11946 if (PyErr_Occurred()) SWIG_fail;
11947 }
11948 {
11949 #if wxUSE_UNICODE
11950 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11951 #else
11952 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11953 #endif
11954 }
11955 return resultobj;
11956 fail:
11957 return NULL;
11958 }
11959
11960
11961 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11962 PyObject *resultobj = 0;
11963 wxFont *arg1 = (wxFont *) 0 ;
11964 wxString result;
11965 void *argp1 = 0 ;
11966 int res1 = 0 ;
11967 PyObject *swig_obj[1] ;
11968
11969 if (!args) SWIG_fail;
11970 swig_obj[0] = args;
11971 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
11972 if (!SWIG_IsOK(res1)) {
11973 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
11974 }
11975 arg1 = reinterpret_cast< wxFont * >(argp1);
11976 {
11977 PyThreadState* __tstate = wxPyBeginAllowThreads();
11978 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
11979 wxPyEndAllowThreads(__tstate);
11980 if (PyErr_Occurred()) SWIG_fail;
11981 }
11982 {
11983 #if wxUSE_UNICODE
11984 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11985 #else
11986 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11987 #endif
11988 }
11989 return resultobj;
11990 fail:
11991 return NULL;
11992 }
11993
11994
11995 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11996 PyObject *resultobj = 0;
11997 wxFont *arg1 = (wxFont *) 0 ;
11998 int arg2 ;
11999 void *argp1 = 0 ;
12000 int res1 = 0 ;
12001 int val2 ;
12002 int ecode2 = 0 ;
12003 PyObject * obj0 = 0 ;
12004 PyObject * obj1 = 0 ;
12005 char * kwnames[] = {
12006 (char *) "self",(char *) "pointSize", NULL
12007 };
12008
12009 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12010 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12011 if (!SWIG_IsOK(res1)) {
12012 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12013 }
12014 arg1 = reinterpret_cast< wxFont * >(argp1);
12015 ecode2 = SWIG_AsVal_int(obj1, &val2);
12016 if (!SWIG_IsOK(ecode2)) {
12017 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12018 }
12019 arg2 = static_cast< int >(val2);
12020 {
12021 PyThreadState* __tstate = wxPyBeginAllowThreads();
12022 (arg1)->SetPointSize(arg2);
12023 wxPyEndAllowThreads(__tstate);
12024 if (PyErr_Occurred()) SWIG_fail;
12025 }
12026 resultobj = SWIG_Py_Void();
12027 return resultobj;
12028 fail:
12029 return NULL;
12030 }
12031
12032
12033 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12034 PyObject *resultobj = 0;
12035 wxFont *arg1 = (wxFont *) 0 ;
12036 wxSize *arg2 = 0 ;
12037 void *argp1 = 0 ;
12038 int res1 = 0 ;
12039 wxSize temp2 ;
12040 PyObject * obj0 = 0 ;
12041 PyObject * obj1 = 0 ;
12042 char * kwnames[] = {
12043 (char *) "self",(char *) "pixelSize", NULL
12044 };
12045
12046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12048 if (!SWIG_IsOK(res1)) {
12049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12050 }
12051 arg1 = reinterpret_cast< wxFont * >(argp1);
12052 {
12053 arg2 = &temp2;
12054 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12055 }
12056 {
12057 PyThreadState* __tstate = wxPyBeginAllowThreads();
12058 (arg1)->SetPixelSize((wxSize const &)*arg2);
12059 wxPyEndAllowThreads(__tstate);
12060 if (PyErr_Occurred()) SWIG_fail;
12061 }
12062 resultobj = SWIG_Py_Void();
12063 return resultobj;
12064 fail:
12065 return NULL;
12066 }
12067
12068
12069 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12070 PyObject *resultobj = 0;
12071 wxFont *arg1 = (wxFont *) 0 ;
12072 int arg2 ;
12073 void *argp1 = 0 ;
12074 int res1 = 0 ;
12075 int val2 ;
12076 int ecode2 = 0 ;
12077 PyObject * obj0 = 0 ;
12078 PyObject * obj1 = 0 ;
12079 char * kwnames[] = {
12080 (char *) "self",(char *) "family", NULL
12081 };
12082
12083 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12084 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12085 if (!SWIG_IsOK(res1)) {
12086 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12087 }
12088 arg1 = reinterpret_cast< wxFont * >(argp1);
12089 ecode2 = SWIG_AsVal_int(obj1, &val2);
12090 if (!SWIG_IsOK(ecode2)) {
12091 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12092 }
12093 arg2 = static_cast< int >(val2);
12094 {
12095 PyThreadState* __tstate = wxPyBeginAllowThreads();
12096 (arg1)->SetFamily(arg2);
12097 wxPyEndAllowThreads(__tstate);
12098 if (PyErr_Occurred()) SWIG_fail;
12099 }
12100 resultobj = SWIG_Py_Void();
12101 return resultobj;
12102 fail:
12103 return NULL;
12104 }
12105
12106
12107 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12108 PyObject *resultobj = 0;
12109 wxFont *arg1 = (wxFont *) 0 ;
12110 int arg2 ;
12111 void *argp1 = 0 ;
12112 int res1 = 0 ;
12113 int val2 ;
12114 int ecode2 = 0 ;
12115 PyObject * obj0 = 0 ;
12116 PyObject * obj1 = 0 ;
12117 char * kwnames[] = {
12118 (char *) "self",(char *) "style", NULL
12119 };
12120
12121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12123 if (!SWIG_IsOK(res1)) {
12124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12125 }
12126 arg1 = reinterpret_cast< wxFont * >(argp1);
12127 ecode2 = SWIG_AsVal_int(obj1, &val2);
12128 if (!SWIG_IsOK(ecode2)) {
12129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12130 }
12131 arg2 = static_cast< int >(val2);
12132 {
12133 PyThreadState* __tstate = wxPyBeginAllowThreads();
12134 (arg1)->SetStyle(arg2);
12135 wxPyEndAllowThreads(__tstate);
12136 if (PyErr_Occurred()) SWIG_fail;
12137 }
12138 resultobj = SWIG_Py_Void();
12139 return resultobj;
12140 fail:
12141 return NULL;
12142 }
12143
12144
12145 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12146 PyObject *resultobj = 0;
12147 wxFont *arg1 = (wxFont *) 0 ;
12148 int arg2 ;
12149 void *argp1 = 0 ;
12150 int res1 = 0 ;
12151 int val2 ;
12152 int ecode2 = 0 ;
12153 PyObject * obj0 = 0 ;
12154 PyObject * obj1 = 0 ;
12155 char * kwnames[] = {
12156 (char *) "self",(char *) "weight", NULL
12157 };
12158
12159 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12160 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12161 if (!SWIG_IsOK(res1)) {
12162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12163 }
12164 arg1 = reinterpret_cast< wxFont * >(argp1);
12165 ecode2 = SWIG_AsVal_int(obj1, &val2);
12166 if (!SWIG_IsOK(ecode2)) {
12167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12168 }
12169 arg2 = static_cast< int >(val2);
12170 {
12171 PyThreadState* __tstate = wxPyBeginAllowThreads();
12172 (arg1)->SetWeight(arg2);
12173 wxPyEndAllowThreads(__tstate);
12174 if (PyErr_Occurred()) SWIG_fail;
12175 }
12176 resultobj = SWIG_Py_Void();
12177 return resultobj;
12178 fail:
12179 return NULL;
12180 }
12181
12182
12183 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12184 PyObject *resultobj = 0;
12185 wxFont *arg1 = (wxFont *) 0 ;
12186 wxString *arg2 = 0 ;
12187 void *argp1 = 0 ;
12188 int res1 = 0 ;
12189 bool temp2 = false ;
12190 PyObject * obj0 = 0 ;
12191 PyObject * obj1 = 0 ;
12192 char * kwnames[] = {
12193 (char *) "self",(char *) "faceName", NULL
12194 };
12195
12196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12198 if (!SWIG_IsOK(res1)) {
12199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12200 }
12201 arg1 = reinterpret_cast< wxFont * >(argp1);
12202 {
12203 arg2 = wxString_in_helper(obj1);
12204 if (arg2 == NULL) SWIG_fail;
12205 temp2 = true;
12206 }
12207 {
12208 PyThreadState* __tstate = wxPyBeginAllowThreads();
12209 (arg1)->SetFaceName((wxString const &)*arg2);
12210 wxPyEndAllowThreads(__tstate);
12211 if (PyErr_Occurred()) SWIG_fail;
12212 }
12213 resultobj = SWIG_Py_Void();
12214 {
12215 if (temp2)
12216 delete arg2;
12217 }
12218 return resultobj;
12219 fail:
12220 {
12221 if (temp2)
12222 delete arg2;
12223 }
12224 return NULL;
12225 }
12226
12227
12228 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12229 PyObject *resultobj = 0;
12230 wxFont *arg1 = (wxFont *) 0 ;
12231 bool arg2 ;
12232 void *argp1 = 0 ;
12233 int res1 = 0 ;
12234 bool val2 ;
12235 int ecode2 = 0 ;
12236 PyObject * obj0 = 0 ;
12237 PyObject * obj1 = 0 ;
12238 char * kwnames[] = {
12239 (char *) "self",(char *) "underlined", NULL
12240 };
12241
12242 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12243 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12244 if (!SWIG_IsOK(res1)) {
12245 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12246 }
12247 arg1 = reinterpret_cast< wxFont * >(argp1);
12248 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12249 if (!SWIG_IsOK(ecode2)) {
12250 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12251 }
12252 arg2 = static_cast< bool >(val2);
12253 {
12254 PyThreadState* __tstate = wxPyBeginAllowThreads();
12255 (arg1)->SetUnderlined(arg2);
12256 wxPyEndAllowThreads(__tstate);
12257 if (PyErr_Occurred()) SWIG_fail;
12258 }
12259 resultobj = SWIG_Py_Void();
12260 return resultobj;
12261 fail:
12262 return NULL;
12263 }
12264
12265
12266 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12267 PyObject *resultobj = 0;
12268 wxFont *arg1 = (wxFont *) 0 ;
12269 wxFontEncoding arg2 ;
12270 void *argp1 = 0 ;
12271 int res1 = 0 ;
12272 int val2 ;
12273 int ecode2 = 0 ;
12274 PyObject * obj0 = 0 ;
12275 PyObject * obj1 = 0 ;
12276 char * kwnames[] = {
12277 (char *) "self",(char *) "encoding", NULL
12278 };
12279
12280 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12281 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12282 if (!SWIG_IsOK(res1)) {
12283 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12284 }
12285 arg1 = reinterpret_cast< wxFont * >(argp1);
12286 ecode2 = SWIG_AsVal_int(obj1, &val2);
12287 if (!SWIG_IsOK(ecode2)) {
12288 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12289 }
12290 arg2 = static_cast< wxFontEncoding >(val2);
12291 {
12292 PyThreadState* __tstate = wxPyBeginAllowThreads();
12293 (arg1)->SetEncoding(arg2);
12294 wxPyEndAllowThreads(__tstate);
12295 if (PyErr_Occurred()) SWIG_fail;
12296 }
12297 resultobj = SWIG_Py_Void();
12298 return resultobj;
12299 fail:
12300 return NULL;
12301 }
12302
12303
12304 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12305 PyObject *resultobj = 0;
12306 wxFont *arg1 = (wxFont *) 0 ;
12307 wxNativeFontInfo *arg2 = 0 ;
12308 void *argp1 = 0 ;
12309 int res1 = 0 ;
12310 void *argp2 = 0 ;
12311 int res2 = 0 ;
12312 PyObject * obj0 = 0 ;
12313 PyObject * obj1 = 0 ;
12314 char * kwnames[] = {
12315 (char *) "self",(char *) "info", NULL
12316 };
12317
12318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
12319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12320 if (!SWIG_IsOK(res1)) {
12321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
12322 }
12323 arg1 = reinterpret_cast< wxFont * >(argp1);
12324 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
12325 if (!SWIG_IsOK(res2)) {
12326 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12327 }
12328 if (!argp2) {
12329 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
12330 }
12331 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
12332 {
12333 PyThreadState* __tstate = wxPyBeginAllowThreads();
12334 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
12335 wxPyEndAllowThreads(__tstate);
12336 if (PyErr_Occurred()) SWIG_fail;
12337 }
12338 resultobj = SWIG_Py_Void();
12339 return resultobj;
12340 fail:
12341 return NULL;
12342 }
12343
12344
12345 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12346 PyObject *resultobj = 0;
12347 wxFont *arg1 = (wxFont *) 0 ;
12348 wxString *arg2 = 0 ;
12349 void *argp1 = 0 ;
12350 int res1 = 0 ;
12351 bool temp2 = false ;
12352 PyObject * obj0 = 0 ;
12353 PyObject * obj1 = 0 ;
12354 char * kwnames[] = {
12355 (char *) "self",(char *) "info", NULL
12356 };
12357
12358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
12359 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12360 if (!SWIG_IsOK(res1)) {
12361 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
12362 }
12363 arg1 = reinterpret_cast< wxFont * >(argp1);
12364 {
12365 arg2 = wxString_in_helper(obj1);
12366 if (arg2 == NULL) SWIG_fail;
12367 temp2 = true;
12368 }
12369 {
12370 PyThreadState* __tstate = wxPyBeginAllowThreads();
12371 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
12372 wxPyEndAllowThreads(__tstate);
12373 if (PyErr_Occurred()) SWIG_fail;
12374 }
12375 resultobj = SWIG_Py_Void();
12376 {
12377 if (temp2)
12378 delete arg2;
12379 }
12380 return resultobj;
12381 fail:
12382 {
12383 if (temp2)
12384 delete arg2;
12385 }
12386 return NULL;
12387 }
12388
12389
12390 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12391 PyObject *resultobj = 0;
12392 wxFont *arg1 = (wxFont *) 0 ;
12393 wxString *arg2 = 0 ;
12394 void *argp1 = 0 ;
12395 int res1 = 0 ;
12396 bool temp2 = false ;
12397 PyObject * obj0 = 0 ;
12398 PyObject * obj1 = 0 ;
12399 char * kwnames[] = {
12400 (char *) "self",(char *) "info", NULL
12401 };
12402
12403 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
12404 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12405 if (!SWIG_IsOK(res1)) {
12406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
12407 }
12408 arg1 = reinterpret_cast< wxFont * >(argp1);
12409 {
12410 arg2 = wxString_in_helper(obj1);
12411 if (arg2 == NULL) SWIG_fail;
12412 temp2 = true;
12413 }
12414 {
12415 PyThreadState* __tstate = wxPyBeginAllowThreads();
12416 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
12417 wxPyEndAllowThreads(__tstate);
12418 if (PyErr_Occurred()) SWIG_fail;
12419 }
12420 resultobj = SWIG_Py_Void();
12421 {
12422 if (temp2)
12423 delete arg2;
12424 }
12425 return resultobj;
12426 fail:
12427 {
12428 if (temp2)
12429 delete arg2;
12430 }
12431 return NULL;
12432 }
12433
12434
12435 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12436 PyObject *resultobj = 0;
12437 wxFont *arg1 = (wxFont *) 0 ;
12438 wxString result;
12439 void *argp1 = 0 ;
12440 int res1 = 0 ;
12441 PyObject *swig_obj[1] ;
12442
12443 if (!args) SWIG_fail;
12444 swig_obj[0] = args;
12445 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12446 if (!SWIG_IsOK(res1)) {
12447 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
12448 }
12449 arg1 = reinterpret_cast< wxFont * >(argp1);
12450 {
12451 PyThreadState* __tstate = wxPyBeginAllowThreads();
12452 result = ((wxFont const *)arg1)->GetFamilyString();
12453 wxPyEndAllowThreads(__tstate);
12454 if (PyErr_Occurred()) SWIG_fail;
12455 }
12456 {
12457 #if wxUSE_UNICODE
12458 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12459 #else
12460 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12461 #endif
12462 }
12463 return resultobj;
12464 fail:
12465 return NULL;
12466 }
12467
12468
12469 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12470 PyObject *resultobj = 0;
12471 wxFont *arg1 = (wxFont *) 0 ;
12472 wxString result;
12473 void *argp1 = 0 ;
12474 int res1 = 0 ;
12475 PyObject *swig_obj[1] ;
12476
12477 if (!args) SWIG_fail;
12478 swig_obj[0] = args;
12479 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12480 if (!SWIG_IsOK(res1)) {
12481 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
12482 }
12483 arg1 = reinterpret_cast< wxFont * >(argp1);
12484 {
12485 PyThreadState* __tstate = wxPyBeginAllowThreads();
12486 result = ((wxFont const *)arg1)->GetStyleString();
12487 wxPyEndAllowThreads(__tstate);
12488 if (PyErr_Occurred()) SWIG_fail;
12489 }
12490 {
12491 #if wxUSE_UNICODE
12492 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12493 #else
12494 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12495 #endif
12496 }
12497 return resultobj;
12498 fail:
12499 return NULL;
12500 }
12501
12502
12503 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12504 PyObject *resultobj = 0;
12505 wxFont *arg1 = (wxFont *) 0 ;
12506 wxString result;
12507 void *argp1 = 0 ;
12508 int res1 = 0 ;
12509 PyObject *swig_obj[1] ;
12510
12511 if (!args) SWIG_fail;
12512 swig_obj[0] = args;
12513 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12514 if (!SWIG_IsOK(res1)) {
12515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
12516 }
12517 arg1 = reinterpret_cast< wxFont * >(argp1);
12518 {
12519 PyThreadState* __tstate = wxPyBeginAllowThreads();
12520 result = ((wxFont const *)arg1)->GetWeightString();
12521 wxPyEndAllowThreads(__tstate);
12522 if (PyErr_Occurred()) SWIG_fail;
12523 }
12524 {
12525 #if wxUSE_UNICODE
12526 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12527 #else
12528 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12529 #endif
12530 }
12531 return resultobj;
12532 fail:
12533 return NULL;
12534 }
12535
12536
12537 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12538 PyObject *resultobj = 0;
12539 wxFont *arg1 = (wxFont *) 0 ;
12540 bool arg2 = (bool) true ;
12541 void *argp1 = 0 ;
12542 int res1 = 0 ;
12543 bool val2 ;
12544 int ecode2 = 0 ;
12545 PyObject * obj0 = 0 ;
12546 PyObject * obj1 = 0 ;
12547 char * kwnames[] = {
12548 (char *) "self",(char *) "no", NULL
12549 };
12550
12551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
12552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12553 if (!SWIG_IsOK(res1)) {
12554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
12555 }
12556 arg1 = reinterpret_cast< wxFont * >(argp1);
12557 if (obj1) {
12558 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12559 if (!SWIG_IsOK(ecode2)) {
12560 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
12561 }
12562 arg2 = static_cast< bool >(val2);
12563 }
12564 {
12565 PyThreadState* __tstate = wxPyBeginAllowThreads();
12566 (arg1)->SetNoAntiAliasing(arg2);
12567 wxPyEndAllowThreads(__tstate);
12568 if (PyErr_Occurred()) SWIG_fail;
12569 }
12570 resultobj = SWIG_Py_Void();
12571 return resultobj;
12572 fail:
12573 return NULL;
12574 }
12575
12576
12577 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12578 PyObject *resultobj = 0;
12579 wxFont *arg1 = (wxFont *) 0 ;
12580 bool result;
12581 void *argp1 = 0 ;
12582 int res1 = 0 ;
12583 PyObject *swig_obj[1] ;
12584
12585 if (!args) SWIG_fail;
12586 swig_obj[0] = args;
12587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12588 if (!SWIG_IsOK(res1)) {
12589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
12590 }
12591 arg1 = reinterpret_cast< wxFont * >(argp1);
12592 {
12593 PyThreadState* __tstate = wxPyBeginAllowThreads();
12594 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
12595 wxPyEndAllowThreads(__tstate);
12596 if (PyErr_Occurred()) SWIG_fail;
12597 }
12598 {
12599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12600 }
12601 return resultobj;
12602 fail:
12603 return NULL;
12604 }
12605
12606
12607 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12608 PyObject *resultobj = 0;
12609 wxFontEncoding result;
12610
12611 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
12612 {
12613 if (!wxPyCheckForApp()) SWIG_fail;
12614 PyThreadState* __tstate = wxPyBeginAllowThreads();
12615 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
12616 wxPyEndAllowThreads(__tstate);
12617 if (PyErr_Occurred()) SWIG_fail;
12618 }
12619 resultobj = SWIG_From_int(static_cast< int >(result));
12620 return resultobj;
12621 fail:
12622 return NULL;
12623 }
12624
12625
12626 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12627 PyObject *resultobj = 0;
12628 wxFontEncoding arg1 ;
12629 int val1 ;
12630 int ecode1 = 0 ;
12631 PyObject * obj0 = 0 ;
12632 char * kwnames[] = {
12633 (char *) "encoding", NULL
12634 };
12635
12636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
12637 ecode1 = SWIG_AsVal_int(obj0, &val1);
12638 if (!SWIG_IsOK(ecode1)) {
12639 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
12640 }
12641 arg1 = static_cast< wxFontEncoding >(val1);
12642 {
12643 if (!wxPyCheckForApp()) SWIG_fail;
12644 PyThreadState* __tstate = wxPyBeginAllowThreads();
12645 wxFont::SetDefaultEncoding(arg1);
12646 wxPyEndAllowThreads(__tstate);
12647 if (PyErr_Occurred()) SWIG_fail;
12648 }
12649 resultobj = SWIG_Py_Void();
12650 return resultobj;
12651 fail:
12652 return NULL;
12653 }
12654
12655
12656 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12657 PyObject *obj;
12658 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12659 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
12660 return SWIG_Py_Void();
12661 }
12662
12663 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12664 return SWIG_Python_InitShadowInstance(args);
12665 }
12666
12667 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12668 PyObject *resultobj = 0;
12669 wxPyFontEnumerator *result = 0 ;
12670
12671 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
12672 {
12673 if (!wxPyCheckForApp()) SWIG_fail;
12674 PyThreadState* __tstate = wxPyBeginAllowThreads();
12675 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
12676 wxPyEndAllowThreads(__tstate);
12677 if (PyErr_Occurred()) SWIG_fail;
12678 }
12679 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
12680 return resultobj;
12681 fail:
12682 return NULL;
12683 }
12684
12685
12686 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12687 PyObject *resultobj = 0;
12688 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12689 void *argp1 = 0 ;
12690 int res1 = 0 ;
12691 PyObject *swig_obj[1] ;
12692
12693 if (!args) SWIG_fail;
12694 swig_obj[0] = args;
12695 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
12696 if (!SWIG_IsOK(res1)) {
12697 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12698 }
12699 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12700 {
12701 PyThreadState* __tstate = wxPyBeginAllowThreads();
12702 delete arg1;
12703
12704 wxPyEndAllowThreads(__tstate);
12705 if (PyErr_Occurred()) SWIG_fail;
12706 }
12707 resultobj = SWIG_Py_Void();
12708 return resultobj;
12709 fail:
12710 return NULL;
12711 }
12712
12713
12714 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12715 PyObject *resultobj = 0;
12716 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12717 PyObject *arg2 = (PyObject *) 0 ;
12718 PyObject *arg3 = (PyObject *) 0 ;
12719 bool arg4 ;
12720 void *argp1 = 0 ;
12721 int res1 = 0 ;
12722 bool val4 ;
12723 int ecode4 = 0 ;
12724 PyObject * obj0 = 0 ;
12725 PyObject * obj1 = 0 ;
12726 PyObject * obj2 = 0 ;
12727 PyObject * obj3 = 0 ;
12728 char * kwnames[] = {
12729 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
12730 };
12731
12732 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
12733 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12734 if (!SWIG_IsOK(res1)) {
12735 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12736 }
12737 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12738 arg2 = obj1;
12739 arg3 = obj2;
12740 ecode4 = SWIG_AsVal_bool(obj3, &val4);
12741 if (!SWIG_IsOK(ecode4)) {
12742 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
12743 }
12744 arg4 = static_cast< bool >(val4);
12745 {
12746 PyThreadState* __tstate = wxPyBeginAllowThreads();
12747 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
12748 wxPyEndAllowThreads(__tstate);
12749 if (PyErr_Occurred()) SWIG_fail;
12750 }
12751 resultobj = SWIG_Py_Void();
12752 return resultobj;
12753 fail:
12754 return NULL;
12755 }
12756
12757
12758 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12759 PyObject *resultobj = 0;
12760 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12761 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
12762 bool arg3 = (bool) false ;
12763 bool result;
12764 void *argp1 = 0 ;
12765 int res1 = 0 ;
12766 int val2 ;
12767 int ecode2 = 0 ;
12768 bool val3 ;
12769 int ecode3 = 0 ;
12770 PyObject * obj0 = 0 ;
12771 PyObject * obj1 = 0 ;
12772 PyObject * obj2 = 0 ;
12773 char * kwnames[] = {
12774 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
12775 };
12776
12777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
12778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12779 if (!SWIG_IsOK(res1)) {
12780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12781 }
12782 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12783 if (obj1) {
12784 ecode2 = SWIG_AsVal_int(obj1, &val2);
12785 if (!SWIG_IsOK(ecode2)) {
12786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
12787 }
12788 arg2 = static_cast< wxFontEncoding >(val2);
12789 }
12790 if (obj2) {
12791 ecode3 = SWIG_AsVal_bool(obj2, &val3);
12792 if (!SWIG_IsOK(ecode3)) {
12793 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
12794 }
12795 arg3 = static_cast< bool >(val3);
12796 }
12797 {
12798 PyThreadState* __tstate = wxPyBeginAllowThreads();
12799 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
12800 wxPyEndAllowThreads(__tstate);
12801 if (PyErr_Occurred()) SWIG_fail;
12802 }
12803 {
12804 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12805 }
12806 return resultobj;
12807 fail:
12808 return NULL;
12809 }
12810
12811
12812 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12813 PyObject *resultobj = 0;
12814 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12815 wxString const &arg2_defvalue = wxPyEmptyString ;
12816 wxString *arg2 = (wxString *) &arg2_defvalue ;
12817 bool result;
12818 void *argp1 = 0 ;
12819 int res1 = 0 ;
12820 bool temp2 = false ;
12821 PyObject * obj0 = 0 ;
12822 PyObject * obj1 = 0 ;
12823 char * kwnames[] = {
12824 (char *) "self",(char *) "facename", NULL
12825 };
12826
12827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
12828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12829 if (!SWIG_IsOK(res1)) {
12830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12831 }
12832 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12833 if (obj1) {
12834 {
12835 arg2 = wxString_in_helper(obj1);
12836 if (arg2 == NULL) SWIG_fail;
12837 temp2 = true;
12838 }
12839 }
12840 {
12841 PyThreadState* __tstate = wxPyBeginAllowThreads();
12842 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
12843 wxPyEndAllowThreads(__tstate);
12844 if (PyErr_Occurred()) SWIG_fail;
12845 }
12846 {
12847 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12848 }
12849 {
12850 if (temp2)
12851 delete arg2;
12852 }
12853 return resultobj;
12854 fail:
12855 {
12856 if (temp2)
12857 delete arg2;
12858 }
12859 return NULL;
12860 }
12861
12862
12863 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12864 PyObject *resultobj = 0;
12865 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12866 PyObject *result = 0 ;
12867 void *argp1 = 0 ;
12868 int res1 = 0 ;
12869 PyObject *swig_obj[1] ;
12870
12871 if (!args) SWIG_fail;
12872 swig_obj[0] = args;
12873 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12874 if (!SWIG_IsOK(res1)) {
12875 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12876 }
12877 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12878 {
12879 PyThreadState* __tstate = wxPyBeginAllowThreads();
12880 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
12881 wxPyEndAllowThreads(__tstate);
12882 if (PyErr_Occurred()) SWIG_fail;
12883 }
12884 resultobj = result;
12885 return resultobj;
12886 fail:
12887 return NULL;
12888 }
12889
12890
12891 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12892 PyObject *resultobj = 0;
12893 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
12894 PyObject *result = 0 ;
12895 void *argp1 = 0 ;
12896 int res1 = 0 ;
12897 PyObject *swig_obj[1] ;
12898
12899 if (!args) SWIG_fail;
12900 swig_obj[0] = args;
12901 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
12902 if (!SWIG_IsOK(res1)) {
12903 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
12904 }
12905 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
12906 {
12907 PyThreadState* __tstate = wxPyBeginAllowThreads();
12908 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
12909 wxPyEndAllowThreads(__tstate);
12910 if (PyErr_Occurred()) SWIG_fail;
12911 }
12912 resultobj = result;
12913 return resultobj;
12914 fail:
12915 return NULL;
12916 }
12917
12918
12919 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12920 PyObject *obj;
12921 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
12922 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
12923 return SWIG_Py_Void();
12924 }
12925
12926 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12927 return SWIG_Python_InitShadowInstance(args);
12928 }
12929
12930 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12931 PyObject *resultobj = 0;
12932 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12933 int arg2 ;
12934 void *argp1 = 0 ;
12935 int res1 = 0 ;
12936 int val2 ;
12937 int ecode2 = 0 ;
12938 PyObject *swig_obj[2] ;
12939
12940 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
12941 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12942 if (!SWIG_IsOK(res1)) {
12943 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12944 }
12945 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12946 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
12947 if (!SWIG_IsOK(ecode2)) {
12948 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
12949 }
12950 arg2 = static_cast< int >(val2);
12951 if (arg1) (arg1)->Language = arg2;
12952
12953 resultobj = SWIG_Py_Void();
12954 return resultobj;
12955 fail:
12956 return NULL;
12957 }
12958
12959
12960 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12961 PyObject *resultobj = 0;
12962 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12963 int result;
12964 void *argp1 = 0 ;
12965 int res1 = 0 ;
12966 PyObject *swig_obj[1] ;
12967
12968 if (!args) SWIG_fail;
12969 swig_obj[0] = args;
12970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12971 if (!SWIG_IsOK(res1)) {
12972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12973 }
12974 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12975 result = (int) ((arg1)->Language);
12976 resultobj = SWIG_From_int(static_cast< int >(result));
12977 return resultobj;
12978 fail:
12979 return NULL;
12980 }
12981
12982
12983 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12984 PyObject *resultobj = 0;
12985 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
12986 wxString *arg2 = (wxString *) 0 ;
12987 void *argp1 = 0 ;
12988 int res1 = 0 ;
12989 bool temp2 = false ;
12990 PyObject *swig_obj[2] ;
12991
12992 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
12993 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
12994 if (!SWIG_IsOK(res1)) {
12995 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
12996 }
12997 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
12998 {
12999 arg2 = wxString_in_helper(swig_obj[1]);
13000 if (arg2 == NULL) SWIG_fail;
13001 temp2 = true;
13002 }
13003 if (arg1) (arg1)->CanonicalName = *arg2;
13004
13005 resultobj = SWIG_Py_Void();
13006 {
13007 if (temp2)
13008 delete arg2;
13009 }
13010 return resultobj;
13011 fail:
13012 {
13013 if (temp2)
13014 delete arg2;
13015 }
13016 return NULL;
13017 }
13018
13019
13020 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13021 PyObject *resultobj = 0;
13022 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13023 wxString *result = 0 ;
13024 void *argp1 = 0 ;
13025 int res1 = 0 ;
13026 PyObject *swig_obj[1] ;
13027
13028 if (!args) SWIG_fail;
13029 swig_obj[0] = args;
13030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13031 if (!SWIG_IsOK(res1)) {
13032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13033 }
13034 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13035 result = (wxString *)& ((arg1)->CanonicalName);
13036 {
13037 #if wxUSE_UNICODE
13038 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13039 #else
13040 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13041 #endif
13042 }
13043 return resultobj;
13044 fail:
13045 return NULL;
13046 }
13047
13048
13049 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13050 PyObject *resultobj = 0;
13051 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13052 wxString *arg2 = (wxString *) 0 ;
13053 void *argp1 = 0 ;
13054 int res1 = 0 ;
13055 bool temp2 = false ;
13056 PyObject *swig_obj[2] ;
13057
13058 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13060 if (!SWIG_IsOK(res1)) {
13061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13062 }
13063 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13064 {
13065 arg2 = wxString_in_helper(swig_obj[1]);
13066 if (arg2 == NULL) SWIG_fail;
13067 temp2 = true;
13068 }
13069 if (arg1) (arg1)->Description = *arg2;
13070
13071 resultobj = SWIG_Py_Void();
13072 {
13073 if (temp2)
13074 delete arg2;
13075 }
13076 return resultobj;
13077 fail:
13078 {
13079 if (temp2)
13080 delete arg2;
13081 }
13082 return NULL;
13083 }
13084
13085
13086 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13087 PyObject *resultobj = 0;
13088 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13089 wxString *result = 0 ;
13090 void *argp1 = 0 ;
13091 int res1 = 0 ;
13092 PyObject *swig_obj[1] ;
13093
13094 if (!args) SWIG_fail;
13095 swig_obj[0] = args;
13096 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13097 if (!SWIG_IsOK(res1)) {
13098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13099 }
13100 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13101 result = (wxString *)& ((arg1)->Description);
13102 {
13103 #if wxUSE_UNICODE
13104 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13105 #else
13106 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13107 #endif
13108 }
13109 return resultobj;
13110 fail:
13111 return NULL;
13112 }
13113
13114
13115 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13116 PyObject *obj;
13117 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13118 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13119 return SWIG_Py_Void();
13120 }
13121
13122 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13123 PyObject *resultobj = 0;
13124 int arg1 = (int) -1 ;
13125 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13126 wxLocale *result = 0 ;
13127 int val1 ;
13128 int ecode1 = 0 ;
13129 int val2 ;
13130 int ecode2 = 0 ;
13131 PyObject * obj0 = 0 ;
13132 PyObject * obj1 = 0 ;
13133 char * kwnames[] = {
13134 (char *) "language",(char *) "flags", NULL
13135 };
13136
13137 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13138 if (obj0) {
13139 ecode1 = SWIG_AsVal_int(obj0, &val1);
13140 if (!SWIG_IsOK(ecode1)) {
13141 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13142 }
13143 arg1 = static_cast< int >(val1);
13144 }
13145 if (obj1) {
13146 ecode2 = SWIG_AsVal_int(obj1, &val2);
13147 if (!SWIG_IsOK(ecode2)) {
13148 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13149 }
13150 arg2 = static_cast< int >(val2);
13151 }
13152 {
13153 PyThreadState* __tstate = wxPyBeginAllowThreads();
13154 result = (wxLocale *)new_wxLocale(arg1,arg2);
13155 wxPyEndAllowThreads(__tstate);
13156 if (PyErr_Occurred()) SWIG_fail;
13157 }
13158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13159 return resultobj;
13160 fail:
13161 return NULL;
13162 }
13163
13164
13165 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13166 PyObject *resultobj = 0;
13167 wxLocale *arg1 = (wxLocale *) 0 ;
13168 void *argp1 = 0 ;
13169 int res1 = 0 ;
13170 PyObject *swig_obj[1] ;
13171
13172 if (!args) SWIG_fail;
13173 swig_obj[0] = args;
13174 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13175 if (!SWIG_IsOK(res1)) {
13176 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13177 }
13178 arg1 = reinterpret_cast< wxLocale * >(argp1);
13179 {
13180 PyThreadState* __tstate = wxPyBeginAllowThreads();
13181 delete arg1;
13182
13183 wxPyEndAllowThreads(__tstate);
13184 if (PyErr_Occurred()) SWIG_fail;
13185 }
13186 resultobj = SWIG_Py_Void();
13187 return resultobj;
13188 fail:
13189 return NULL;
13190 }
13191
13192
13193 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13194 PyObject *resultobj = 0;
13195 wxLocale *arg1 = (wxLocale *) 0 ;
13196 wxString *arg2 = 0 ;
13197 wxString const &arg3_defvalue = wxPyEmptyString ;
13198 wxString *arg3 = (wxString *) &arg3_defvalue ;
13199 wxString const &arg4_defvalue = wxPyEmptyString ;
13200 wxString *arg4 = (wxString *) &arg4_defvalue ;
13201 bool arg5 = (bool) true ;
13202 bool arg6 = (bool) false ;
13203 bool result;
13204 void *argp1 = 0 ;
13205 int res1 = 0 ;
13206 bool temp2 = false ;
13207 bool temp3 = false ;
13208 bool temp4 = false ;
13209 bool val5 ;
13210 int ecode5 = 0 ;
13211 bool val6 ;
13212 int ecode6 = 0 ;
13213 PyObject * obj0 = 0 ;
13214 PyObject * obj1 = 0 ;
13215 PyObject * obj2 = 0 ;
13216 PyObject * obj3 = 0 ;
13217 PyObject * obj4 = 0 ;
13218 PyObject * obj5 = 0 ;
13219 char * kwnames[] = {
13220 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13221 };
13222
13223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13225 if (!SWIG_IsOK(res1)) {
13226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13227 }
13228 arg1 = reinterpret_cast< wxLocale * >(argp1);
13229 {
13230 arg2 = wxString_in_helper(obj1);
13231 if (arg2 == NULL) SWIG_fail;
13232 temp2 = true;
13233 }
13234 if (obj2) {
13235 {
13236 arg3 = wxString_in_helper(obj2);
13237 if (arg3 == NULL) SWIG_fail;
13238 temp3 = true;
13239 }
13240 }
13241 if (obj3) {
13242 {
13243 arg4 = wxString_in_helper(obj3);
13244 if (arg4 == NULL) SWIG_fail;
13245 temp4 = true;
13246 }
13247 }
13248 if (obj4) {
13249 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13250 if (!SWIG_IsOK(ecode5)) {
13251 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13252 }
13253 arg5 = static_cast< bool >(val5);
13254 }
13255 if (obj5) {
13256 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13257 if (!SWIG_IsOK(ecode6)) {
13258 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13259 }
13260 arg6 = static_cast< bool >(val6);
13261 }
13262 {
13263 PyThreadState* __tstate = wxPyBeginAllowThreads();
13264 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13265 wxPyEndAllowThreads(__tstate);
13266 if (PyErr_Occurred()) SWIG_fail;
13267 }
13268 {
13269 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13270 }
13271 {
13272 if (temp2)
13273 delete arg2;
13274 }
13275 {
13276 if (temp3)
13277 delete arg3;
13278 }
13279 {
13280 if (temp4)
13281 delete arg4;
13282 }
13283 return resultobj;
13284 fail:
13285 {
13286 if (temp2)
13287 delete arg2;
13288 }
13289 {
13290 if (temp3)
13291 delete arg3;
13292 }
13293 {
13294 if (temp4)
13295 delete arg4;
13296 }
13297 return NULL;
13298 }
13299
13300
13301 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13302 PyObject *resultobj = 0;
13303 wxLocale *arg1 = (wxLocale *) 0 ;
13304 int arg2 = (int) wxLANGUAGE_DEFAULT ;
13305 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13306 bool result;
13307 void *argp1 = 0 ;
13308 int res1 = 0 ;
13309 int val2 ;
13310 int ecode2 = 0 ;
13311 int val3 ;
13312 int ecode3 = 0 ;
13313 PyObject * obj0 = 0 ;
13314 PyObject * obj1 = 0 ;
13315 PyObject * obj2 = 0 ;
13316 char * kwnames[] = {
13317 (char *) "self",(char *) "language",(char *) "flags", NULL
13318 };
13319
13320 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13321 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13322 if (!SWIG_IsOK(res1)) {
13323 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
13324 }
13325 arg1 = reinterpret_cast< wxLocale * >(argp1);
13326 if (obj1) {
13327 ecode2 = SWIG_AsVal_int(obj1, &val2);
13328 if (!SWIG_IsOK(ecode2)) {
13329 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
13330 }
13331 arg2 = static_cast< int >(val2);
13332 }
13333 if (obj2) {
13334 ecode3 = SWIG_AsVal_int(obj2, &val3);
13335 if (!SWIG_IsOK(ecode3)) {
13336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
13337 }
13338 arg3 = static_cast< int >(val3);
13339 }
13340 {
13341 PyThreadState* __tstate = wxPyBeginAllowThreads();
13342 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
13343 wxPyEndAllowThreads(__tstate);
13344 if (PyErr_Occurred()) SWIG_fail;
13345 }
13346 {
13347 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13348 }
13349 return resultobj;
13350 fail:
13351 return NULL;
13352 }
13353
13354
13355 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13356 PyObject *resultobj = 0;
13357 int result;
13358
13359 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
13360 {
13361 PyThreadState* __tstate = wxPyBeginAllowThreads();
13362 result = (int)wxLocale::GetSystemLanguage();
13363 wxPyEndAllowThreads(__tstate);
13364 if (PyErr_Occurred()) SWIG_fail;
13365 }
13366 resultobj = SWIG_From_int(static_cast< int >(result));
13367 return resultobj;
13368 fail:
13369 return NULL;
13370 }
13371
13372
13373 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13374 PyObject *resultobj = 0;
13375 wxFontEncoding result;
13376
13377 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
13378 {
13379 PyThreadState* __tstate = wxPyBeginAllowThreads();
13380 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
13381 wxPyEndAllowThreads(__tstate);
13382 if (PyErr_Occurred()) SWIG_fail;
13383 }
13384 resultobj = SWIG_From_int(static_cast< int >(result));
13385 return resultobj;
13386 fail:
13387 return NULL;
13388 }
13389
13390
13391 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13392 PyObject *resultobj = 0;
13393 wxString result;
13394
13395 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
13396 {
13397 PyThreadState* __tstate = wxPyBeginAllowThreads();
13398 result = wxLocale::GetSystemEncodingName();
13399 wxPyEndAllowThreads(__tstate);
13400 if (PyErr_Occurred()) SWIG_fail;
13401 }
13402 {
13403 #if wxUSE_UNICODE
13404 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13405 #else
13406 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13407 #endif
13408 }
13409 return resultobj;
13410 fail:
13411 return NULL;
13412 }
13413
13414
13415 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13416 PyObject *resultobj = 0;
13417 wxLocale *arg1 = (wxLocale *) 0 ;
13418 bool result;
13419 void *argp1 = 0 ;
13420 int res1 = 0 ;
13421 PyObject *swig_obj[1] ;
13422
13423 if (!args) SWIG_fail;
13424 swig_obj[0] = args;
13425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13426 if (!SWIG_IsOK(res1)) {
13427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
13428 }
13429 arg1 = reinterpret_cast< wxLocale * >(argp1);
13430 {
13431 PyThreadState* __tstate = wxPyBeginAllowThreads();
13432 result = (bool)((wxLocale const *)arg1)->IsOk();
13433 wxPyEndAllowThreads(__tstate);
13434 if (PyErr_Occurred()) SWIG_fail;
13435 }
13436 {
13437 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13438 }
13439 return resultobj;
13440 fail:
13441 return NULL;
13442 }
13443
13444
13445 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13446 PyObject *resultobj = 0;
13447 wxLocale *arg1 = (wxLocale *) 0 ;
13448 wxString result;
13449 void *argp1 = 0 ;
13450 int res1 = 0 ;
13451 PyObject *swig_obj[1] ;
13452
13453 if (!args) SWIG_fail;
13454 swig_obj[0] = args;
13455 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13456 if (!SWIG_IsOK(res1)) {
13457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
13458 }
13459 arg1 = reinterpret_cast< wxLocale * >(argp1);
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 result = ((wxLocale const *)arg1)->GetLocale();
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 {
13467 #if wxUSE_UNICODE
13468 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13469 #else
13470 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13471 #endif
13472 }
13473 return resultobj;
13474 fail:
13475 return NULL;
13476 }
13477
13478
13479 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13480 PyObject *resultobj = 0;
13481 wxLocale *arg1 = (wxLocale *) 0 ;
13482 int result;
13483 void *argp1 = 0 ;
13484 int res1 = 0 ;
13485 PyObject *swig_obj[1] ;
13486
13487 if (!args) SWIG_fail;
13488 swig_obj[0] = args;
13489 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13490 if (!SWIG_IsOK(res1)) {
13491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
13492 }
13493 arg1 = reinterpret_cast< wxLocale * >(argp1);
13494 {
13495 PyThreadState* __tstate = wxPyBeginAllowThreads();
13496 result = (int)((wxLocale const *)arg1)->GetLanguage();
13497 wxPyEndAllowThreads(__tstate);
13498 if (PyErr_Occurred()) SWIG_fail;
13499 }
13500 resultobj = SWIG_From_int(static_cast< int >(result));
13501 return resultobj;
13502 fail:
13503 return NULL;
13504 }
13505
13506
13507 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13508 PyObject *resultobj = 0;
13509 wxLocale *arg1 = (wxLocale *) 0 ;
13510 wxString result;
13511 void *argp1 = 0 ;
13512 int res1 = 0 ;
13513 PyObject *swig_obj[1] ;
13514
13515 if (!args) SWIG_fail;
13516 swig_obj[0] = args;
13517 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13518 if (!SWIG_IsOK(res1)) {
13519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13520 }
13521 arg1 = reinterpret_cast< wxLocale * >(argp1);
13522 {
13523 PyThreadState* __tstate = wxPyBeginAllowThreads();
13524 result = ((wxLocale const *)arg1)->GetSysName();
13525 wxPyEndAllowThreads(__tstate);
13526 if (PyErr_Occurred()) SWIG_fail;
13527 }
13528 {
13529 #if wxUSE_UNICODE
13530 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13531 #else
13532 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13533 #endif
13534 }
13535 return resultobj;
13536 fail:
13537 return NULL;
13538 }
13539
13540
13541 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13542 PyObject *resultobj = 0;
13543 wxLocale *arg1 = (wxLocale *) 0 ;
13544 wxString result;
13545 void *argp1 = 0 ;
13546 int res1 = 0 ;
13547 PyObject *swig_obj[1] ;
13548
13549 if (!args) SWIG_fail;
13550 swig_obj[0] = args;
13551 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13552 if (!SWIG_IsOK(res1)) {
13553 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13554 }
13555 arg1 = reinterpret_cast< wxLocale * >(argp1);
13556 {
13557 PyThreadState* __tstate = wxPyBeginAllowThreads();
13558 result = ((wxLocale const *)arg1)->GetCanonicalName();
13559 wxPyEndAllowThreads(__tstate);
13560 if (PyErr_Occurred()) SWIG_fail;
13561 }
13562 {
13563 #if wxUSE_UNICODE
13564 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13565 #else
13566 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13567 #endif
13568 }
13569 return resultobj;
13570 fail:
13571 return NULL;
13572 }
13573
13574
13575 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13576 PyObject *resultobj = 0;
13577 wxString *arg1 = 0 ;
13578 bool temp1 = false ;
13579 PyObject * obj0 = 0 ;
13580 char * kwnames[] = {
13581 (char *) "prefix", NULL
13582 };
13583
13584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
13585 {
13586 arg1 = wxString_in_helper(obj0);
13587 if (arg1 == NULL) SWIG_fail;
13588 temp1 = true;
13589 }
13590 {
13591 PyThreadState* __tstate = wxPyBeginAllowThreads();
13592 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
13593 wxPyEndAllowThreads(__tstate);
13594 if (PyErr_Occurred()) SWIG_fail;
13595 }
13596 resultobj = SWIG_Py_Void();
13597 {
13598 if (temp1)
13599 delete arg1;
13600 }
13601 return resultobj;
13602 fail:
13603 {
13604 if (temp1)
13605 delete arg1;
13606 }
13607 return NULL;
13608 }
13609
13610
13611 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13612 PyObject *resultobj = 0;
13613 wxLocale *arg1 = (wxLocale *) 0 ;
13614 wxString *arg2 = 0 ;
13615 bool result;
13616 void *argp1 = 0 ;
13617 int res1 = 0 ;
13618 bool temp2 = false ;
13619 PyObject * obj0 = 0 ;
13620 PyObject * obj1 = 0 ;
13621 char * kwnames[] = {
13622 (char *) "self",(char *) "szDomain", NULL
13623 };
13624
13625 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
13626 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13627 if (!SWIG_IsOK(res1)) {
13628 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
13629 }
13630 arg1 = reinterpret_cast< wxLocale * >(argp1);
13631 {
13632 arg2 = wxString_in_helper(obj1);
13633 if (arg2 == NULL) SWIG_fail;
13634 temp2 = true;
13635 }
13636 {
13637 PyThreadState* __tstate = wxPyBeginAllowThreads();
13638 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
13639 wxPyEndAllowThreads(__tstate);
13640 if (PyErr_Occurred()) SWIG_fail;
13641 }
13642 {
13643 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13644 }
13645 {
13646 if (temp2)
13647 delete arg2;
13648 }
13649 return resultobj;
13650 fail:
13651 {
13652 if (temp2)
13653 delete arg2;
13654 }
13655 return NULL;
13656 }
13657
13658
13659 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13660 PyObject *resultobj = 0;
13661 wxLocale *arg1 = (wxLocale *) 0 ;
13662 wxString *arg2 = 0 ;
13663 bool result;
13664 void *argp1 = 0 ;
13665 int res1 = 0 ;
13666 bool temp2 = false ;
13667 PyObject * obj0 = 0 ;
13668 PyObject * obj1 = 0 ;
13669 char * kwnames[] = {
13670 (char *) "self",(char *) "szDomain", NULL
13671 };
13672
13673 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
13674 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13675 if (!SWIG_IsOK(res1)) {
13676 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
13677 }
13678 arg1 = reinterpret_cast< wxLocale * >(argp1);
13679 {
13680 arg2 = wxString_in_helper(obj1);
13681 if (arg2 == NULL) SWIG_fail;
13682 temp2 = true;
13683 }
13684 {
13685 PyThreadState* __tstate = wxPyBeginAllowThreads();
13686 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
13687 wxPyEndAllowThreads(__tstate);
13688 if (PyErr_Occurred()) SWIG_fail;
13689 }
13690 {
13691 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13692 }
13693 {
13694 if (temp2)
13695 delete arg2;
13696 }
13697 return resultobj;
13698 fail:
13699 {
13700 if (temp2)
13701 delete arg2;
13702 }
13703 return NULL;
13704 }
13705
13706
13707 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13708 PyObject *resultobj = 0;
13709 int arg1 ;
13710 wxLanguageInfo *result = 0 ;
13711 int val1 ;
13712 int ecode1 = 0 ;
13713 PyObject * obj0 = 0 ;
13714 char * kwnames[] = {
13715 (char *) "lang", NULL
13716 };
13717
13718 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
13719 ecode1 = SWIG_AsVal_int(obj0, &val1);
13720 if (!SWIG_IsOK(ecode1)) {
13721 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
13722 }
13723 arg1 = static_cast< int >(val1);
13724 {
13725 PyThreadState* __tstate = wxPyBeginAllowThreads();
13726 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
13727 wxPyEndAllowThreads(__tstate);
13728 if (PyErr_Occurred()) SWIG_fail;
13729 }
13730 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13731 return resultobj;
13732 fail:
13733 return NULL;
13734 }
13735
13736
13737 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13738 PyObject *resultobj = 0;
13739 int arg1 ;
13740 wxString result;
13741 int val1 ;
13742 int ecode1 = 0 ;
13743 PyObject * obj0 = 0 ;
13744 char * kwnames[] = {
13745 (char *) "lang", NULL
13746 };
13747
13748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
13749 ecode1 = SWIG_AsVal_int(obj0, &val1);
13750 if (!SWIG_IsOK(ecode1)) {
13751 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
13752 }
13753 arg1 = static_cast< int >(val1);
13754 {
13755 PyThreadState* __tstate = wxPyBeginAllowThreads();
13756 result = wxLocale::GetLanguageName(arg1);
13757 wxPyEndAllowThreads(__tstate);
13758 if (PyErr_Occurred()) SWIG_fail;
13759 }
13760 {
13761 #if wxUSE_UNICODE
13762 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13763 #else
13764 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13765 #endif
13766 }
13767 return resultobj;
13768 fail:
13769 return NULL;
13770 }
13771
13772
13773 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13774 PyObject *resultobj = 0;
13775 wxString *arg1 = 0 ;
13776 wxLanguageInfo *result = 0 ;
13777 bool temp1 = false ;
13778 PyObject * obj0 = 0 ;
13779 char * kwnames[] = {
13780 (char *) "locale", NULL
13781 };
13782
13783 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
13784 {
13785 arg1 = wxString_in_helper(obj0);
13786 if (arg1 == NULL) SWIG_fail;
13787 temp1 = true;
13788 }
13789 {
13790 PyThreadState* __tstate = wxPyBeginAllowThreads();
13791 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
13792 wxPyEndAllowThreads(__tstate);
13793 if (PyErr_Occurred()) SWIG_fail;
13794 }
13795 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13796 {
13797 if (temp1)
13798 delete arg1;
13799 }
13800 return resultobj;
13801 fail:
13802 {
13803 if (temp1)
13804 delete arg1;
13805 }
13806 return NULL;
13807 }
13808
13809
13810 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13811 PyObject *resultobj = 0;
13812 wxLanguageInfo *arg1 = 0 ;
13813 void *argp1 = 0 ;
13814 int res1 = 0 ;
13815 PyObject * obj0 = 0 ;
13816 char * kwnames[] = {
13817 (char *) "info", NULL
13818 };
13819
13820 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
13821 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
13822 if (!SWIG_IsOK(res1)) {
13823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13824 }
13825 if (!argp1) {
13826 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
13827 }
13828 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13829 {
13830 PyThreadState* __tstate = wxPyBeginAllowThreads();
13831 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
13832 wxPyEndAllowThreads(__tstate);
13833 if (PyErr_Occurred()) SWIG_fail;
13834 }
13835 resultobj = SWIG_Py_Void();
13836 return resultobj;
13837 fail:
13838 return NULL;
13839 }
13840
13841
13842 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13843 PyObject *resultobj = 0;
13844 wxLocale *arg1 = (wxLocale *) 0 ;
13845 wxString *arg2 = 0 ;
13846 wxString const &arg3_defvalue = wxPyEmptyString ;
13847 wxString *arg3 = (wxString *) &arg3_defvalue ;
13848 wxString result;
13849 void *argp1 = 0 ;
13850 int res1 = 0 ;
13851 bool temp2 = false ;
13852 bool temp3 = false ;
13853 PyObject * obj0 = 0 ;
13854 PyObject * obj1 = 0 ;
13855 PyObject * obj2 = 0 ;
13856 char * kwnames[] = {
13857 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
13858 };
13859
13860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13862 if (!SWIG_IsOK(res1)) {
13863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
13864 }
13865 arg1 = reinterpret_cast< wxLocale * >(argp1);
13866 {
13867 arg2 = wxString_in_helper(obj1);
13868 if (arg2 == NULL) SWIG_fail;
13869 temp2 = true;
13870 }
13871 if (obj2) {
13872 {
13873 arg3 = wxString_in_helper(obj2);
13874 if (arg3 == NULL) SWIG_fail;
13875 temp3 = true;
13876 }
13877 }
13878 {
13879 PyThreadState* __tstate = wxPyBeginAllowThreads();
13880 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
13881 wxPyEndAllowThreads(__tstate);
13882 if (PyErr_Occurred()) SWIG_fail;
13883 }
13884 {
13885 #if wxUSE_UNICODE
13886 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13887 #else
13888 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13889 #endif
13890 }
13891 {
13892 if (temp2)
13893 delete arg2;
13894 }
13895 {
13896 if (temp3)
13897 delete arg3;
13898 }
13899 return resultobj;
13900 fail:
13901 {
13902 if (temp2)
13903 delete arg2;
13904 }
13905 {
13906 if (temp3)
13907 delete arg3;
13908 }
13909 return NULL;
13910 }
13911
13912
13913 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13914 PyObject *resultobj = 0;
13915 wxLocale *arg1 = (wxLocale *) 0 ;
13916 wxString *result = 0 ;
13917 void *argp1 = 0 ;
13918 int res1 = 0 ;
13919 PyObject *swig_obj[1] ;
13920
13921 if (!args) SWIG_fail;
13922 swig_obj[0] = args;
13923 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13924 if (!SWIG_IsOK(res1)) {
13925 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
13926 }
13927 arg1 = reinterpret_cast< wxLocale * >(argp1);
13928 {
13929 PyThreadState* __tstate = wxPyBeginAllowThreads();
13930 {
13931 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
13932 result = (wxString *) &_result_ref;
13933 }
13934 wxPyEndAllowThreads(__tstate);
13935 if (PyErr_Occurred()) SWIG_fail;
13936 }
13937 {
13938 #if wxUSE_UNICODE
13939 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13940 #else
13941 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13942 #endif
13943 }
13944 return resultobj;
13945 fail:
13946 return NULL;
13947 }
13948
13949
13950 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13951 PyObject *obj;
13952 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13953 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
13954 return SWIG_Py_Void();
13955 }
13956
13957 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13958 return SWIG_Python_InitShadowInstance(args);
13959 }
13960
13961 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13962 PyObject *resultobj = 0;
13963 wxLocale *result = 0 ;
13964
13965 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
13966 {
13967 PyThreadState* __tstate = wxPyBeginAllowThreads();
13968 result = (wxLocale *)wxGetLocale();
13969 wxPyEndAllowThreads(__tstate);
13970 if (PyErr_Occurred()) SWIG_fail;
13971 }
13972 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
13973 return resultobj;
13974 fail:
13975 return NULL;
13976 }
13977
13978
13979 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
13980 PyObject *resultobj = 0;
13981 wxString *arg1 = 0 ;
13982 wxString result;
13983 bool temp1 = false ;
13984
13985 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
13986 {
13987 arg1 = wxString_in_helper(swig_obj[0]);
13988 if (arg1 == NULL) SWIG_fail;
13989 temp1 = true;
13990 }
13991 {
13992 PyThreadState* __tstate = wxPyBeginAllowThreads();
13993 result = wxGetTranslation((wxString const &)*arg1);
13994 wxPyEndAllowThreads(__tstate);
13995 if (PyErr_Occurred()) SWIG_fail;
13996 }
13997 {
13998 #if wxUSE_UNICODE
13999 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14000 #else
14001 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14002 #endif
14003 }
14004 {
14005 if (temp1)
14006 delete arg1;
14007 }
14008 return resultobj;
14009 fail:
14010 {
14011 if (temp1)
14012 delete arg1;
14013 }
14014 return NULL;
14015 }
14016
14017
14018 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14019 PyObject *resultobj = 0;
14020 wxString *arg1 = 0 ;
14021 wxString *arg2 = 0 ;
14022 size_t arg3 ;
14023 wxString result;
14024 bool temp1 = false ;
14025 bool temp2 = false ;
14026 size_t val3 ;
14027 int ecode3 = 0 ;
14028
14029 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14030 {
14031 arg1 = wxString_in_helper(swig_obj[0]);
14032 if (arg1 == NULL) SWIG_fail;
14033 temp1 = true;
14034 }
14035 {
14036 arg2 = wxString_in_helper(swig_obj[1]);
14037 if (arg2 == NULL) SWIG_fail;
14038 temp2 = true;
14039 }
14040 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14041 if (!SWIG_IsOK(ecode3)) {
14042 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14043 }
14044 arg3 = static_cast< size_t >(val3);
14045 {
14046 PyThreadState* __tstate = wxPyBeginAllowThreads();
14047 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14048 wxPyEndAllowThreads(__tstate);
14049 if (PyErr_Occurred()) SWIG_fail;
14050 }
14051 {
14052 #if wxUSE_UNICODE
14053 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14054 #else
14055 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14056 #endif
14057 }
14058 {
14059 if (temp1)
14060 delete arg1;
14061 }
14062 {
14063 if (temp2)
14064 delete arg2;
14065 }
14066 return resultobj;
14067 fail:
14068 {
14069 if (temp1)
14070 delete arg1;
14071 }
14072 {
14073 if (temp2)
14074 delete arg2;
14075 }
14076 return NULL;
14077 }
14078
14079
14080 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14081 int argc;
14082 PyObject *argv[4];
14083
14084 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14085 --argc;
14086 if (argc == 1) {
14087 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14088 }
14089 if (argc == 3) {
14090 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14091 }
14092
14093 fail:
14094 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14095 return NULL;
14096 }
14097
14098
14099 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14100 PyObject *resultobj = 0;
14101 wxEncodingConverter *result = 0 ;
14102
14103 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14104 {
14105 PyThreadState* __tstate = wxPyBeginAllowThreads();
14106 result = (wxEncodingConverter *)new wxEncodingConverter();
14107 wxPyEndAllowThreads(__tstate);
14108 if (PyErr_Occurred()) SWIG_fail;
14109 }
14110 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14111 return resultobj;
14112 fail:
14113 return NULL;
14114 }
14115
14116
14117 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14118 PyObject *resultobj = 0;
14119 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14120 void *argp1 = 0 ;
14121 int res1 = 0 ;
14122 PyObject *swig_obj[1] ;
14123
14124 if (!args) SWIG_fail;
14125 swig_obj[0] = args;
14126 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14127 if (!SWIG_IsOK(res1)) {
14128 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14129 }
14130 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14131 {
14132 PyThreadState* __tstate = wxPyBeginAllowThreads();
14133 delete arg1;
14134
14135 wxPyEndAllowThreads(__tstate);
14136 if (PyErr_Occurred()) SWIG_fail;
14137 }
14138 resultobj = SWIG_Py_Void();
14139 return resultobj;
14140 fail:
14141 return NULL;
14142 }
14143
14144
14145 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14146 PyObject *resultobj = 0;
14147 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14148 wxFontEncoding arg2 ;
14149 wxFontEncoding arg3 ;
14150 int arg4 = (int) wxCONVERT_STRICT ;
14151 bool result;
14152 void *argp1 = 0 ;
14153 int res1 = 0 ;
14154 int val2 ;
14155 int ecode2 = 0 ;
14156 int val3 ;
14157 int ecode3 = 0 ;
14158 int val4 ;
14159 int ecode4 = 0 ;
14160 PyObject * obj0 = 0 ;
14161 PyObject * obj1 = 0 ;
14162 PyObject * obj2 = 0 ;
14163 PyObject * obj3 = 0 ;
14164 char * kwnames[] = {
14165 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14166 };
14167
14168 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14169 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14170 if (!SWIG_IsOK(res1)) {
14171 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14172 }
14173 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14174 ecode2 = SWIG_AsVal_int(obj1, &val2);
14175 if (!SWIG_IsOK(ecode2)) {
14176 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14177 }
14178 arg2 = static_cast< wxFontEncoding >(val2);
14179 ecode3 = SWIG_AsVal_int(obj2, &val3);
14180 if (!SWIG_IsOK(ecode3)) {
14181 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14182 }
14183 arg3 = static_cast< wxFontEncoding >(val3);
14184 if (obj3) {
14185 ecode4 = SWIG_AsVal_int(obj3, &val4);
14186 if (!SWIG_IsOK(ecode4)) {
14187 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14188 }
14189 arg4 = static_cast< int >(val4);
14190 }
14191 {
14192 PyThreadState* __tstate = wxPyBeginAllowThreads();
14193 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14194 wxPyEndAllowThreads(__tstate);
14195 if (PyErr_Occurred()) SWIG_fail;
14196 }
14197 {
14198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14199 }
14200 return resultobj;
14201 fail:
14202 return NULL;
14203 }
14204
14205
14206 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14207 PyObject *resultobj = 0;
14208 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14209 wxString *arg2 = 0 ;
14210 wxString result;
14211 void *argp1 = 0 ;
14212 int res1 = 0 ;
14213 bool temp2 = false ;
14214 PyObject * obj0 = 0 ;
14215 PyObject * obj1 = 0 ;
14216 char * kwnames[] = {
14217 (char *) "self",(char *) "input", NULL
14218 };
14219
14220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14222 if (!SWIG_IsOK(res1)) {
14223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14224 }
14225 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14226 {
14227 arg2 = wxString_in_helper(obj1);
14228 if (arg2 == NULL) SWIG_fail;
14229 temp2 = true;
14230 }
14231 {
14232 PyThreadState* __tstate = wxPyBeginAllowThreads();
14233 result = (arg1)->Convert((wxString const &)*arg2);
14234 wxPyEndAllowThreads(__tstate);
14235 if (PyErr_Occurred()) SWIG_fail;
14236 }
14237 {
14238 #if wxUSE_UNICODE
14239 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14240 #else
14241 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14242 #endif
14243 }
14244 {
14245 if (temp2)
14246 delete arg2;
14247 }
14248 return resultobj;
14249 fail:
14250 {
14251 if (temp2)
14252 delete arg2;
14253 }
14254 return NULL;
14255 }
14256
14257
14258 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14259 PyObject *resultobj = 0;
14260 wxFontEncoding arg1 ;
14261 int arg2 = (int) wxPLATFORM_CURRENT ;
14262 wxFontEncodingArray result;
14263 int val1 ;
14264 int ecode1 = 0 ;
14265 int val2 ;
14266 int ecode2 = 0 ;
14267 PyObject * obj0 = 0 ;
14268 PyObject * obj1 = 0 ;
14269 char * kwnames[] = {
14270 (char *) "enc",(char *) "platform", NULL
14271 };
14272
14273 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14274 ecode1 = SWIG_AsVal_int(obj0, &val1);
14275 if (!SWIG_IsOK(ecode1)) {
14276 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14277 }
14278 arg1 = static_cast< wxFontEncoding >(val1);
14279 if (obj1) {
14280 ecode2 = SWIG_AsVal_int(obj1, &val2);
14281 if (!SWIG_IsOK(ecode2)) {
14282 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14283 }
14284 arg2 = static_cast< int >(val2);
14285 }
14286 {
14287 PyThreadState* __tstate = wxPyBeginAllowThreads();
14288 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
14289 wxPyEndAllowThreads(__tstate);
14290 if (PyErr_Occurred()) SWIG_fail;
14291 }
14292 {
14293 resultobj = PyList_New(0);
14294 for (size_t i=0; i < (&result)->GetCount(); i++) {
14295 PyObject* number = PyInt_FromLong((&result)->Item(i));
14296 PyList_Append(resultobj, number);
14297 Py_DECREF(number);
14298 }
14299 }
14300 return resultobj;
14301 fail:
14302 return NULL;
14303 }
14304
14305
14306 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14307 PyObject *resultobj = 0;
14308 wxFontEncoding arg1 ;
14309 wxFontEncodingArray result;
14310 int val1 ;
14311 int ecode1 = 0 ;
14312 PyObject * obj0 = 0 ;
14313 char * kwnames[] = {
14314 (char *) "enc", NULL
14315 };
14316
14317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
14318 ecode1 = SWIG_AsVal_int(obj0, &val1);
14319 if (!SWIG_IsOK(ecode1)) {
14320 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14321 }
14322 arg1 = static_cast< wxFontEncoding >(val1);
14323 {
14324 PyThreadState* __tstate = wxPyBeginAllowThreads();
14325 result = wxEncodingConverter::GetAllEquivalents(arg1);
14326 wxPyEndAllowThreads(__tstate);
14327 if (PyErr_Occurred()) SWIG_fail;
14328 }
14329 {
14330 resultobj = PyList_New(0);
14331 for (size_t i=0; i < (&result)->GetCount(); i++) {
14332 PyObject* number = PyInt_FromLong((&result)->Item(i));
14333 PyList_Append(resultobj, number);
14334 Py_DECREF(number);
14335 }
14336 }
14337 return resultobj;
14338 fail:
14339 return NULL;
14340 }
14341
14342
14343 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14344 PyObject *resultobj = 0;
14345 wxFontEncoding arg1 ;
14346 wxFontEncoding arg2 ;
14347 bool result;
14348 int val1 ;
14349 int ecode1 = 0 ;
14350 int val2 ;
14351 int ecode2 = 0 ;
14352 PyObject * obj0 = 0 ;
14353 PyObject * obj1 = 0 ;
14354 char * kwnames[] = {
14355 (char *) "encIn",(char *) "encOut", NULL
14356 };
14357
14358 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
14359 ecode1 = SWIG_AsVal_int(obj0, &val1);
14360 if (!SWIG_IsOK(ecode1)) {
14361 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14362 }
14363 arg1 = static_cast< wxFontEncoding >(val1);
14364 ecode2 = SWIG_AsVal_int(obj1, &val2);
14365 if (!SWIG_IsOK(ecode2)) {
14366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14367 }
14368 arg2 = static_cast< wxFontEncoding >(val2);
14369 {
14370 PyThreadState* __tstate = wxPyBeginAllowThreads();
14371 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
14372 wxPyEndAllowThreads(__tstate);
14373 if (PyErr_Occurred()) SWIG_fail;
14374 }
14375 {
14376 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14377 }
14378 return resultobj;
14379 fail:
14380 return NULL;
14381 }
14382
14383
14384 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14385 PyObject *obj;
14386 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14387 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
14388 return SWIG_Py_Void();
14389 }
14390
14391 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14392 return SWIG_Python_InitShadowInstance(args);
14393 }
14394
14395 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14396 PyObject *resultobj = 0;
14397 wxDC *arg1 = (wxDC *) 0 ;
14398 void *argp1 = 0 ;
14399 int res1 = 0 ;
14400 PyObject *swig_obj[1] ;
14401
14402 if (!args) SWIG_fail;
14403 swig_obj[0] = args;
14404 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
14405 if (!SWIG_IsOK(res1)) {
14406 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
14407 }
14408 arg1 = reinterpret_cast< wxDC * >(argp1);
14409 {
14410 PyThreadState* __tstate = wxPyBeginAllowThreads();
14411 delete arg1;
14412
14413 wxPyEndAllowThreads(__tstate);
14414 if (PyErr_Occurred()) SWIG_fail;
14415 }
14416 resultobj = SWIG_Py_Void();
14417 return resultobj;
14418 fail:
14419 return NULL;
14420 }
14421
14422
14423 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14424 PyObject *resultobj = 0;
14425 wxDC *arg1 = (wxDC *) 0 ;
14426 int arg2 ;
14427 int arg3 ;
14428 wxColour *arg4 = 0 ;
14429 int arg5 = (int) wxFLOOD_SURFACE ;
14430 bool result;
14431 void *argp1 = 0 ;
14432 int res1 = 0 ;
14433 int val2 ;
14434 int ecode2 = 0 ;
14435 int val3 ;
14436 int ecode3 = 0 ;
14437 wxColour temp4 ;
14438 int val5 ;
14439 int ecode5 = 0 ;
14440 PyObject * obj0 = 0 ;
14441 PyObject * obj1 = 0 ;
14442 PyObject * obj2 = 0 ;
14443 PyObject * obj3 = 0 ;
14444 PyObject * obj4 = 0 ;
14445 char * kwnames[] = {
14446 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
14447 };
14448
14449 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14450 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14451 if (!SWIG_IsOK(res1)) {
14452 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
14453 }
14454 arg1 = reinterpret_cast< wxDC * >(argp1);
14455 ecode2 = SWIG_AsVal_int(obj1, &val2);
14456 if (!SWIG_IsOK(ecode2)) {
14457 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
14458 }
14459 arg2 = static_cast< int >(val2);
14460 ecode3 = SWIG_AsVal_int(obj2, &val3);
14461 if (!SWIG_IsOK(ecode3)) {
14462 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
14463 }
14464 arg3 = static_cast< int >(val3);
14465 {
14466 arg4 = &temp4;
14467 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14468 }
14469 if (obj4) {
14470 ecode5 = SWIG_AsVal_int(obj4, &val5);
14471 if (!SWIG_IsOK(ecode5)) {
14472 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
14473 }
14474 arg5 = static_cast< int >(val5);
14475 }
14476 {
14477 PyThreadState* __tstate = wxPyBeginAllowThreads();
14478 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
14479 wxPyEndAllowThreads(__tstate);
14480 if (PyErr_Occurred()) SWIG_fail;
14481 }
14482 {
14483 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14484 }
14485 return resultobj;
14486 fail:
14487 return NULL;
14488 }
14489
14490
14491 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14492 PyObject *resultobj = 0;
14493 wxDC *arg1 = (wxDC *) 0 ;
14494 wxPoint *arg2 = 0 ;
14495 wxColour *arg3 = 0 ;
14496 int arg4 = (int) wxFLOOD_SURFACE ;
14497 bool result;
14498 void *argp1 = 0 ;
14499 int res1 = 0 ;
14500 wxPoint temp2 ;
14501 wxColour temp3 ;
14502 int val4 ;
14503 int ecode4 = 0 ;
14504 PyObject * obj0 = 0 ;
14505 PyObject * obj1 = 0 ;
14506 PyObject * obj2 = 0 ;
14507 PyObject * obj3 = 0 ;
14508 char * kwnames[] = {
14509 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
14510 };
14511
14512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14513 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14514 if (!SWIG_IsOK(res1)) {
14515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14516 }
14517 arg1 = reinterpret_cast< wxDC * >(argp1);
14518 {
14519 arg2 = &temp2;
14520 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14521 }
14522 {
14523 arg3 = &temp3;
14524 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14525 }
14526 if (obj3) {
14527 ecode4 = SWIG_AsVal_int(obj3, &val4);
14528 if (!SWIG_IsOK(ecode4)) {
14529 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
14530 }
14531 arg4 = static_cast< int >(val4);
14532 }
14533 {
14534 PyThreadState* __tstate = wxPyBeginAllowThreads();
14535 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
14536 wxPyEndAllowThreads(__tstate);
14537 if (PyErr_Occurred()) SWIG_fail;
14538 }
14539 {
14540 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14541 }
14542 return resultobj;
14543 fail:
14544 return NULL;
14545 }
14546
14547
14548 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14549 PyObject *resultobj = 0;
14550 wxDC *arg1 = (wxDC *) 0 ;
14551 wxRect *arg2 = 0 ;
14552 wxColour *arg3 = 0 ;
14553 wxColour *arg4 = 0 ;
14554 wxPoint *arg5 = 0 ;
14555 void *argp1 = 0 ;
14556 int res1 = 0 ;
14557 wxRect temp2 ;
14558 wxColour temp3 ;
14559 wxColour temp4 ;
14560 wxPoint temp5 ;
14561 PyObject * obj0 = 0 ;
14562 PyObject * obj1 = 0 ;
14563 PyObject * obj2 = 0 ;
14564 PyObject * obj3 = 0 ;
14565 PyObject * obj4 = 0 ;
14566 char * kwnames[] = {
14567 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
14568 };
14569
14570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14572 if (!SWIG_IsOK(res1)) {
14573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
14574 }
14575 arg1 = reinterpret_cast< wxDC * >(argp1);
14576 {
14577 arg2 = &temp2;
14578 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14579 }
14580 {
14581 arg3 = &temp3;
14582 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14583 }
14584 {
14585 arg4 = &temp4;
14586 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14587 }
14588 {
14589 arg5 = &temp5;
14590 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
14591 }
14592 {
14593 PyThreadState* __tstate = wxPyBeginAllowThreads();
14594 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*arg5);
14595 wxPyEndAllowThreads(__tstate);
14596 if (PyErr_Occurred()) SWIG_fail;
14597 }
14598 resultobj = SWIG_Py_Void();
14599 return resultobj;
14600 fail:
14601 return NULL;
14602 }
14603
14604
14605 SWIGINTERN PyObject *_wrap_DC_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14606 PyObject *resultobj = 0;
14607 wxDC *arg1 = (wxDC *) 0 ;
14608 wxRect *arg2 = 0 ;
14609 wxColour *arg3 = 0 ;
14610 wxColour *arg4 = 0 ;
14611 wxDirection arg5 = (wxDirection) wxEAST ;
14612 void *argp1 = 0 ;
14613 int res1 = 0 ;
14614 wxRect temp2 ;
14615 wxColour temp3 ;
14616 wxColour temp4 ;
14617 int val5 ;
14618 int ecode5 = 0 ;
14619 PyObject * obj0 = 0 ;
14620 PyObject * obj1 = 0 ;
14621 PyObject * obj2 = 0 ;
14622 PyObject * obj3 = 0 ;
14623 PyObject * obj4 = 0 ;
14624 char * kwnames[] = {
14625 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
14626 };
14627
14628 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14629 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14630 if (!SWIG_IsOK(res1)) {
14631 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
14632 }
14633 arg1 = reinterpret_cast< wxDC * >(argp1);
14634 {
14635 arg2 = &temp2;
14636 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
14637 }
14638 {
14639 arg3 = &temp3;
14640 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
14641 }
14642 {
14643 arg4 = &temp4;
14644 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
14645 }
14646 if (obj4) {
14647 ecode5 = SWIG_AsVal_int(obj4, &val5);
14648 if (!SWIG_IsOK(ecode5)) {
14649 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
14650 }
14651 arg5 = static_cast< wxDirection >(val5);
14652 }
14653 {
14654 PyThreadState* __tstate = wxPyBeginAllowThreads();
14655 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
14656 wxPyEndAllowThreads(__tstate);
14657 if (PyErr_Occurred()) SWIG_fail;
14658 }
14659 resultobj = SWIG_Py_Void();
14660 return resultobj;
14661 fail:
14662 return NULL;
14663 }
14664
14665
14666 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14667 PyObject *resultobj = 0;
14668 wxDC *arg1 = (wxDC *) 0 ;
14669 int arg2 ;
14670 int arg3 ;
14671 wxColour result;
14672 void *argp1 = 0 ;
14673 int res1 = 0 ;
14674 int val2 ;
14675 int ecode2 = 0 ;
14676 int val3 ;
14677 int ecode3 = 0 ;
14678 PyObject * obj0 = 0 ;
14679 PyObject * obj1 = 0 ;
14680 PyObject * obj2 = 0 ;
14681 char * kwnames[] = {
14682 (char *) "self",(char *) "x",(char *) "y", NULL
14683 };
14684
14685 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14686 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14687 if (!SWIG_IsOK(res1)) {
14688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
14689 }
14690 arg1 = reinterpret_cast< wxDC * >(argp1);
14691 ecode2 = SWIG_AsVal_int(obj1, &val2);
14692 if (!SWIG_IsOK(ecode2)) {
14693 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
14694 }
14695 arg2 = static_cast< int >(val2);
14696 ecode3 = SWIG_AsVal_int(obj2, &val3);
14697 if (!SWIG_IsOK(ecode3)) {
14698 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
14699 }
14700 arg3 = static_cast< int >(val3);
14701 {
14702 PyThreadState* __tstate = wxPyBeginAllowThreads();
14703 result = wxDC_GetPixel(arg1,arg2,arg3);
14704 wxPyEndAllowThreads(__tstate);
14705 if (PyErr_Occurred()) SWIG_fail;
14706 }
14707 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14708 return resultobj;
14709 fail:
14710 return NULL;
14711 }
14712
14713
14714 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14715 PyObject *resultobj = 0;
14716 wxDC *arg1 = (wxDC *) 0 ;
14717 wxPoint *arg2 = 0 ;
14718 wxColour result;
14719 void *argp1 = 0 ;
14720 int res1 = 0 ;
14721 wxPoint temp2 ;
14722 PyObject * obj0 = 0 ;
14723 PyObject * obj1 = 0 ;
14724 char * kwnames[] = {
14725 (char *) "self",(char *) "pt", NULL
14726 };
14727
14728 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14729 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14730 if (!SWIG_IsOK(res1)) {
14731 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14732 }
14733 arg1 = reinterpret_cast< wxDC * >(argp1);
14734 {
14735 arg2 = &temp2;
14736 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14737 }
14738 {
14739 PyThreadState* __tstate = wxPyBeginAllowThreads();
14740 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
14741 wxPyEndAllowThreads(__tstate);
14742 if (PyErr_Occurred()) SWIG_fail;
14743 }
14744 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
14745 return resultobj;
14746 fail:
14747 return NULL;
14748 }
14749
14750
14751 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14752 PyObject *resultobj = 0;
14753 wxDC *arg1 = (wxDC *) 0 ;
14754 int arg2 ;
14755 int arg3 ;
14756 int arg4 ;
14757 int arg5 ;
14758 void *argp1 = 0 ;
14759 int res1 = 0 ;
14760 int val2 ;
14761 int ecode2 = 0 ;
14762 int val3 ;
14763 int ecode3 = 0 ;
14764 int val4 ;
14765 int ecode4 = 0 ;
14766 int val5 ;
14767 int ecode5 = 0 ;
14768 PyObject * obj0 = 0 ;
14769 PyObject * obj1 = 0 ;
14770 PyObject * obj2 = 0 ;
14771 PyObject * obj3 = 0 ;
14772 PyObject * obj4 = 0 ;
14773 char * kwnames[] = {
14774 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
14775 };
14776
14777 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
14778 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14779 if (!SWIG_IsOK(res1)) {
14780 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
14781 }
14782 arg1 = reinterpret_cast< wxDC * >(argp1);
14783 ecode2 = SWIG_AsVal_int(obj1, &val2);
14784 if (!SWIG_IsOK(ecode2)) {
14785 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
14786 }
14787 arg2 = static_cast< int >(val2);
14788 ecode3 = SWIG_AsVal_int(obj2, &val3);
14789 if (!SWIG_IsOK(ecode3)) {
14790 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
14791 }
14792 arg3 = static_cast< int >(val3);
14793 ecode4 = SWIG_AsVal_int(obj3, &val4);
14794 if (!SWIG_IsOK(ecode4)) {
14795 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
14796 }
14797 arg4 = static_cast< int >(val4);
14798 ecode5 = SWIG_AsVal_int(obj4, &val5);
14799 if (!SWIG_IsOK(ecode5)) {
14800 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
14801 }
14802 arg5 = static_cast< int >(val5);
14803 {
14804 PyThreadState* __tstate = wxPyBeginAllowThreads();
14805 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
14806 wxPyEndAllowThreads(__tstate);
14807 if (PyErr_Occurred()) SWIG_fail;
14808 }
14809 resultobj = SWIG_Py_Void();
14810 return resultobj;
14811 fail:
14812 return NULL;
14813 }
14814
14815
14816 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14817 PyObject *resultobj = 0;
14818 wxDC *arg1 = (wxDC *) 0 ;
14819 wxPoint *arg2 = 0 ;
14820 wxPoint *arg3 = 0 ;
14821 void *argp1 = 0 ;
14822 int res1 = 0 ;
14823 wxPoint temp2 ;
14824 wxPoint temp3 ;
14825 PyObject * obj0 = 0 ;
14826 PyObject * obj1 = 0 ;
14827 PyObject * obj2 = 0 ;
14828 char * kwnames[] = {
14829 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
14830 };
14831
14832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14834 if (!SWIG_IsOK(res1)) {
14835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
14836 }
14837 arg1 = reinterpret_cast< wxDC * >(argp1);
14838 {
14839 arg2 = &temp2;
14840 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14841 }
14842 {
14843 arg3 = &temp3;
14844 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
14845 }
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
14849 wxPyEndAllowThreads(__tstate);
14850 if (PyErr_Occurred()) SWIG_fail;
14851 }
14852 resultobj = SWIG_Py_Void();
14853 return resultobj;
14854 fail:
14855 return NULL;
14856 }
14857
14858
14859 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14860 PyObject *resultobj = 0;
14861 wxDC *arg1 = (wxDC *) 0 ;
14862 int arg2 ;
14863 int arg3 ;
14864 void *argp1 = 0 ;
14865 int res1 = 0 ;
14866 int val2 ;
14867 int ecode2 = 0 ;
14868 int val3 ;
14869 int ecode3 = 0 ;
14870 PyObject * obj0 = 0 ;
14871 PyObject * obj1 = 0 ;
14872 PyObject * obj2 = 0 ;
14873 char * kwnames[] = {
14874 (char *) "self",(char *) "x",(char *) "y", NULL
14875 };
14876
14877 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14878 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14879 if (!SWIG_IsOK(res1)) {
14880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
14881 }
14882 arg1 = reinterpret_cast< wxDC * >(argp1);
14883 ecode2 = SWIG_AsVal_int(obj1, &val2);
14884 if (!SWIG_IsOK(ecode2)) {
14885 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
14886 }
14887 arg2 = static_cast< int >(val2);
14888 ecode3 = SWIG_AsVal_int(obj2, &val3);
14889 if (!SWIG_IsOK(ecode3)) {
14890 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
14891 }
14892 arg3 = static_cast< int >(val3);
14893 {
14894 PyThreadState* __tstate = wxPyBeginAllowThreads();
14895 (arg1)->CrossHair(arg2,arg3);
14896 wxPyEndAllowThreads(__tstate);
14897 if (PyErr_Occurred()) SWIG_fail;
14898 }
14899 resultobj = SWIG_Py_Void();
14900 return resultobj;
14901 fail:
14902 return NULL;
14903 }
14904
14905
14906 SWIGINTERN PyObject *_wrap_DC_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14907 PyObject *resultobj = 0;
14908 wxDC *arg1 = (wxDC *) 0 ;
14909 wxPoint *arg2 = 0 ;
14910 void *argp1 = 0 ;
14911 int res1 = 0 ;
14912 wxPoint temp2 ;
14913 PyObject * obj0 = 0 ;
14914 PyObject * obj1 = 0 ;
14915 char * kwnames[] = {
14916 (char *) "self",(char *) "pt", NULL
14917 };
14918
14919 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
14920 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14921 if (!SWIG_IsOK(res1)) {
14922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
14923 }
14924 arg1 = reinterpret_cast< wxDC * >(argp1);
14925 {
14926 arg2 = &temp2;
14927 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
14928 }
14929 {
14930 PyThreadState* __tstate = wxPyBeginAllowThreads();
14931 (arg1)->CrossHair((wxPoint const &)*arg2);
14932 wxPyEndAllowThreads(__tstate);
14933 if (PyErr_Occurred()) SWIG_fail;
14934 }
14935 resultobj = SWIG_Py_Void();
14936 return resultobj;
14937 fail:
14938 return NULL;
14939 }
14940
14941
14942 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14943 PyObject *resultobj = 0;
14944 wxDC *arg1 = (wxDC *) 0 ;
14945 int arg2 ;
14946 int arg3 ;
14947 int arg4 ;
14948 int arg5 ;
14949 int arg6 ;
14950 int arg7 ;
14951 void *argp1 = 0 ;
14952 int res1 = 0 ;
14953 int val2 ;
14954 int ecode2 = 0 ;
14955 int val3 ;
14956 int ecode3 = 0 ;
14957 int val4 ;
14958 int ecode4 = 0 ;
14959 int val5 ;
14960 int ecode5 = 0 ;
14961 int val6 ;
14962 int ecode6 = 0 ;
14963 int val7 ;
14964 int ecode7 = 0 ;
14965 PyObject * obj0 = 0 ;
14966 PyObject * obj1 = 0 ;
14967 PyObject * obj2 = 0 ;
14968 PyObject * obj3 = 0 ;
14969 PyObject * obj4 = 0 ;
14970 PyObject * obj5 = 0 ;
14971 PyObject * obj6 = 0 ;
14972 char * kwnames[] = {
14973 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
14974 };
14975
14976 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
14977 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
14978 if (!SWIG_IsOK(res1)) {
14979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
14980 }
14981 arg1 = reinterpret_cast< wxDC * >(argp1);
14982 ecode2 = SWIG_AsVal_int(obj1, &val2);
14983 if (!SWIG_IsOK(ecode2)) {
14984 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
14985 }
14986 arg2 = static_cast< int >(val2);
14987 ecode3 = SWIG_AsVal_int(obj2, &val3);
14988 if (!SWIG_IsOK(ecode3)) {
14989 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
14990 }
14991 arg3 = static_cast< int >(val3);
14992 ecode4 = SWIG_AsVal_int(obj3, &val4);
14993 if (!SWIG_IsOK(ecode4)) {
14994 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
14995 }
14996 arg4 = static_cast< int >(val4);
14997 ecode5 = SWIG_AsVal_int(obj4, &val5);
14998 if (!SWIG_IsOK(ecode5)) {
14999 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15000 }
15001 arg5 = static_cast< int >(val5);
15002 ecode6 = SWIG_AsVal_int(obj5, &val6);
15003 if (!SWIG_IsOK(ecode6)) {
15004 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15005 }
15006 arg6 = static_cast< int >(val6);
15007 ecode7 = SWIG_AsVal_int(obj6, &val7);
15008 if (!SWIG_IsOK(ecode7)) {
15009 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15010 }
15011 arg7 = static_cast< int >(val7);
15012 {
15013 PyThreadState* __tstate = wxPyBeginAllowThreads();
15014 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15015 wxPyEndAllowThreads(__tstate);
15016 if (PyErr_Occurred()) SWIG_fail;
15017 }
15018 resultobj = SWIG_Py_Void();
15019 return resultobj;
15020 fail:
15021 return NULL;
15022 }
15023
15024
15025 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15026 PyObject *resultobj = 0;
15027 wxDC *arg1 = (wxDC *) 0 ;
15028 wxPoint *arg2 = 0 ;
15029 wxPoint *arg3 = 0 ;
15030 wxPoint *arg4 = 0 ;
15031 void *argp1 = 0 ;
15032 int res1 = 0 ;
15033 wxPoint temp2 ;
15034 wxPoint temp3 ;
15035 wxPoint temp4 ;
15036 PyObject * obj0 = 0 ;
15037 PyObject * obj1 = 0 ;
15038 PyObject * obj2 = 0 ;
15039 PyObject * obj3 = 0 ;
15040 char * kwnames[] = {
15041 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15042 };
15043
15044 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15045 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15046 if (!SWIG_IsOK(res1)) {
15047 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15048 }
15049 arg1 = reinterpret_cast< wxDC * >(argp1);
15050 {
15051 arg2 = &temp2;
15052 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15053 }
15054 {
15055 arg3 = &temp3;
15056 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15057 }
15058 {
15059 arg4 = &temp4;
15060 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15061 }
15062 {
15063 PyThreadState* __tstate = wxPyBeginAllowThreads();
15064 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15065 wxPyEndAllowThreads(__tstate);
15066 if (PyErr_Occurred()) SWIG_fail;
15067 }
15068 resultobj = SWIG_Py_Void();
15069 return resultobj;
15070 fail:
15071 return NULL;
15072 }
15073
15074
15075 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15076 PyObject *resultobj = 0;
15077 wxDC *arg1 = (wxDC *) 0 ;
15078 int arg2 ;
15079 int arg3 ;
15080 int arg4 ;
15081 int arg5 ;
15082 void *argp1 = 0 ;
15083 int res1 = 0 ;
15084 int val2 ;
15085 int ecode2 = 0 ;
15086 int val3 ;
15087 int ecode3 = 0 ;
15088 int val4 ;
15089 int ecode4 = 0 ;
15090 int val5 ;
15091 int ecode5 = 0 ;
15092 PyObject * obj0 = 0 ;
15093 PyObject * obj1 = 0 ;
15094 PyObject * obj2 = 0 ;
15095 PyObject * obj3 = 0 ;
15096 PyObject * obj4 = 0 ;
15097 char * kwnames[] = {
15098 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15099 };
15100
15101 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15102 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15103 if (!SWIG_IsOK(res1)) {
15104 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15105 }
15106 arg1 = reinterpret_cast< wxDC * >(argp1);
15107 ecode2 = SWIG_AsVal_int(obj1, &val2);
15108 if (!SWIG_IsOK(ecode2)) {
15109 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15110 }
15111 arg2 = static_cast< int >(val2);
15112 ecode3 = SWIG_AsVal_int(obj2, &val3);
15113 if (!SWIG_IsOK(ecode3)) {
15114 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15115 }
15116 arg3 = static_cast< int >(val3);
15117 ecode4 = SWIG_AsVal_int(obj3, &val4);
15118 if (!SWIG_IsOK(ecode4)) {
15119 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15120 }
15121 arg4 = static_cast< int >(val4);
15122 ecode5 = SWIG_AsVal_int(obj4, &val5);
15123 if (!SWIG_IsOK(ecode5)) {
15124 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15125 }
15126 arg5 = static_cast< int >(val5);
15127 {
15128 PyThreadState* __tstate = wxPyBeginAllowThreads();
15129 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15130 wxPyEndAllowThreads(__tstate);
15131 if (PyErr_Occurred()) SWIG_fail;
15132 }
15133 resultobj = SWIG_Py_Void();
15134 return resultobj;
15135 fail:
15136 return NULL;
15137 }
15138
15139
15140 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15141 PyObject *resultobj = 0;
15142 wxDC *arg1 = (wxDC *) 0 ;
15143 wxRect *arg2 = 0 ;
15144 void *argp1 = 0 ;
15145 int res1 = 0 ;
15146 wxRect temp2 ;
15147 PyObject * obj0 = 0 ;
15148 PyObject * obj1 = 0 ;
15149 char * kwnames[] = {
15150 (char *) "self",(char *) "rect", NULL
15151 };
15152
15153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15155 if (!SWIG_IsOK(res1)) {
15156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15157 }
15158 arg1 = reinterpret_cast< wxDC * >(argp1);
15159 {
15160 arg2 = &temp2;
15161 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15162 }
15163 {
15164 PyThreadState* __tstate = wxPyBeginAllowThreads();
15165 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15166 wxPyEndAllowThreads(__tstate);
15167 if (PyErr_Occurred()) SWIG_fail;
15168 }
15169 resultobj = SWIG_Py_Void();
15170 return resultobj;
15171 fail:
15172 return NULL;
15173 }
15174
15175
15176 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15177 PyObject *resultobj = 0;
15178 wxDC *arg1 = (wxDC *) 0 ;
15179 int arg2 ;
15180 int arg3 ;
15181 int arg4 ;
15182 int arg5 ;
15183 double arg6 ;
15184 double arg7 ;
15185 void *argp1 = 0 ;
15186 int res1 = 0 ;
15187 int val2 ;
15188 int ecode2 = 0 ;
15189 int val3 ;
15190 int ecode3 = 0 ;
15191 int val4 ;
15192 int ecode4 = 0 ;
15193 int val5 ;
15194 int ecode5 = 0 ;
15195 double val6 ;
15196 int ecode6 = 0 ;
15197 double val7 ;
15198 int ecode7 = 0 ;
15199 PyObject * obj0 = 0 ;
15200 PyObject * obj1 = 0 ;
15201 PyObject * obj2 = 0 ;
15202 PyObject * obj3 = 0 ;
15203 PyObject * obj4 = 0 ;
15204 PyObject * obj5 = 0 ;
15205 PyObject * obj6 = 0 ;
15206 char * kwnames[] = {
15207 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15208 };
15209
15210 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15211 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15212 if (!SWIG_IsOK(res1)) {
15213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15214 }
15215 arg1 = reinterpret_cast< wxDC * >(argp1);
15216 ecode2 = SWIG_AsVal_int(obj1, &val2);
15217 if (!SWIG_IsOK(ecode2)) {
15218 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15219 }
15220 arg2 = static_cast< int >(val2);
15221 ecode3 = SWIG_AsVal_int(obj2, &val3);
15222 if (!SWIG_IsOK(ecode3)) {
15223 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15224 }
15225 arg3 = static_cast< int >(val3);
15226 ecode4 = SWIG_AsVal_int(obj3, &val4);
15227 if (!SWIG_IsOK(ecode4)) {
15228 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15229 }
15230 arg4 = static_cast< int >(val4);
15231 ecode5 = SWIG_AsVal_int(obj4, &val5);
15232 if (!SWIG_IsOK(ecode5)) {
15233 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15234 }
15235 arg5 = static_cast< int >(val5);
15236 ecode6 = SWIG_AsVal_double(obj5, &val6);
15237 if (!SWIG_IsOK(ecode6)) {
15238 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15239 }
15240 arg6 = static_cast< double >(val6);
15241 ecode7 = SWIG_AsVal_double(obj6, &val7);
15242 if (!SWIG_IsOK(ecode7)) {
15243 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15244 }
15245 arg7 = static_cast< double >(val7);
15246 {
15247 PyThreadState* __tstate = wxPyBeginAllowThreads();
15248 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15249 wxPyEndAllowThreads(__tstate);
15250 if (PyErr_Occurred()) SWIG_fail;
15251 }
15252 resultobj = SWIG_Py_Void();
15253 return resultobj;
15254 fail:
15255 return NULL;
15256 }
15257
15258
15259 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15260 PyObject *resultobj = 0;
15261 wxDC *arg1 = (wxDC *) 0 ;
15262 wxPoint *arg2 = 0 ;
15263 wxSize *arg3 = 0 ;
15264 double arg4 ;
15265 double arg5 ;
15266 void *argp1 = 0 ;
15267 int res1 = 0 ;
15268 wxPoint temp2 ;
15269 wxSize temp3 ;
15270 double val4 ;
15271 int ecode4 = 0 ;
15272 double val5 ;
15273 int ecode5 = 0 ;
15274 PyObject * obj0 = 0 ;
15275 PyObject * obj1 = 0 ;
15276 PyObject * obj2 = 0 ;
15277 PyObject * obj3 = 0 ;
15278 PyObject * obj4 = 0 ;
15279 char * kwnames[] = {
15280 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15281 };
15282
15283 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15284 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15285 if (!SWIG_IsOK(res1)) {
15286 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15287 }
15288 arg1 = reinterpret_cast< wxDC * >(argp1);
15289 {
15290 arg2 = &temp2;
15291 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15292 }
15293 {
15294 arg3 = &temp3;
15295 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15296 }
15297 ecode4 = SWIG_AsVal_double(obj3, &val4);
15298 if (!SWIG_IsOK(ecode4)) {
15299 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
15300 }
15301 arg4 = static_cast< double >(val4);
15302 ecode5 = SWIG_AsVal_double(obj4, &val5);
15303 if (!SWIG_IsOK(ecode5)) {
15304 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
15305 }
15306 arg5 = static_cast< double >(val5);
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
15310 wxPyEndAllowThreads(__tstate);
15311 if (PyErr_Occurred()) SWIG_fail;
15312 }
15313 resultobj = SWIG_Py_Void();
15314 return resultobj;
15315 fail:
15316 return NULL;
15317 }
15318
15319
15320 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj = 0;
15322 wxDC *arg1 = (wxDC *) 0 ;
15323 int arg2 ;
15324 int arg3 ;
15325 void *argp1 = 0 ;
15326 int res1 = 0 ;
15327 int val2 ;
15328 int ecode2 = 0 ;
15329 int val3 ;
15330 int ecode3 = 0 ;
15331 PyObject * obj0 = 0 ;
15332 PyObject * obj1 = 0 ;
15333 PyObject * obj2 = 0 ;
15334 char * kwnames[] = {
15335 (char *) "self",(char *) "x",(char *) "y", NULL
15336 };
15337
15338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15340 if (!SWIG_IsOK(res1)) {
15341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15342 }
15343 arg1 = reinterpret_cast< wxDC * >(argp1);
15344 ecode2 = SWIG_AsVal_int(obj1, &val2);
15345 if (!SWIG_IsOK(ecode2)) {
15346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
15347 }
15348 arg2 = static_cast< int >(val2);
15349 ecode3 = SWIG_AsVal_int(obj2, &val3);
15350 if (!SWIG_IsOK(ecode3)) {
15351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
15352 }
15353 arg3 = static_cast< int >(val3);
15354 {
15355 PyThreadState* __tstate = wxPyBeginAllowThreads();
15356 (arg1)->DrawPoint(arg2,arg3);
15357 wxPyEndAllowThreads(__tstate);
15358 if (PyErr_Occurred()) SWIG_fail;
15359 }
15360 resultobj = SWIG_Py_Void();
15361 return resultobj;
15362 fail:
15363 return NULL;
15364 }
15365
15366
15367 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15368 PyObject *resultobj = 0;
15369 wxDC *arg1 = (wxDC *) 0 ;
15370 wxPoint *arg2 = 0 ;
15371 void *argp1 = 0 ;
15372 int res1 = 0 ;
15373 wxPoint temp2 ;
15374 PyObject * obj0 = 0 ;
15375 PyObject * obj1 = 0 ;
15376 char * kwnames[] = {
15377 (char *) "self",(char *) "pt", NULL
15378 };
15379
15380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15382 if (!SWIG_IsOK(res1)) {
15383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15384 }
15385 arg1 = reinterpret_cast< wxDC * >(argp1);
15386 {
15387 arg2 = &temp2;
15388 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15389 }
15390 {
15391 PyThreadState* __tstate = wxPyBeginAllowThreads();
15392 (arg1)->DrawPoint((wxPoint const &)*arg2);
15393 wxPyEndAllowThreads(__tstate);
15394 if (PyErr_Occurred()) SWIG_fail;
15395 }
15396 resultobj = SWIG_Py_Void();
15397 return resultobj;
15398 fail:
15399 return NULL;
15400 }
15401
15402
15403 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15404 PyObject *resultobj = 0;
15405 wxDC *arg1 = (wxDC *) 0 ;
15406 int arg2 ;
15407 int arg3 ;
15408 int arg4 ;
15409 int arg5 ;
15410 void *argp1 = 0 ;
15411 int res1 = 0 ;
15412 int val2 ;
15413 int ecode2 = 0 ;
15414 int val3 ;
15415 int ecode3 = 0 ;
15416 int val4 ;
15417 int ecode4 = 0 ;
15418 int val5 ;
15419 int ecode5 = 0 ;
15420 PyObject * obj0 = 0 ;
15421 PyObject * obj1 = 0 ;
15422 PyObject * obj2 = 0 ;
15423 PyObject * obj3 = 0 ;
15424 PyObject * obj4 = 0 ;
15425 char * kwnames[] = {
15426 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15427 };
15428
15429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15431 if (!SWIG_IsOK(res1)) {
15432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15433 }
15434 arg1 = reinterpret_cast< wxDC * >(argp1);
15435 ecode2 = SWIG_AsVal_int(obj1, &val2);
15436 if (!SWIG_IsOK(ecode2)) {
15437 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
15438 }
15439 arg2 = static_cast< int >(val2);
15440 ecode3 = SWIG_AsVal_int(obj2, &val3);
15441 if (!SWIG_IsOK(ecode3)) {
15442 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
15443 }
15444 arg3 = static_cast< int >(val3);
15445 ecode4 = SWIG_AsVal_int(obj3, &val4);
15446 if (!SWIG_IsOK(ecode4)) {
15447 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
15448 }
15449 arg4 = static_cast< int >(val4);
15450 ecode5 = SWIG_AsVal_int(obj4, &val5);
15451 if (!SWIG_IsOK(ecode5)) {
15452 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
15453 }
15454 arg5 = static_cast< int >(val5);
15455 {
15456 PyThreadState* __tstate = wxPyBeginAllowThreads();
15457 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
15458 wxPyEndAllowThreads(__tstate);
15459 if (PyErr_Occurred()) SWIG_fail;
15460 }
15461 resultobj = SWIG_Py_Void();
15462 return resultobj;
15463 fail:
15464 return NULL;
15465 }
15466
15467
15468 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15469 PyObject *resultobj = 0;
15470 wxDC *arg1 = (wxDC *) 0 ;
15471 wxRect *arg2 = 0 ;
15472 void *argp1 = 0 ;
15473 int res1 = 0 ;
15474 wxRect temp2 ;
15475 PyObject * obj0 = 0 ;
15476 PyObject * obj1 = 0 ;
15477 char * kwnames[] = {
15478 (char *) "self",(char *) "rect", NULL
15479 };
15480
15481 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
15482 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15483 if (!SWIG_IsOK(res1)) {
15484 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15485 }
15486 arg1 = reinterpret_cast< wxDC * >(argp1);
15487 {
15488 arg2 = &temp2;
15489 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15490 }
15491 {
15492 PyThreadState* __tstate = wxPyBeginAllowThreads();
15493 (arg1)->DrawRectangle((wxRect const &)*arg2);
15494 wxPyEndAllowThreads(__tstate);
15495 if (PyErr_Occurred()) SWIG_fail;
15496 }
15497 resultobj = SWIG_Py_Void();
15498 return resultobj;
15499 fail:
15500 return NULL;
15501 }
15502
15503
15504 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15505 PyObject *resultobj = 0;
15506 wxDC *arg1 = (wxDC *) 0 ;
15507 wxPoint *arg2 = 0 ;
15508 wxSize *arg3 = 0 ;
15509 void *argp1 = 0 ;
15510 int res1 = 0 ;
15511 wxPoint temp2 ;
15512 wxSize temp3 ;
15513 PyObject * obj0 = 0 ;
15514 PyObject * obj1 = 0 ;
15515 PyObject * obj2 = 0 ;
15516 char * kwnames[] = {
15517 (char *) "self",(char *) "pt",(char *) "sz", NULL
15518 };
15519
15520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15522 if (!SWIG_IsOK(res1)) {
15523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15524 }
15525 arg1 = reinterpret_cast< wxDC * >(argp1);
15526 {
15527 arg2 = &temp2;
15528 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15529 }
15530 {
15531 arg3 = &temp3;
15532 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15533 }
15534 {
15535 PyThreadState* __tstate = wxPyBeginAllowThreads();
15536 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
15537 wxPyEndAllowThreads(__tstate);
15538 if (PyErr_Occurred()) SWIG_fail;
15539 }
15540 resultobj = SWIG_Py_Void();
15541 return resultobj;
15542 fail:
15543 return NULL;
15544 }
15545
15546
15547 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15548 PyObject *resultobj = 0;
15549 wxDC *arg1 = (wxDC *) 0 ;
15550 int arg2 ;
15551 int arg3 ;
15552 int arg4 ;
15553 int arg5 ;
15554 double arg6 ;
15555 void *argp1 = 0 ;
15556 int res1 = 0 ;
15557 int val2 ;
15558 int ecode2 = 0 ;
15559 int val3 ;
15560 int ecode3 = 0 ;
15561 int val4 ;
15562 int ecode4 = 0 ;
15563 int val5 ;
15564 int ecode5 = 0 ;
15565 double val6 ;
15566 int ecode6 = 0 ;
15567 PyObject * obj0 = 0 ;
15568 PyObject * obj1 = 0 ;
15569 PyObject * obj2 = 0 ;
15570 PyObject * obj3 = 0 ;
15571 PyObject * obj4 = 0 ;
15572 PyObject * obj5 = 0 ;
15573 char * kwnames[] = {
15574 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
15575 };
15576
15577 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) 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_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
15581 }
15582 arg1 = reinterpret_cast< wxDC * >(argp1);
15583 ecode2 = SWIG_AsVal_int(obj1, &val2);
15584 if (!SWIG_IsOK(ecode2)) {
15585 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
15586 }
15587 arg2 = static_cast< int >(val2);
15588 ecode3 = SWIG_AsVal_int(obj2, &val3);
15589 if (!SWIG_IsOK(ecode3)) {
15590 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
15591 }
15592 arg3 = static_cast< int >(val3);
15593 ecode4 = SWIG_AsVal_int(obj3, &val4);
15594 if (!SWIG_IsOK(ecode4)) {
15595 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
15596 }
15597 arg4 = static_cast< int >(val4);
15598 ecode5 = SWIG_AsVal_int(obj4, &val5);
15599 if (!SWIG_IsOK(ecode5)) {
15600 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
15601 }
15602 arg5 = static_cast< int >(val5);
15603 ecode6 = SWIG_AsVal_double(obj5, &val6);
15604 if (!SWIG_IsOK(ecode6)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
15606 }
15607 arg6 = static_cast< double >(val6);
15608 {
15609 PyThreadState* __tstate = wxPyBeginAllowThreads();
15610 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
15611 wxPyEndAllowThreads(__tstate);
15612 if (PyErr_Occurred()) SWIG_fail;
15613 }
15614 resultobj = SWIG_Py_Void();
15615 return resultobj;
15616 fail:
15617 return NULL;
15618 }
15619
15620
15621 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj = 0;
15623 wxDC *arg1 = (wxDC *) 0 ;
15624 wxRect *arg2 = 0 ;
15625 double arg3 ;
15626 void *argp1 = 0 ;
15627 int res1 = 0 ;
15628 wxRect temp2 ;
15629 double val3 ;
15630 int ecode3 = 0 ;
15631 PyObject * obj0 = 0 ;
15632 PyObject * obj1 = 0 ;
15633 PyObject * obj2 = 0 ;
15634 char * kwnames[] = {
15635 (char *) "self",(char *) "r",(char *) "radius", NULL
15636 };
15637
15638 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15639 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15640 if (!SWIG_IsOK(res1)) {
15641 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
15642 }
15643 arg1 = reinterpret_cast< wxDC * >(argp1);
15644 {
15645 arg2 = &temp2;
15646 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15647 }
15648 ecode3 = SWIG_AsVal_double(obj2, &val3);
15649 if (!SWIG_IsOK(ecode3)) {
15650 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
15651 }
15652 arg3 = static_cast< double >(val3);
15653 {
15654 PyThreadState* __tstate = wxPyBeginAllowThreads();
15655 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
15656 wxPyEndAllowThreads(__tstate);
15657 if (PyErr_Occurred()) SWIG_fail;
15658 }
15659 resultobj = SWIG_Py_Void();
15660 return resultobj;
15661 fail:
15662 return NULL;
15663 }
15664
15665
15666 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15667 PyObject *resultobj = 0;
15668 wxDC *arg1 = (wxDC *) 0 ;
15669 wxPoint *arg2 = 0 ;
15670 wxSize *arg3 = 0 ;
15671 double arg4 ;
15672 void *argp1 = 0 ;
15673 int res1 = 0 ;
15674 wxPoint temp2 ;
15675 wxSize temp3 ;
15676 double val4 ;
15677 int ecode4 = 0 ;
15678 PyObject * obj0 = 0 ;
15679 PyObject * obj1 = 0 ;
15680 PyObject * obj2 = 0 ;
15681 PyObject * obj3 = 0 ;
15682 char * kwnames[] = {
15683 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
15684 };
15685
15686 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15687 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15688 if (!SWIG_IsOK(res1)) {
15689 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15690 }
15691 arg1 = reinterpret_cast< wxDC * >(argp1);
15692 {
15693 arg2 = &temp2;
15694 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15695 }
15696 {
15697 arg3 = &temp3;
15698 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15699 }
15700 ecode4 = SWIG_AsVal_double(obj3, &val4);
15701 if (!SWIG_IsOK(ecode4)) {
15702 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
15703 }
15704 arg4 = static_cast< double >(val4);
15705 {
15706 PyThreadState* __tstate = wxPyBeginAllowThreads();
15707 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
15708 wxPyEndAllowThreads(__tstate);
15709 if (PyErr_Occurred()) SWIG_fail;
15710 }
15711 resultobj = SWIG_Py_Void();
15712 return resultobj;
15713 fail:
15714 return NULL;
15715 }
15716
15717
15718 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15719 PyObject *resultobj = 0;
15720 wxDC *arg1 = (wxDC *) 0 ;
15721 int arg2 ;
15722 int arg3 ;
15723 int arg4 ;
15724 void *argp1 = 0 ;
15725 int res1 = 0 ;
15726 int val2 ;
15727 int ecode2 = 0 ;
15728 int val3 ;
15729 int ecode3 = 0 ;
15730 int val4 ;
15731 int ecode4 = 0 ;
15732 PyObject * obj0 = 0 ;
15733 PyObject * obj1 = 0 ;
15734 PyObject * obj2 = 0 ;
15735 PyObject * obj3 = 0 ;
15736 char * kwnames[] = {
15737 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
15738 };
15739
15740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15742 if (!SWIG_IsOK(res1)) {
15743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
15744 }
15745 arg1 = reinterpret_cast< wxDC * >(argp1);
15746 ecode2 = SWIG_AsVal_int(obj1, &val2);
15747 if (!SWIG_IsOK(ecode2)) {
15748 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
15749 }
15750 arg2 = static_cast< int >(val2);
15751 ecode3 = SWIG_AsVal_int(obj2, &val3);
15752 if (!SWIG_IsOK(ecode3)) {
15753 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
15754 }
15755 arg3 = static_cast< int >(val3);
15756 ecode4 = SWIG_AsVal_int(obj3, &val4);
15757 if (!SWIG_IsOK(ecode4)) {
15758 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
15759 }
15760 arg4 = static_cast< int >(val4);
15761 {
15762 PyThreadState* __tstate = wxPyBeginAllowThreads();
15763 (arg1)->DrawCircle(arg2,arg3,arg4);
15764 wxPyEndAllowThreads(__tstate);
15765 if (PyErr_Occurred()) SWIG_fail;
15766 }
15767 resultobj = SWIG_Py_Void();
15768 return resultobj;
15769 fail:
15770 return NULL;
15771 }
15772
15773
15774 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15775 PyObject *resultobj = 0;
15776 wxDC *arg1 = (wxDC *) 0 ;
15777 wxPoint *arg2 = 0 ;
15778 int arg3 ;
15779 void *argp1 = 0 ;
15780 int res1 = 0 ;
15781 wxPoint temp2 ;
15782 int val3 ;
15783 int ecode3 = 0 ;
15784 PyObject * obj0 = 0 ;
15785 PyObject * obj1 = 0 ;
15786 PyObject * obj2 = 0 ;
15787 char * kwnames[] = {
15788 (char *) "self",(char *) "pt",(char *) "radius", NULL
15789 };
15790
15791 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15792 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15793 if (!SWIG_IsOK(res1)) {
15794 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15795 }
15796 arg1 = reinterpret_cast< wxDC * >(argp1);
15797 {
15798 arg2 = &temp2;
15799 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15800 }
15801 ecode3 = SWIG_AsVal_int(obj2, &val3);
15802 if (!SWIG_IsOK(ecode3)) {
15803 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
15804 }
15805 arg3 = static_cast< int >(val3);
15806 {
15807 PyThreadState* __tstate = wxPyBeginAllowThreads();
15808 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
15809 wxPyEndAllowThreads(__tstate);
15810 if (PyErr_Occurred()) SWIG_fail;
15811 }
15812 resultobj = SWIG_Py_Void();
15813 return resultobj;
15814 fail:
15815 return NULL;
15816 }
15817
15818
15819 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15820 PyObject *resultobj = 0;
15821 wxDC *arg1 = (wxDC *) 0 ;
15822 int arg2 ;
15823 int arg3 ;
15824 int arg4 ;
15825 int arg5 ;
15826 void *argp1 = 0 ;
15827 int res1 = 0 ;
15828 int val2 ;
15829 int ecode2 = 0 ;
15830 int val3 ;
15831 int ecode3 = 0 ;
15832 int val4 ;
15833 int ecode4 = 0 ;
15834 int val5 ;
15835 int ecode5 = 0 ;
15836 PyObject * obj0 = 0 ;
15837 PyObject * obj1 = 0 ;
15838 PyObject * obj2 = 0 ;
15839 PyObject * obj3 = 0 ;
15840 PyObject * obj4 = 0 ;
15841 char * kwnames[] = {
15842 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15843 };
15844
15845 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15846 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15847 if (!SWIG_IsOK(res1)) {
15848 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
15849 }
15850 arg1 = reinterpret_cast< wxDC * >(argp1);
15851 ecode2 = SWIG_AsVal_int(obj1, &val2);
15852 if (!SWIG_IsOK(ecode2)) {
15853 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
15854 }
15855 arg2 = static_cast< int >(val2);
15856 ecode3 = SWIG_AsVal_int(obj2, &val3);
15857 if (!SWIG_IsOK(ecode3)) {
15858 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
15859 }
15860 arg3 = static_cast< int >(val3);
15861 ecode4 = SWIG_AsVal_int(obj3, &val4);
15862 if (!SWIG_IsOK(ecode4)) {
15863 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
15864 }
15865 arg4 = static_cast< int >(val4);
15866 ecode5 = SWIG_AsVal_int(obj4, &val5);
15867 if (!SWIG_IsOK(ecode5)) {
15868 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
15869 }
15870 arg5 = static_cast< int >(val5);
15871 {
15872 PyThreadState* __tstate = wxPyBeginAllowThreads();
15873 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
15874 wxPyEndAllowThreads(__tstate);
15875 if (PyErr_Occurred()) SWIG_fail;
15876 }
15877 resultobj = SWIG_Py_Void();
15878 return resultobj;
15879 fail:
15880 return NULL;
15881 }
15882
15883
15884 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15885 PyObject *resultobj = 0;
15886 wxDC *arg1 = (wxDC *) 0 ;
15887 wxRect *arg2 = 0 ;
15888 void *argp1 = 0 ;
15889 int res1 = 0 ;
15890 wxRect temp2 ;
15891 PyObject * obj0 = 0 ;
15892 PyObject * obj1 = 0 ;
15893 char * kwnames[] = {
15894 (char *) "self",(char *) "rect", NULL
15895 };
15896
15897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
15898 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15899 if (!SWIG_IsOK(res1)) {
15900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
15901 }
15902 arg1 = reinterpret_cast< wxDC * >(argp1);
15903 {
15904 arg2 = &temp2;
15905 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15906 }
15907 {
15908 PyThreadState* __tstate = wxPyBeginAllowThreads();
15909 (arg1)->DrawEllipse((wxRect const &)*arg2);
15910 wxPyEndAllowThreads(__tstate);
15911 if (PyErr_Occurred()) SWIG_fail;
15912 }
15913 resultobj = SWIG_Py_Void();
15914 return resultobj;
15915 fail:
15916 return NULL;
15917 }
15918
15919
15920 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15921 PyObject *resultobj = 0;
15922 wxDC *arg1 = (wxDC *) 0 ;
15923 wxPoint *arg2 = 0 ;
15924 wxSize *arg3 = 0 ;
15925 void *argp1 = 0 ;
15926 int res1 = 0 ;
15927 wxPoint temp2 ;
15928 wxSize temp3 ;
15929 PyObject * obj0 = 0 ;
15930 PyObject * obj1 = 0 ;
15931 PyObject * obj2 = 0 ;
15932 char * kwnames[] = {
15933 (char *) "self",(char *) "pt",(char *) "sz", NULL
15934 };
15935
15936 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15937 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15938 if (!SWIG_IsOK(res1)) {
15939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
15940 }
15941 arg1 = reinterpret_cast< wxDC * >(argp1);
15942 {
15943 arg2 = &temp2;
15944 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15945 }
15946 {
15947 arg3 = &temp3;
15948 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
15949 }
15950 {
15951 PyThreadState* __tstate = wxPyBeginAllowThreads();
15952 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
15953 wxPyEndAllowThreads(__tstate);
15954 if (PyErr_Occurred()) SWIG_fail;
15955 }
15956 resultobj = SWIG_Py_Void();
15957 return resultobj;
15958 fail:
15959 return NULL;
15960 }
15961
15962
15963 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15964 PyObject *resultobj = 0;
15965 wxDC *arg1 = (wxDC *) 0 ;
15966 wxIcon *arg2 = 0 ;
15967 int arg3 ;
15968 int arg4 ;
15969 void *argp1 = 0 ;
15970 int res1 = 0 ;
15971 void *argp2 = 0 ;
15972 int res2 = 0 ;
15973 int val3 ;
15974 int ecode3 = 0 ;
15975 int val4 ;
15976 int ecode4 = 0 ;
15977 PyObject * obj0 = 0 ;
15978 PyObject * obj1 = 0 ;
15979 PyObject * obj2 = 0 ;
15980 PyObject * obj3 = 0 ;
15981 char * kwnames[] = {
15982 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
15983 };
15984
15985 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15986 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15987 if (!SWIG_IsOK(res1)) {
15988 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
15989 }
15990 arg1 = reinterpret_cast< wxDC * >(argp1);
15991 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
15992 if (!SWIG_IsOK(res2)) {
15993 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
15994 }
15995 if (!argp2) {
15996 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
15997 }
15998 arg2 = reinterpret_cast< wxIcon * >(argp2);
15999 ecode3 = SWIG_AsVal_int(obj2, &val3);
16000 if (!SWIG_IsOK(ecode3)) {
16001 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16002 }
16003 arg3 = static_cast< int >(val3);
16004 ecode4 = SWIG_AsVal_int(obj3, &val4);
16005 if (!SWIG_IsOK(ecode4)) {
16006 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16007 }
16008 arg4 = static_cast< int >(val4);
16009 {
16010 PyThreadState* __tstate = wxPyBeginAllowThreads();
16011 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16012 wxPyEndAllowThreads(__tstate);
16013 if (PyErr_Occurred()) SWIG_fail;
16014 }
16015 resultobj = SWIG_Py_Void();
16016 return resultobj;
16017 fail:
16018 return NULL;
16019 }
16020
16021
16022 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16023 PyObject *resultobj = 0;
16024 wxDC *arg1 = (wxDC *) 0 ;
16025 wxIcon *arg2 = 0 ;
16026 wxPoint *arg3 = 0 ;
16027 void *argp1 = 0 ;
16028 int res1 = 0 ;
16029 void *argp2 = 0 ;
16030 int res2 = 0 ;
16031 wxPoint temp3 ;
16032 PyObject * obj0 = 0 ;
16033 PyObject * obj1 = 0 ;
16034 PyObject * obj2 = 0 ;
16035 char * kwnames[] = {
16036 (char *) "self",(char *) "icon",(char *) "pt", NULL
16037 };
16038
16039 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16040 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16041 if (!SWIG_IsOK(res1)) {
16042 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16043 }
16044 arg1 = reinterpret_cast< wxDC * >(argp1);
16045 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16046 if (!SWIG_IsOK(res2)) {
16047 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16048 }
16049 if (!argp2) {
16050 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16051 }
16052 arg2 = reinterpret_cast< wxIcon * >(argp2);
16053 {
16054 arg3 = &temp3;
16055 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16056 }
16057 {
16058 PyThreadState* __tstate = wxPyBeginAllowThreads();
16059 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16060 wxPyEndAllowThreads(__tstate);
16061 if (PyErr_Occurred()) SWIG_fail;
16062 }
16063 resultobj = SWIG_Py_Void();
16064 return resultobj;
16065 fail:
16066 return NULL;
16067 }
16068
16069
16070 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16071 PyObject *resultobj = 0;
16072 wxDC *arg1 = (wxDC *) 0 ;
16073 wxBitmap *arg2 = 0 ;
16074 int arg3 ;
16075 int arg4 ;
16076 bool arg5 = (bool) false ;
16077 void *argp1 = 0 ;
16078 int res1 = 0 ;
16079 void *argp2 = 0 ;
16080 int res2 = 0 ;
16081 int val3 ;
16082 int ecode3 = 0 ;
16083 int val4 ;
16084 int ecode4 = 0 ;
16085 bool val5 ;
16086 int ecode5 = 0 ;
16087 PyObject * obj0 = 0 ;
16088 PyObject * obj1 = 0 ;
16089 PyObject * obj2 = 0 ;
16090 PyObject * obj3 = 0 ;
16091 PyObject * obj4 = 0 ;
16092 char * kwnames[] = {
16093 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16094 };
16095
16096 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16097 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16098 if (!SWIG_IsOK(res1)) {
16099 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16100 }
16101 arg1 = reinterpret_cast< wxDC * >(argp1);
16102 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16103 if (!SWIG_IsOK(res2)) {
16104 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16105 }
16106 if (!argp2) {
16107 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16108 }
16109 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16110 ecode3 = SWIG_AsVal_int(obj2, &val3);
16111 if (!SWIG_IsOK(ecode3)) {
16112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16113 }
16114 arg3 = static_cast< int >(val3);
16115 ecode4 = SWIG_AsVal_int(obj3, &val4);
16116 if (!SWIG_IsOK(ecode4)) {
16117 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16118 }
16119 arg4 = static_cast< int >(val4);
16120 if (obj4) {
16121 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16122 if (!SWIG_IsOK(ecode5)) {
16123 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16124 }
16125 arg5 = static_cast< bool >(val5);
16126 }
16127 {
16128 PyThreadState* __tstate = wxPyBeginAllowThreads();
16129 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16130 wxPyEndAllowThreads(__tstate);
16131 if (PyErr_Occurred()) SWIG_fail;
16132 }
16133 resultobj = SWIG_Py_Void();
16134 return resultobj;
16135 fail:
16136 return NULL;
16137 }
16138
16139
16140 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16141 PyObject *resultobj = 0;
16142 wxDC *arg1 = (wxDC *) 0 ;
16143 wxBitmap *arg2 = 0 ;
16144 wxPoint *arg3 = 0 ;
16145 bool arg4 = (bool) false ;
16146 void *argp1 = 0 ;
16147 int res1 = 0 ;
16148 void *argp2 = 0 ;
16149 int res2 = 0 ;
16150 wxPoint temp3 ;
16151 bool val4 ;
16152 int ecode4 = 0 ;
16153 PyObject * obj0 = 0 ;
16154 PyObject * obj1 = 0 ;
16155 PyObject * obj2 = 0 ;
16156 PyObject * obj3 = 0 ;
16157 char * kwnames[] = {
16158 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16159 };
16160
16161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16163 if (!SWIG_IsOK(res1)) {
16164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16165 }
16166 arg1 = reinterpret_cast< wxDC * >(argp1);
16167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16168 if (!SWIG_IsOK(res2)) {
16169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16170 }
16171 if (!argp2) {
16172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16173 }
16174 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16175 {
16176 arg3 = &temp3;
16177 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16178 }
16179 if (obj3) {
16180 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16181 if (!SWIG_IsOK(ecode4)) {
16182 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16183 }
16184 arg4 = static_cast< bool >(val4);
16185 }
16186 {
16187 PyThreadState* __tstate = wxPyBeginAllowThreads();
16188 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16189 wxPyEndAllowThreads(__tstate);
16190 if (PyErr_Occurred()) SWIG_fail;
16191 }
16192 resultobj = SWIG_Py_Void();
16193 return resultobj;
16194 fail:
16195 return NULL;
16196 }
16197
16198
16199 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16200 PyObject *resultobj = 0;
16201 wxDC *arg1 = (wxDC *) 0 ;
16202 wxString *arg2 = 0 ;
16203 int arg3 ;
16204 int arg4 ;
16205 void *argp1 = 0 ;
16206 int res1 = 0 ;
16207 bool temp2 = false ;
16208 int val3 ;
16209 int ecode3 = 0 ;
16210 int val4 ;
16211 int ecode4 = 0 ;
16212 PyObject * obj0 = 0 ;
16213 PyObject * obj1 = 0 ;
16214 PyObject * obj2 = 0 ;
16215 PyObject * obj3 = 0 ;
16216 char * kwnames[] = {
16217 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16218 };
16219
16220 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16221 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16222 if (!SWIG_IsOK(res1)) {
16223 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16224 }
16225 arg1 = reinterpret_cast< wxDC * >(argp1);
16226 {
16227 arg2 = wxString_in_helper(obj1);
16228 if (arg2 == NULL) SWIG_fail;
16229 temp2 = true;
16230 }
16231 ecode3 = SWIG_AsVal_int(obj2, &val3);
16232 if (!SWIG_IsOK(ecode3)) {
16233 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16234 }
16235 arg3 = static_cast< int >(val3);
16236 ecode4 = SWIG_AsVal_int(obj3, &val4);
16237 if (!SWIG_IsOK(ecode4)) {
16238 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16239 }
16240 arg4 = static_cast< int >(val4);
16241 {
16242 PyThreadState* __tstate = wxPyBeginAllowThreads();
16243 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16244 wxPyEndAllowThreads(__tstate);
16245 if (PyErr_Occurred()) SWIG_fail;
16246 }
16247 resultobj = SWIG_Py_Void();
16248 {
16249 if (temp2)
16250 delete arg2;
16251 }
16252 return resultobj;
16253 fail:
16254 {
16255 if (temp2)
16256 delete arg2;
16257 }
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxDC *arg1 = (wxDC *) 0 ;
16265 wxString *arg2 = 0 ;
16266 wxPoint *arg3 = 0 ;
16267 void *argp1 = 0 ;
16268 int res1 = 0 ;
16269 bool temp2 = false ;
16270 wxPoint temp3 ;
16271 PyObject * obj0 = 0 ;
16272 PyObject * obj1 = 0 ;
16273 PyObject * obj2 = 0 ;
16274 char * kwnames[] = {
16275 (char *) "self",(char *) "text",(char *) "pt", NULL
16276 };
16277
16278 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16279 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16280 if (!SWIG_IsOK(res1)) {
16281 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16282 }
16283 arg1 = reinterpret_cast< wxDC * >(argp1);
16284 {
16285 arg2 = wxString_in_helper(obj1);
16286 if (arg2 == NULL) SWIG_fail;
16287 temp2 = true;
16288 }
16289 {
16290 arg3 = &temp3;
16291 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16292 }
16293 {
16294 PyThreadState* __tstate = wxPyBeginAllowThreads();
16295 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
16296 wxPyEndAllowThreads(__tstate);
16297 if (PyErr_Occurred()) SWIG_fail;
16298 }
16299 resultobj = SWIG_Py_Void();
16300 {
16301 if (temp2)
16302 delete arg2;
16303 }
16304 return resultobj;
16305 fail:
16306 {
16307 if (temp2)
16308 delete arg2;
16309 }
16310 return NULL;
16311 }
16312
16313
16314 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16315 PyObject *resultobj = 0;
16316 wxDC *arg1 = (wxDC *) 0 ;
16317 wxString *arg2 = 0 ;
16318 int arg3 ;
16319 int arg4 ;
16320 double arg5 ;
16321 void *argp1 = 0 ;
16322 int res1 = 0 ;
16323 bool temp2 = false ;
16324 int val3 ;
16325 int ecode3 = 0 ;
16326 int val4 ;
16327 int ecode4 = 0 ;
16328 double val5 ;
16329 int ecode5 = 0 ;
16330 PyObject * obj0 = 0 ;
16331 PyObject * obj1 = 0 ;
16332 PyObject * obj2 = 0 ;
16333 PyObject * obj3 = 0 ;
16334 PyObject * obj4 = 0 ;
16335 char * kwnames[] = {
16336 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
16337 };
16338
16339 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16340 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16341 if (!SWIG_IsOK(res1)) {
16342 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
16343 }
16344 arg1 = reinterpret_cast< wxDC * >(argp1);
16345 {
16346 arg2 = wxString_in_helper(obj1);
16347 if (arg2 == NULL) SWIG_fail;
16348 temp2 = true;
16349 }
16350 ecode3 = SWIG_AsVal_int(obj2, &val3);
16351 if (!SWIG_IsOK(ecode3)) {
16352 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
16353 }
16354 arg3 = static_cast< int >(val3);
16355 ecode4 = SWIG_AsVal_int(obj3, &val4);
16356 if (!SWIG_IsOK(ecode4)) {
16357 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
16358 }
16359 arg4 = static_cast< int >(val4);
16360 ecode5 = SWIG_AsVal_double(obj4, &val5);
16361 if (!SWIG_IsOK(ecode5)) {
16362 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
16363 }
16364 arg5 = static_cast< double >(val5);
16365 {
16366 PyThreadState* __tstate = wxPyBeginAllowThreads();
16367 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
16368 wxPyEndAllowThreads(__tstate);
16369 if (PyErr_Occurred()) SWIG_fail;
16370 }
16371 resultobj = SWIG_Py_Void();
16372 {
16373 if (temp2)
16374 delete arg2;
16375 }
16376 return resultobj;
16377 fail:
16378 {
16379 if (temp2)
16380 delete arg2;
16381 }
16382 return NULL;
16383 }
16384
16385
16386 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16387 PyObject *resultobj = 0;
16388 wxDC *arg1 = (wxDC *) 0 ;
16389 wxString *arg2 = 0 ;
16390 wxPoint *arg3 = 0 ;
16391 double arg4 ;
16392 void *argp1 = 0 ;
16393 int res1 = 0 ;
16394 bool temp2 = false ;
16395 wxPoint temp3 ;
16396 double val4 ;
16397 int ecode4 = 0 ;
16398 PyObject * obj0 = 0 ;
16399 PyObject * obj1 = 0 ;
16400 PyObject * obj2 = 0 ;
16401 PyObject * obj3 = 0 ;
16402 char * kwnames[] = {
16403 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
16404 };
16405
16406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16408 if (!SWIG_IsOK(res1)) {
16409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16410 }
16411 arg1 = reinterpret_cast< wxDC * >(argp1);
16412 {
16413 arg2 = wxString_in_helper(obj1);
16414 if (arg2 == NULL) SWIG_fail;
16415 temp2 = true;
16416 }
16417 {
16418 arg3 = &temp3;
16419 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16420 }
16421 ecode4 = SWIG_AsVal_double(obj3, &val4);
16422 if (!SWIG_IsOK(ecode4)) {
16423 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
16424 }
16425 arg4 = static_cast< double >(val4);
16426 {
16427 PyThreadState* __tstate = wxPyBeginAllowThreads();
16428 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
16429 wxPyEndAllowThreads(__tstate);
16430 if (PyErr_Occurred()) SWIG_fail;
16431 }
16432 resultobj = SWIG_Py_Void();
16433 {
16434 if (temp2)
16435 delete arg2;
16436 }
16437 return resultobj;
16438 fail:
16439 {
16440 if (temp2)
16441 delete arg2;
16442 }
16443 return NULL;
16444 }
16445
16446
16447 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16448 PyObject *resultobj = 0;
16449 wxDC *arg1 = (wxDC *) 0 ;
16450 int arg2 ;
16451 int arg3 ;
16452 int arg4 ;
16453 int arg5 ;
16454 wxDC *arg6 = (wxDC *) 0 ;
16455 int arg7 ;
16456 int arg8 ;
16457 int arg9 = (int) wxCOPY ;
16458 bool arg10 = (bool) false ;
16459 int arg11 = (int) -1 ;
16460 int arg12 = (int) -1 ;
16461 bool result;
16462 void *argp1 = 0 ;
16463 int res1 = 0 ;
16464 int val2 ;
16465 int ecode2 = 0 ;
16466 int val3 ;
16467 int ecode3 = 0 ;
16468 int val4 ;
16469 int ecode4 = 0 ;
16470 int val5 ;
16471 int ecode5 = 0 ;
16472 void *argp6 = 0 ;
16473 int res6 = 0 ;
16474 int val7 ;
16475 int ecode7 = 0 ;
16476 int val8 ;
16477 int ecode8 = 0 ;
16478 int val9 ;
16479 int ecode9 = 0 ;
16480 bool val10 ;
16481 int ecode10 = 0 ;
16482 int val11 ;
16483 int ecode11 = 0 ;
16484 int val12 ;
16485 int ecode12 = 0 ;
16486 PyObject * obj0 = 0 ;
16487 PyObject * obj1 = 0 ;
16488 PyObject * obj2 = 0 ;
16489 PyObject * obj3 = 0 ;
16490 PyObject * obj4 = 0 ;
16491 PyObject * obj5 = 0 ;
16492 PyObject * obj6 = 0 ;
16493 PyObject * obj7 = 0 ;
16494 PyObject * obj8 = 0 ;
16495 PyObject * obj9 = 0 ;
16496 PyObject * obj10 = 0 ;
16497 PyObject * obj11 = 0 ;
16498 char * kwnames[] = {
16499 (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
16500 };
16501
16502 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;
16503 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16504 if (!SWIG_IsOK(res1)) {
16505 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
16506 }
16507 arg1 = reinterpret_cast< wxDC * >(argp1);
16508 ecode2 = SWIG_AsVal_int(obj1, &val2);
16509 if (!SWIG_IsOK(ecode2)) {
16510 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
16511 }
16512 arg2 = static_cast< int >(val2);
16513 ecode3 = SWIG_AsVal_int(obj2, &val3);
16514 if (!SWIG_IsOK(ecode3)) {
16515 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
16516 }
16517 arg3 = static_cast< int >(val3);
16518 ecode4 = SWIG_AsVal_int(obj3, &val4);
16519 if (!SWIG_IsOK(ecode4)) {
16520 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
16521 }
16522 arg4 = static_cast< int >(val4);
16523 ecode5 = SWIG_AsVal_int(obj4, &val5);
16524 if (!SWIG_IsOK(ecode5)) {
16525 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
16526 }
16527 arg5 = static_cast< int >(val5);
16528 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
16529 if (!SWIG_IsOK(res6)) {
16530 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
16531 }
16532 arg6 = reinterpret_cast< wxDC * >(argp6);
16533 ecode7 = SWIG_AsVal_int(obj6, &val7);
16534 if (!SWIG_IsOK(ecode7)) {
16535 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
16536 }
16537 arg7 = static_cast< int >(val7);
16538 ecode8 = SWIG_AsVal_int(obj7, &val8);
16539 if (!SWIG_IsOK(ecode8)) {
16540 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
16541 }
16542 arg8 = static_cast< int >(val8);
16543 if (obj8) {
16544 ecode9 = SWIG_AsVal_int(obj8, &val9);
16545 if (!SWIG_IsOK(ecode9)) {
16546 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
16547 }
16548 arg9 = static_cast< int >(val9);
16549 }
16550 if (obj9) {
16551 ecode10 = SWIG_AsVal_bool(obj9, &val10);
16552 if (!SWIG_IsOK(ecode10)) {
16553 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
16554 }
16555 arg10 = static_cast< bool >(val10);
16556 }
16557 if (obj10) {
16558 ecode11 = SWIG_AsVal_int(obj10, &val11);
16559 if (!SWIG_IsOK(ecode11)) {
16560 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
16561 }
16562 arg11 = static_cast< int >(val11);
16563 }
16564 if (obj11) {
16565 ecode12 = SWIG_AsVal_int(obj11, &val12);
16566 if (!SWIG_IsOK(ecode12)) {
16567 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
16568 }
16569 arg12 = static_cast< int >(val12);
16570 }
16571 {
16572 PyThreadState* __tstate = wxPyBeginAllowThreads();
16573 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
16574 wxPyEndAllowThreads(__tstate);
16575 if (PyErr_Occurred()) SWIG_fail;
16576 }
16577 {
16578 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16579 }
16580 return resultobj;
16581 fail:
16582 return NULL;
16583 }
16584
16585
16586 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16587 PyObject *resultobj = 0;
16588 wxDC *arg1 = (wxDC *) 0 ;
16589 wxPoint *arg2 = 0 ;
16590 wxSize *arg3 = 0 ;
16591 wxDC *arg4 = (wxDC *) 0 ;
16592 wxPoint *arg5 = 0 ;
16593 int arg6 = (int) wxCOPY ;
16594 bool arg7 = (bool) false ;
16595 wxPoint const &arg8_defvalue = wxDefaultPosition ;
16596 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
16597 bool result;
16598 void *argp1 = 0 ;
16599 int res1 = 0 ;
16600 wxPoint temp2 ;
16601 wxSize temp3 ;
16602 void *argp4 = 0 ;
16603 int res4 = 0 ;
16604 wxPoint temp5 ;
16605 int val6 ;
16606 int ecode6 = 0 ;
16607 bool val7 ;
16608 int ecode7 = 0 ;
16609 wxPoint temp8 ;
16610 PyObject * obj0 = 0 ;
16611 PyObject * obj1 = 0 ;
16612 PyObject * obj2 = 0 ;
16613 PyObject * obj3 = 0 ;
16614 PyObject * obj4 = 0 ;
16615 PyObject * obj5 = 0 ;
16616 PyObject * obj6 = 0 ;
16617 PyObject * obj7 = 0 ;
16618 char * kwnames[] = {
16619 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
16620 };
16621
16622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
16623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16624 if (!SWIG_IsOK(res1)) {
16625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16626 }
16627 arg1 = reinterpret_cast< wxDC * >(argp1);
16628 {
16629 arg2 = &temp2;
16630 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16631 }
16632 {
16633 arg3 = &temp3;
16634 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16635 }
16636 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
16637 if (!SWIG_IsOK(res4)) {
16638 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
16639 }
16640 arg4 = reinterpret_cast< wxDC * >(argp4);
16641 {
16642 arg5 = &temp5;
16643 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
16644 }
16645 if (obj5) {
16646 ecode6 = SWIG_AsVal_int(obj5, &val6);
16647 if (!SWIG_IsOK(ecode6)) {
16648 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
16649 }
16650 arg6 = static_cast< int >(val6);
16651 }
16652 if (obj6) {
16653 ecode7 = SWIG_AsVal_bool(obj6, &val7);
16654 if (!SWIG_IsOK(ecode7)) {
16655 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
16656 }
16657 arg7 = static_cast< bool >(val7);
16658 }
16659 if (obj7) {
16660 {
16661 arg8 = &temp8;
16662 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
16663 }
16664 }
16665 {
16666 PyThreadState* __tstate = wxPyBeginAllowThreads();
16667 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
16668 wxPyEndAllowThreads(__tstate);
16669 if (PyErr_Occurred()) SWIG_fail;
16670 }
16671 {
16672 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
16673 }
16674 return resultobj;
16675 fail:
16676 return NULL;
16677 }
16678
16679
16680 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16681 PyObject *resultobj = 0;
16682 wxDC *arg1 = (wxDC *) 0 ;
16683 int arg2 ;
16684 int arg3 ;
16685 int arg4 ;
16686 int arg5 ;
16687 void *argp1 = 0 ;
16688 int res1 = 0 ;
16689 int val2 ;
16690 int ecode2 = 0 ;
16691 int val3 ;
16692 int ecode3 = 0 ;
16693 int val4 ;
16694 int ecode4 = 0 ;
16695 int val5 ;
16696 int ecode5 = 0 ;
16697 PyObject * obj0 = 0 ;
16698 PyObject * obj1 = 0 ;
16699 PyObject * obj2 = 0 ;
16700 PyObject * obj3 = 0 ;
16701 PyObject * obj4 = 0 ;
16702 char * kwnames[] = {
16703 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16704 };
16705
16706 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16707 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16708 if (!SWIG_IsOK(res1)) {
16709 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16710 }
16711 arg1 = reinterpret_cast< wxDC * >(argp1);
16712 ecode2 = SWIG_AsVal_int(obj1, &val2);
16713 if (!SWIG_IsOK(ecode2)) {
16714 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
16715 }
16716 arg2 = static_cast< int >(val2);
16717 ecode3 = SWIG_AsVal_int(obj2, &val3);
16718 if (!SWIG_IsOK(ecode3)) {
16719 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
16720 }
16721 arg3 = static_cast< int >(val3);
16722 ecode4 = SWIG_AsVal_int(obj3, &val4);
16723 if (!SWIG_IsOK(ecode4)) {
16724 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
16725 }
16726 arg4 = static_cast< int >(val4);
16727 ecode5 = SWIG_AsVal_int(obj4, &val5);
16728 if (!SWIG_IsOK(ecode5)) {
16729 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
16730 }
16731 arg5 = static_cast< int >(val5);
16732 {
16733 PyThreadState* __tstate = wxPyBeginAllowThreads();
16734 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
16735 wxPyEndAllowThreads(__tstate);
16736 if (PyErr_Occurred()) SWIG_fail;
16737 }
16738 resultobj = SWIG_Py_Void();
16739 return resultobj;
16740 fail:
16741 return NULL;
16742 }
16743
16744
16745 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16746 PyObject *resultobj = 0;
16747 wxDC *arg1 = (wxDC *) 0 ;
16748 wxPoint *arg2 = 0 ;
16749 wxSize *arg3 = 0 ;
16750 void *argp1 = 0 ;
16751 int res1 = 0 ;
16752 wxPoint temp2 ;
16753 wxSize temp3 ;
16754 PyObject * obj0 = 0 ;
16755 PyObject * obj1 = 0 ;
16756 PyObject * obj2 = 0 ;
16757 char * kwnames[] = {
16758 (char *) "self",(char *) "pt",(char *) "sz", NULL
16759 };
16760
16761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16763 if (!SWIG_IsOK(res1)) {
16764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16765 }
16766 arg1 = reinterpret_cast< wxDC * >(argp1);
16767 {
16768 arg2 = &temp2;
16769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16770 }
16771 {
16772 arg3 = &temp3;
16773 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16774 }
16775 {
16776 PyThreadState* __tstate = wxPyBeginAllowThreads();
16777 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
16778 wxPyEndAllowThreads(__tstate);
16779 if (PyErr_Occurred()) SWIG_fail;
16780 }
16781 resultobj = SWIG_Py_Void();
16782 return resultobj;
16783 fail:
16784 return NULL;
16785 }
16786
16787
16788 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16789 PyObject *resultobj = 0;
16790 wxDC *arg1 = (wxDC *) 0 ;
16791 wxRegion *arg2 = 0 ;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 void *argp2 = 0 ;
16795 int res2 = 0 ;
16796 PyObject * obj0 = 0 ;
16797 PyObject * obj1 = 0 ;
16798 char * kwnames[] = {
16799 (char *) "self",(char *) "region", NULL
16800 };
16801
16802 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
16803 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16804 if (!SWIG_IsOK(res1)) {
16805 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
16806 }
16807 arg1 = reinterpret_cast< wxDC * >(argp1);
16808 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
16809 if (!SWIG_IsOK(res2)) {
16810 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16811 }
16812 if (!argp2) {
16813 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
16814 }
16815 arg2 = reinterpret_cast< wxRegion * >(argp2);
16816 {
16817 PyThreadState* __tstate = wxPyBeginAllowThreads();
16818 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
16819 wxPyEndAllowThreads(__tstate);
16820 if (PyErr_Occurred()) SWIG_fail;
16821 }
16822 resultobj = SWIG_Py_Void();
16823 return resultobj;
16824 fail:
16825 return NULL;
16826 }
16827
16828
16829 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16830 PyObject *resultobj = 0;
16831 wxDC *arg1 = (wxDC *) 0 ;
16832 wxRect *arg2 = 0 ;
16833 void *argp1 = 0 ;
16834 int res1 = 0 ;
16835 wxRect temp2 ;
16836 PyObject * obj0 = 0 ;
16837 PyObject * obj1 = 0 ;
16838 char * kwnames[] = {
16839 (char *) "self",(char *) "rect", NULL
16840 };
16841
16842 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
16843 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16844 if (!SWIG_IsOK(res1)) {
16845 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
16846 }
16847 arg1 = reinterpret_cast< wxDC * >(argp1);
16848 {
16849 arg2 = &temp2;
16850 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16851 }
16852 {
16853 PyThreadState* __tstate = wxPyBeginAllowThreads();
16854 (arg1)->SetClippingRegion((wxRect const &)*arg2);
16855 wxPyEndAllowThreads(__tstate);
16856 if (PyErr_Occurred()) SWIG_fail;
16857 }
16858 resultobj = SWIG_Py_Void();
16859 return resultobj;
16860 fail:
16861 return NULL;
16862 }
16863
16864
16865 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16866 PyObject *resultobj = 0;
16867 wxDC *arg1 = (wxDC *) 0 ;
16868 int arg2 ;
16869 wxPoint *arg3 = (wxPoint *) 0 ;
16870 int arg4 = (int) 0 ;
16871 int arg5 = (int) 0 ;
16872 void *argp1 = 0 ;
16873 int res1 = 0 ;
16874 int val4 ;
16875 int ecode4 = 0 ;
16876 int val5 ;
16877 int ecode5 = 0 ;
16878 PyObject * obj0 = 0 ;
16879 PyObject * obj1 = 0 ;
16880 PyObject * obj2 = 0 ;
16881 PyObject * obj3 = 0 ;
16882 char * kwnames[] = {
16883 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
16884 };
16885
16886 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16887 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16888 if (!SWIG_IsOK(res1)) {
16889 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
16890 }
16891 arg1 = reinterpret_cast< wxDC * >(argp1);
16892 {
16893 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16894 if (arg3 == NULL) SWIG_fail;
16895 }
16896 if (obj2) {
16897 ecode4 = SWIG_AsVal_int(obj2, &val4);
16898 if (!SWIG_IsOK(ecode4)) {
16899 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
16900 }
16901 arg4 = static_cast< int >(val4);
16902 }
16903 if (obj3) {
16904 ecode5 = SWIG_AsVal_int(obj3, &val5);
16905 if (!SWIG_IsOK(ecode5)) {
16906 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
16907 }
16908 arg5 = static_cast< int >(val5);
16909 }
16910 {
16911 PyThreadState* __tstate = wxPyBeginAllowThreads();
16912 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
16913 wxPyEndAllowThreads(__tstate);
16914 if (PyErr_Occurred()) SWIG_fail;
16915 }
16916 resultobj = SWIG_Py_Void();
16917 {
16918 if (arg3) delete [] arg3;
16919 }
16920 return resultobj;
16921 fail:
16922 {
16923 if (arg3) delete [] arg3;
16924 }
16925 return NULL;
16926 }
16927
16928
16929 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16930 PyObject *resultobj = 0;
16931 wxDC *arg1 = (wxDC *) 0 ;
16932 int arg2 ;
16933 wxPoint *arg3 = (wxPoint *) 0 ;
16934 int arg4 = (int) 0 ;
16935 int arg5 = (int) 0 ;
16936 int arg6 = (int) wxODDEVEN_RULE ;
16937 void *argp1 = 0 ;
16938 int res1 = 0 ;
16939 int val4 ;
16940 int ecode4 = 0 ;
16941 int val5 ;
16942 int ecode5 = 0 ;
16943 int val6 ;
16944 int ecode6 = 0 ;
16945 PyObject * obj0 = 0 ;
16946 PyObject * obj1 = 0 ;
16947 PyObject * obj2 = 0 ;
16948 PyObject * obj3 = 0 ;
16949 PyObject * obj4 = 0 ;
16950 char * kwnames[] = {
16951 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
16952 };
16953
16954 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16955 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16956 if (!SWIG_IsOK(res1)) {
16957 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
16958 }
16959 arg1 = reinterpret_cast< wxDC * >(argp1);
16960 {
16961 arg3 = wxPoint_LIST_helper(obj1, &arg2);
16962 if (arg3 == NULL) SWIG_fail;
16963 }
16964 if (obj2) {
16965 ecode4 = SWIG_AsVal_int(obj2, &val4);
16966 if (!SWIG_IsOK(ecode4)) {
16967 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
16968 }
16969 arg4 = static_cast< int >(val4);
16970 }
16971 if (obj3) {
16972 ecode5 = SWIG_AsVal_int(obj3, &val5);
16973 if (!SWIG_IsOK(ecode5)) {
16974 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
16975 }
16976 arg5 = static_cast< int >(val5);
16977 }
16978 if (obj4) {
16979 ecode6 = SWIG_AsVal_int(obj4, &val6);
16980 if (!SWIG_IsOK(ecode6)) {
16981 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
16982 }
16983 arg6 = static_cast< int >(val6);
16984 }
16985 {
16986 PyThreadState* __tstate = wxPyBeginAllowThreads();
16987 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
16988 wxPyEndAllowThreads(__tstate);
16989 if (PyErr_Occurred()) SWIG_fail;
16990 }
16991 resultobj = SWIG_Py_Void();
16992 {
16993 if (arg3) delete [] arg3;
16994 }
16995 return resultobj;
16996 fail:
16997 {
16998 if (arg3) delete [] arg3;
16999 }
17000 return NULL;
17001 }
17002
17003
17004 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17005 PyObject *resultobj = 0;
17006 wxDC *arg1 = (wxDC *) 0 ;
17007 wxString *arg2 = 0 ;
17008 wxRect *arg3 = 0 ;
17009 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17010 int arg5 = (int) -1 ;
17011 void *argp1 = 0 ;
17012 int res1 = 0 ;
17013 bool temp2 = false ;
17014 wxRect temp3 ;
17015 int val4 ;
17016 int ecode4 = 0 ;
17017 int val5 ;
17018 int ecode5 = 0 ;
17019 PyObject * obj0 = 0 ;
17020 PyObject * obj1 = 0 ;
17021 PyObject * obj2 = 0 ;
17022 PyObject * obj3 = 0 ;
17023 PyObject * obj4 = 0 ;
17024 char * kwnames[] = {
17025 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17026 };
17027
17028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17029 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17030 if (!SWIG_IsOK(res1)) {
17031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17032 }
17033 arg1 = reinterpret_cast< wxDC * >(argp1);
17034 {
17035 arg2 = wxString_in_helper(obj1);
17036 if (arg2 == NULL) SWIG_fail;
17037 temp2 = true;
17038 }
17039 {
17040 arg3 = &temp3;
17041 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17042 }
17043 if (obj3) {
17044 ecode4 = SWIG_AsVal_int(obj3, &val4);
17045 if (!SWIG_IsOK(ecode4)) {
17046 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17047 }
17048 arg4 = static_cast< int >(val4);
17049 }
17050 if (obj4) {
17051 ecode5 = SWIG_AsVal_int(obj4, &val5);
17052 if (!SWIG_IsOK(ecode5)) {
17053 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17054 }
17055 arg5 = static_cast< int >(val5);
17056 }
17057 {
17058 PyThreadState* __tstate = wxPyBeginAllowThreads();
17059 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17060 wxPyEndAllowThreads(__tstate);
17061 if (PyErr_Occurred()) SWIG_fail;
17062 }
17063 resultobj = SWIG_Py_Void();
17064 {
17065 if (temp2)
17066 delete arg2;
17067 }
17068 return resultobj;
17069 fail:
17070 {
17071 if (temp2)
17072 delete arg2;
17073 }
17074 return NULL;
17075 }
17076
17077
17078 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17079 PyObject *resultobj = 0;
17080 wxDC *arg1 = (wxDC *) 0 ;
17081 wxString *arg2 = 0 ;
17082 wxBitmap *arg3 = 0 ;
17083 wxRect *arg4 = 0 ;
17084 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17085 int arg6 = (int) -1 ;
17086 wxRect result;
17087 void *argp1 = 0 ;
17088 int res1 = 0 ;
17089 bool temp2 = false ;
17090 void *argp3 = 0 ;
17091 int res3 = 0 ;
17092 wxRect temp4 ;
17093 int val5 ;
17094 int ecode5 = 0 ;
17095 int val6 ;
17096 int ecode6 = 0 ;
17097 PyObject * obj0 = 0 ;
17098 PyObject * obj1 = 0 ;
17099 PyObject * obj2 = 0 ;
17100 PyObject * obj3 = 0 ;
17101 PyObject * obj4 = 0 ;
17102 PyObject * obj5 = 0 ;
17103 char * kwnames[] = {
17104 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17105 };
17106
17107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17108 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17109 if (!SWIG_IsOK(res1)) {
17110 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17111 }
17112 arg1 = reinterpret_cast< wxDC * >(argp1);
17113 {
17114 arg2 = wxString_in_helper(obj1);
17115 if (arg2 == NULL) SWIG_fail;
17116 temp2 = true;
17117 }
17118 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17119 if (!SWIG_IsOK(res3)) {
17120 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17121 }
17122 if (!argp3) {
17123 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17124 }
17125 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17126 {
17127 arg4 = &temp4;
17128 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17129 }
17130 if (obj4) {
17131 ecode5 = SWIG_AsVal_int(obj4, &val5);
17132 if (!SWIG_IsOK(ecode5)) {
17133 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17134 }
17135 arg5 = static_cast< int >(val5);
17136 }
17137 if (obj5) {
17138 ecode6 = SWIG_AsVal_int(obj5, &val6);
17139 if (!SWIG_IsOK(ecode6)) {
17140 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17141 }
17142 arg6 = static_cast< int >(val6);
17143 }
17144 {
17145 PyThreadState* __tstate = wxPyBeginAllowThreads();
17146 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17147 wxPyEndAllowThreads(__tstate);
17148 if (PyErr_Occurred()) SWIG_fail;
17149 }
17150 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17151 {
17152 if (temp2)
17153 delete arg2;
17154 }
17155 return resultobj;
17156 fail:
17157 {
17158 if (temp2)
17159 delete arg2;
17160 }
17161 return NULL;
17162 }
17163
17164
17165 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17166 PyObject *resultobj = 0;
17167 wxDC *arg1 = (wxDC *) 0 ;
17168 int arg2 ;
17169 wxPoint *arg3 = (wxPoint *) 0 ;
17170 void *argp1 = 0 ;
17171 int res1 = 0 ;
17172 PyObject * obj0 = 0 ;
17173 PyObject * obj1 = 0 ;
17174 char * kwnames[] = {
17175 (char *) "self",(char *) "points", NULL
17176 };
17177
17178 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17179 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17180 if (!SWIG_IsOK(res1)) {
17181 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17182 }
17183 arg1 = reinterpret_cast< wxDC * >(argp1);
17184 {
17185 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17186 if (arg3 == NULL) SWIG_fail;
17187 }
17188 {
17189 PyThreadState* __tstate = wxPyBeginAllowThreads();
17190 (arg1)->DrawSpline(arg2,arg3);
17191 wxPyEndAllowThreads(__tstate);
17192 if (PyErr_Occurred()) SWIG_fail;
17193 }
17194 resultobj = SWIG_Py_Void();
17195 {
17196 if (arg3) delete [] arg3;
17197 }
17198 return resultobj;
17199 fail:
17200 {
17201 if (arg3) delete [] arg3;
17202 }
17203 return NULL;
17204 }
17205
17206
17207 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17208 PyObject *resultobj = 0;
17209 wxDC *arg1 = (wxDC *) 0 ;
17210 void *argp1 = 0 ;
17211 int res1 = 0 ;
17212 PyObject *swig_obj[1] ;
17213
17214 if (!args) SWIG_fail;
17215 swig_obj[0] = args;
17216 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17217 if (!SWIG_IsOK(res1)) {
17218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17219 }
17220 arg1 = reinterpret_cast< wxDC * >(argp1);
17221 {
17222 PyThreadState* __tstate = wxPyBeginAllowThreads();
17223 (arg1)->Clear();
17224 wxPyEndAllowThreads(__tstate);
17225 if (PyErr_Occurred()) SWIG_fail;
17226 }
17227 resultobj = SWIG_Py_Void();
17228 return resultobj;
17229 fail:
17230 return NULL;
17231 }
17232
17233
17234 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17235 PyObject *resultobj = 0;
17236 wxDC *arg1 = (wxDC *) 0 ;
17237 wxString *arg2 = 0 ;
17238 bool result;
17239 void *argp1 = 0 ;
17240 int res1 = 0 ;
17241 bool temp2 = false ;
17242 PyObject * obj0 = 0 ;
17243 PyObject * obj1 = 0 ;
17244 char * kwnames[] = {
17245 (char *) "self",(char *) "message", NULL
17246 };
17247
17248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17249 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17250 if (!SWIG_IsOK(res1)) {
17251 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17252 }
17253 arg1 = reinterpret_cast< wxDC * >(argp1);
17254 {
17255 arg2 = wxString_in_helper(obj1);
17256 if (arg2 == NULL) SWIG_fail;
17257 temp2 = true;
17258 }
17259 {
17260 PyThreadState* __tstate = wxPyBeginAllowThreads();
17261 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17262 wxPyEndAllowThreads(__tstate);
17263 if (PyErr_Occurred()) SWIG_fail;
17264 }
17265 {
17266 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17267 }
17268 {
17269 if (temp2)
17270 delete arg2;
17271 }
17272 return resultobj;
17273 fail:
17274 {
17275 if (temp2)
17276 delete arg2;
17277 }
17278 return NULL;
17279 }
17280
17281
17282 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17283 PyObject *resultobj = 0;
17284 wxDC *arg1 = (wxDC *) 0 ;
17285 void *argp1 = 0 ;
17286 int res1 = 0 ;
17287 PyObject *swig_obj[1] ;
17288
17289 if (!args) SWIG_fail;
17290 swig_obj[0] = args;
17291 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17292 if (!SWIG_IsOK(res1)) {
17293 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17294 }
17295 arg1 = reinterpret_cast< wxDC * >(argp1);
17296 {
17297 PyThreadState* __tstate = wxPyBeginAllowThreads();
17298 (arg1)->EndDoc();
17299 wxPyEndAllowThreads(__tstate);
17300 if (PyErr_Occurred()) SWIG_fail;
17301 }
17302 resultobj = SWIG_Py_Void();
17303 return resultobj;
17304 fail:
17305 return NULL;
17306 }
17307
17308
17309 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17310 PyObject *resultobj = 0;
17311 wxDC *arg1 = (wxDC *) 0 ;
17312 void *argp1 = 0 ;
17313 int res1 = 0 ;
17314 PyObject *swig_obj[1] ;
17315
17316 if (!args) SWIG_fail;
17317 swig_obj[0] = args;
17318 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17319 if (!SWIG_IsOK(res1)) {
17320 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
17321 }
17322 arg1 = reinterpret_cast< wxDC * >(argp1);
17323 {
17324 PyThreadState* __tstate = wxPyBeginAllowThreads();
17325 (arg1)->StartPage();
17326 wxPyEndAllowThreads(__tstate);
17327 if (PyErr_Occurred()) SWIG_fail;
17328 }
17329 resultobj = SWIG_Py_Void();
17330 return resultobj;
17331 fail:
17332 return NULL;
17333 }
17334
17335
17336 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17337 PyObject *resultobj = 0;
17338 wxDC *arg1 = (wxDC *) 0 ;
17339 void *argp1 = 0 ;
17340 int res1 = 0 ;
17341 PyObject *swig_obj[1] ;
17342
17343 if (!args) SWIG_fail;
17344 swig_obj[0] = args;
17345 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17346 if (!SWIG_IsOK(res1)) {
17347 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
17348 }
17349 arg1 = reinterpret_cast< wxDC * >(argp1);
17350 {
17351 PyThreadState* __tstate = wxPyBeginAllowThreads();
17352 (arg1)->EndPage();
17353 wxPyEndAllowThreads(__tstate);
17354 if (PyErr_Occurred()) SWIG_fail;
17355 }
17356 resultobj = SWIG_Py_Void();
17357 return resultobj;
17358 fail:
17359 return NULL;
17360 }
17361
17362
17363 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17364 PyObject *resultobj = 0;
17365 wxDC *arg1 = (wxDC *) 0 ;
17366 wxFont *arg2 = 0 ;
17367 void *argp1 = 0 ;
17368 int res1 = 0 ;
17369 void *argp2 = 0 ;
17370 int res2 = 0 ;
17371 PyObject * obj0 = 0 ;
17372 PyObject * obj1 = 0 ;
17373 char * kwnames[] = {
17374 (char *) "self",(char *) "font", NULL
17375 };
17376
17377 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
17378 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17379 if (!SWIG_IsOK(res1)) {
17380 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
17381 }
17382 arg1 = reinterpret_cast< wxDC * >(argp1);
17383 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
17384 if (!SWIG_IsOK(res2)) {
17385 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17386 }
17387 if (!argp2) {
17388 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
17389 }
17390 arg2 = reinterpret_cast< wxFont * >(argp2);
17391 {
17392 PyThreadState* __tstate = wxPyBeginAllowThreads();
17393 (arg1)->SetFont((wxFont const &)*arg2);
17394 wxPyEndAllowThreads(__tstate);
17395 if (PyErr_Occurred()) SWIG_fail;
17396 }
17397 resultobj = SWIG_Py_Void();
17398 return resultobj;
17399 fail:
17400 return NULL;
17401 }
17402
17403
17404 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17405 PyObject *resultobj = 0;
17406 wxDC *arg1 = (wxDC *) 0 ;
17407 wxPen *arg2 = 0 ;
17408 void *argp1 = 0 ;
17409 int res1 = 0 ;
17410 void *argp2 = 0 ;
17411 int res2 = 0 ;
17412 PyObject * obj0 = 0 ;
17413 PyObject * obj1 = 0 ;
17414 char * kwnames[] = {
17415 (char *) "self",(char *) "pen", NULL
17416 };
17417
17418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
17419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17420 if (!SWIG_IsOK(res1)) {
17421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
17422 }
17423 arg1 = reinterpret_cast< wxDC * >(argp1);
17424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
17425 if (!SWIG_IsOK(res2)) {
17426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17427 }
17428 if (!argp2) {
17429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
17430 }
17431 arg2 = reinterpret_cast< wxPen * >(argp2);
17432 {
17433 PyThreadState* __tstate = wxPyBeginAllowThreads();
17434 (arg1)->SetPen((wxPen const &)*arg2);
17435 wxPyEndAllowThreads(__tstate);
17436 if (PyErr_Occurred()) SWIG_fail;
17437 }
17438 resultobj = SWIG_Py_Void();
17439 return resultobj;
17440 fail:
17441 return NULL;
17442 }
17443
17444
17445 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17446 PyObject *resultobj = 0;
17447 wxDC *arg1 = (wxDC *) 0 ;
17448 wxBrush *arg2 = 0 ;
17449 void *argp1 = 0 ;
17450 int res1 = 0 ;
17451 void *argp2 = 0 ;
17452 int res2 = 0 ;
17453 PyObject * obj0 = 0 ;
17454 PyObject * obj1 = 0 ;
17455 char * kwnames[] = {
17456 (char *) "self",(char *) "brush", NULL
17457 };
17458
17459 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
17460 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17461 if (!SWIG_IsOK(res1)) {
17462 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
17463 }
17464 arg1 = reinterpret_cast< wxDC * >(argp1);
17465 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17466 if (!SWIG_IsOK(res2)) {
17467 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17468 }
17469 if (!argp2) {
17470 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
17471 }
17472 arg2 = reinterpret_cast< wxBrush * >(argp2);
17473 {
17474 PyThreadState* __tstate = wxPyBeginAllowThreads();
17475 (arg1)->SetBrush((wxBrush const &)*arg2);
17476 wxPyEndAllowThreads(__tstate);
17477 if (PyErr_Occurred()) SWIG_fail;
17478 }
17479 resultobj = SWIG_Py_Void();
17480 return resultobj;
17481 fail:
17482 return NULL;
17483 }
17484
17485
17486 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17487 PyObject *resultobj = 0;
17488 wxDC *arg1 = (wxDC *) 0 ;
17489 wxBrush *arg2 = 0 ;
17490 void *argp1 = 0 ;
17491 int res1 = 0 ;
17492 void *argp2 = 0 ;
17493 int res2 = 0 ;
17494 PyObject * obj0 = 0 ;
17495 PyObject * obj1 = 0 ;
17496 char * kwnames[] = {
17497 (char *) "self",(char *) "brush", NULL
17498 };
17499
17500 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
17501 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17502 if (!SWIG_IsOK(res1)) {
17503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
17504 }
17505 arg1 = reinterpret_cast< wxDC * >(argp1);
17506 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
17507 if (!SWIG_IsOK(res2)) {
17508 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17509 }
17510 if (!argp2) {
17511 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
17512 }
17513 arg2 = reinterpret_cast< wxBrush * >(argp2);
17514 {
17515 PyThreadState* __tstate = wxPyBeginAllowThreads();
17516 (arg1)->SetBackground((wxBrush const &)*arg2);
17517 wxPyEndAllowThreads(__tstate);
17518 if (PyErr_Occurred()) SWIG_fail;
17519 }
17520 resultobj = SWIG_Py_Void();
17521 return resultobj;
17522 fail:
17523 return NULL;
17524 }
17525
17526
17527 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17528 PyObject *resultobj = 0;
17529 wxDC *arg1 = (wxDC *) 0 ;
17530 int arg2 ;
17531 void *argp1 = 0 ;
17532 int res1 = 0 ;
17533 int val2 ;
17534 int ecode2 = 0 ;
17535 PyObject * obj0 = 0 ;
17536 PyObject * obj1 = 0 ;
17537 char * kwnames[] = {
17538 (char *) "self",(char *) "mode", NULL
17539 };
17540
17541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
17542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17543 if (!SWIG_IsOK(res1)) {
17544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
17545 }
17546 arg1 = reinterpret_cast< wxDC * >(argp1);
17547 ecode2 = SWIG_AsVal_int(obj1, &val2);
17548 if (!SWIG_IsOK(ecode2)) {
17549 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
17550 }
17551 arg2 = static_cast< int >(val2);
17552 {
17553 PyThreadState* __tstate = wxPyBeginAllowThreads();
17554 (arg1)->SetBackgroundMode(arg2);
17555 wxPyEndAllowThreads(__tstate);
17556 if (PyErr_Occurred()) SWIG_fail;
17557 }
17558 resultobj = SWIG_Py_Void();
17559 return resultobj;
17560 fail:
17561 return NULL;
17562 }
17563
17564
17565 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17566 PyObject *resultobj = 0;
17567 wxDC *arg1 = (wxDC *) 0 ;
17568 wxPalette *arg2 = 0 ;
17569 void *argp1 = 0 ;
17570 int res1 = 0 ;
17571 void *argp2 = 0 ;
17572 int res2 = 0 ;
17573 PyObject * obj0 = 0 ;
17574 PyObject * obj1 = 0 ;
17575 char * kwnames[] = {
17576 (char *) "self",(char *) "palette", NULL
17577 };
17578
17579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
17580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17581 if (!SWIG_IsOK(res1)) {
17582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
17583 }
17584 arg1 = reinterpret_cast< wxDC * >(argp1);
17585 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
17586 if (!SWIG_IsOK(res2)) {
17587 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17588 }
17589 if (!argp2) {
17590 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
17591 }
17592 arg2 = reinterpret_cast< wxPalette * >(argp2);
17593 {
17594 PyThreadState* __tstate = wxPyBeginAllowThreads();
17595 (arg1)->SetPalette((wxPalette const &)*arg2);
17596 wxPyEndAllowThreads(__tstate);
17597 if (PyErr_Occurred()) SWIG_fail;
17598 }
17599 resultobj = SWIG_Py_Void();
17600 return resultobj;
17601 fail:
17602 return NULL;
17603 }
17604
17605
17606 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17607 PyObject *resultobj = 0;
17608 wxDC *arg1 = (wxDC *) 0 ;
17609 void *argp1 = 0 ;
17610 int res1 = 0 ;
17611 PyObject *swig_obj[1] ;
17612
17613 if (!args) SWIG_fail;
17614 swig_obj[0] = args;
17615 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17616 if (!SWIG_IsOK(res1)) {
17617 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17618 }
17619 arg1 = reinterpret_cast< wxDC * >(argp1);
17620 {
17621 PyThreadState* __tstate = wxPyBeginAllowThreads();
17622 (arg1)->DestroyClippingRegion();
17623 wxPyEndAllowThreads(__tstate);
17624 if (PyErr_Occurred()) SWIG_fail;
17625 }
17626 resultobj = SWIG_Py_Void();
17627 return resultobj;
17628 fail:
17629 return NULL;
17630 }
17631
17632
17633 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17634 PyObject *resultobj = 0;
17635 wxDC *arg1 = (wxDC *) 0 ;
17636 int *arg2 = (int *) 0 ;
17637 int *arg3 = (int *) 0 ;
17638 int *arg4 = (int *) 0 ;
17639 int *arg5 = (int *) 0 ;
17640 void *argp1 = 0 ;
17641 int res1 = 0 ;
17642 int temp2 ;
17643 int res2 = SWIG_TMPOBJ ;
17644 int temp3 ;
17645 int res3 = SWIG_TMPOBJ ;
17646 int temp4 ;
17647 int res4 = SWIG_TMPOBJ ;
17648 int temp5 ;
17649 int res5 = SWIG_TMPOBJ ;
17650 PyObject *swig_obj[1] ;
17651
17652 arg2 = &temp2;
17653 arg3 = &temp3;
17654 arg4 = &temp4;
17655 arg5 = &temp5;
17656 if (!args) SWIG_fail;
17657 swig_obj[0] = args;
17658 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17659 if (!SWIG_IsOK(res1)) {
17660 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
17661 }
17662 arg1 = reinterpret_cast< wxDC * >(argp1);
17663 {
17664 PyThreadState* __tstate = wxPyBeginAllowThreads();
17665 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
17666 wxPyEndAllowThreads(__tstate);
17667 if (PyErr_Occurred()) SWIG_fail;
17668 }
17669 resultobj = SWIG_Py_Void();
17670 if (SWIG_IsTmpObj(res2)) {
17671 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
17672 } else {
17673 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17674 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
17675 }
17676 if (SWIG_IsTmpObj(res3)) {
17677 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17678 } else {
17679 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17680 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17681 }
17682 if (SWIG_IsTmpObj(res4)) {
17683 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17684 } else {
17685 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17686 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17687 }
17688 if (SWIG_IsTmpObj(res5)) {
17689 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17690 } else {
17691 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17692 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17693 }
17694 return resultobj;
17695 fail:
17696 return NULL;
17697 }
17698
17699
17700 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17701 PyObject *resultobj = 0;
17702 wxDC *arg1 = (wxDC *) 0 ;
17703 wxRect result;
17704 void *argp1 = 0 ;
17705 int res1 = 0 ;
17706 PyObject *swig_obj[1] ;
17707
17708 if (!args) SWIG_fail;
17709 swig_obj[0] = args;
17710 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17711 if (!SWIG_IsOK(res1)) {
17712 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17713 }
17714 arg1 = reinterpret_cast< wxDC * >(argp1);
17715 {
17716 PyThreadState* __tstate = wxPyBeginAllowThreads();
17717 result = wxDC_GetClippingRect(arg1);
17718 wxPyEndAllowThreads(__tstate);
17719 if (PyErr_Occurred()) SWIG_fail;
17720 }
17721 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17722 return resultobj;
17723 fail:
17724 return NULL;
17725 }
17726
17727
17728 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17729 PyObject *resultobj = 0;
17730 wxDC *arg1 = (wxDC *) 0 ;
17731 int result;
17732 void *argp1 = 0 ;
17733 int res1 = 0 ;
17734 PyObject *swig_obj[1] ;
17735
17736 if (!args) SWIG_fail;
17737 swig_obj[0] = args;
17738 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17739 if (!SWIG_IsOK(res1)) {
17740 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
17741 }
17742 arg1 = reinterpret_cast< wxDC * >(argp1);
17743 {
17744 PyThreadState* __tstate = wxPyBeginAllowThreads();
17745 result = (int)((wxDC const *)arg1)->GetCharHeight();
17746 wxPyEndAllowThreads(__tstate);
17747 if (PyErr_Occurred()) SWIG_fail;
17748 }
17749 resultobj = SWIG_From_int(static_cast< int >(result));
17750 return resultobj;
17751 fail:
17752 return NULL;
17753 }
17754
17755
17756 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17757 PyObject *resultobj = 0;
17758 wxDC *arg1 = (wxDC *) 0 ;
17759 int result;
17760 void *argp1 = 0 ;
17761 int res1 = 0 ;
17762 PyObject *swig_obj[1] ;
17763
17764 if (!args) SWIG_fail;
17765 swig_obj[0] = args;
17766 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17767 if (!SWIG_IsOK(res1)) {
17768 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
17769 }
17770 arg1 = reinterpret_cast< wxDC * >(argp1);
17771 {
17772 PyThreadState* __tstate = wxPyBeginAllowThreads();
17773 result = (int)((wxDC const *)arg1)->GetCharWidth();
17774 wxPyEndAllowThreads(__tstate);
17775 if (PyErr_Occurred()) SWIG_fail;
17776 }
17777 resultobj = SWIG_From_int(static_cast< int >(result));
17778 return resultobj;
17779 fail:
17780 return NULL;
17781 }
17782
17783
17784 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17785 PyObject *resultobj = 0;
17786 wxDC *arg1 = (wxDC *) 0 ;
17787 wxString *arg2 = 0 ;
17788 int *arg3 = (int *) 0 ;
17789 int *arg4 = (int *) 0 ;
17790 void *argp1 = 0 ;
17791 int res1 = 0 ;
17792 bool temp2 = false ;
17793 int temp3 ;
17794 int res3 = SWIG_TMPOBJ ;
17795 int temp4 ;
17796 int res4 = SWIG_TMPOBJ ;
17797 PyObject * obj0 = 0 ;
17798 PyObject * obj1 = 0 ;
17799 char * kwnames[] = {
17800 (char *) "self",(char *) "string", NULL
17801 };
17802
17803 arg3 = &temp3;
17804 arg4 = &temp4;
17805 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
17806 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17807 if (!SWIG_IsOK(res1)) {
17808 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17809 }
17810 arg1 = reinterpret_cast< wxDC * >(argp1);
17811 {
17812 arg2 = wxString_in_helper(obj1);
17813 if (arg2 == NULL) SWIG_fail;
17814 temp2 = true;
17815 }
17816 {
17817 PyThreadState* __tstate = wxPyBeginAllowThreads();
17818 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
17819 wxPyEndAllowThreads(__tstate);
17820 if (PyErr_Occurred()) SWIG_fail;
17821 }
17822 resultobj = SWIG_Py_Void();
17823 if (SWIG_IsTmpObj(res3)) {
17824 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17825 } else {
17826 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17827 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17828 }
17829 if (SWIG_IsTmpObj(res4)) {
17830 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17831 } else {
17832 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17833 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17834 }
17835 {
17836 if (temp2)
17837 delete arg2;
17838 }
17839 return resultobj;
17840 fail:
17841 {
17842 if (temp2)
17843 delete arg2;
17844 }
17845 return NULL;
17846 }
17847
17848
17849 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17850 PyObject *resultobj = 0;
17851 wxDC *arg1 = (wxDC *) 0 ;
17852 wxString *arg2 = 0 ;
17853 int *arg3 = (int *) 0 ;
17854 int *arg4 = (int *) 0 ;
17855 int *arg5 = (int *) 0 ;
17856 int *arg6 = (int *) 0 ;
17857 wxFont *arg7 = (wxFont *) NULL ;
17858 void *argp1 = 0 ;
17859 int res1 = 0 ;
17860 bool temp2 = false ;
17861 int temp3 ;
17862 int res3 = SWIG_TMPOBJ ;
17863 int temp4 ;
17864 int res4 = SWIG_TMPOBJ ;
17865 int temp5 ;
17866 int res5 = SWIG_TMPOBJ ;
17867 int temp6 ;
17868 int res6 = SWIG_TMPOBJ ;
17869 void *argp7 = 0 ;
17870 int res7 = 0 ;
17871 PyObject * obj0 = 0 ;
17872 PyObject * obj1 = 0 ;
17873 PyObject * obj2 = 0 ;
17874 char * kwnames[] = {
17875 (char *) "self",(char *) "string",(char *) "font", NULL
17876 };
17877
17878 arg3 = &temp3;
17879 arg4 = &temp4;
17880 arg5 = &temp5;
17881 arg6 = &temp6;
17882 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17883 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17884 if (!SWIG_IsOK(res1)) {
17885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17886 }
17887 arg1 = reinterpret_cast< wxDC * >(argp1);
17888 {
17889 arg2 = wxString_in_helper(obj1);
17890 if (arg2 == NULL) SWIG_fail;
17891 temp2 = true;
17892 }
17893 if (obj2) {
17894 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
17895 if (!SWIG_IsOK(res7)) {
17896 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
17897 }
17898 arg7 = reinterpret_cast< wxFont * >(argp7);
17899 }
17900 {
17901 PyThreadState* __tstate = wxPyBeginAllowThreads();
17902 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
17903 wxPyEndAllowThreads(__tstate);
17904 if (PyErr_Occurred()) SWIG_fail;
17905 }
17906 resultobj = SWIG_Py_Void();
17907 if (SWIG_IsTmpObj(res3)) {
17908 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
17909 } else {
17910 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17911 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
17912 }
17913 if (SWIG_IsTmpObj(res4)) {
17914 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
17915 } else {
17916 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17917 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
17918 }
17919 if (SWIG_IsTmpObj(res5)) {
17920 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
17921 } else {
17922 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17923 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
17924 }
17925 if (SWIG_IsTmpObj(res6)) {
17926 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
17927 } else {
17928 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
17929 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
17930 }
17931 {
17932 if (temp2)
17933 delete arg2;
17934 }
17935 return resultobj;
17936 fail:
17937 {
17938 if (temp2)
17939 delete arg2;
17940 }
17941 return NULL;
17942 }
17943
17944
17945 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17946 PyObject *resultobj = 0;
17947 wxDC *arg1 = (wxDC *) 0 ;
17948 wxString *arg2 = 0 ;
17949 int *arg3 = (int *) 0 ;
17950 int *arg4 = (int *) 0 ;
17951 int *arg5 = (int *) 0 ;
17952 wxFont *arg6 = (wxFont *) NULL ;
17953 void *argp1 = 0 ;
17954 int res1 = 0 ;
17955 bool temp2 = false ;
17956 int temp3 ;
17957 int res3 = SWIG_TMPOBJ ;
17958 int temp4 ;
17959 int res4 = SWIG_TMPOBJ ;
17960 int temp5 ;
17961 int res5 = SWIG_TMPOBJ ;
17962 void *argp6 = 0 ;
17963 int res6 = 0 ;
17964 PyObject * obj0 = 0 ;
17965 PyObject * obj1 = 0 ;
17966 PyObject * obj2 = 0 ;
17967 char * kwnames[] = {
17968 (char *) "self",(char *) "text",(char *) "font", NULL
17969 };
17970
17971 arg3 = &temp3;
17972 arg4 = &temp4;
17973 arg5 = &temp5;
17974 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17975 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17976 if (!SWIG_IsOK(res1)) {
17977 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
17978 }
17979 arg1 = reinterpret_cast< wxDC * >(argp1);
17980 {
17981 arg2 = wxString_in_helper(obj1);
17982 if (arg2 == NULL) SWIG_fail;
17983 temp2 = true;
17984 }
17985 if (obj2) {
17986 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
17987 if (!SWIG_IsOK(res6)) {
17988 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
17989 }
17990 arg6 = reinterpret_cast< wxFont * >(argp6);
17991 }
17992 {
17993 PyThreadState* __tstate = wxPyBeginAllowThreads();
17994 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
17995 wxPyEndAllowThreads(__tstate);
17996 if (PyErr_Occurred()) SWIG_fail;
17997 }
17998 resultobj = SWIG_Py_Void();
17999 if (SWIG_IsTmpObj(res3)) {
18000 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18001 } else {
18002 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18003 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18004 }
18005 if (SWIG_IsTmpObj(res4)) {
18006 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18007 } else {
18008 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18009 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18010 }
18011 if (SWIG_IsTmpObj(res5)) {
18012 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18013 } else {
18014 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18015 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18016 }
18017 {
18018 if (temp2)
18019 delete arg2;
18020 }
18021 return resultobj;
18022 fail:
18023 {
18024 if (temp2)
18025 delete arg2;
18026 }
18027 return NULL;
18028 }
18029
18030
18031 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18032 PyObject *resultobj = 0;
18033 wxDC *arg1 = (wxDC *) 0 ;
18034 wxString *arg2 = 0 ;
18035 wxArrayInt result;
18036 void *argp1 = 0 ;
18037 int res1 = 0 ;
18038 bool temp2 = false ;
18039 PyObject * obj0 = 0 ;
18040 PyObject * obj1 = 0 ;
18041 char * kwnames[] = {
18042 (char *) "self",(char *) "text", NULL
18043 };
18044
18045 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18046 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18047 if (!SWIG_IsOK(res1)) {
18048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18049 }
18050 arg1 = reinterpret_cast< wxDC * >(argp1);
18051 {
18052 arg2 = wxString_in_helper(obj1);
18053 if (arg2 == NULL) SWIG_fail;
18054 temp2 = true;
18055 }
18056 {
18057 PyThreadState* __tstate = wxPyBeginAllowThreads();
18058 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18059 wxPyEndAllowThreads(__tstate);
18060 if (PyErr_Occurred()) SWIG_fail;
18061 }
18062 {
18063 resultobj = PyList_New(0);
18064 size_t idx;
18065 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18066 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18067 PyList_Append(resultobj, val);
18068 Py_DECREF(val);
18069 }
18070 }
18071 {
18072 if (temp2)
18073 delete arg2;
18074 }
18075 return resultobj;
18076 fail:
18077 {
18078 if (temp2)
18079 delete arg2;
18080 }
18081 return NULL;
18082 }
18083
18084
18085 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18086 PyObject *resultobj = 0;
18087 wxDC *arg1 = (wxDC *) 0 ;
18088 wxSize result;
18089 void *argp1 = 0 ;
18090 int res1 = 0 ;
18091 PyObject *swig_obj[1] ;
18092
18093 if (!args) SWIG_fail;
18094 swig_obj[0] = args;
18095 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18096 if (!SWIG_IsOK(res1)) {
18097 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18098 }
18099 arg1 = reinterpret_cast< wxDC * >(argp1);
18100 {
18101 PyThreadState* __tstate = wxPyBeginAllowThreads();
18102 result = (arg1)->GetSize();
18103 wxPyEndAllowThreads(__tstate);
18104 if (PyErr_Occurred()) SWIG_fail;
18105 }
18106 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18107 return resultobj;
18108 fail:
18109 return NULL;
18110 }
18111
18112
18113 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18114 PyObject *resultobj = 0;
18115 wxDC *arg1 = (wxDC *) 0 ;
18116 int *arg2 = (int *) 0 ;
18117 int *arg3 = (int *) 0 ;
18118 void *argp1 = 0 ;
18119 int res1 = 0 ;
18120 int temp2 ;
18121 int res2 = SWIG_TMPOBJ ;
18122 int temp3 ;
18123 int res3 = SWIG_TMPOBJ ;
18124 PyObject *swig_obj[1] ;
18125
18126 arg2 = &temp2;
18127 arg3 = &temp3;
18128 if (!args) SWIG_fail;
18129 swig_obj[0] = args;
18130 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18131 if (!SWIG_IsOK(res1)) {
18132 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18133 }
18134 arg1 = reinterpret_cast< wxDC * >(argp1);
18135 {
18136 PyThreadState* __tstate = wxPyBeginAllowThreads();
18137 (arg1)->GetSize(arg2,arg3);
18138 wxPyEndAllowThreads(__tstate);
18139 if (PyErr_Occurred()) SWIG_fail;
18140 }
18141 resultobj = SWIG_Py_Void();
18142 if (SWIG_IsTmpObj(res2)) {
18143 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18144 } else {
18145 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18146 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18147 }
18148 if (SWIG_IsTmpObj(res3)) {
18149 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18150 } else {
18151 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18152 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18153 }
18154 return resultobj;
18155 fail:
18156 return NULL;
18157 }
18158
18159
18160 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18161 PyObject *resultobj = 0;
18162 wxDC *arg1 = (wxDC *) 0 ;
18163 wxSize result;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 PyObject *swig_obj[1] ;
18167
18168 if (!args) SWIG_fail;
18169 swig_obj[0] = args;
18170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18171 if (!SWIG_IsOK(res1)) {
18172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18173 }
18174 arg1 = reinterpret_cast< wxDC * >(argp1);
18175 {
18176 PyThreadState* __tstate = wxPyBeginAllowThreads();
18177 result = ((wxDC const *)arg1)->GetSizeMM();
18178 wxPyEndAllowThreads(__tstate);
18179 if (PyErr_Occurred()) SWIG_fail;
18180 }
18181 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18182 return resultobj;
18183 fail:
18184 return NULL;
18185 }
18186
18187
18188 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18189 PyObject *resultobj = 0;
18190 wxDC *arg1 = (wxDC *) 0 ;
18191 int *arg2 = (int *) 0 ;
18192 int *arg3 = (int *) 0 ;
18193 void *argp1 = 0 ;
18194 int res1 = 0 ;
18195 int temp2 ;
18196 int res2 = SWIG_TMPOBJ ;
18197 int temp3 ;
18198 int res3 = SWIG_TMPOBJ ;
18199 PyObject *swig_obj[1] ;
18200
18201 arg2 = &temp2;
18202 arg3 = &temp3;
18203 if (!args) SWIG_fail;
18204 swig_obj[0] = args;
18205 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18206 if (!SWIG_IsOK(res1)) {
18207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18208 }
18209 arg1 = reinterpret_cast< wxDC * >(argp1);
18210 {
18211 PyThreadState* __tstate = wxPyBeginAllowThreads();
18212 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18213 wxPyEndAllowThreads(__tstate);
18214 if (PyErr_Occurred()) SWIG_fail;
18215 }
18216 resultobj = SWIG_Py_Void();
18217 if (SWIG_IsTmpObj(res2)) {
18218 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18219 } else {
18220 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18221 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18222 }
18223 if (SWIG_IsTmpObj(res3)) {
18224 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18225 } else {
18226 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18227 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18228 }
18229 return resultobj;
18230 fail:
18231 return NULL;
18232 }
18233
18234
18235 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18236 PyObject *resultobj = 0;
18237 wxDC *arg1 = (wxDC *) 0 ;
18238 int arg2 ;
18239 int result;
18240 void *argp1 = 0 ;
18241 int res1 = 0 ;
18242 int val2 ;
18243 int ecode2 = 0 ;
18244 PyObject * obj0 = 0 ;
18245 PyObject * obj1 = 0 ;
18246 char * kwnames[] = {
18247 (char *) "self",(char *) "x", NULL
18248 };
18249
18250 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18251 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18252 if (!SWIG_IsOK(res1)) {
18253 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18254 }
18255 arg1 = reinterpret_cast< wxDC * >(argp1);
18256 ecode2 = SWIG_AsVal_int(obj1, &val2);
18257 if (!SWIG_IsOK(ecode2)) {
18258 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18259 }
18260 arg2 = static_cast< int >(val2);
18261 {
18262 PyThreadState* __tstate = wxPyBeginAllowThreads();
18263 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18264 wxPyEndAllowThreads(__tstate);
18265 if (PyErr_Occurred()) SWIG_fail;
18266 }
18267 resultobj = SWIG_From_int(static_cast< int >(result));
18268 return resultobj;
18269 fail:
18270 return NULL;
18271 }
18272
18273
18274 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18275 PyObject *resultobj = 0;
18276 wxDC *arg1 = (wxDC *) 0 ;
18277 int arg2 ;
18278 int result;
18279 void *argp1 = 0 ;
18280 int res1 = 0 ;
18281 int val2 ;
18282 int ecode2 = 0 ;
18283 PyObject * obj0 = 0 ;
18284 PyObject * obj1 = 0 ;
18285 char * kwnames[] = {
18286 (char *) "self",(char *) "y", NULL
18287 };
18288
18289 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
18290 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18291 if (!SWIG_IsOK(res1)) {
18292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
18293 }
18294 arg1 = reinterpret_cast< wxDC * >(argp1);
18295 ecode2 = SWIG_AsVal_int(obj1, &val2);
18296 if (!SWIG_IsOK(ecode2)) {
18297 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
18298 }
18299 arg2 = static_cast< int >(val2);
18300 {
18301 PyThreadState* __tstate = wxPyBeginAllowThreads();
18302 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
18303 wxPyEndAllowThreads(__tstate);
18304 if (PyErr_Occurred()) SWIG_fail;
18305 }
18306 resultobj = SWIG_From_int(static_cast< int >(result));
18307 return resultobj;
18308 fail:
18309 return NULL;
18310 }
18311
18312
18313 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18314 PyObject *resultobj = 0;
18315 wxDC *arg1 = (wxDC *) 0 ;
18316 int arg2 ;
18317 int result;
18318 void *argp1 = 0 ;
18319 int res1 = 0 ;
18320 int val2 ;
18321 int ecode2 = 0 ;
18322 PyObject * obj0 = 0 ;
18323 PyObject * obj1 = 0 ;
18324 char * kwnames[] = {
18325 (char *) "self",(char *) "x", NULL
18326 };
18327
18328 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18329 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18330 if (!SWIG_IsOK(res1)) {
18331 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18332 }
18333 arg1 = reinterpret_cast< wxDC * >(argp1);
18334 ecode2 = SWIG_AsVal_int(obj1, &val2);
18335 if (!SWIG_IsOK(ecode2)) {
18336 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
18337 }
18338 arg2 = static_cast< int >(val2);
18339 {
18340 PyThreadState* __tstate = wxPyBeginAllowThreads();
18341 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
18342 wxPyEndAllowThreads(__tstate);
18343 if (PyErr_Occurred()) SWIG_fail;
18344 }
18345 resultobj = SWIG_From_int(static_cast< int >(result));
18346 return resultobj;
18347 fail:
18348 return NULL;
18349 }
18350
18351
18352 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18353 PyObject *resultobj = 0;
18354 wxDC *arg1 = (wxDC *) 0 ;
18355 int arg2 ;
18356 int result;
18357 void *argp1 = 0 ;
18358 int res1 = 0 ;
18359 int val2 ;
18360 int ecode2 = 0 ;
18361 PyObject * obj0 = 0 ;
18362 PyObject * obj1 = 0 ;
18363 char * kwnames[] = {
18364 (char *) "self",(char *) "y", NULL
18365 };
18366
18367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18369 if (!SWIG_IsOK(res1)) {
18370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18371 }
18372 arg1 = reinterpret_cast< wxDC * >(argp1);
18373 ecode2 = SWIG_AsVal_int(obj1, &val2);
18374 if (!SWIG_IsOK(ecode2)) {
18375 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
18376 }
18377 arg2 = static_cast< int >(val2);
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_From_int(static_cast< int >(result));
18385 return resultobj;
18386 fail:
18387 return NULL;
18388 }
18389
18390
18391 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18392 PyObject *resultobj = 0;
18393 wxDC *arg1 = (wxDC *) 0 ;
18394 int arg2 ;
18395 int result;
18396 void *argp1 = 0 ;
18397 int res1 = 0 ;
18398 int val2 ;
18399 int ecode2 = 0 ;
18400 PyObject * obj0 = 0 ;
18401 PyObject * obj1 = 0 ;
18402 char * kwnames[] = {
18403 (char *) "self",(char *) "x", NULL
18404 };
18405
18406 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
18407 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18408 if (!SWIG_IsOK(res1)) {
18409 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
18410 }
18411 arg1 = reinterpret_cast< wxDC * >(argp1);
18412 ecode2 = SWIG_AsVal_int(obj1, &val2);
18413 if (!SWIG_IsOK(ecode2)) {
18414 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
18415 }
18416 arg2 = static_cast< int >(val2);
18417 {
18418 PyThreadState* __tstate = wxPyBeginAllowThreads();
18419 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
18420 wxPyEndAllowThreads(__tstate);
18421 if (PyErr_Occurred()) SWIG_fail;
18422 }
18423 resultobj = SWIG_From_int(static_cast< int >(result));
18424 return resultobj;
18425 fail:
18426 return NULL;
18427 }
18428
18429
18430 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18431 PyObject *resultobj = 0;
18432 wxDC *arg1 = (wxDC *) 0 ;
18433 int arg2 ;
18434 int result;
18435 void *argp1 = 0 ;
18436 int res1 = 0 ;
18437 int val2 ;
18438 int ecode2 = 0 ;
18439 PyObject * obj0 = 0 ;
18440 PyObject * obj1 = 0 ;
18441 char * kwnames[] = {
18442 (char *) "self",(char *) "y", NULL
18443 };
18444
18445 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
18446 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18447 if (!SWIG_IsOK(res1)) {
18448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
18449 }
18450 arg1 = reinterpret_cast< wxDC * >(argp1);
18451 ecode2 = SWIG_AsVal_int(obj1, &val2);
18452 if (!SWIG_IsOK(ecode2)) {
18453 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
18454 }
18455 arg2 = static_cast< int >(val2);
18456 {
18457 PyThreadState* __tstate = wxPyBeginAllowThreads();
18458 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
18459 wxPyEndAllowThreads(__tstate);
18460 if (PyErr_Occurred()) SWIG_fail;
18461 }
18462 resultobj = SWIG_From_int(static_cast< int >(result));
18463 return resultobj;
18464 fail:
18465 return NULL;
18466 }
18467
18468
18469 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18470 PyObject *resultobj = 0;
18471 wxDC *arg1 = (wxDC *) 0 ;
18472 int arg2 ;
18473 int result;
18474 void *argp1 = 0 ;
18475 int res1 = 0 ;
18476 int val2 ;
18477 int ecode2 = 0 ;
18478 PyObject * obj0 = 0 ;
18479 PyObject * obj1 = 0 ;
18480 char * kwnames[] = {
18481 (char *) "self",(char *) "x", NULL
18482 };
18483
18484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
18485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18486 if (!SWIG_IsOK(res1)) {
18487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18488 }
18489 arg1 = reinterpret_cast< wxDC * >(argp1);
18490 ecode2 = SWIG_AsVal_int(obj1, &val2);
18491 if (!SWIG_IsOK(ecode2)) {
18492 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
18493 }
18494 arg2 = static_cast< int >(val2);
18495 {
18496 PyThreadState* __tstate = wxPyBeginAllowThreads();
18497 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
18498 wxPyEndAllowThreads(__tstate);
18499 if (PyErr_Occurred()) SWIG_fail;
18500 }
18501 resultobj = SWIG_From_int(static_cast< int >(result));
18502 return resultobj;
18503 fail:
18504 return NULL;
18505 }
18506
18507
18508 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18509 PyObject *resultobj = 0;
18510 wxDC *arg1 = (wxDC *) 0 ;
18511 int arg2 ;
18512 int result;
18513 void *argp1 = 0 ;
18514 int res1 = 0 ;
18515 int val2 ;
18516 int ecode2 = 0 ;
18517 PyObject * obj0 = 0 ;
18518 PyObject * obj1 = 0 ;
18519 char * kwnames[] = {
18520 (char *) "self",(char *) "y", NULL
18521 };
18522
18523 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
18524 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18525 if (!SWIG_IsOK(res1)) {
18526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
18527 }
18528 arg1 = reinterpret_cast< wxDC * >(argp1);
18529 ecode2 = SWIG_AsVal_int(obj1, &val2);
18530 if (!SWIG_IsOK(ecode2)) {
18531 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
18532 }
18533 arg2 = static_cast< int >(val2);
18534 {
18535 PyThreadState* __tstate = wxPyBeginAllowThreads();
18536 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
18537 wxPyEndAllowThreads(__tstate);
18538 if (PyErr_Occurred()) SWIG_fail;
18539 }
18540 resultobj = SWIG_From_int(static_cast< int >(result));
18541 return resultobj;
18542 fail:
18543 return NULL;
18544 }
18545
18546
18547 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18548 PyObject *resultobj = 0;
18549 wxDC *arg1 = (wxDC *) 0 ;
18550 bool result;
18551 void *argp1 = 0 ;
18552 int res1 = 0 ;
18553 PyObject *swig_obj[1] ;
18554
18555 if (!args) SWIG_fail;
18556 swig_obj[0] = args;
18557 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18558 if (!SWIG_IsOK(res1)) {
18559 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
18560 }
18561 arg1 = reinterpret_cast< wxDC * >(argp1);
18562 {
18563 PyThreadState* __tstate = wxPyBeginAllowThreads();
18564 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
18565 wxPyEndAllowThreads(__tstate);
18566 if (PyErr_Occurred()) SWIG_fail;
18567 }
18568 {
18569 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18570 }
18571 return resultobj;
18572 fail:
18573 return NULL;
18574 }
18575
18576
18577 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18578 PyObject *resultobj = 0;
18579 wxDC *arg1 = (wxDC *) 0 ;
18580 bool result;
18581 void *argp1 = 0 ;
18582 int res1 = 0 ;
18583 PyObject *swig_obj[1] ;
18584
18585 if (!args) SWIG_fail;
18586 swig_obj[0] = args;
18587 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18588 if (!SWIG_IsOK(res1)) {
18589 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
18590 }
18591 arg1 = reinterpret_cast< wxDC * >(argp1);
18592 {
18593 PyThreadState* __tstate = wxPyBeginAllowThreads();
18594 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
18595 wxPyEndAllowThreads(__tstate);
18596 if (PyErr_Occurred()) SWIG_fail;
18597 }
18598 {
18599 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18600 }
18601 return resultobj;
18602 fail:
18603 return NULL;
18604 }
18605
18606
18607 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18608 PyObject *resultobj = 0;
18609 wxDC *arg1 = (wxDC *) 0 ;
18610 int result;
18611 void *argp1 = 0 ;
18612 int res1 = 0 ;
18613 PyObject *swig_obj[1] ;
18614
18615 if (!args) SWIG_fail;
18616 swig_obj[0] = args;
18617 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18618 if (!SWIG_IsOK(res1)) {
18619 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
18620 }
18621 arg1 = reinterpret_cast< wxDC * >(argp1);
18622 {
18623 PyThreadState* __tstate = wxPyBeginAllowThreads();
18624 result = (int)((wxDC const *)arg1)->GetDepth();
18625 wxPyEndAllowThreads(__tstate);
18626 if (PyErr_Occurred()) SWIG_fail;
18627 }
18628 resultobj = SWIG_From_int(static_cast< int >(result));
18629 return resultobj;
18630 fail:
18631 return NULL;
18632 }
18633
18634
18635 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18636 PyObject *resultobj = 0;
18637 wxDC *arg1 = (wxDC *) 0 ;
18638 wxSize result;
18639 void *argp1 = 0 ;
18640 int res1 = 0 ;
18641 PyObject *swig_obj[1] ;
18642
18643 if (!args) SWIG_fail;
18644 swig_obj[0] = args;
18645 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18646 if (!SWIG_IsOK(res1)) {
18647 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
18648 }
18649 arg1 = reinterpret_cast< wxDC * >(argp1);
18650 {
18651 PyThreadState* __tstate = wxPyBeginAllowThreads();
18652 result = ((wxDC const *)arg1)->GetPPI();
18653 wxPyEndAllowThreads(__tstate);
18654 if (PyErr_Occurred()) SWIG_fail;
18655 }
18656 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18657 return resultobj;
18658 fail:
18659 return NULL;
18660 }
18661
18662
18663 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18664 PyObject *resultobj = 0;
18665 wxDC *arg1 = (wxDC *) 0 ;
18666 bool result;
18667 void *argp1 = 0 ;
18668 int res1 = 0 ;
18669 PyObject *swig_obj[1] ;
18670
18671 if (!args) SWIG_fail;
18672 swig_obj[0] = args;
18673 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18674 if (!SWIG_IsOK(res1)) {
18675 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
18676 }
18677 arg1 = reinterpret_cast< wxDC * >(argp1);
18678 {
18679 PyThreadState* __tstate = wxPyBeginAllowThreads();
18680 result = (bool)((wxDC const *)arg1)->Ok();
18681 wxPyEndAllowThreads(__tstate);
18682 if (PyErr_Occurred()) SWIG_fail;
18683 }
18684 {
18685 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
18686 }
18687 return resultobj;
18688 fail:
18689 return NULL;
18690 }
18691
18692
18693 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18694 PyObject *resultobj = 0;
18695 wxDC *arg1 = (wxDC *) 0 ;
18696 int result;
18697 void *argp1 = 0 ;
18698 int res1 = 0 ;
18699 PyObject *swig_obj[1] ;
18700
18701 if (!args) SWIG_fail;
18702 swig_obj[0] = args;
18703 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18704 if (!SWIG_IsOK(res1)) {
18705 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
18706 }
18707 arg1 = reinterpret_cast< wxDC * >(argp1);
18708 {
18709 PyThreadState* __tstate = wxPyBeginAllowThreads();
18710 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
18711 wxPyEndAllowThreads(__tstate);
18712 if (PyErr_Occurred()) SWIG_fail;
18713 }
18714 resultobj = SWIG_From_int(static_cast< int >(result));
18715 return resultobj;
18716 fail:
18717 return NULL;
18718 }
18719
18720
18721 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18722 PyObject *resultobj = 0;
18723 wxDC *arg1 = (wxDC *) 0 ;
18724 wxBrush *result = 0 ;
18725 void *argp1 = 0 ;
18726 int res1 = 0 ;
18727 PyObject *swig_obj[1] ;
18728
18729 if (!args) SWIG_fail;
18730 swig_obj[0] = args;
18731 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18732 if (!SWIG_IsOK(res1)) {
18733 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18734 }
18735 arg1 = reinterpret_cast< wxDC * >(argp1);
18736 {
18737 PyThreadState* __tstate = wxPyBeginAllowThreads();
18738 {
18739 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
18740 result = (wxBrush *) &_result_ref;
18741 }
18742 wxPyEndAllowThreads(__tstate);
18743 if (PyErr_Occurred()) SWIG_fail;
18744 }
18745 {
18746 wxBrush* resultptr = new wxBrush(*result);
18747 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18748 }
18749 return resultobj;
18750 fail:
18751 return NULL;
18752 }
18753
18754
18755 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18756 PyObject *resultobj = 0;
18757 wxDC *arg1 = (wxDC *) 0 ;
18758 wxBrush *result = 0 ;
18759 void *argp1 = 0 ;
18760 int res1 = 0 ;
18761 PyObject *swig_obj[1] ;
18762
18763 if (!args) SWIG_fail;
18764 swig_obj[0] = args;
18765 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18766 if (!SWIG_IsOK(res1)) {
18767 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
18768 }
18769 arg1 = reinterpret_cast< wxDC * >(argp1);
18770 {
18771 PyThreadState* __tstate = wxPyBeginAllowThreads();
18772 {
18773 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
18774 result = (wxBrush *) &_result_ref;
18775 }
18776 wxPyEndAllowThreads(__tstate);
18777 if (PyErr_Occurred()) SWIG_fail;
18778 }
18779 {
18780 wxBrush* resultptr = new wxBrush(*result);
18781 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
18782 }
18783 return resultobj;
18784 fail:
18785 return NULL;
18786 }
18787
18788
18789 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18790 PyObject *resultobj = 0;
18791 wxDC *arg1 = (wxDC *) 0 ;
18792 wxFont *result = 0 ;
18793 void *argp1 = 0 ;
18794 int res1 = 0 ;
18795 PyObject *swig_obj[1] ;
18796
18797 if (!args) SWIG_fail;
18798 swig_obj[0] = args;
18799 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18800 if (!SWIG_IsOK(res1)) {
18801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
18802 }
18803 arg1 = reinterpret_cast< wxDC * >(argp1);
18804 {
18805 PyThreadState* __tstate = wxPyBeginAllowThreads();
18806 {
18807 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
18808 result = (wxFont *) &_result_ref;
18809 }
18810 wxPyEndAllowThreads(__tstate);
18811 if (PyErr_Occurred()) SWIG_fail;
18812 }
18813 {
18814 wxFont* resultptr = new wxFont(*result);
18815 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
18816 }
18817 return resultobj;
18818 fail:
18819 return NULL;
18820 }
18821
18822
18823 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18824 PyObject *resultobj = 0;
18825 wxDC *arg1 = (wxDC *) 0 ;
18826 wxPen *result = 0 ;
18827 void *argp1 = 0 ;
18828 int res1 = 0 ;
18829 PyObject *swig_obj[1] ;
18830
18831 if (!args) SWIG_fail;
18832 swig_obj[0] = args;
18833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18834 if (!SWIG_IsOK(res1)) {
18835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
18836 }
18837 arg1 = reinterpret_cast< wxDC * >(argp1);
18838 {
18839 PyThreadState* __tstate = wxPyBeginAllowThreads();
18840 {
18841 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
18842 result = (wxPen *) &_result_ref;
18843 }
18844 wxPyEndAllowThreads(__tstate);
18845 if (PyErr_Occurred()) SWIG_fail;
18846 }
18847 {
18848 wxPen* resultptr = new wxPen(*result);
18849 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
18850 }
18851 return resultobj;
18852 fail:
18853 return NULL;
18854 }
18855
18856
18857 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18858 PyObject *resultobj = 0;
18859 wxDC *arg1 = (wxDC *) 0 ;
18860 wxColour *result = 0 ;
18861 void *argp1 = 0 ;
18862 int res1 = 0 ;
18863 PyObject *swig_obj[1] ;
18864
18865 if (!args) SWIG_fail;
18866 swig_obj[0] = args;
18867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18868 if (!SWIG_IsOK(res1)) {
18869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
18870 }
18871 arg1 = reinterpret_cast< wxDC * >(argp1);
18872 {
18873 PyThreadState* __tstate = wxPyBeginAllowThreads();
18874 {
18875 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
18876 result = (wxColour *) &_result_ref;
18877 }
18878 wxPyEndAllowThreads(__tstate);
18879 if (PyErr_Occurred()) SWIG_fail;
18880 }
18881 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18882 return resultobj;
18883 fail:
18884 return NULL;
18885 }
18886
18887
18888 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18889 PyObject *resultobj = 0;
18890 wxDC *arg1 = (wxDC *) 0 ;
18891 wxColour *result = 0 ;
18892 void *argp1 = 0 ;
18893 int res1 = 0 ;
18894 PyObject *swig_obj[1] ;
18895
18896 if (!args) SWIG_fail;
18897 swig_obj[0] = args;
18898 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18899 if (!SWIG_IsOK(res1)) {
18900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
18901 }
18902 arg1 = reinterpret_cast< wxDC * >(argp1);
18903 {
18904 PyThreadState* __tstate = wxPyBeginAllowThreads();
18905 {
18906 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
18907 result = (wxColour *) &_result_ref;
18908 }
18909 wxPyEndAllowThreads(__tstate);
18910 if (PyErr_Occurred()) SWIG_fail;
18911 }
18912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
18913 return resultobj;
18914 fail:
18915 return NULL;
18916 }
18917
18918
18919 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18920 PyObject *resultobj = 0;
18921 wxDC *arg1 = (wxDC *) 0 ;
18922 wxColour *arg2 = 0 ;
18923 void *argp1 = 0 ;
18924 int res1 = 0 ;
18925 wxColour temp2 ;
18926 PyObject * obj0 = 0 ;
18927 PyObject * obj1 = 0 ;
18928 char * kwnames[] = {
18929 (char *) "self",(char *) "colour", NULL
18930 };
18931
18932 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
18933 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18934 if (!SWIG_IsOK(res1)) {
18935 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
18936 }
18937 arg1 = reinterpret_cast< wxDC * >(argp1);
18938 {
18939 arg2 = &temp2;
18940 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18941 }
18942 {
18943 PyThreadState* __tstate = wxPyBeginAllowThreads();
18944 (arg1)->SetTextForeground((wxColour const &)*arg2);
18945 wxPyEndAllowThreads(__tstate);
18946 if (PyErr_Occurred()) SWIG_fail;
18947 }
18948 resultobj = SWIG_Py_Void();
18949 return resultobj;
18950 fail:
18951 return NULL;
18952 }
18953
18954
18955 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18956 PyObject *resultobj = 0;
18957 wxDC *arg1 = (wxDC *) 0 ;
18958 wxColour *arg2 = 0 ;
18959 void *argp1 = 0 ;
18960 int res1 = 0 ;
18961 wxColour temp2 ;
18962 PyObject * obj0 = 0 ;
18963 PyObject * obj1 = 0 ;
18964 char * kwnames[] = {
18965 (char *) "self",(char *) "colour", NULL
18966 };
18967
18968 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18969 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18970 if (!SWIG_IsOK(res1)) {
18971 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18972 }
18973 arg1 = reinterpret_cast< wxDC * >(argp1);
18974 {
18975 arg2 = &temp2;
18976 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
18977 }
18978 {
18979 PyThreadState* __tstate = wxPyBeginAllowThreads();
18980 (arg1)->SetTextBackground((wxColour const &)*arg2);
18981 wxPyEndAllowThreads(__tstate);
18982 if (PyErr_Occurred()) SWIG_fail;
18983 }
18984 resultobj = SWIG_Py_Void();
18985 return resultobj;
18986 fail:
18987 return NULL;
18988 }
18989
18990
18991 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18992 PyObject *resultobj = 0;
18993 wxDC *arg1 = (wxDC *) 0 ;
18994 int result;
18995 void *argp1 = 0 ;
18996 int res1 = 0 ;
18997 PyObject *swig_obj[1] ;
18998
18999 if (!args) SWIG_fail;
19000 swig_obj[0] = args;
19001 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19002 if (!SWIG_IsOK(res1)) {
19003 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19004 }
19005 arg1 = reinterpret_cast< wxDC * >(argp1);
19006 {
19007 PyThreadState* __tstate = wxPyBeginAllowThreads();
19008 result = (int)((wxDC const *)arg1)->GetMapMode();
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_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19020 PyObject *resultobj = 0;
19021 wxDC *arg1 = (wxDC *) 0 ;
19022 int arg2 ;
19023 void *argp1 = 0 ;
19024 int res1 = 0 ;
19025 int val2 ;
19026 int ecode2 = 0 ;
19027 PyObject * obj0 = 0 ;
19028 PyObject * obj1 = 0 ;
19029 char * kwnames[] = {
19030 (char *) "self",(char *) "mode", NULL
19031 };
19032
19033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19035 if (!SWIG_IsOK(res1)) {
19036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19037 }
19038 arg1 = reinterpret_cast< wxDC * >(argp1);
19039 ecode2 = SWIG_AsVal_int(obj1, &val2);
19040 if (!SWIG_IsOK(ecode2)) {
19041 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19042 }
19043 arg2 = static_cast< int >(val2);
19044 {
19045 PyThreadState* __tstate = wxPyBeginAllowThreads();
19046 (arg1)->SetMapMode(arg2);
19047 wxPyEndAllowThreads(__tstate);
19048 if (PyErr_Occurred()) SWIG_fail;
19049 }
19050 resultobj = SWIG_Py_Void();
19051 return resultobj;
19052 fail:
19053 return NULL;
19054 }
19055
19056
19057 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19058 PyObject *resultobj = 0;
19059 wxDC *arg1 = (wxDC *) 0 ;
19060 double *arg2 = (double *) 0 ;
19061 double *arg3 = (double *) 0 ;
19062 void *argp1 = 0 ;
19063 int res1 = 0 ;
19064 double temp2 ;
19065 int res2 = SWIG_TMPOBJ ;
19066 double temp3 ;
19067 int res3 = SWIG_TMPOBJ ;
19068 PyObject *swig_obj[1] ;
19069
19070 arg2 = &temp2;
19071 arg3 = &temp3;
19072 if (!args) SWIG_fail;
19073 swig_obj[0] = args;
19074 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19075 if (!SWIG_IsOK(res1)) {
19076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19077 }
19078 arg1 = reinterpret_cast< wxDC * >(argp1);
19079 {
19080 PyThreadState* __tstate = wxPyBeginAllowThreads();
19081 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19082 wxPyEndAllowThreads(__tstate);
19083 if (PyErr_Occurred()) SWIG_fail;
19084 }
19085 resultobj = SWIG_Py_Void();
19086 if (SWIG_IsTmpObj(res2)) {
19087 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19088 } else {
19089 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19090 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19091 }
19092 if (SWIG_IsTmpObj(res3)) {
19093 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19094 } else {
19095 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19096 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19097 }
19098 return resultobj;
19099 fail:
19100 return NULL;
19101 }
19102
19103
19104 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19105 PyObject *resultobj = 0;
19106 wxDC *arg1 = (wxDC *) 0 ;
19107 double arg2 ;
19108 double arg3 ;
19109 void *argp1 = 0 ;
19110 int res1 = 0 ;
19111 double val2 ;
19112 int ecode2 = 0 ;
19113 double val3 ;
19114 int ecode3 = 0 ;
19115 PyObject * obj0 = 0 ;
19116 PyObject * obj1 = 0 ;
19117 PyObject * obj2 = 0 ;
19118 char * kwnames[] = {
19119 (char *) "self",(char *) "x",(char *) "y", NULL
19120 };
19121
19122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19124 if (!SWIG_IsOK(res1)) {
19125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19126 }
19127 arg1 = reinterpret_cast< wxDC * >(argp1);
19128 ecode2 = SWIG_AsVal_double(obj1, &val2);
19129 if (!SWIG_IsOK(ecode2)) {
19130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19131 }
19132 arg2 = static_cast< double >(val2);
19133 ecode3 = SWIG_AsVal_double(obj2, &val3);
19134 if (!SWIG_IsOK(ecode3)) {
19135 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19136 }
19137 arg3 = static_cast< double >(val3);
19138 {
19139 PyThreadState* __tstate = wxPyBeginAllowThreads();
19140 (arg1)->SetUserScale(arg2,arg3);
19141 wxPyEndAllowThreads(__tstate);
19142 if (PyErr_Occurred()) SWIG_fail;
19143 }
19144 resultobj = SWIG_Py_Void();
19145 return resultobj;
19146 fail:
19147 return NULL;
19148 }
19149
19150
19151 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19152 PyObject *resultobj = 0;
19153 wxDC *arg1 = (wxDC *) 0 ;
19154 double *arg2 = (double *) 0 ;
19155 double *arg3 = (double *) 0 ;
19156 void *argp1 = 0 ;
19157 int res1 = 0 ;
19158 double temp2 ;
19159 int res2 = SWIG_TMPOBJ ;
19160 double temp3 ;
19161 int res3 = SWIG_TMPOBJ ;
19162 PyObject *swig_obj[1] ;
19163
19164 arg2 = &temp2;
19165 arg3 = &temp3;
19166 if (!args) SWIG_fail;
19167 swig_obj[0] = args;
19168 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19169 if (!SWIG_IsOK(res1)) {
19170 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19171 }
19172 arg1 = reinterpret_cast< wxDC * >(argp1);
19173 {
19174 PyThreadState* __tstate = wxPyBeginAllowThreads();
19175 (arg1)->GetLogicalScale(arg2,arg3);
19176 wxPyEndAllowThreads(__tstate);
19177 if (PyErr_Occurred()) SWIG_fail;
19178 }
19179 resultobj = SWIG_Py_Void();
19180 if (SWIG_IsTmpObj(res2)) {
19181 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19182 } else {
19183 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19184 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19185 }
19186 if (SWIG_IsTmpObj(res3)) {
19187 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19188 } else {
19189 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19190 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19191 }
19192 return resultobj;
19193 fail:
19194 return NULL;
19195 }
19196
19197
19198 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19199 PyObject *resultobj = 0;
19200 wxDC *arg1 = (wxDC *) 0 ;
19201 double arg2 ;
19202 double arg3 ;
19203 void *argp1 = 0 ;
19204 int res1 = 0 ;
19205 double val2 ;
19206 int ecode2 = 0 ;
19207 double val3 ;
19208 int ecode3 = 0 ;
19209 PyObject * obj0 = 0 ;
19210 PyObject * obj1 = 0 ;
19211 PyObject * obj2 = 0 ;
19212 char * kwnames[] = {
19213 (char *) "self",(char *) "x",(char *) "y", NULL
19214 };
19215
19216 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19217 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19218 if (!SWIG_IsOK(res1)) {
19219 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19220 }
19221 arg1 = reinterpret_cast< wxDC * >(argp1);
19222 ecode2 = SWIG_AsVal_double(obj1, &val2);
19223 if (!SWIG_IsOK(ecode2)) {
19224 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19225 }
19226 arg2 = static_cast< double >(val2);
19227 ecode3 = SWIG_AsVal_double(obj2, &val3);
19228 if (!SWIG_IsOK(ecode3)) {
19229 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19230 }
19231 arg3 = static_cast< double >(val3);
19232 {
19233 PyThreadState* __tstate = wxPyBeginAllowThreads();
19234 (arg1)->SetLogicalScale(arg2,arg3);
19235 wxPyEndAllowThreads(__tstate);
19236 if (PyErr_Occurred()) SWIG_fail;
19237 }
19238 resultobj = SWIG_Py_Void();
19239 return resultobj;
19240 fail:
19241 return NULL;
19242 }
19243
19244
19245 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19246 PyObject *resultobj = 0;
19247 wxDC *arg1 = (wxDC *) 0 ;
19248 wxPoint result;
19249 void *argp1 = 0 ;
19250 int res1 = 0 ;
19251 PyObject *swig_obj[1] ;
19252
19253 if (!args) SWIG_fail;
19254 swig_obj[0] = args;
19255 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19256 if (!SWIG_IsOK(res1)) {
19257 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19258 }
19259 arg1 = reinterpret_cast< wxDC * >(argp1);
19260 {
19261 PyThreadState* __tstate = wxPyBeginAllowThreads();
19262 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19263 wxPyEndAllowThreads(__tstate);
19264 if (PyErr_Occurred()) SWIG_fail;
19265 }
19266 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19267 return resultobj;
19268 fail:
19269 return NULL;
19270 }
19271
19272
19273 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19274 PyObject *resultobj = 0;
19275 wxDC *arg1 = (wxDC *) 0 ;
19276 int *arg2 = (int *) 0 ;
19277 int *arg3 = (int *) 0 ;
19278 void *argp1 = 0 ;
19279 int res1 = 0 ;
19280 int temp2 ;
19281 int res2 = SWIG_TMPOBJ ;
19282 int temp3 ;
19283 int res3 = SWIG_TMPOBJ ;
19284 PyObject *swig_obj[1] ;
19285
19286 arg2 = &temp2;
19287 arg3 = &temp3;
19288 if (!args) SWIG_fail;
19289 swig_obj[0] = args;
19290 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19291 if (!SWIG_IsOK(res1)) {
19292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19293 }
19294 arg1 = reinterpret_cast< wxDC * >(argp1);
19295 {
19296 PyThreadState* __tstate = wxPyBeginAllowThreads();
19297 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
19298 wxPyEndAllowThreads(__tstate);
19299 if (PyErr_Occurred()) SWIG_fail;
19300 }
19301 resultobj = SWIG_Py_Void();
19302 if (SWIG_IsTmpObj(res2)) {
19303 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19304 } else {
19305 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19306 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19307 }
19308 if (SWIG_IsTmpObj(res3)) {
19309 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19310 } else {
19311 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19312 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19313 }
19314 return resultobj;
19315 fail:
19316 return NULL;
19317 }
19318
19319
19320 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19321 PyObject *resultobj = 0;
19322 wxDC *arg1 = (wxDC *) 0 ;
19323 int arg2 ;
19324 int arg3 ;
19325 void *argp1 = 0 ;
19326 int res1 = 0 ;
19327 int val2 ;
19328 int ecode2 = 0 ;
19329 int val3 ;
19330 int ecode3 = 0 ;
19331 PyObject * obj0 = 0 ;
19332 PyObject * obj1 = 0 ;
19333 PyObject * obj2 = 0 ;
19334 char * kwnames[] = {
19335 (char *) "self",(char *) "x",(char *) "y", NULL
19336 };
19337
19338 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19339 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19340 if (!SWIG_IsOK(res1)) {
19341 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19342 }
19343 arg1 = reinterpret_cast< wxDC * >(argp1);
19344 ecode2 = SWIG_AsVal_int(obj1, &val2);
19345 if (!SWIG_IsOK(ecode2)) {
19346 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
19347 }
19348 arg2 = static_cast< int >(val2);
19349 ecode3 = SWIG_AsVal_int(obj2, &val3);
19350 if (!SWIG_IsOK(ecode3)) {
19351 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
19352 }
19353 arg3 = static_cast< int >(val3);
19354 {
19355 PyThreadState* __tstate = wxPyBeginAllowThreads();
19356 (arg1)->SetLogicalOrigin(arg2,arg3);
19357 wxPyEndAllowThreads(__tstate);
19358 if (PyErr_Occurred()) SWIG_fail;
19359 }
19360 resultobj = SWIG_Py_Void();
19361 return resultobj;
19362 fail:
19363 return NULL;
19364 }
19365
19366
19367 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19368 PyObject *resultobj = 0;
19369 wxDC *arg1 = (wxDC *) 0 ;
19370 wxPoint *arg2 = 0 ;
19371 void *argp1 = 0 ;
19372 int res1 = 0 ;
19373 wxPoint temp2 ;
19374 PyObject * obj0 = 0 ;
19375 PyObject * obj1 = 0 ;
19376 char * kwnames[] = {
19377 (char *) "self",(char *) "point", NULL
19378 };
19379
19380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19382 if (!SWIG_IsOK(res1)) {
19383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19384 }
19385 arg1 = reinterpret_cast< wxDC * >(argp1);
19386 {
19387 arg2 = &temp2;
19388 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19389 }
19390 {
19391 PyThreadState* __tstate = wxPyBeginAllowThreads();
19392 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
19393 wxPyEndAllowThreads(__tstate);
19394 if (PyErr_Occurred()) SWIG_fail;
19395 }
19396 resultobj = SWIG_Py_Void();
19397 return resultobj;
19398 fail:
19399 return NULL;
19400 }
19401
19402
19403 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19404 PyObject *resultobj = 0;
19405 wxDC *arg1 = (wxDC *) 0 ;
19406 wxPoint result;
19407 void *argp1 = 0 ;
19408 int res1 = 0 ;
19409 PyObject *swig_obj[1] ;
19410
19411 if (!args) SWIG_fail;
19412 swig_obj[0] = args;
19413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19414 if (!SWIG_IsOK(res1)) {
19415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19416 }
19417 arg1 = reinterpret_cast< wxDC * >(argp1);
19418 {
19419 PyThreadState* __tstate = wxPyBeginAllowThreads();
19420 result = ((wxDC const *)arg1)->GetDeviceOrigin();
19421 wxPyEndAllowThreads(__tstate);
19422 if (PyErr_Occurred()) SWIG_fail;
19423 }
19424 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19425 return resultobj;
19426 fail:
19427 return NULL;
19428 }
19429
19430
19431 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19432 PyObject *resultobj = 0;
19433 wxDC *arg1 = (wxDC *) 0 ;
19434 int *arg2 = (int *) 0 ;
19435 int *arg3 = (int *) 0 ;
19436 void *argp1 = 0 ;
19437 int res1 = 0 ;
19438 int temp2 ;
19439 int res2 = SWIG_TMPOBJ ;
19440 int temp3 ;
19441 int res3 = SWIG_TMPOBJ ;
19442 PyObject *swig_obj[1] ;
19443
19444 arg2 = &temp2;
19445 arg3 = &temp3;
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_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
19451 }
19452 arg1 = reinterpret_cast< wxDC * >(argp1);
19453 {
19454 PyThreadState* __tstate = wxPyBeginAllowThreads();
19455 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
19456 wxPyEndAllowThreads(__tstate);
19457 if (PyErr_Occurred()) SWIG_fail;
19458 }
19459 resultobj = SWIG_Py_Void();
19460 if (SWIG_IsTmpObj(res2)) {
19461 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19462 } else {
19463 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19464 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19465 }
19466 if (SWIG_IsTmpObj(res3)) {
19467 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19468 } else {
19469 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19470 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19471 }
19472 return resultobj;
19473 fail:
19474 return NULL;
19475 }
19476
19477
19478 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19479 PyObject *resultobj = 0;
19480 wxDC *arg1 = (wxDC *) 0 ;
19481 int arg2 ;
19482 int arg3 ;
19483 void *argp1 = 0 ;
19484 int res1 = 0 ;
19485 int val2 ;
19486 int ecode2 = 0 ;
19487 int val3 ;
19488 int ecode3 = 0 ;
19489 PyObject * obj0 = 0 ;
19490 PyObject * obj1 = 0 ;
19491 PyObject * obj2 = 0 ;
19492 char * kwnames[] = {
19493 (char *) "self",(char *) "x",(char *) "y", NULL
19494 };
19495
19496 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19497 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19498 if (!SWIG_IsOK(res1)) {
19499 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19500 }
19501 arg1 = reinterpret_cast< wxDC * >(argp1);
19502 ecode2 = SWIG_AsVal_int(obj1, &val2);
19503 if (!SWIG_IsOK(ecode2)) {
19504 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
19505 }
19506 arg2 = static_cast< int >(val2);
19507 ecode3 = SWIG_AsVal_int(obj2, &val3);
19508 if (!SWIG_IsOK(ecode3)) {
19509 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
19510 }
19511 arg3 = static_cast< int >(val3);
19512 {
19513 PyThreadState* __tstate = wxPyBeginAllowThreads();
19514 (arg1)->SetDeviceOrigin(arg2,arg3);
19515 wxPyEndAllowThreads(__tstate);
19516 if (PyErr_Occurred()) SWIG_fail;
19517 }
19518 resultobj = SWIG_Py_Void();
19519 return resultobj;
19520 fail:
19521 return NULL;
19522 }
19523
19524
19525 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19526 PyObject *resultobj = 0;
19527 wxDC *arg1 = (wxDC *) 0 ;
19528 wxPoint *arg2 = 0 ;
19529 void *argp1 = 0 ;
19530 int res1 = 0 ;
19531 wxPoint temp2 ;
19532 PyObject * obj0 = 0 ;
19533 PyObject * obj1 = 0 ;
19534 char * kwnames[] = {
19535 (char *) "self",(char *) "point", NULL
19536 };
19537
19538 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19539 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19540 if (!SWIG_IsOK(res1)) {
19541 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19542 }
19543 arg1 = reinterpret_cast< wxDC * >(argp1);
19544 {
19545 arg2 = &temp2;
19546 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19547 }
19548 {
19549 PyThreadState* __tstate = wxPyBeginAllowThreads();
19550 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
19551 wxPyEndAllowThreads(__tstate);
19552 if (PyErr_Occurred()) SWIG_fail;
19553 }
19554 resultobj = SWIG_Py_Void();
19555 return resultobj;
19556 fail:
19557 return NULL;
19558 }
19559
19560
19561 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19562 PyObject *resultobj = 0;
19563 wxDC *arg1 = (wxDC *) 0 ;
19564 bool arg2 ;
19565 bool arg3 ;
19566 void *argp1 = 0 ;
19567 int res1 = 0 ;
19568 bool val2 ;
19569 int ecode2 = 0 ;
19570 bool val3 ;
19571 int ecode3 = 0 ;
19572 PyObject * obj0 = 0 ;
19573 PyObject * obj1 = 0 ;
19574 PyObject * obj2 = 0 ;
19575 char * kwnames[] = {
19576 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
19577 };
19578
19579 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19580 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19581 if (!SWIG_IsOK(res1)) {
19582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
19583 }
19584 arg1 = reinterpret_cast< wxDC * >(argp1);
19585 ecode2 = SWIG_AsVal_bool(obj1, &val2);
19586 if (!SWIG_IsOK(ecode2)) {
19587 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
19588 }
19589 arg2 = static_cast< bool >(val2);
19590 ecode3 = SWIG_AsVal_bool(obj2, &val3);
19591 if (!SWIG_IsOK(ecode3)) {
19592 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
19593 }
19594 arg3 = static_cast< bool >(val3);
19595 {
19596 PyThreadState* __tstate = wxPyBeginAllowThreads();
19597 (arg1)->SetAxisOrientation(arg2,arg3);
19598 wxPyEndAllowThreads(__tstate);
19599 if (PyErr_Occurred()) SWIG_fail;
19600 }
19601 resultobj = SWIG_Py_Void();
19602 return resultobj;
19603 fail:
19604 return NULL;
19605 }
19606
19607
19608 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19609 PyObject *resultobj = 0;
19610 wxDC *arg1 = (wxDC *) 0 ;
19611 int result;
19612 void *argp1 = 0 ;
19613 int res1 = 0 ;
19614 PyObject *swig_obj[1] ;
19615
19616 if (!args) SWIG_fail;
19617 swig_obj[0] = args;
19618 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19619 if (!SWIG_IsOK(res1)) {
19620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
19621 }
19622 arg1 = reinterpret_cast< wxDC * >(argp1);
19623 {
19624 PyThreadState* __tstate = wxPyBeginAllowThreads();
19625 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
19626 wxPyEndAllowThreads(__tstate);
19627 if (PyErr_Occurred()) SWIG_fail;
19628 }
19629 resultobj = SWIG_From_int(static_cast< int >(result));
19630 return resultobj;
19631 fail:
19632 return NULL;
19633 }
19634
19635
19636 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19637 PyObject *resultobj = 0;
19638 wxDC *arg1 = (wxDC *) 0 ;
19639 int arg2 ;
19640 void *argp1 = 0 ;
19641 int res1 = 0 ;
19642 int val2 ;
19643 int ecode2 = 0 ;
19644 PyObject * obj0 = 0 ;
19645 PyObject * obj1 = 0 ;
19646 char * kwnames[] = {
19647 (char *) "self",(char *) "function", NULL
19648 };
19649
19650 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
19651 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19652 if (!SWIG_IsOK(res1)) {
19653 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
19654 }
19655 arg1 = reinterpret_cast< wxDC * >(argp1);
19656 ecode2 = SWIG_AsVal_int(obj1, &val2);
19657 if (!SWIG_IsOK(ecode2)) {
19658 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
19659 }
19660 arg2 = static_cast< int >(val2);
19661 {
19662 PyThreadState* __tstate = wxPyBeginAllowThreads();
19663 (arg1)->SetLogicalFunction(arg2);
19664 wxPyEndAllowThreads(__tstate);
19665 if (PyErr_Occurred()) SWIG_fail;
19666 }
19667 resultobj = SWIG_Py_Void();
19668 return resultobj;
19669 fail:
19670 return NULL;
19671 }
19672
19673
19674 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19675 PyObject *resultobj = 0;
19676 wxDC *arg1 = (wxDC *) 0 ;
19677 void *argp1 = 0 ;
19678 int res1 = 0 ;
19679 PyObject *swig_obj[1] ;
19680
19681 if (!args) SWIG_fail;
19682 swig_obj[0] = args;
19683 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19684 if (!SWIG_IsOK(res1)) {
19685 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
19686 }
19687 arg1 = reinterpret_cast< wxDC * >(argp1);
19688 {
19689 PyThreadState* __tstate = wxPyBeginAllowThreads();
19690 (arg1)->ComputeScaleAndOrigin();
19691 wxPyEndAllowThreads(__tstate);
19692 if (PyErr_Occurred()) SWIG_fail;
19693 }
19694 resultobj = SWIG_Py_Void();
19695 return resultobj;
19696 fail:
19697 return NULL;
19698 }
19699
19700
19701 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19702 PyObject *resultobj = 0;
19703 wxDC *arg1 = (wxDC *) 0 ;
19704 int arg2 ;
19705 int arg3 ;
19706 void *argp1 = 0 ;
19707 int res1 = 0 ;
19708 int val2 ;
19709 int ecode2 = 0 ;
19710 int val3 ;
19711 int ecode3 = 0 ;
19712 PyObject * obj0 = 0 ;
19713 PyObject * obj1 = 0 ;
19714 PyObject * obj2 = 0 ;
19715 char * kwnames[] = {
19716 (char *) "self",(char *) "x",(char *) "y", NULL
19717 };
19718
19719 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19720 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19721 if (!SWIG_IsOK(res1)) {
19722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19723 }
19724 arg1 = reinterpret_cast< wxDC * >(argp1);
19725 ecode2 = SWIG_AsVal_int(obj1, &val2);
19726 if (!SWIG_IsOK(ecode2)) {
19727 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
19728 }
19729 arg2 = static_cast< int >(val2);
19730 ecode3 = SWIG_AsVal_int(obj2, &val3);
19731 if (!SWIG_IsOK(ecode3)) {
19732 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
19733 }
19734 arg3 = static_cast< int >(val3);
19735 {
19736 PyThreadState* __tstate = wxPyBeginAllowThreads();
19737 (arg1)->CalcBoundingBox(arg2,arg3);
19738 wxPyEndAllowThreads(__tstate);
19739 if (PyErr_Occurred()) SWIG_fail;
19740 }
19741 resultobj = SWIG_Py_Void();
19742 return resultobj;
19743 fail:
19744 return NULL;
19745 }
19746
19747
19748 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19749 PyObject *resultobj = 0;
19750 wxDC *arg1 = (wxDC *) 0 ;
19751 wxPoint *arg2 = 0 ;
19752 void *argp1 = 0 ;
19753 int res1 = 0 ;
19754 wxPoint temp2 ;
19755 PyObject * obj0 = 0 ;
19756 PyObject * obj1 = 0 ;
19757 char * kwnames[] = {
19758 (char *) "self",(char *) "point", NULL
19759 };
19760
19761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
19762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19763 if (!SWIG_IsOK(res1)) {
19764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
19765 }
19766 arg1 = reinterpret_cast< wxDC * >(argp1);
19767 {
19768 arg2 = &temp2;
19769 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
19770 }
19771 {
19772 PyThreadState* __tstate = wxPyBeginAllowThreads();
19773 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
19774 wxPyEndAllowThreads(__tstate);
19775 if (PyErr_Occurred()) SWIG_fail;
19776 }
19777 resultobj = SWIG_Py_Void();
19778 return resultobj;
19779 fail:
19780 return NULL;
19781 }
19782
19783
19784 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19785 PyObject *resultobj = 0;
19786 wxDC *arg1 = (wxDC *) 0 ;
19787 void *argp1 = 0 ;
19788 int res1 = 0 ;
19789 PyObject *swig_obj[1] ;
19790
19791 if (!args) SWIG_fail;
19792 swig_obj[0] = args;
19793 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19794 if (!SWIG_IsOK(res1)) {
19795 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19796 }
19797 arg1 = reinterpret_cast< wxDC * >(argp1);
19798 {
19799 PyThreadState* __tstate = wxPyBeginAllowThreads();
19800 (arg1)->ResetBoundingBox();
19801 wxPyEndAllowThreads(__tstate);
19802 if (PyErr_Occurred()) SWIG_fail;
19803 }
19804 resultobj = SWIG_Py_Void();
19805 return resultobj;
19806 fail:
19807 return NULL;
19808 }
19809
19810
19811 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19812 PyObject *resultobj = 0;
19813 wxDC *arg1 = (wxDC *) 0 ;
19814 int result;
19815 void *argp1 = 0 ;
19816 int res1 = 0 ;
19817 PyObject *swig_obj[1] ;
19818
19819 if (!args) SWIG_fail;
19820 swig_obj[0] = args;
19821 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19822 if (!SWIG_IsOK(res1)) {
19823 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
19824 }
19825 arg1 = reinterpret_cast< wxDC * >(argp1);
19826 {
19827 PyThreadState* __tstate = wxPyBeginAllowThreads();
19828 result = (int)((wxDC const *)arg1)->MinX();
19829 wxPyEndAllowThreads(__tstate);
19830 if (PyErr_Occurred()) SWIG_fail;
19831 }
19832 resultobj = SWIG_From_int(static_cast< int >(result));
19833 return resultobj;
19834 fail:
19835 return NULL;
19836 }
19837
19838
19839 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19840 PyObject *resultobj = 0;
19841 wxDC *arg1 = (wxDC *) 0 ;
19842 int result;
19843 void *argp1 = 0 ;
19844 int res1 = 0 ;
19845 PyObject *swig_obj[1] ;
19846
19847 if (!args) SWIG_fail;
19848 swig_obj[0] = args;
19849 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19850 if (!SWIG_IsOK(res1)) {
19851 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
19852 }
19853 arg1 = reinterpret_cast< wxDC * >(argp1);
19854 {
19855 PyThreadState* __tstate = wxPyBeginAllowThreads();
19856 result = (int)((wxDC const *)arg1)->MaxX();
19857 wxPyEndAllowThreads(__tstate);
19858 if (PyErr_Occurred()) SWIG_fail;
19859 }
19860 resultobj = SWIG_From_int(static_cast< int >(result));
19861 return resultobj;
19862 fail:
19863 return NULL;
19864 }
19865
19866
19867 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19868 PyObject *resultobj = 0;
19869 wxDC *arg1 = (wxDC *) 0 ;
19870 int result;
19871 void *argp1 = 0 ;
19872 int res1 = 0 ;
19873 PyObject *swig_obj[1] ;
19874
19875 if (!args) SWIG_fail;
19876 swig_obj[0] = args;
19877 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19878 if (!SWIG_IsOK(res1)) {
19879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
19880 }
19881 arg1 = reinterpret_cast< wxDC * >(argp1);
19882 {
19883 PyThreadState* __tstate = wxPyBeginAllowThreads();
19884 result = (int)((wxDC const *)arg1)->MinY();
19885 wxPyEndAllowThreads(__tstate);
19886 if (PyErr_Occurred()) SWIG_fail;
19887 }
19888 resultobj = SWIG_From_int(static_cast< int >(result));
19889 return resultobj;
19890 fail:
19891 return NULL;
19892 }
19893
19894
19895 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19896 PyObject *resultobj = 0;
19897 wxDC *arg1 = (wxDC *) 0 ;
19898 int result;
19899 void *argp1 = 0 ;
19900 int res1 = 0 ;
19901 PyObject *swig_obj[1] ;
19902
19903 if (!args) SWIG_fail;
19904 swig_obj[0] = args;
19905 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19906 if (!SWIG_IsOK(res1)) {
19907 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
19908 }
19909 arg1 = reinterpret_cast< wxDC * >(argp1);
19910 {
19911 PyThreadState* __tstate = wxPyBeginAllowThreads();
19912 result = (int)((wxDC const *)arg1)->MaxY();
19913 wxPyEndAllowThreads(__tstate);
19914 if (PyErr_Occurred()) SWIG_fail;
19915 }
19916 resultobj = SWIG_From_int(static_cast< int >(result));
19917 return resultobj;
19918 fail:
19919 return NULL;
19920 }
19921
19922
19923 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19924 PyObject *resultobj = 0;
19925 wxDC *arg1 = (wxDC *) 0 ;
19926 int *arg2 = (int *) 0 ;
19927 int *arg3 = (int *) 0 ;
19928 int *arg4 = (int *) 0 ;
19929 int *arg5 = (int *) 0 ;
19930 void *argp1 = 0 ;
19931 int res1 = 0 ;
19932 int temp2 ;
19933 int res2 = SWIG_TMPOBJ ;
19934 int temp3 ;
19935 int res3 = SWIG_TMPOBJ ;
19936 int temp4 ;
19937 int res4 = SWIG_TMPOBJ ;
19938 int temp5 ;
19939 int res5 = SWIG_TMPOBJ ;
19940 PyObject *swig_obj[1] ;
19941
19942 arg2 = &temp2;
19943 arg3 = &temp3;
19944 arg4 = &temp4;
19945 arg5 = &temp5;
19946 if (!args) SWIG_fail;
19947 swig_obj[0] = args;
19948 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19949 if (!SWIG_IsOK(res1)) {
19950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
19951 }
19952 arg1 = reinterpret_cast< wxDC * >(argp1);
19953 {
19954 PyThreadState* __tstate = wxPyBeginAllowThreads();
19955 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
19956 wxPyEndAllowThreads(__tstate);
19957 if (PyErr_Occurred()) SWIG_fail;
19958 }
19959 resultobj = SWIG_Py_Void();
19960 if (SWIG_IsTmpObj(res2)) {
19961 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
19962 } else {
19963 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19964 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
19965 }
19966 if (SWIG_IsTmpObj(res3)) {
19967 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
19968 } else {
19969 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19970 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
19971 }
19972 if (SWIG_IsTmpObj(res4)) {
19973 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
19974 } else {
19975 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19976 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
19977 }
19978 if (SWIG_IsTmpObj(res5)) {
19979 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
19980 } else {
19981 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19982 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
19983 }
19984 return resultobj;
19985 fail:
19986 return NULL;
19987 }
19988
19989
19990 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19991 PyObject *resultobj = 0;
19992 wxDC *arg1 = (wxDC *) 0 ;
19993 PyObject *arg2 = (PyObject *) 0 ;
19994 PyObject *arg3 = (PyObject *) 0 ;
19995 PyObject *arg4 = (PyObject *) 0 ;
19996 PyObject *result = 0 ;
19997 void *argp1 = 0 ;
19998 int res1 = 0 ;
19999 PyObject * obj0 = 0 ;
20000 PyObject * obj1 = 0 ;
20001 PyObject * obj2 = 0 ;
20002 PyObject * obj3 = 0 ;
20003 char * kwnames[] = {
20004 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20005 };
20006
20007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20009 if (!SWIG_IsOK(res1)) {
20010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20011 }
20012 arg1 = reinterpret_cast< wxDC * >(argp1);
20013 arg2 = obj1;
20014 arg3 = obj2;
20015 arg4 = obj3;
20016 {
20017 PyThreadState* __tstate = wxPyBeginAllowThreads();
20018 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20019 wxPyEndAllowThreads(__tstate);
20020 if (PyErr_Occurred()) SWIG_fail;
20021 }
20022 resultobj = result;
20023 return resultobj;
20024 fail:
20025 return NULL;
20026 }
20027
20028
20029 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20030 PyObject *resultobj = 0;
20031 wxDC *arg1 = (wxDC *) 0 ;
20032 PyObject *arg2 = (PyObject *) 0 ;
20033 PyObject *arg3 = (PyObject *) 0 ;
20034 PyObject *arg4 = (PyObject *) 0 ;
20035 PyObject *result = 0 ;
20036 void *argp1 = 0 ;
20037 int res1 = 0 ;
20038 PyObject * obj0 = 0 ;
20039 PyObject * obj1 = 0 ;
20040 PyObject * obj2 = 0 ;
20041 PyObject * obj3 = 0 ;
20042 char * kwnames[] = {
20043 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20044 };
20045
20046 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20047 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20048 if (!SWIG_IsOK(res1)) {
20049 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20050 }
20051 arg1 = reinterpret_cast< wxDC * >(argp1);
20052 arg2 = obj1;
20053 arg3 = obj2;
20054 arg4 = obj3;
20055 {
20056 PyThreadState* __tstate = wxPyBeginAllowThreads();
20057 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20058 wxPyEndAllowThreads(__tstate);
20059 if (PyErr_Occurred()) SWIG_fail;
20060 }
20061 resultobj = result;
20062 return resultobj;
20063 fail:
20064 return NULL;
20065 }
20066
20067
20068 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20069 PyObject *resultobj = 0;
20070 wxDC *arg1 = (wxDC *) 0 ;
20071 PyObject *arg2 = (PyObject *) 0 ;
20072 PyObject *arg3 = (PyObject *) 0 ;
20073 PyObject *arg4 = (PyObject *) 0 ;
20074 PyObject *result = 0 ;
20075 void *argp1 = 0 ;
20076 int res1 = 0 ;
20077 PyObject * obj0 = 0 ;
20078 PyObject * obj1 = 0 ;
20079 PyObject * obj2 = 0 ;
20080 PyObject * obj3 = 0 ;
20081 char * kwnames[] = {
20082 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20083 };
20084
20085 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20086 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20087 if (!SWIG_IsOK(res1)) {
20088 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20089 }
20090 arg1 = reinterpret_cast< wxDC * >(argp1);
20091 arg2 = obj1;
20092 arg3 = obj2;
20093 arg4 = obj3;
20094 {
20095 PyThreadState* __tstate = wxPyBeginAllowThreads();
20096 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20097 wxPyEndAllowThreads(__tstate);
20098 if (PyErr_Occurred()) SWIG_fail;
20099 }
20100 resultobj = result;
20101 return resultobj;
20102 fail:
20103 return NULL;
20104 }
20105
20106
20107 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20108 PyObject *resultobj = 0;
20109 wxDC *arg1 = (wxDC *) 0 ;
20110 PyObject *arg2 = (PyObject *) 0 ;
20111 PyObject *arg3 = (PyObject *) 0 ;
20112 PyObject *arg4 = (PyObject *) 0 ;
20113 PyObject *result = 0 ;
20114 void *argp1 = 0 ;
20115 int res1 = 0 ;
20116 PyObject * obj0 = 0 ;
20117 PyObject * obj1 = 0 ;
20118 PyObject * obj2 = 0 ;
20119 PyObject * obj3 = 0 ;
20120 char * kwnames[] = {
20121 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20122 };
20123
20124 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20125 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20126 if (!SWIG_IsOK(res1)) {
20127 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20128 }
20129 arg1 = reinterpret_cast< wxDC * >(argp1);
20130 arg2 = obj1;
20131 arg3 = obj2;
20132 arg4 = obj3;
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = result;
20140 return resultobj;
20141 fail:
20142 return NULL;
20143 }
20144
20145
20146 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20147 PyObject *resultobj = 0;
20148 wxDC *arg1 = (wxDC *) 0 ;
20149 PyObject *arg2 = (PyObject *) 0 ;
20150 PyObject *arg3 = (PyObject *) 0 ;
20151 PyObject *arg4 = (PyObject *) 0 ;
20152 PyObject *result = 0 ;
20153 void *argp1 = 0 ;
20154 int res1 = 0 ;
20155 PyObject * obj0 = 0 ;
20156 PyObject * obj1 = 0 ;
20157 PyObject * obj2 = 0 ;
20158 PyObject * obj3 = 0 ;
20159 char * kwnames[] = {
20160 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20161 };
20162
20163 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20164 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20165 if (!SWIG_IsOK(res1)) {
20166 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20167 }
20168 arg1 = reinterpret_cast< wxDC * >(argp1);
20169 arg2 = obj1;
20170 arg3 = obj2;
20171 arg4 = obj3;
20172 {
20173 PyThreadState* __tstate = wxPyBeginAllowThreads();
20174 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20175 wxPyEndAllowThreads(__tstate);
20176 if (PyErr_Occurred()) SWIG_fail;
20177 }
20178 resultobj = result;
20179 return resultobj;
20180 fail:
20181 return NULL;
20182 }
20183
20184
20185 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20186 PyObject *resultobj = 0;
20187 wxDC *arg1 = (wxDC *) 0 ;
20188 PyObject *arg2 = (PyObject *) 0 ;
20189 PyObject *arg3 = (PyObject *) 0 ;
20190 PyObject *arg4 = (PyObject *) 0 ;
20191 PyObject *arg5 = (PyObject *) 0 ;
20192 PyObject *result = 0 ;
20193 void *argp1 = 0 ;
20194 int res1 = 0 ;
20195 PyObject * obj0 = 0 ;
20196 PyObject * obj1 = 0 ;
20197 PyObject * obj2 = 0 ;
20198 PyObject * obj3 = 0 ;
20199 PyObject * obj4 = 0 ;
20200 char * kwnames[] = {
20201 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20202 };
20203
20204 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20205 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20206 if (!SWIG_IsOK(res1)) {
20207 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20208 }
20209 arg1 = reinterpret_cast< wxDC * >(argp1);
20210 arg2 = obj1;
20211 arg3 = obj2;
20212 arg4 = obj3;
20213 arg5 = obj4;
20214 {
20215 PyThreadState* __tstate = wxPyBeginAllowThreads();
20216 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20217 wxPyEndAllowThreads(__tstate);
20218 if (PyErr_Occurred()) SWIG_fail;
20219 }
20220 resultobj = result;
20221 return resultobj;
20222 fail:
20223 return NULL;
20224 }
20225
20226
20227 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20228 PyObject *obj;
20229 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20230 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20231 return SWIG_Py_Void();
20232 }
20233
20234 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20235 PyObject *resultobj = 0;
20236 wxMemoryDC *result = 0 ;
20237
20238 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20239 {
20240 if (!wxPyCheckForApp()) SWIG_fail;
20241 PyThreadState* __tstate = wxPyBeginAllowThreads();
20242 result = (wxMemoryDC *)new wxMemoryDC();
20243 wxPyEndAllowThreads(__tstate);
20244 if (PyErr_Occurred()) SWIG_fail;
20245 }
20246 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20247 return resultobj;
20248 fail:
20249 return NULL;
20250 }
20251
20252
20253 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20254 PyObject *resultobj = 0;
20255 wxDC *arg1 = (wxDC *) 0 ;
20256 wxMemoryDC *result = 0 ;
20257 void *argp1 = 0 ;
20258 int res1 = 0 ;
20259 PyObject * obj0 = 0 ;
20260 char * kwnames[] = {
20261 (char *) "oldDC", NULL
20262 };
20263
20264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
20265 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20266 if (!SWIG_IsOK(res1)) {
20267 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
20268 }
20269 arg1 = reinterpret_cast< wxDC * >(argp1);
20270 {
20271 if (!wxPyCheckForApp()) SWIG_fail;
20272 PyThreadState* __tstate = wxPyBeginAllowThreads();
20273 result = (wxMemoryDC *)new wxMemoryDC(arg1);
20274 wxPyEndAllowThreads(__tstate);
20275 if (PyErr_Occurred()) SWIG_fail;
20276 }
20277 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
20278 return resultobj;
20279 fail:
20280 return NULL;
20281 }
20282
20283
20284 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20285 PyObject *resultobj = 0;
20286 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
20287 wxBitmap *arg2 = 0 ;
20288 void *argp1 = 0 ;
20289 int res1 = 0 ;
20290 void *argp2 = 0 ;
20291 int res2 = 0 ;
20292 PyObject * obj0 = 0 ;
20293 PyObject * obj1 = 0 ;
20294 char * kwnames[] = {
20295 (char *) "self",(char *) "bitmap", NULL
20296 };
20297
20298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
20299 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
20300 if (!SWIG_IsOK(res1)) {
20301 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
20302 }
20303 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
20304 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20305 if (!SWIG_IsOK(res2)) {
20306 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20307 }
20308 if (!argp2) {
20309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20310 }
20311 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20312 {
20313 PyThreadState* __tstate = wxPyBeginAllowThreads();
20314 (arg1)->SelectObject((wxBitmap const &)*arg2);
20315 wxPyEndAllowThreads(__tstate);
20316 if (PyErr_Occurred()) SWIG_fail;
20317 }
20318 resultobj = SWIG_Py_Void();
20319 return resultobj;
20320 fail:
20321 return NULL;
20322 }
20323
20324
20325 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20326 PyObject *obj;
20327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20328 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
20329 return SWIG_Py_Void();
20330 }
20331
20332 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20333 return SWIG_Python_InitShadowInstance(args);
20334 }
20335
20336 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20337 PyObject *resultobj = 0;
20338 wxDC *arg1 = (wxDC *) 0 ;
20339 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20340 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20341 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20342 wxBufferedDC *result = 0 ;
20343 void *argp1 = 0 ;
20344 int res1 = 0 ;
20345 void *argp2 = 0 ;
20346 int res2 = 0 ;
20347 int val3 ;
20348 int ecode3 = 0 ;
20349
20350 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
20351 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20352 if (!SWIG_IsOK(res1)) {
20353 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20354 }
20355 arg1 = reinterpret_cast< wxDC * >(argp1);
20356 if (swig_obj[1]) {
20357 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20358 if (!SWIG_IsOK(res2)) {
20359 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20360 }
20361 if (!argp2) {
20362 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20363 }
20364 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20365 }
20366 if (swig_obj[2]) {
20367 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20368 if (!SWIG_IsOK(ecode3)) {
20369 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20370 }
20371 arg3 = static_cast< int >(val3);
20372 }
20373 {
20374 if (!wxPyCheckForApp()) SWIG_fail;
20375 PyThreadState* __tstate = wxPyBeginAllowThreads();
20376 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
20377 wxPyEndAllowThreads(__tstate);
20378 if (PyErr_Occurred()) SWIG_fail;
20379 }
20380 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20381 return resultobj;
20382 fail:
20383 return NULL;
20384 }
20385
20386
20387 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
20388 PyObject *resultobj = 0;
20389 wxDC *arg1 = (wxDC *) 0 ;
20390 wxSize *arg2 = 0 ;
20391 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20392 wxBufferedDC *result = 0 ;
20393 void *argp1 = 0 ;
20394 int res1 = 0 ;
20395 wxSize temp2 ;
20396 int val3 ;
20397 int ecode3 = 0 ;
20398
20399 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
20400 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20401 if (!SWIG_IsOK(res1)) {
20402 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
20403 }
20404 arg1 = reinterpret_cast< wxDC * >(argp1);
20405 {
20406 arg2 = &temp2;
20407 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
20408 }
20409 if (swig_obj[2]) {
20410 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
20411 if (!SWIG_IsOK(ecode3)) {
20412 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
20413 }
20414 arg3 = static_cast< int >(val3);
20415 }
20416 {
20417 if (!wxPyCheckForApp()) SWIG_fail;
20418 PyThreadState* __tstate = wxPyBeginAllowThreads();
20419 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
20420 wxPyEndAllowThreads(__tstate);
20421 if (PyErr_Occurred()) SWIG_fail;
20422 }
20423 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
20424 return resultobj;
20425 fail:
20426 return NULL;
20427 }
20428
20429
20430 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
20431 int argc;
20432 PyObject *argv[4];
20433
20434 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
20435 --argc;
20436 if ((argc >= 1) && (argc <= 3)) {
20437 int _v = 0;
20438 if (argc > 1) {
20439 {
20440 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
20441 _v = SWIG_CheckState(res);
20442 }
20443 if (!_v) goto check_1;
20444 }
20445 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
20446 }
20447 check_1:
20448
20449 if ((argc >= 2) && (argc <= 3)) {
20450 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
20451 }
20452
20453 fail:
20454 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
20455 return NULL;
20456 }
20457
20458
20459 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20460 PyObject *resultobj = 0;
20461 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20462 void *argp1 = 0 ;
20463 int res1 = 0 ;
20464 PyObject *swig_obj[1] ;
20465
20466 if (!args) SWIG_fail;
20467 swig_obj[0] = args;
20468 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
20469 if (!SWIG_IsOK(res1)) {
20470 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20471 }
20472 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20473 {
20474 PyThreadState* __tstate = wxPyBeginAllowThreads();
20475 delete arg1;
20476
20477 wxPyEndAllowThreads(__tstate);
20478 if (PyErr_Occurred()) SWIG_fail;
20479 }
20480 resultobj = SWIG_Py_Void();
20481 return resultobj;
20482 fail:
20483 return NULL;
20484 }
20485
20486
20487 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20488 PyObject *resultobj = 0;
20489 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
20490 void *argp1 = 0 ;
20491 int res1 = 0 ;
20492 PyObject *swig_obj[1] ;
20493
20494 if (!args) SWIG_fail;
20495 swig_obj[0] = args;
20496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
20497 if (!SWIG_IsOK(res1)) {
20498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
20499 }
20500 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
20501 {
20502 PyThreadState* __tstate = wxPyBeginAllowThreads();
20503 (arg1)->UnMask();
20504 wxPyEndAllowThreads(__tstate);
20505 if (PyErr_Occurred()) SWIG_fail;
20506 }
20507 resultobj = SWIG_Py_Void();
20508 return resultobj;
20509 fail:
20510 return NULL;
20511 }
20512
20513
20514 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20515 PyObject *obj;
20516 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20517 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
20518 return SWIG_Py_Void();
20519 }
20520
20521 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20522 return SWIG_Python_InitShadowInstance(args);
20523 }
20524
20525 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20526 PyObject *resultobj = 0;
20527 wxWindow *arg1 = (wxWindow *) 0 ;
20528 wxBitmap const &arg2_defvalue = wxNullBitmap ;
20529 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
20530 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
20531 wxBufferedPaintDC *result = 0 ;
20532 void *argp1 = 0 ;
20533 int res1 = 0 ;
20534 void *argp2 = 0 ;
20535 int res2 = 0 ;
20536 int val3 ;
20537 int ecode3 = 0 ;
20538 PyObject * obj0 = 0 ;
20539 PyObject * obj1 = 0 ;
20540 PyObject * obj2 = 0 ;
20541 char * kwnames[] = {
20542 (char *) "window",(char *) "buffer",(char *) "style", NULL
20543 };
20544
20545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20547 if (!SWIG_IsOK(res1)) {
20548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20549 }
20550 arg1 = reinterpret_cast< wxWindow * >(argp1);
20551 if (obj1) {
20552 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
20553 if (!SWIG_IsOK(res2)) {
20554 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20555 }
20556 if (!argp2) {
20557 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
20558 }
20559 arg2 = reinterpret_cast< wxBitmap * >(argp2);
20560 }
20561 if (obj2) {
20562 ecode3 = SWIG_AsVal_int(obj2, &val3);
20563 if (!SWIG_IsOK(ecode3)) {
20564 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
20565 }
20566 arg3 = static_cast< int >(val3);
20567 }
20568 {
20569 if (!wxPyCheckForApp()) SWIG_fail;
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
20576 return resultobj;
20577 fail:
20578 return NULL;
20579 }
20580
20581
20582 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20583 PyObject *obj;
20584 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20585 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
20586 return SWIG_Py_Void();
20587 }
20588
20589 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20590 return SWIG_Python_InitShadowInstance(args);
20591 }
20592
20593 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20594 PyObject *resultobj = 0;
20595 wxScreenDC *result = 0 ;
20596
20597 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
20598 {
20599 if (!wxPyCheckForApp()) SWIG_fail;
20600 PyThreadState* __tstate = wxPyBeginAllowThreads();
20601 result = (wxScreenDC *)new wxScreenDC();
20602 wxPyEndAllowThreads(__tstate);
20603 if (PyErr_Occurred()) SWIG_fail;
20604 }
20605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
20606 return resultobj;
20607 fail:
20608 return NULL;
20609 }
20610
20611
20612 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20613 PyObject *resultobj = 0;
20614 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20615 wxWindow *arg2 = (wxWindow *) 0 ;
20616 bool result;
20617 void *argp1 = 0 ;
20618 int res1 = 0 ;
20619 void *argp2 = 0 ;
20620 int res2 = 0 ;
20621 PyObject * obj0 = 0 ;
20622 PyObject * obj1 = 0 ;
20623 char * kwnames[] = {
20624 (char *) "self",(char *) "window", NULL
20625 };
20626
20627 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
20628 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20629 if (!SWIG_IsOK(res1)) {
20630 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20631 }
20632 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20633 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
20634 if (!SWIG_IsOK(res2)) {
20635 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
20636 }
20637 arg2 = reinterpret_cast< wxWindow * >(argp2);
20638 {
20639 PyThreadState* __tstate = wxPyBeginAllowThreads();
20640 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20641 wxPyEndAllowThreads(__tstate);
20642 if (PyErr_Occurred()) SWIG_fail;
20643 }
20644 {
20645 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20646 }
20647 return resultobj;
20648 fail:
20649 return NULL;
20650 }
20651
20652
20653 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20654 PyObject *resultobj = 0;
20655 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20656 wxRect *arg2 = (wxRect *) NULL ;
20657 bool result;
20658 void *argp1 = 0 ;
20659 int res1 = 0 ;
20660 void *argp2 = 0 ;
20661 int res2 = 0 ;
20662 PyObject * obj0 = 0 ;
20663 PyObject * obj1 = 0 ;
20664 char * kwnames[] = {
20665 (char *) "self",(char *) "rect", NULL
20666 };
20667
20668 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
20669 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20670 if (!SWIG_IsOK(res1)) {
20671 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20672 }
20673 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20674 if (obj1) {
20675 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
20676 if (!SWIG_IsOK(res2)) {
20677 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
20678 }
20679 arg2 = reinterpret_cast< wxRect * >(argp2);
20680 }
20681 {
20682 PyThreadState* __tstate = wxPyBeginAllowThreads();
20683 result = (bool)(arg1)->StartDrawingOnTop(arg2);
20684 wxPyEndAllowThreads(__tstate);
20685 if (PyErr_Occurred()) SWIG_fail;
20686 }
20687 {
20688 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20689 }
20690 return resultobj;
20691 fail:
20692 return NULL;
20693 }
20694
20695
20696 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20697 PyObject *resultobj = 0;
20698 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
20699 bool result;
20700 void *argp1 = 0 ;
20701 int res1 = 0 ;
20702 PyObject *swig_obj[1] ;
20703
20704 if (!args) SWIG_fail;
20705 swig_obj[0] = args;
20706 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
20707 if (!SWIG_IsOK(res1)) {
20708 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
20709 }
20710 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
20711 {
20712 PyThreadState* __tstate = wxPyBeginAllowThreads();
20713 result = (bool)(arg1)->EndDrawingOnTop();
20714 wxPyEndAllowThreads(__tstate);
20715 if (PyErr_Occurred()) SWIG_fail;
20716 }
20717 {
20718 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
20719 }
20720 return resultobj;
20721 fail:
20722 return NULL;
20723 }
20724
20725
20726 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20727 PyObject *obj;
20728 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20729 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
20730 return SWIG_Py_Void();
20731 }
20732
20733 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20734 return SWIG_Python_InitShadowInstance(args);
20735 }
20736
20737 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20738 PyObject *resultobj = 0;
20739 wxWindow *arg1 = (wxWindow *) 0 ;
20740 wxClientDC *result = 0 ;
20741 void *argp1 = 0 ;
20742 int res1 = 0 ;
20743 PyObject * obj0 = 0 ;
20744 char * kwnames[] = {
20745 (char *) "win", NULL
20746 };
20747
20748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
20749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20750 if (!SWIG_IsOK(res1)) {
20751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20752 }
20753 arg1 = reinterpret_cast< wxWindow * >(argp1);
20754 {
20755 if (!wxPyCheckForApp()) SWIG_fail;
20756 PyThreadState* __tstate = wxPyBeginAllowThreads();
20757 result = (wxClientDC *)new wxClientDC(arg1);
20758 wxPyEndAllowThreads(__tstate);
20759 if (PyErr_Occurred()) SWIG_fail;
20760 }
20761 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
20762 return resultobj;
20763 fail:
20764 return NULL;
20765 }
20766
20767
20768 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20769 PyObject *obj;
20770 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20771 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
20772 return SWIG_Py_Void();
20773 }
20774
20775 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20776 return SWIG_Python_InitShadowInstance(args);
20777 }
20778
20779 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20780 PyObject *resultobj = 0;
20781 wxWindow *arg1 = (wxWindow *) 0 ;
20782 wxPaintDC *result = 0 ;
20783 void *argp1 = 0 ;
20784 int res1 = 0 ;
20785 PyObject * obj0 = 0 ;
20786 char * kwnames[] = {
20787 (char *) "win", NULL
20788 };
20789
20790 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
20791 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20792 if (!SWIG_IsOK(res1)) {
20793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20794 }
20795 arg1 = reinterpret_cast< wxWindow * >(argp1);
20796 {
20797 if (!wxPyCheckForApp()) SWIG_fail;
20798 PyThreadState* __tstate = wxPyBeginAllowThreads();
20799 result = (wxPaintDC *)new wxPaintDC(arg1);
20800 wxPyEndAllowThreads(__tstate);
20801 if (PyErr_Occurred()) SWIG_fail;
20802 }
20803 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
20804 return resultobj;
20805 fail:
20806 return NULL;
20807 }
20808
20809
20810 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20811 PyObject *obj;
20812 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20813 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
20814 return SWIG_Py_Void();
20815 }
20816
20817 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20818 return SWIG_Python_InitShadowInstance(args);
20819 }
20820
20821 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20822 PyObject *resultobj = 0;
20823 wxWindow *arg1 = (wxWindow *) 0 ;
20824 wxWindowDC *result = 0 ;
20825 void *argp1 = 0 ;
20826 int res1 = 0 ;
20827 PyObject * obj0 = 0 ;
20828 char * kwnames[] = {
20829 (char *) "win", NULL
20830 };
20831
20832 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
20833 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
20834 if (!SWIG_IsOK(res1)) {
20835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
20836 }
20837 arg1 = reinterpret_cast< wxWindow * >(argp1);
20838 {
20839 if (!wxPyCheckForApp()) SWIG_fail;
20840 PyThreadState* __tstate = wxPyBeginAllowThreads();
20841 result = (wxWindowDC *)new wxWindowDC(arg1);
20842 wxPyEndAllowThreads(__tstate);
20843 if (PyErr_Occurred()) SWIG_fail;
20844 }
20845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
20846 return resultobj;
20847 fail:
20848 return NULL;
20849 }
20850
20851
20852 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20853 PyObject *obj;
20854 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20855 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
20856 return SWIG_Py_Void();
20857 }
20858
20859 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20860 return SWIG_Python_InitShadowInstance(args);
20861 }
20862
20863 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20864 PyObject *resultobj = 0;
20865 wxDC *arg1 = 0 ;
20866 bool arg2 ;
20867 wxMirrorDC *result = 0 ;
20868 void *argp1 = 0 ;
20869 int res1 = 0 ;
20870 bool val2 ;
20871 int ecode2 = 0 ;
20872 PyObject * obj0 = 0 ;
20873 PyObject * obj1 = 0 ;
20874 char * kwnames[] = {
20875 (char *) "dc",(char *) "mirror", NULL
20876 };
20877
20878 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
20879 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
20880 if (!SWIG_IsOK(res1)) {
20881 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20882 }
20883 if (!argp1) {
20884 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
20885 }
20886 arg1 = reinterpret_cast< wxDC * >(argp1);
20887 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20888 if (!SWIG_IsOK(ecode2)) {
20889 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
20890 }
20891 arg2 = static_cast< bool >(val2);
20892 {
20893 if (!wxPyCheckForApp()) SWIG_fail;
20894 PyThreadState* __tstate = wxPyBeginAllowThreads();
20895 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
20896 wxPyEndAllowThreads(__tstate);
20897 if (PyErr_Occurred()) SWIG_fail;
20898 }
20899 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
20900 return resultobj;
20901 fail:
20902 return NULL;
20903 }
20904
20905
20906 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20907 PyObject *obj;
20908 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20909 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
20910 return SWIG_Py_Void();
20911 }
20912
20913 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20914 return SWIG_Python_InitShadowInstance(args);
20915 }
20916
20917 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20918 PyObject *resultobj = 0;
20919 wxPrintData *arg1 = 0 ;
20920 wxPostScriptDC *result = 0 ;
20921 void *argp1 = 0 ;
20922 int res1 = 0 ;
20923 PyObject * obj0 = 0 ;
20924 char * kwnames[] = {
20925 (char *) "printData", NULL
20926 };
20927
20928 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
20929 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
20930 if (!SWIG_IsOK(res1)) {
20931 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20932 }
20933 if (!argp1) {
20934 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
20935 }
20936 arg1 = reinterpret_cast< wxPrintData * >(argp1);
20937 {
20938 if (!wxPyCheckForApp()) SWIG_fail;
20939 PyThreadState* __tstate = wxPyBeginAllowThreads();
20940 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
20941 wxPyEndAllowThreads(__tstate);
20942 if (PyErr_Occurred()) SWIG_fail;
20943 }
20944 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
20945 return resultobj;
20946 fail:
20947 return NULL;
20948 }
20949
20950
20951 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20952 PyObject *resultobj = 0;
20953 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20954 wxPrintData *result = 0 ;
20955 void *argp1 = 0 ;
20956 int res1 = 0 ;
20957 PyObject *swig_obj[1] ;
20958
20959 if (!args) SWIG_fail;
20960 swig_obj[0] = args;
20961 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20962 if (!SWIG_IsOK(res1)) {
20963 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
20964 }
20965 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
20966 {
20967 PyThreadState* __tstate = wxPyBeginAllowThreads();
20968 {
20969 wxPrintData &_result_ref = (arg1)->GetPrintData();
20970 result = (wxPrintData *) &_result_ref;
20971 }
20972 wxPyEndAllowThreads(__tstate);
20973 if (PyErr_Occurred()) SWIG_fail;
20974 }
20975 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
20976 return resultobj;
20977 fail:
20978 return NULL;
20979 }
20980
20981
20982 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20983 PyObject *resultobj = 0;
20984 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
20985 wxPrintData *arg2 = 0 ;
20986 void *argp1 = 0 ;
20987 int res1 = 0 ;
20988 void *argp2 = 0 ;
20989 int res2 = 0 ;
20990 PyObject * obj0 = 0 ;
20991 PyObject * obj1 = 0 ;
20992 char * kwnames[] = {
20993 (char *) "self",(char *) "data", NULL
20994 };
20995
20996 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
20997 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
20998 if (!SWIG_IsOK(res1)) {
20999 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21000 }
21001 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21002 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21003 if (!SWIG_IsOK(res2)) {
21004 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21005 }
21006 if (!argp2) {
21007 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21008 }
21009 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21010 {
21011 PyThreadState* __tstate = wxPyBeginAllowThreads();
21012 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21013 wxPyEndAllowThreads(__tstate);
21014 if (PyErr_Occurred()) SWIG_fail;
21015 }
21016 resultobj = SWIG_Py_Void();
21017 return resultobj;
21018 fail:
21019 return NULL;
21020 }
21021
21022
21023 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21024 PyObject *resultobj = 0;
21025 int arg1 ;
21026 int val1 ;
21027 int ecode1 = 0 ;
21028 PyObject * obj0 = 0 ;
21029 char * kwnames[] = {
21030 (char *) "ppi", NULL
21031 };
21032
21033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21034 ecode1 = SWIG_AsVal_int(obj0, &val1);
21035 if (!SWIG_IsOK(ecode1)) {
21036 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21037 }
21038 arg1 = static_cast< int >(val1);
21039 {
21040 PyThreadState* __tstate = wxPyBeginAllowThreads();
21041 wxPostScriptDC::SetResolution(arg1);
21042 wxPyEndAllowThreads(__tstate);
21043 if (PyErr_Occurred()) SWIG_fail;
21044 }
21045 resultobj = SWIG_Py_Void();
21046 return resultobj;
21047 fail:
21048 return NULL;
21049 }
21050
21051
21052 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21053 PyObject *resultobj = 0;
21054 int result;
21055
21056 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21057 {
21058 PyThreadState* __tstate = wxPyBeginAllowThreads();
21059 result = (int)wxPostScriptDC::GetResolution();
21060 wxPyEndAllowThreads(__tstate);
21061 if (PyErr_Occurred()) SWIG_fail;
21062 }
21063 resultobj = SWIG_From_int(static_cast< int >(result));
21064 return resultobj;
21065 fail:
21066 return NULL;
21067 }
21068
21069
21070 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21071 PyObject *obj;
21072 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21073 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21074 return SWIG_Py_Void();
21075 }
21076
21077 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21078 return SWIG_Python_InitShadowInstance(args);
21079 }
21080
21081 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21082 PyObject *resultobj = 0;
21083 wxString const &arg1_defvalue = wxPyEmptyString ;
21084 wxString *arg1 = (wxString *) &arg1_defvalue ;
21085 wxMetaFile *result = 0 ;
21086 bool temp1 = false ;
21087 PyObject * obj0 = 0 ;
21088 char * kwnames[] = {
21089 (char *) "filename", NULL
21090 };
21091
21092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21093 if (obj0) {
21094 {
21095 arg1 = wxString_in_helper(obj0);
21096 if (arg1 == NULL) SWIG_fail;
21097 temp1 = true;
21098 }
21099 }
21100 {
21101 if (!wxPyCheckForApp()) SWIG_fail;
21102 PyThreadState* __tstate = wxPyBeginAllowThreads();
21103 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21104 wxPyEndAllowThreads(__tstate);
21105 if (PyErr_Occurred()) SWIG_fail;
21106 }
21107 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21108 {
21109 if (temp1)
21110 delete arg1;
21111 }
21112 return resultobj;
21113 fail:
21114 {
21115 if (temp1)
21116 delete arg1;
21117 }
21118 return NULL;
21119 }
21120
21121
21122 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21123 PyObject *obj;
21124 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21125 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
21126 return SWIG_Py_Void();
21127 }
21128
21129 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21130 return SWIG_Python_InitShadowInstance(args);
21131 }
21132
21133 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21134 PyObject *resultobj = 0;
21135 wxString const &arg1_defvalue = wxPyEmptyString ;
21136 wxString *arg1 = (wxString *) &arg1_defvalue ;
21137 int arg2 = (int) 0 ;
21138 int arg3 = (int) 0 ;
21139 wxString const &arg4_defvalue = wxPyEmptyString ;
21140 wxString *arg4 = (wxString *) &arg4_defvalue ;
21141 wxMetaFileDC *result = 0 ;
21142 bool temp1 = false ;
21143 int val2 ;
21144 int ecode2 = 0 ;
21145 int val3 ;
21146 int ecode3 = 0 ;
21147 bool temp4 = false ;
21148 PyObject * obj0 = 0 ;
21149 PyObject * obj1 = 0 ;
21150 PyObject * obj2 = 0 ;
21151 PyObject * obj3 = 0 ;
21152 char * kwnames[] = {
21153 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
21154 };
21155
21156 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21157 if (obj0) {
21158 {
21159 arg1 = wxString_in_helper(obj0);
21160 if (arg1 == NULL) SWIG_fail;
21161 temp1 = true;
21162 }
21163 }
21164 if (obj1) {
21165 ecode2 = SWIG_AsVal_int(obj1, &val2);
21166 if (!SWIG_IsOK(ecode2)) {
21167 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
21168 }
21169 arg2 = static_cast< int >(val2);
21170 }
21171 if (obj2) {
21172 ecode3 = SWIG_AsVal_int(obj2, &val3);
21173 if (!SWIG_IsOK(ecode3)) {
21174 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
21175 }
21176 arg3 = static_cast< int >(val3);
21177 }
21178 if (obj3) {
21179 {
21180 arg4 = wxString_in_helper(obj3);
21181 if (arg4 == NULL) SWIG_fail;
21182 temp4 = true;
21183 }
21184 }
21185 {
21186 if (!wxPyCheckForApp()) SWIG_fail;
21187 PyThreadState* __tstate = wxPyBeginAllowThreads();
21188 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
21189 wxPyEndAllowThreads(__tstate);
21190 if (PyErr_Occurred()) SWIG_fail;
21191 }
21192 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
21193 {
21194 if (temp1)
21195 delete arg1;
21196 }
21197 {
21198 if (temp4)
21199 delete arg4;
21200 }
21201 return resultobj;
21202 fail:
21203 {
21204 if (temp1)
21205 delete arg1;
21206 }
21207 {
21208 if (temp4)
21209 delete arg4;
21210 }
21211 return NULL;
21212 }
21213
21214
21215 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21216 PyObject *obj;
21217 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21218 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
21219 return SWIG_Py_Void();
21220 }
21221
21222 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21223 return SWIG_Python_InitShadowInstance(args);
21224 }
21225
21226 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21227 PyObject *resultobj = 0;
21228 wxPrintData *arg1 = 0 ;
21229 wxPrinterDC *result = 0 ;
21230 void *argp1 = 0 ;
21231 int res1 = 0 ;
21232 PyObject * obj0 = 0 ;
21233 char * kwnames[] = {
21234 (char *) "printData", NULL
21235 };
21236
21237 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
21238 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21239 if (!SWIG_IsOK(res1)) {
21240 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21241 }
21242 if (!argp1) {
21243 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21244 }
21245 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21246 {
21247 if (!wxPyCheckForApp()) SWIG_fail;
21248 PyThreadState* __tstate = wxPyBeginAllowThreads();
21249 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
21250 wxPyEndAllowThreads(__tstate);
21251 if (PyErr_Occurred()) SWIG_fail;
21252 }
21253 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
21254 return resultobj;
21255 fail:
21256 return NULL;
21257 }
21258
21259
21260 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21261 PyObject *obj;
21262 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21263 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
21264 return SWIG_Py_Void();
21265 }
21266
21267 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21268 return SWIG_Python_InitShadowInstance(args);
21269 }
21270
21271 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21272 PyObject *resultobj = 0;
21273 int arg1 ;
21274 int arg2 ;
21275 int arg3 = (int) true ;
21276 int arg4 = (int) 1 ;
21277 wxImageList *result = 0 ;
21278 int val1 ;
21279 int ecode1 = 0 ;
21280 int val2 ;
21281 int ecode2 = 0 ;
21282 int val3 ;
21283 int ecode3 = 0 ;
21284 int val4 ;
21285 int ecode4 = 0 ;
21286 PyObject * obj0 = 0 ;
21287 PyObject * obj1 = 0 ;
21288 PyObject * obj2 = 0 ;
21289 PyObject * obj3 = 0 ;
21290 char * kwnames[] = {
21291 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
21292 };
21293
21294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
21295 ecode1 = SWIG_AsVal_int(obj0, &val1);
21296 if (!SWIG_IsOK(ecode1)) {
21297 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
21298 }
21299 arg1 = static_cast< int >(val1);
21300 ecode2 = SWIG_AsVal_int(obj1, &val2);
21301 if (!SWIG_IsOK(ecode2)) {
21302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
21303 }
21304 arg2 = static_cast< int >(val2);
21305 if (obj2) {
21306 ecode3 = SWIG_AsVal_int(obj2, &val3);
21307 if (!SWIG_IsOK(ecode3)) {
21308 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
21309 }
21310 arg3 = static_cast< int >(val3);
21311 }
21312 if (obj3) {
21313 ecode4 = SWIG_AsVal_int(obj3, &val4);
21314 if (!SWIG_IsOK(ecode4)) {
21315 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
21316 }
21317 arg4 = static_cast< int >(val4);
21318 }
21319 {
21320 if (!wxPyCheckForApp()) SWIG_fail;
21321 PyThreadState* __tstate = wxPyBeginAllowThreads();
21322 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
21323 wxPyEndAllowThreads(__tstate);
21324 if (PyErr_Occurred()) SWIG_fail;
21325 }
21326 {
21327 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
21328 }
21329 return resultobj;
21330 fail:
21331 return NULL;
21332 }
21333
21334
21335 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21336 PyObject *resultobj = 0;
21337 wxImageList *arg1 = (wxImageList *) 0 ;
21338 void *argp1 = 0 ;
21339 int res1 = 0 ;
21340 PyObject *swig_obj[1] ;
21341
21342 if (!args) SWIG_fail;
21343 swig_obj[0] = args;
21344 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
21345 if (!SWIG_IsOK(res1)) {
21346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
21347 }
21348 arg1 = reinterpret_cast< wxImageList * >(argp1);
21349 {
21350 PyThreadState* __tstate = wxPyBeginAllowThreads();
21351 delete arg1;
21352
21353 wxPyEndAllowThreads(__tstate);
21354 if (PyErr_Occurred()) SWIG_fail;
21355 }
21356 resultobj = SWIG_Py_Void();
21357 return resultobj;
21358 fail:
21359 return NULL;
21360 }
21361
21362
21363 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21364 PyObject *resultobj = 0;
21365 wxImageList *arg1 = (wxImageList *) 0 ;
21366 wxBitmap *arg2 = 0 ;
21367 wxBitmap const &arg3_defvalue = wxNullBitmap ;
21368 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
21369 int result;
21370 void *argp1 = 0 ;
21371 int res1 = 0 ;
21372 void *argp2 = 0 ;
21373 int res2 = 0 ;
21374 void *argp3 = 0 ;
21375 int res3 = 0 ;
21376 PyObject * obj0 = 0 ;
21377 PyObject * obj1 = 0 ;
21378 PyObject * obj2 = 0 ;
21379 char * kwnames[] = {
21380 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
21381 };
21382
21383 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21384 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21385 if (!SWIG_IsOK(res1)) {
21386 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
21387 }
21388 arg1 = reinterpret_cast< wxImageList * >(argp1);
21389 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21390 if (!SWIG_IsOK(res2)) {
21391 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21392 }
21393 if (!argp2) {
21394 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21395 }
21396 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21397 if (obj2) {
21398 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21399 if (!SWIG_IsOK(res3)) {
21400 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21401 }
21402 if (!argp3) {
21403 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21404 }
21405 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21406 }
21407 {
21408 PyThreadState* __tstate = wxPyBeginAllowThreads();
21409 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
21410 wxPyEndAllowThreads(__tstate);
21411 if (PyErr_Occurred()) SWIG_fail;
21412 }
21413 resultobj = SWIG_From_int(static_cast< int >(result));
21414 return resultobj;
21415 fail:
21416 return NULL;
21417 }
21418
21419
21420 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21421 PyObject *resultobj = 0;
21422 wxImageList *arg1 = (wxImageList *) 0 ;
21423 wxBitmap *arg2 = 0 ;
21424 wxColour *arg3 = 0 ;
21425 int result;
21426 void *argp1 = 0 ;
21427 int res1 = 0 ;
21428 void *argp2 = 0 ;
21429 int res2 = 0 ;
21430 wxColour temp3 ;
21431 PyObject * obj0 = 0 ;
21432 PyObject * obj1 = 0 ;
21433 PyObject * obj2 = 0 ;
21434 char * kwnames[] = {
21435 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
21436 };
21437
21438 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21439 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21440 if (!SWIG_IsOK(res1)) {
21441 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
21442 }
21443 arg1 = reinterpret_cast< wxImageList * >(argp1);
21444 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21445 if (!SWIG_IsOK(res2)) {
21446 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21447 }
21448 if (!argp2) {
21449 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21450 }
21451 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21452 {
21453 arg3 = &temp3;
21454 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
21455 }
21456 {
21457 PyThreadState* __tstate = wxPyBeginAllowThreads();
21458 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
21459 wxPyEndAllowThreads(__tstate);
21460 if (PyErr_Occurred()) SWIG_fail;
21461 }
21462 resultobj = SWIG_From_int(static_cast< int >(result));
21463 return resultobj;
21464 fail:
21465 return NULL;
21466 }
21467
21468
21469 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21470 PyObject *resultobj = 0;
21471 wxImageList *arg1 = (wxImageList *) 0 ;
21472 wxIcon *arg2 = 0 ;
21473 int result;
21474 void *argp1 = 0 ;
21475 int res1 = 0 ;
21476 void *argp2 = 0 ;
21477 int res2 = 0 ;
21478 PyObject * obj0 = 0 ;
21479 PyObject * obj1 = 0 ;
21480 char * kwnames[] = {
21481 (char *) "self",(char *) "icon", NULL
21482 };
21483
21484 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21485 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21486 if (!SWIG_IsOK(res1)) {
21487 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
21488 }
21489 arg1 = reinterpret_cast< wxImageList * >(argp1);
21490 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
21491 if (!SWIG_IsOK(res2)) {
21492 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21493 }
21494 if (!argp2) {
21495 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
21496 }
21497 arg2 = reinterpret_cast< wxIcon * >(argp2);
21498 {
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 result = (int)(arg1)->Add((wxIcon const &)*arg2);
21501 wxPyEndAllowThreads(__tstate);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 resultobj = SWIG_From_int(static_cast< int >(result));
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21512 PyObject *resultobj = 0;
21513 wxImageList *arg1 = (wxImageList *) 0 ;
21514 int arg2 ;
21515 SwigValueWrapper<wxBitmap > result;
21516 void *argp1 = 0 ;
21517 int res1 = 0 ;
21518 int val2 ;
21519 int ecode2 = 0 ;
21520 PyObject * obj0 = 0 ;
21521 PyObject * obj1 = 0 ;
21522 char * kwnames[] = {
21523 (char *) "self",(char *) "index", NULL
21524 };
21525
21526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
21527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21528 if (!SWIG_IsOK(res1)) {
21529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
21530 }
21531 arg1 = reinterpret_cast< wxImageList * >(argp1);
21532 ecode2 = SWIG_AsVal_int(obj1, &val2);
21533 if (!SWIG_IsOK(ecode2)) {
21534 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
21535 }
21536 arg2 = static_cast< int >(val2);
21537 {
21538 PyThreadState* __tstate = wxPyBeginAllowThreads();
21539 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
21540 wxPyEndAllowThreads(__tstate);
21541 if (PyErr_Occurred()) SWIG_fail;
21542 }
21543 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
21544 return resultobj;
21545 fail:
21546 return NULL;
21547 }
21548
21549
21550 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21551 PyObject *resultobj = 0;
21552 wxImageList *arg1 = (wxImageList *) 0 ;
21553 int arg2 ;
21554 wxIcon result;
21555 void *argp1 = 0 ;
21556 int res1 = 0 ;
21557 int val2 ;
21558 int ecode2 = 0 ;
21559 PyObject * obj0 = 0 ;
21560 PyObject * obj1 = 0 ;
21561 char * kwnames[] = {
21562 (char *) "self",(char *) "index", NULL
21563 };
21564
21565 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
21566 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21567 if (!SWIG_IsOK(res1)) {
21568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
21569 }
21570 arg1 = reinterpret_cast< wxImageList * >(argp1);
21571 ecode2 = SWIG_AsVal_int(obj1, &val2);
21572 if (!SWIG_IsOK(ecode2)) {
21573 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
21574 }
21575 arg2 = static_cast< int >(val2);
21576 {
21577 PyThreadState* __tstate = wxPyBeginAllowThreads();
21578 result = ((wxImageList const *)arg1)->GetIcon(arg2);
21579 wxPyEndAllowThreads(__tstate);
21580 if (PyErr_Occurred()) SWIG_fail;
21581 }
21582 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
21583 return resultobj;
21584 fail:
21585 return NULL;
21586 }
21587
21588
21589 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21590 PyObject *resultobj = 0;
21591 wxImageList *arg1 = (wxImageList *) 0 ;
21592 int arg2 ;
21593 wxBitmap *arg3 = 0 ;
21594 bool result;
21595 void *argp1 = 0 ;
21596 int res1 = 0 ;
21597 int val2 ;
21598 int ecode2 = 0 ;
21599 void *argp3 = 0 ;
21600 int res3 = 0 ;
21601 PyObject * obj0 = 0 ;
21602 PyObject * obj1 = 0 ;
21603 PyObject * obj2 = 0 ;
21604 char * kwnames[] = {
21605 (char *) "self",(char *) "index",(char *) "bitmap", NULL
21606 };
21607
21608 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_Replace",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21609 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21610 if (!SWIG_IsOK(res1)) {
21611 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
21612 }
21613 arg1 = reinterpret_cast< wxImageList * >(argp1);
21614 ecode2 = SWIG_AsVal_int(obj1, &val2);
21615 if (!SWIG_IsOK(ecode2)) {
21616 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
21617 }
21618 arg2 = static_cast< int >(val2);
21619 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
21620 if (!SWIG_IsOK(res3)) {
21621 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21622 }
21623 if (!argp3) {
21624 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
21625 }
21626 arg3 = reinterpret_cast< wxBitmap * >(argp3);
21627 {
21628 PyThreadState* __tstate = wxPyBeginAllowThreads();
21629 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3);
21630 wxPyEndAllowThreads(__tstate);
21631 if (PyErr_Occurred()) SWIG_fail;
21632 }
21633 {
21634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21635 }
21636 return resultobj;
21637 fail:
21638 return NULL;
21639 }
21640
21641
21642 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21643 PyObject *resultobj = 0;
21644 wxImageList *arg1 = (wxImageList *) 0 ;
21645 int arg2 ;
21646 wxDC *arg3 = 0 ;
21647 int arg4 ;
21648 int arg5 ;
21649 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
21650 bool arg7 = (bool) (bool)false ;
21651 bool result;
21652 void *argp1 = 0 ;
21653 int res1 = 0 ;
21654 int val2 ;
21655 int ecode2 = 0 ;
21656 void *argp3 = 0 ;
21657 int res3 = 0 ;
21658 int val4 ;
21659 int ecode4 = 0 ;
21660 int val5 ;
21661 int ecode5 = 0 ;
21662 int val6 ;
21663 int ecode6 = 0 ;
21664 bool val7 ;
21665 int ecode7 = 0 ;
21666 PyObject * obj0 = 0 ;
21667 PyObject * obj1 = 0 ;
21668 PyObject * obj2 = 0 ;
21669 PyObject * obj3 = 0 ;
21670 PyObject * obj4 = 0 ;
21671 PyObject * obj5 = 0 ;
21672 PyObject * obj6 = 0 ;
21673 char * kwnames[] = {
21674 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
21675 };
21676
21677 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
21678 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21679 if (!SWIG_IsOK(res1)) {
21680 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
21681 }
21682 arg1 = reinterpret_cast< wxImageList * >(argp1);
21683 ecode2 = SWIG_AsVal_int(obj1, &val2);
21684 if (!SWIG_IsOK(ecode2)) {
21685 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
21686 }
21687 arg2 = static_cast< int >(val2);
21688 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
21689 if (!SWIG_IsOK(res3)) {
21690 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21691 }
21692 if (!argp3) {
21693 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
21694 }
21695 arg3 = reinterpret_cast< wxDC * >(argp3);
21696 ecode4 = SWIG_AsVal_int(obj3, &val4);
21697 if (!SWIG_IsOK(ecode4)) {
21698 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
21699 }
21700 arg4 = static_cast< int >(val4);
21701 ecode5 = SWIG_AsVal_int(obj4, &val5);
21702 if (!SWIG_IsOK(ecode5)) {
21703 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
21704 }
21705 arg5 = static_cast< int >(val5);
21706 if (obj5) {
21707 ecode6 = SWIG_AsVal_int(obj5, &val6);
21708 if (!SWIG_IsOK(ecode6)) {
21709 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
21710 }
21711 arg6 = static_cast< int >(val6);
21712 }
21713 if (obj6) {
21714 ecode7 = SWIG_AsVal_bool(obj6, &val7);
21715 if (!SWIG_IsOK(ecode7)) {
21716 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
21717 }
21718 arg7 = static_cast< bool >(val7);
21719 }
21720 {
21721 PyThreadState* __tstate = wxPyBeginAllowThreads();
21722 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
21723 wxPyEndAllowThreads(__tstate);
21724 if (PyErr_Occurred()) SWIG_fail;
21725 }
21726 {
21727 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21728 }
21729 return resultobj;
21730 fail:
21731 return NULL;
21732 }
21733
21734
21735 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21736 PyObject *resultobj = 0;
21737 wxImageList *arg1 = (wxImageList *) 0 ;
21738 int result;
21739 void *argp1 = 0 ;
21740 int res1 = 0 ;
21741 PyObject *swig_obj[1] ;
21742
21743 if (!args) SWIG_fail;
21744 swig_obj[0] = args;
21745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21746 if (!SWIG_IsOK(res1)) {
21747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
21748 }
21749 arg1 = reinterpret_cast< wxImageList * >(argp1);
21750 {
21751 PyThreadState* __tstate = wxPyBeginAllowThreads();
21752 result = (int)(arg1)->GetImageCount();
21753 wxPyEndAllowThreads(__tstate);
21754 if (PyErr_Occurred()) SWIG_fail;
21755 }
21756 resultobj = SWIG_From_int(static_cast< int >(result));
21757 return resultobj;
21758 fail:
21759 return NULL;
21760 }
21761
21762
21763 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21764 PyObject *resultobj = 0;
21765 wxImageList *arg1 = (wxImageList *) 0 ;
21766 int arg2 ;
21767 bool result;
21768 void *argp1 = 0 ;
21769 int res1 = 0 ;
21770 int val2 ;
21771 int ecode2 = 0 ;
21772 PyObject * obj0 = 0 ;
21773 PyObject * obj1 = 0 ;
21774 char * kwnames[] = {
21775 (char *) "self",(char *) "index", NULL
21776 };
21777
21778 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
21779 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21780 if (!SWIG_IsOK(res1)) {
21781 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
21782 }
21783 arg1 = reinterpret_cast< wxImageList * >(argp1);
21784 ecode2 = SWIG_AsVal_int(obj1, &val2);
21785 if (!SWIG_IsOK(ecode2)) {
21786 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
21787 }
21788 arg2 = static_cast< int >(val2);
21789 {
21790 PyThreadState* __tstate = wxPyBeginAllowThreads();
21791 result = (bool)(arg1)->Remove(arg2);
21792 wxPyEndAllowThreads(__tstate);
21793 if (PyErr_Occurred()) SWIG_fail;
21794 }
21795 {
21796 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21797 }
21798 return resultobj;
21799 fail:
21800 return NULL;
21801 }
21802
21803
21804 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21805 PyObject *resultobj = 0;
21806 wxImageList *arg1 = (wxImageList *) 0 ;
21807 bool result;
21808 void *argp1 = 0 ;
21809 int res1 = 0 ;
21810 PyObject *swig_obj[1] ;
21811
21812 if (!args) SWIG_fail;
21813 swig_obj[0] = args;
21814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21815 if (!SWIG_IsOK(res1)) {
21816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
21817 }
21818 arg1 = reinterpret_cast< wxImageList * >(argp1);
21819 {
21820 PyThreadState* __tstate = wxPyBeginAllowThreads();
21821 result = (bool)(arg1)->RemoveAll();
21822 wxPyEndAllowThreads(__tstate);
21823 if (PyErr_Occurred()) SWIG_fail;
21824 }
21825 {
21826 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21827 }
21828 return resultobj;
21829 fail:
21830 return NULL;
21831 }
21832
21833
21834 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21835 PyObject *resultobj = 0;
21836 wxImageList *arg1 = (wxImageList *) 0 ;
21837 int arg2 ;
21838 int *arg3 = 0 ;
21839 int *arg4 = 0 ;
21840 void *argp1 = 0 ;
21841 int res1 = 0 ;
21842 int val2 ;
21843 int ecode2 = 0 ;
21844 int temp3 ;
21845 int res3 = SWIG_TMPOBJ ;
21846 int temp4 ;
21847 int res4 = SWIG_TMPOBJ ;
21848 PyObject * obj0 = 0 ;
21849 PyObject * obj1 = 0 ;
21850 char * kwnames[] = {
21851 (char *) "self",(char *) "index", NULL
21852 };
21853
21854 arg3 = &temp3;
21855 arg4 = &temp4;
21856 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
21857 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
21858 if (!SWIG_IsOK(res1)) {
21859 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
21860 }
21861 arg1 = reinterpret_cast< wxImageList * >(argp1);
21862 ecode2 = SWIG_AsVal_int(obj1, &val2);
21863 if (!SWIG_IsOK(ecode2)) {
21864 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
21865 }
21866 arg2 = static_cast< int >(val2);
21867 {
21868 PyThreadState* __tstate = wxPyBeginAllowThreads();
21869 (arg1)->GetSize(arg2,*arg3,*arg4);
21870 wxPyEndAllowThreads(__tstate);
21871 if (PyErr_Occurred()) SWIG_fail;
21872 }
21873 resultobj = SWIG_Py_Void();
21874 if (SWIG_IsTmpObj(res3)) {
21875 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
21876 } else {
21877 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21878 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
21879 }
21880 if (SWIG_IsTmpObj(res4)) {
21881 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
21882 } else {
21883 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
21884 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
21885 }
21886 return resultobj;
21887 fail:
21888 return NULL;
21889 }
21890
21891
21892 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21893 PyObject *obj;
21894 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21895 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
21896 return SWIG_Py_Void();
21897 }
21898
21899 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21900 return SWIG_Python_InitShadowInstance(args);
21901 }
21902
21903 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21904 PyObject *resultobj = 0;
21905 wxStockGDI *result = 0 ;
21906
21907 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
21908 {
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (wxStockGDI *)new wxStockGDI();
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
21915 return resultobj;
21916 fail:
21917 return NULL;
21918 }
21919
21920
21921 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21922 PyObject *resultobj = 0;
21923 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
21924 void *argp1 = 0 ;
21925 int res1 = 0 ;
21926 PyObject *swig_obj[1] ;
21927
21928 if (!args) SWIG_fail;
21929 swig_obj[0] = args;
21930 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
21931 if (!SWIG_IsOK(res1)) {
21932 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
21933 }
21934 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
21935 {
21936 PyThreadState* __tstate = wxPyBeginAllowThreads();
21937 delete arg1;
21938
21939 wxPyEndAllowThreads(__tstate);
21940 if (PyErr_Occurred()) SWIG_fail;
21941 }
21942 resultobj = SWIG_Py_Void();
21943 return resultobj;
21944 fail:
21945 return NULL;
21946 }
21947
21948
21949 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21950 PyObject *resultobj = 0;
21951
21952 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
21953 {
21954 PyThreadState* __tstate = wxPyBeginAllowThreads();
21955 wxStockGDI::DeleteAll();
21956 wxPyEndAllowThreads(__tstate);
21957 if (PyErr_Occurred()) SWIG_fail;
21958 }
21959 resultobj = SWIG_Py_Void();
21960 return resultobj;
21961 fail:
21962 return NULL;
21963 }
21964
21965
21966 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21967 PyObject *resultobj = 0;
21968 wxStockGDI *result = 0 ;
21969
21970 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
21971 {
21972 PyThreadState* __tstate = wxPyBeginAllowThreads();
21973 {
21974 wxStockGDI &_result_ref = wxStockGDI::instance();
21975 result = (wxStockGDI *) &_result_ref;
21976 }
21977 wxPyEndAllowThreads(__tstate);
21978 if (PyErr_Occurred()) SWIG_fail;
21979 }
21980 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
21981 return resultobj;
21982 fail:
21983 return NULL;
21984 }
21985
21986
21987 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21988 PyObject *resultobj = 0;
21989 wxStockGDI::Item arg1 ;
21990 wxBrush *result = 0 ;
21991 int val1 ;
21992 int ecode1 = 0 ;
21993 PyObject * obj0 = 0 ;
21994 char * kwnames[] = {
21995 (char *) "item", NULL
21996 };
21997
21998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
21999 ecode1 = SWIG_AsVal_int(obj0, &val1);
22000 if (!SWIG_IsOK(ecode1)) {
22001 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22002 }
22003 arg1 = static_cast< wxStockGDI::Item >(val1);
22004 {
22005 PyThreadState* __tstate = wxPyBeginAllowThreads();
22006 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
22007 wxPyEndAllowThreads(__tstate);
22008 if (PyErr_Occurred()) SWIG_fail;
22009 }
22010 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22011 return resultobj;
22012 fail:
22013 return NULL;
22014 }
22015
22016
22017 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22018 PyObject *resultobj = 0;
22019 wxStockGDI::Item arg1 ;
22020 wxColour *result = 0 ;
22021 int val1 ;
22022 int ecode1 = 0 ;
22023 PyObject * obj0 = 0 ;
22024 char * kwnames[] = {
22025 (char *) "item", NULL
22026 };
22027
22028 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
22029 ecode1 = SWIG_AsVal_int(obj0, &val1);
22030 if (!SWIG_IsOK(ecode1)) {
22031 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22032 }
22033 arg1 = static_cast< wxStockGDI::Item >(val1);
22034 {
22035 PyThreadState* __tstate = wxPyBeginAllowThreads();
22036 result = (wxColour *)wxStockGDI::GetColour(arg1);
22037 wxPyEndAllowThreads(__tstate);
22038 if (PyErr_Occurred()) SWIG_fail;
22039 }
22040 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
22041 return resultobj;
22042 fail:
22043 return NULL;
22044 }
22045
22046
22047 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22048 PyObject *resultobj = 0;
22049 wxStockGDI::Item arg1 ;
22050 wxCursor *result = 0 ;
22051 int val1 ;
22052 int ecode1 = 0 ;
22053 PyObject * obj0 = 0 ;
22054 char * kwnames[] = {
22055 (char *) "item", NULL
22056 };
22057
22058 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
22059 ecode1 = SWIG_AsVal_int(obj0, &val1);
22060 if (!SWIG_IsOK(ecode1)) {
22061 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22062 }
22063 arg1 = static_cast< wxStockGDI::Item >(val1);
22064 {
22065 PyThreadState* __tstate = wxPyBeginAllowThreads();
22066 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
22067 wxPyEndAllowThreads(__tstate);
22068 if (PyErr_Occurred()) SWIG_fail;
22069 }
22070 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
22071 return resultobj;
22072 fail:
22073 return NULL;
22074 }
22075
22076
22077 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22078 PyObject *resultobj = 0;
22079 wxStockGDI::Item arg1 ;
22080 wxPen *result = 0 ;
22081 int val1 ;
22082 int ecode1 = 0 ;
22083 PyObject * obj0 = 0 ;
22084 char * kwnames[] = {
22085 (char *) "item", NULL
22086 };
22087
22088 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
22089 ecode1 = SWIG_AsVal_int(obj0, &val1);
22090 if (!SWIG_IsOK(ecode1)) {
22091 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
22092 }
22093 arg1 = static_cast< wxStockGDI::Item >(val1);
22094 {
22095 PyThreadState* __tstate = wxPyBeginAllowThreads();
22096 result = (wxPen *)wxStockGDI::GetPen(arg1);
22097 wxPyEndAllowThreads(__tstate);
22098 if (PyErr_Occurred()) SWIG_fail;
22099 }
22100 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22101 return resultobj;
22102 fail:
22103 return NULL;
22104 }
22105
22106
22107 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22108 PyObject *resultobj = 0;
22109 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22110 wxStockGDI::Item arg2 ;
22111 wxFont *result = 0 ;
22112 void *argp1 = 0 ;
22113 int res1 = 0 ;
22114 int val2 ;
22115 int ecode2 = 0 ;
22116 PyObject * obj0 = 0 ;
22117 PyObject * obj1 = 0 ;
22118 char * kwnames[] = {
22119 (char *) "self",(char *) "item", NULL
22120 };
22121
22122 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
22123 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
22124 if (!SWIG_IsOK(res1)) {
22125 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22126 }
22127 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22128 ecode2 = SWIG_AsVal_int(obj1, &val2);
22129 if (!SWIG_IsOK(ecode2)) {
22130 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
22131 }
22132 arg2 = static_cast< wxStockGDI::Item >(val2);
22133 {
22134 PyThreadState* __tstate = wxPyBeginAllowThreads();
22135 result = (wxFont *)(arg1)->GetFont(arg2);
22136 wxPyEndAllowThreads(__tstate);
22137 if (PyErr_Occurred()) SWIG_fail;
22138 }
22139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22140 return resultobj;
22141 fail:
22142 return NULL;
22143 }
22144
22145
22146 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22147 PyObject *obj;
22148 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22149 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
22150 return SWIG_Py_Void();
22151 }
22152
22153 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22154 return SWIG_Python_InitShadowInstance(args);
22155 }
22156
22157 SWIGINTERN int NullBitmap_set(PyObject *) {
22158 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
22159 return 1;
22160 }
22161
22162
22163 SWIGINTERN PyObject *NullBitmap_get(void) {
22164 PyObject *pyobj = 0;
22165
22166 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
22167 return pyobj;
22168 }
22169
22170
22171 SWIGINTERN int NullIcon_set(PyObject *) {
22172 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
22173 return 1;
22174 }
22175
22176
22177 SWIGINTERN PyObject *NullIcon_get(void) {
22178 PyObject *pyobj = 0;
22179
22180 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
22181 return pyobj;
22182 }
22183
22184
22185 SWIGINTERN int NullCursor_set(PyObject *) {
22186 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
22187 return 1;
22188 }
22189
22190
22191 SWIGINTERN PyObject *NullCursor_get(void) {
22192 PyObject *pyobj = 0;
22193
22194 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
22195 return pyobj;
22196 }
22197
22198
22199 SWIGINTERN int NullPen_set(PyObject *) {
22200 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
22201 return 1;
22202 }
22203
22204
22205 SWIGINTERN PyObject *NullPen_get(void) {
22206 PyObject *pyobj = 0;
22207
22208 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
22209 return pyobj;
22210 }
22211
22212
22213 SWIGINTERN int NullBrush_set(PyObject *) {
22214 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
22215 return 1;
22216 }
22217
22218
22219 SWIGINTERN PyObject *NullBrush_get(void) {
22220 PyObject *pyobj = 0;
22221
22222 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
22223 return pyobj;
22224 }
22225
22226
22227 SWIGINTERN int NullPalette_set(PyObject *) {
22228 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
22229 return 1;
22230 }
22231
22232
22233 SWIGINTERN PyObject *NullPalette_get(void) {
22234 PyObject *pyobj = 0;
22235
22236 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
22237 return pyobj;
22238 }
22239
22240
22241 SWIGINTERN int NullFont_set(PyObject *) {
22242 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
22243 return 1;
22244 }
22245
22246
22247 SWIGINTERN PyObject *NullFont_get(void) {
22248 PyObject *pyobj = 0;
22249
22250 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
22251 return pyobj;
22252 }
22253
22254
22255 SWIGINTERN int NullColour_set(PyObject *) {
22256 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
22257 return 1;
22258 }
22259
22260
22261 SWIGINTERN PyObject *NullColour_get(void) {
22262 PyObject *pyobj = 0;
22263
22264 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
22265 return pyobj;
22266 }
22267
22268
22269 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22270 PyObject *resultobj = 0;
22271 wxGDIObjListBase *result = 0 ;
22272
22273 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
22274 {
22275 PyThreadState* __tstate = wxPyBeginAllowThreads();
22276 result = (wxGDIObjListBase *)new wxGDIObjListBase();
22277 wxPyEndAllowThreads(__tstate);
22278 if (PyErr_Occurred()) SWIG_fail;
22279 }
22280 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
22281 return resultobj;
22282 fail:
22283 return NULL;
22284 }
22285
22286
22287 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22288 PyObject *resultobj = 0;
22289 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
22290 void *argp1 = 0 ;
22291 int res1 = 0 ;
22292 PyObject *swig_obj[1] ;
22293
22294 if (!args) SWIG_fail;
22295 swig_obj[0] = args;
22296 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
22297 if (!SWIG_IsOK(res1)) {
22298 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
22299 }
22300 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
22301 {
22302 PyThreadState* __tstate = wxPyBeginAllowThreads();
22303 delete arg1;
22304
22305 wxPyEndAllowThreads(__tstate);
22306 if (PyErr_Occurred()) SWIG_fail;
22307 }
22308 resultobj = SWIG_Py_Void();
22309 return resultobj;
22310 fail:
22311 return NULL;
22312 }
22313
22314
22315 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22316 PyObject *obj;
22317 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22318 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
22319 return SWIG_Py_Void();
22320 }
22321
22322 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22323 return SWIG_Python_InitShadowInstance(args);
22324 }
22325
22326 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22327 PyObject *resultobj = 0;
22328 wxPenList *arg1 = (wxPenList *) 0 ;
22329 wxColour *arg2 = 0 ;
22330 int arg3 ;
22331 int arg4 ;
22332 wxPen *result = 0 ;
22333 void *argp1 = 0 ;
22334 int res1 = 0 ;
22335 wxColour temp2 ;
22336 int val3 ;
22337 int ecode3 = 0 ;
22338 int val4 ;
22339 int ecode4 = 0 ;
22340 PyObject * obj0 = 0 ;
22341 PyObject * obj1 = 0 ;
22342 PyObject * obj2 = 0 ;
22343 PyObject * obj3 = 0 ;
22344 char * kwnames[] = {
22345 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
22346 };
22347
22348 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22349 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22350 if (!SWIG_IsOK(res1)) {
22351 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22352 }
22353 arg1 = reinterpret_cast< wxPenList * >(argp1);
22354 {
22355 arg2 = &temp2;
22356 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22357 }
22358 ecode3 = SWIG_AsVal_int(obj2, &val3);
22359 if (!SWIG_IsOK(ecode3)) {
22360 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
22361 }
22362 arg3 = static_cast< int >(val3);
22363 ecode4 = SWIG_AsVal_int(obj3, &val4);
22364 if (!SWIG_IsOK(ecode4)) {
22365 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
22366 }
22367 arg4 = static_cast< int >(val4);
22368 {
22369 PyThreadState* __tstate = wxPyBeginAllowThreads();
22370 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
22371 wxPyEndAllowThreads(__tstate);
22372 if (PyErr_Occurred()) SWIG_fail;
22373 }
22374 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
22375 return resultobj;
22376 fail:
22377 return NULL;
22378 }
22379
22380
22381 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22382 PyObject *resultobj = 0;
22383 wxPenList *arg1 = (wxPenList *) 0 ;
22384 wxPen *arg2 = (wxPen *) 0 ;
22385 void *argp1 = 0 ;
22386 int res1 = 0 ;
22387 void *argp2 = 0 ;
22388 int res2 = 0 ;
22389 PyObject * obj0 = 0 ;
22390 PyObject * obj1 = 0 ;
22391 char * kwnames[] = {
22392 (char *) "self",(char *) "pen", NULL
22393 };
22394
22395 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
22396 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22397 if (!SWIG_IsOK(res1)) {
22398 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
22399 }
22400 arg1 = reinterpret_cast< wxPenList * >(argp1);
22401 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22402 if (!SWIG_IsOK(res2)) {
22403 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
22404 }
22405 arg2 = reinterpret_cast< wxPen * >(argp2);
22406 {
22407 PyThreadState* __tstate = wxPyBeginAllowThreads();
22408 (arg1)->AddPen(arg2);
22409 wxPyEndAllowThreads(__tstate);
22410 if (PyErr_Occurred()) SWIG_fail;
22411 }
22412 resultobj = SWIG_Py_Void();
22413 return resultobj;
22414 fail:
22415 return NULL;
22416 }
22417
22418
22419 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22420 PyObject *resultobj = 0;
22421 wxPenList *arg1 = (wxPenList *) 0 ;
22422 wxPen *arg2 = (wxPen *) 0 ;
22423 void *argp1 = 0 ;
22424 int res1 = 0 ;
22425 void *argp2 = 0 ;
22426 int res2 = 0 ;
22427 PyObject * obj0 = 0 ;
22428 PyObject * obj1 = 0 ;
22429 char * kwnames[] = {
22430 (char *) "self",(char *) "pen", NULL
22431 };
22432
22433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
22434 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
22435 if (!SWIG_IsOK(res1)) {
22436 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
22437 }
22438 arg1 = reinterpret_cast< wxPenList * >(argp1);
22439 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
22440 if (!SWIG_IsOK(res2)) {
22441 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
22442 }
22443 arg2 = reinterpret_cast< wxPen * >(argp2);
22444 {
22445 PyThreadState* __tstate = wxPyBeginAllowThreads();
22446 (arg1)->RemovePen(arg2);
22447 wxPyEndAllowThreads(__tstate);
22448 if (PyErr_Occurred()) SWIG_fail;
22449 }
22450 resultobj = SWIG_Py_Void();
22451 return resultobj;
22452 fail:
22453 return NULL;
22454 }
22455
22456
22457 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22458 PyObject *obj;
22459 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22460 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
22461 return SWIG_Py_Void();
22462 }
22463
22464 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22465 PyObject *resultobj = 0;
22466 wxBrushList *arg1 = (wxBrushList *) 0 ;
22467 wxColour *arg2 = 0 ;
22468 int arg3 = (int) wxSOLID ;
22469 wxBrush *result = 0 ;
22470 void *argp1 = 0 ;
22471 int res1 = 0 ;
22472 wxColour temp2 ;
22473 int val3 ;
22474 int ecode3 = 0 ;
22475 PyObject * obj0 = 0 ;
22476 PyObject * obj1 = 0 ;
22477 PyObject * obj2 = 0 ;
22478 char * kwnames[] = {
22479 (char *) "self",(char *) "colour",(char *) "style", NULL
22480 };
22481
22482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22484 if (!SWIG_IsOK(res1)) {
22485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22486 }
22487 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22488 {
22489 arg2 = &temp2;
22490 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22491 }
22492 if (obj2) {
22493 ecode3 = SWIG_AsVal_int(obj2, &val3);
22494 if (!SWIG_IsOK(ecode3)) {
22495 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
22496 }
22497 arg3 = static_cast< int >(val3);
22498 }
22499 {
22500 PyThreadState* __tstate = wxPyBeginAllowThreads();
22501 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
22502 wxPyEndAllowThreads(__tstate);
22503 if (PyErr_Occurred()) SWIG_fail;
22504 }
22505 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
22506 return resultobj;
22507 fail:
22508 return NULL;
22509 }
22510
22511
22512 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22513 PyObject *resultobj = 0;
22514 wxBrushList *arg1 = (wxBrushList *) 0 ;
22515 wxBrush *arg2 = (wxBrush *) 0 ;
22516 void *argp1 = 0 ;
22517 int res1 = 0 ;
22518 void *argp2 = 0 ;
22519 int res2 = 0 ;
22520 PyObject * obj0 = 0 ;
22521 PyObject * obj1 = 0 ;
22522 char * kwnames[] = {
22523 (char *) "self",(char *) "brush", NULL
22524 };
22525
22526 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22527 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22528 if (!SWIG_IsOK(res1)) {
22529 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22530 }
22531 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22532 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22533 if (!SWIG_IsOK(res2)) {
22534 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22535 }
22536 arg2 = reinterpret_cast< wxBrush * >(argp2);
22537 {
22538 PyThreadState* __tstate = wxPyBeginAllowThreads();
22539 (arg1)->AddBrush(arg2);
22540 wxPyEndAllowThreads(__tstate);
22541 if (PyErr_Occurred()) SWIG_fail;
22542 }
22543 resultobj = SWIG_Py_Void();
22544 return resultobj;
22545 fail:
22546 return NULL;
22547 }
22548
22549
22550 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22551 PyObject *resultobj = 0;
22552 wxBrushList *arg1 = (wxBrushList *) 0 ;
22553 wxBrush *arg2 = (wxBrush *) 0 ;
22554 void *argp1 = 0 ;
22555 int res1 = 0 ;
22556 void *argp2 = 0 ;
22557 int res2 = 0 ;
22558 PyObject * obj0 = 0 ;
22559 PyObject * obj1 = 0 ;
22560 char * kwnames[] = {
22561 (char *) "self",(char *) "brush", NULL
22562 };
22563
22564 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
22565 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
22566 if (!SWIG_IsOK(res1)) {
22567 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
22568 }
22569 arg1 = reinterpret_cast< wxBrushList * >(argp1);
22570 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
22571 if (!SWIG_IsOK(res2)) {
22572 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
22573 }
22574 arg2 = reinterpret_cast< wxBrush * >(argp2);
22575 {
22576 PyThreadState* __tstate = wxPyBeginAllowThreads();
22577 (arg1)->RemoveBrush(arg2);
22578 wxPyEndAllowThreads(__tstate);
22579 if (PyErr_Occurred()) SWIG_fail;
22580 }
22581 resultobj = SWIG_Py_Void();
22582 return resultobj;
22583 fail:
22584 return NULL;
22585 }
22586
22587
22588 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22589 PyObject *obj;
22590 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22591 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
22592 return SWIG_Py_Void();
22593 }
22594
22595 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22596 PyObject *resultobj = 0;
22597 wxFontList *arg1 = (wxFontList *) 0 ;
22598 int arg2 ;
22599 int arg3 ;
22600 int arg4 ;
22601 int arg5 ;
22602 bool arg6 = (bool) false ;
22603 wxString const &arg7_defvalue = wxPyEmptyString ;
22604 wxString *arg7 = (wxString *) &arg7_defvalue ;
22605 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
22606 wxFont *result = 0 ;
22607 void *argp1 = 0 ;
22608 int res1 = 0 ;
22609 int val2 ;
22610 int ecode2 = 0 ;
22611 int val3 ;
22612 int ecode3 = 0 ;
22613 int val4 ;
22614 int ecode4 = 0 ;
22615 int val5 ;
22616 int ecode5 = 0 ;
22617 bool val6 ;
22618 int ecode6 = 0 ;
22619 bool temp7 = false ;
22620 int val8 ;
22621 int ecode8 = 0 ;
22622 PyObject * obj0 = 0 ;
22623 PyObject * obj1 = 0 ;
22624 PyObject * obj2 = 0 ;
22625 PyObject * obj3 = 0 ;
22626 PyObject * obj4 = 0 ;
22627 PyObject * obj5 = 0 ;
22628 PyObject * obj6 = 0 ;
22629 PyObject * obj7 = 0 ;
22630 char * kwnames[] = {
22631 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
22632 };
22633
22634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
22635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22636 if (!SWIG_IsOK(res1)) {
22637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22638 }
22639 arg1 = reinterpret_cast< wxFontList * >(argp1);
22640 ecode2 = SWIG_AsVal_int(obj1, &val2);
22641 if (!SWIG_IsOK(ecode2)) {
22642 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
22643 }
22644 arg2 = static_cast< int >(val2);
22645 ecode3 = SWIG_AsVal_int(obj2, &val3);
22646 if (!SWIG_IsOK(ecode3)) {
22647 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
22648 }
22649 arg3 = static_cast< int >(val3);
22650 ecode4 = SWIG_AsVal_int(obj3, &val4);
22651 if (!SWIG_IsOK(ecode4)) {
22652 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
22653 }
22654 arg4 = static_cast< int >(val4);
22655 ecode5 = SWIG_AsVal_int(obj4, &val5);
22656 if (!SWIG_IsOK(ecode5)) {
22657 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
22658 }
22659 arg5 = static_cast< int >(val5);
22660 if (obj5) {
22661 ecode6 = SWIG_AsVal_bool(obj5, &val6);
22662 if (!SWIG_IsOK(ecode6)) {
22663 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
22664 }
22665 arg6 = static_cast< bool >(val6);
22666 }
22667 if (obj6) {
22668 {
22669 arg7 = wxString_in_helper(obj6);
22670 if (arg7 == NULL) SWIG_fail;
22671 temp7 = true;
22672 }
22673 }
22674 if (obj7) {
22675 ecode8 = SWIG_AsVal_int(obj7, &val8);
22676 if (!SWIG_IsOK(ecode8)) {
22677 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
22678 }
22679 arg8 = static_cast< wxFontEncoding >(val8);
22680 }
22681 {
22682 PyThreadState* __tstate = wxPyBeginAllowThreads();
22683 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
22684 wxPyEndAllowThreads(__tstate);
22685 if (PyErr_Occurred()) SWIG_fail;
22686 }
22687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
22688 {
22689 if (temp7)
22690 delete arg7;
22691 }
22692 return resultobj;
22693 fail:
22694 {
22695 if (temp7)
22696 delete arg7;
22697 }
22698 return NULL;
22699 }
22700
22701
22702 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22703 PyObject *resultobj = 0;
22704 wxFontList *arg1 = (wxFontList *) 0 ;
22705 wxFont *arg2 = (wxFont *) 0 ;
22706 void *argp1 = 0 ;
22707 int res1 = 0 ;
22708 void *argp2 = 0 ;
22709 int res2 = 0 ;
22710 PyObject * obj0 = 0 ;
22711 PyObject * obj1 = 0 ;
22712 char * kwnames[] = {
22713 (char *) "self",(char *) "font", NULL
22714 };
22715
22716 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
22717 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22718 if (!SWIG_IsOK(res1)) {
22719 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22720 }
22721 arg1 = reinterpret_cast< wxFontList * >(argp1);
22722 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22723 if (!SWIG_IsOK(res2)) {
22724 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
22725 }
22726 arg2 = reinterpret_cast< wxFont * >(argp2);
22727 {
22728 PyThreadState* __tstate = wxPyBeginAllowThreads();
22729 (arg1)->AddFont(arg2);
22730 wxPyEndAllowThreads(__tstate);
22731 if (PyErr_Occurred()) SWIG_fail;
22732 }
22733 resultobj = SWIG_Py_Void();
22734 return resultobj;
22735 fail:
22736 return NULL;
22737 }
22738
22739
22740 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22741 PyObject *resultobj = 0;
22742 wxFontList *arg1 = (wxFontList *) 0 ;
22743 wxFont *arg2 = (wxFont *) 0 ;
22744 void *argp1 = 0 ;
22745 int res1 = 0 ;
22746 void *argp2 = 0 ;
22747 int res2 = 0 ;
22748 PyObject * obj0 = 0 ;
22749 PyObject * obj1 = 0 ;
22750 char * kwnames[] = {
22751 (char *) "self",(char *) "font", NULL
22752 };
22753
22754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
22755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
22756 if (!SWIG_IsOK(res1)) {
22757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
22758 }
22759 arg1 = reinterpret_cast< wxFontList * >(argp1);
22760 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
22761 if (!SWIG_IsOK(res2)) {
22762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
22763 }
22764 arg2 = reinterpret_cast< wxFont * >(argp2);
22765 {
22766 PyThreadState* __tstate = wxPyBeginAllowThreads();
22767 (arg1)->RemoveFont(arg2);
22768 wxPyEndAllowThreads(__tstate);
22769 if (PyErr_Occurred()) SWIG_fail;
22770 }
22771 resultobj = SWIG_Py_Void();
22772 return resultobj;
22773 fail:
22774 return NULL;
22775 }
22776
22777
22778 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22779 PyObject *obj;
22780 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22781 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
22782 return SWIG_Py_Void();
22783 }
22784
22785 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22786 PyObject *resultobj = 0;
22787 wxColourDatabase *result = 0 ;
22788
22789 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
22790 {
22791 if (!wxPyCheckForApp()) SWIG_fail;
22792 PyThreadState* __tstate = wxPyBeginAllowThreads();
22793 result = (wxColourDatabase *)new wxColourDatabase();
22794 wxPyEndAllowThreads(__tstate);
22795 if (PyErr_Occurred()) SWIG_fail;
22796 }
22797 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
22798 return resultobj;
22799 fail:
22800 return NULL;
22801 }
22802
22803
22804 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22805 PyObject *resultobj = 0;
22806 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22807 void *argp1 = 0 ;
22808 int res1 = 0 ;
22809 PyObject *swig_obj[1] ;
22810
22811 if (!args) SWIG_fail;
22812 swig_obj[0] = args;
22813 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
22814 if (!SWIG_IsOK(res1)) {
22815 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22816 }
22817 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22818 {
22819 PyThreadState* __tstate = wxPyBeginAllowThreads();
22820 delete arg1;
22821
22822 wxPyEndAllowThreads(__tstate);
22823 if (PyErr_Occurred()) SWIG_fail;
22824 }
22825 resultobj = SWIG_Py_Void();
22826 return resultobj;
22827 fail:
22828 return NULL;
22829 }
22830
22831
22832 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22833 PyObject *resultobj = 0;
22834 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22835 wxString *arg2 = 0 ;
22836 wxColour result;
22837 void *argp1 = 0 ;
22838 int res1 = 0 ;
22839 bool temp2 = false ;
22840 PyObject * obj0 = 0 ;
22841 PyObject * obj1 = 0 ;
22842 char * kwnames[] = {
22843 (char *) "self",(char *) "name", NULL
22844 };
22845
22846 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
22847 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22848 if (!SWIG_IsOK(res1)) {
22849 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22850 }
22851 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22852 {
22853 arg2 = wxString_in_helper(obj1);
22854 if (arg2 == NULL) SWIG_fail;
22855 temp2 = true;
22856 }
22857 {
22858 PyThreadState* __tstate = wxPyBeginAllowThreads();
22859 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
22860 wxPyEndAllowThreads(__tstate);
22861 if (PyErr_Occurred()) SWIG_fail;
22862 }
22863 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
22864 {
22865 if (temp2)
22866 delete arg2;
22867 }
22868 return resultobj;
22869 fail:
22870 {
22871 if (temp2)
22872 delete arg2;
22873 }
22874 return NULL;
22875 }
22876
22877
22878 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22879 PyObject *resultobj = 0;
22880 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22881 wxColour *arg2 = 0 ;
22882 wxString result;
22883 void *argp1 = 0 ;
22884 int res1 = 0 ;
22885 wxColour temp2 ;
22886 PyObject * obj0 = 0 ;
22887 PyObject * obj1 = 0 ;
22888 char * kwnames[] = {
22889 (char *) "self",(char *) "colour", NULL
22890 };
22891
22892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
22893 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22894 if (!SWIG_IsOK(res1)) {
22895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
22896 }
22897 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22898 {
22899 arg2 = &temp2;
22900 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
22901 }
22902 {
22903 PyThreadState* __tstate = wxPyBeginAllowThreads();
22904 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
22905 wxPyEndAllowThreads(__tstate);
22906 if (PyErr_Occurred()) SWIG_fail;
22907 }
22908 {
22909 #if wxUSE_UNICODE
22910 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
22911 #else
22912 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
22913 #endif
22914 }
22915 return resultobj;
22916 fail:
22917 return NULL;
22918 }
22919
22920
22921 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22922 PyObject *resultobj = 0;
22923 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22924 wxString *arg2 = 0 ;
22925 wxColour *arg3 = 0 ;
22926 void *argp1 = 0 ;
22927 int res1 = 0 ;
22928 bool temp2 = false ;
22929 wxColour temp3 ;
22930 PyObject * obj0 = 0 ;
22931 PyObject * obj1 = 0 ;
22932 PyObject * obj2 = 0 ;
22933 char * kwnames[] = {
22934 (char *) "self",(char *) "name",(char *) "colour", NULL
22935 };
22936
22937 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22938 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
22939 if (!SWIG_IsOK(res1)) {
22940 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
22941 }
22942 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
22943 {
22944 arg2 = wxString_in_helper(obj1);
22945 if (arg2 == NULL) SWIG_fail;
22946 temp2 = true;
22947 }
22948 {
22949 arg3 = &temp3;
22950 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22951 }
22952 {
22953 PyThreadState* __tstate = wxPyBeginAllowThreads();
22954 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
22955 wxPyEndAllowThreads(__tstate);
22956 if (PyErr_Occurred()) SWIG_fail;
22957 }
22958 resultobj = SWIG_Py_Void();
22959 {
22960 if (temp2)
22961 delete arg2;
22962 }
22963 return resultobj;
22964 fail:
22965 {
22966 if (temp2)
22967 delete arg2;
22968 }
22969 return NULL;
22970 }
22971
22972
22973 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22974 PyObject *resultobj = 0;
22975 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
22976 wxString *arg2 = 0 ;
22977 int arg3 ;
22978 int arg4 ;
22979 int arg5 ;
22980 void *argp1 = 0 ;
22981 int res1 = 0 ;
22982 bool temp2 = false ;
22983 int val3 ;
22984 int ecode3 = 0 ;
22985 int val4 ;
22986 int ecode4 = 0 ;
22987 int val5 ;
22988 int ecode5 = 0 ;
22989 PyObject * obj0 = 0 ;
22990 PyObject * obj1 = 0 ;
22991 PyObject * obj2 = 0 ;
22992 PyObject * obj3 = 0 ;
22993 PyObject * obj4 = 0 ;
22994 char * kwnames[] = {
22995 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
22996 };
22997
22998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
22999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23000 if (!SWIG_IsOK(res1)) {
23001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23002 }
23003 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23004 {
23005 arg2 = wxString_in_helper(obj1);
23006 if (arg2 == NULL) SWIG_fail;
23007 temp2 = true;
23008 }
23009 ecode3 = SWIG_AsVal_int(obj2, &val3);
23010 if (!SWIG_IsOK(ecode3)) {
23011 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
23012 }
23013 arg3 = static_cast< int >(val3);
23014 ecode4 = SWIG_AsVal_int(obj3, &val4);
23015 if (!SWIG_IsOK(ecode4)) {
23016 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
23017 }
23018 arg4 = static_cast< int >(val4);
23019 ecode5 = SWIG_AsVal_int(obj4, &val5);
23020 if (!SWIG_IsOK(ecode5)) {
23021 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
23022 }
23023 arg5 = static_cast< int >(val5);
23024 {
23025 PyThreadState* __tstate = wxPyBeginAllowThreads();
23026 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
23027 wxPyEndAllowThreads(__tstate);
23028 if (PyErr_Occurred()) SWIG_fail;
23029 }
23030 resultobj = SWIG_Py_Void();
23031 {
23032 if (temp2)
23033 delete arg2;
23034 }
23035 return resultobj;
23036 fail:
23037 {
23038 if (temp2)
23039 delete arg2;
23040 }
23041 return NULL;
23042 }
23043
23044
23045 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23046 PyObject *obj;
23047 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23048 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
23049 return SWIG_Py_Void();
23050 }
23051
23052 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23053 return SWIG_Python_InitShadowInstance(args);
23054 }
23055
23056 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23057 PyObject *resultobj = 0;
23058 wxFontList *result = 0 ;
23059
23060 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
23061 {
23062 PyThreadState* __tstate = wxPyBeginAllowThreads();
23063 result = (wxFontList *)_wxPyInitTheFontList();
23064 wxPyEndAllowThreads(__tstate);
23065 if (PyErr_Occurred()) SWIG_fail;
23066 }
23067 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
23068 return resultobj;
23069 fail:
23070 return NULL;
23071 }
23072
23073
23074 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23075 PyObject *resultobj = 0;
23076 wxPenList *result = 0 ;
23077
23078 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
23079 {
23080 PyThreadState* __tstate = wxPyBeginAllowThreads();
23081 result = (wxPenList *)_wxPyInitThePenList();
23082 wxPyEndAllowThreads(__tstate);
23083 if (PyErr_Occurred()) SWIG_fail;
23084 }
23085 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
23086 return resultobj;
23087 fail:
23088 return NULL;
23089 }
23090
23091
23092 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23093 PyObject *resultobj = 0;
23094 wxBrushList *result = 0 ;
23095
23096 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
23097 {
23098 PyThreadState* __tstate = wxPyBeginAllowThreads();
23099 result = (wxBrushList *)_wxPyInitTheBrushList();
23100 wxPyEndAllowThreads(__tstate);
23101 if (PyErr_Occurred()) SWIG_fail;
23102 }
23103 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
23104 return resultobj;
23105 fail:
23106 return NULL;
23107 }
23108
23109
23110 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23111 PyObject *resultobj = 0;
23112 wxColourDatabase *result = 0 ;
23113
23114 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
23115 {
23116 PyThreadState* __tstate = wxPyBeginAllowThreads();
23117 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
23118 wxPyEndAllowThreads(__tstate);
23119 if (PyErr_Occurred()) SWIG_fail;
23120 }
23121 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23122 return resultobj;
23123 fail:
23124 return NULL;
23125 }
23126
23127
23128 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23129 PyObject *resultobj = 0;
23130 wxEffects *result = 0 ;
23131
23132 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
23133 {
23134 PyThreadState* __tstate = wxPyBeginAllowThreads();
23135 result = (wxEffects *)new wxEffects();
23136 wxPyEndAllowThreads(__tstate);
23137 if (PyErr_Occurred()) SWIG_fail;
23138 }
23139 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
23140 return resultobj;
23141 fail:
23142 return NULL;
23143 }
23144
23145
23146 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23147 PyObject *resultobj = 0;
23148 wxEffects *arg1 = (wxEffects *) 0 ;
23149 wxColour result;
23150 void *argp1 = 0 ;
23151 int res1 = 0 ;
23152 PyObject *swig_obj[1] ;
23153
23154 if (!args) SWIG_fail;
23155 swig_obj[0] = args;
23156 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23157 if (!SWIG_IsOK(res1)) {
23158 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23159 }
23160 arg1 = reinterpret_cast< wxEffects * >(argp1);
23161 {
23162 PyThreadState* __tstate = wxPyBeginAllowThreads();
23163 result = ((wxEffects const *)arg1)->GetHighlightColour();
23164 wxPyEndAllowThreads(__tstate);
23165 if (PyErr_Occurred()) SWIG_fail;
23166 }
23167 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23168 return resultobj;
23169 fail:
23170 return NULL;
23171 }
23172
23173
23174 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23175 PyObject *resultobj = 0;
23176 wxEffects *arg1 = (wxEffects *) 0 ;
23177 wxColour result;
23178 void *argp1 = 0 ;
23179 int res1 = 0 ;
23180 PyObject *swig_obj[1] ;
23181
23182 if (!args) SWIG_fail;
23183 swig_obj[0] = args;
23184 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23185 if (!SWIG_IsOK(res1)) {
23186 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23187 }
23188 arg1 = reinterpret_cast< wxEffects * >(argp1);
23189 {
23190 PyThreadState* __tstate = wxPyBeginAllowThreads();
23191 result = ((wxEffects const *)arg1)->GetLightShadow();
23192 wxPyEndAllowThreads(__tstate);
23193 if (PyErr_Occurred()) SWIG_fail;
23194 }
23195 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23196 return resultobj;
23197 fail:
23198 return NULL;
23199 }
23200
23201
23202 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23203 PyObject *resultobj = 0;
23204 wxEffects *arg1 = (wxEffects *) 0 ;
23205 wxColour result;
23206 void *argp1 = 0 ;
23207 int res1 = 0 ;
23208 PyObject *swig_obj[1] ;
23209
23210 if (!args) SWIG_fail;
23211 swig_obj[0] = args;
23212 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23213 if (!SWIG_IsOK(res1)) {
23214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
23215 }
23216 arg1 = reinterpret_cast< wxEffects * >(argp1);
23217 {
23218 PyThreadState* __tstate = wxPyBeginAllowThreads();
23219 result = ((wxEffects const *)arg1)->GetFaceColour();
23220 wxPyEndAllowThreads(__tstate);
23221 if (PyErr_Occurred()) SWIG_fail;
23222 }
23223 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23224 return resultobj;
23225 fail:
23226 return NULL;
23227 }
23228
23229
23230 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23231 PyObject *resultobj = 0;
23232 wxEffects *arg1 = (wxEffects *) 0 ;
23233 wxColour result;
23234 void *argp1 = 0 ;
23235 int res1 = 0 ;
23236 PyObject *swig_obj[1] ;
23237
23238 if (!args) SWIG_fail;
23239 swig_obj[0] = args;
23240 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23241 if (!SWIG_IsOK(res1)) {
23242 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23243 }
23244 arg1 = reinterpret_cast< wxEffects * >(argp1);
23245 {
23246 PyThreadState* __tstate = wxPyBeginAllowThreads();
23247 result = ((wxEffects const *)arg1)->GetMediumShadow();
23248 wxPyEndAllowThreads(__tstate);
23249 if (PyErr_Occurred()) SWIG_fail;
23250 }
23251 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23252 return resultobj;
23253 fail:
23254 return NULL;
23255 }
23256
23257
23258 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23259 PyObject *resultobj = 0;
23260 wxEffects *arg1 = (wxEffects *) 0 ;
23261 wxColour result;
23262 void *argp1 = 0 ;
23263 int res1 = 0 ;
23264 PyObject *swig_obj[1] ;
23265
23266 if (!args) SWIG_fail;
23267 swig_obj[0] = args;
23268 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23269 if (!SWIG_IsOK(res1)) {
23270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
23271 }
23272 arg1 = reinterpret_cast< wxEffects * >(argp1);
23273 {
23274 PyThreadState* __tstate = wxPyBeginAllowThreads();
23275 result = ((wxEffects const *)arg1)->GetDarkShadow();
23276 wxPyEndAllowThreads(__tstate);
23277 if (PyErr_Occurred()) SWIG_fail;
23278 }
23279 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23280 return resultobj;
23281 fail:
23282 return NULL;
23283 }
23284
23285
23286 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23287 PyObject *resultobj = 0;
23288 wxEffects *arg1 = (wxEffects *) 0 ;
23289 wxColour *arg2 = 0 ;
23290 void *argp1 = 0 ;
23291 int res1 = 0 ;
23292 wxColour temp2 ;
23293 PyObject * obj0 = 0 ;
23294 PyObject * obj1 = 0 ;
23295 char * kwnames[] = {
23296 (char *) "self",(char *) "c", NULL
23297 };
23298
23299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
23300 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23301 if (!SWIG_IsOK(res1)) {
23302 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23303 }
23304 arg1 = reinterpret_cast< wxEffects * >(argp1);
23305 {
23306 arg2 = &temp2;
23307 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23308 }
23309 {
23310 PyThreadState* __tstate = wxPyBeginAllowThreads();
23311 (arg1)->SetHighlightColour((wxColour const &)*arg2);
23312 wxPyEndAllowThreads(__tstate);
23313 if (PyErr_Occurred()) SWIG_fail;
23314 }
23315 resultobj = SWIG_Py_Void();
23316 return resultobj;
23317 fail:
23318 return NULL;
23319 }
23320
23321
23322 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23323 PyObject *resultobj = 0;
23324 wxEffects *arg1 = (wxEffects *) 0 ;
23325 wxColour *arg2 = 0 ;
23326 void *argp1 = 0 ;
23327 int res1 = 0 ;
23328 wxColour temp2 ;
23329 PyObject * obj0 = 0 ;
23330 PyObject * obj1 = 0 ;
23331 char * kwnames[] = {
23332 (char *) "self",(char *) "c", NULL
23333 };
23334
23335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23337 if (!SWIG_IsOK(res1)) {
23338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23339 }
23340 arg1 = reinterpret_cast< wxEffects * >(argp1);
23341 {
23342 arg2 = &temp2;
23343 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23344 }
23345 {
23346 PyThreadState* __tstate = wxPyBeginAllowThreads();
23347 (arg1)->SetLightShadow((wxColour const &)*arg2);
23348 wxPyEndAllowThreads(__tstate);
23349 if (PyErr_Occurred()) SWIG_fail;
23350 }
23351 resultobj = SWIG_Py_Void();
23352 return resultobj;
23353 fail:
23354 return NULL;
23355 }
23356
23357
23358 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23359 PyObject *resultobj = 0;
23360 wxEffects *arg1 = (wxEffects *) 0 ;
23361 wxColour *arg2 = 0 ;
23362 void *argp1 = 0 ;
23363 int res1 = 0 ;
23364 wxColour temp2 ;
23365 PyObject * obj0 = 0 ;
23366 PyObject * obj1 = 0 ;
23367 char * kwnames[] = {
23368 (char *) "self",(char *) "c", NULL
23369 };
23370
23371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
23372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23373 if (!SWIG_IsOK(res1)) {
23374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
23375 }
23376 arg1 = reinterpret_cast< wxEffects * >(argp1);
23377 {
23378 arg2 = &temp2;
23379 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23380 }
23381 {
23382 PyThreadState* __tstate = wxPyBeginAllowThreads();
23383 (arg1)->SetFaceColour((wxColour const &)*arg2);
23384 wxPyEndAllowThreads(__tstate);
23385 if (PyErr_Occurred()) SWIG_fail;
23386 }
23387 resultobj = SWIG_Py_Void();
23388 return resultobj;
23389 fail:
23390 return NULL;
23391 }
23392
23393
23394 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23395 PyObject *resultobj = 0;
23396 wxEffects *arg1 = (wxEffects *) 0 ;
23397 wxColour *arg2 = 0 ;
23398 void *argp1 = 0 ;
23399 int res1 = 0 ;
23400 wxColour temp2 ;
23401 PyObject * obj0 = 0 ;
23402 PyObject * obj1 = 0 ;
23403 char * kwnames[] = {
23404 (char *) "self",(char *) "c", NULL
23405 };
23406
23407 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23408 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23409 if (!SWIG_IsOK(res1)) {
23410 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23411 }
23412 arg1 = reinterpret_cast< wxEffects * >(argp1);
23413 {
23414 arg2 = &temp2;
23415 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23416 }
23417 {
23418 PyThreadState* __tstate = wxPyBeginAllowThreads();
23419 (arg1)->SetMediumShadow((wxColour const &)*arg2);
23420 wxPyEndAllowThreads(__tstate);
23421 if (PyErr_Occurred()) SWIG_fail;
23422 }
23423 resultobj = SWIG_Py_Void();
23424 return resultobj;
23425 fail:
23426 return NULL;
23427 }
23428
23429
23430 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23431 PyObject *resultobj = 0;
23432 wxEffects *arg1 = (wxEffects *) 0 ;
23433 wxColour *arg2 = 0 ;
23434 void *argp1 = 0 ;
23435 int res1 = 0 ;
23436 wxColour temp2 ;
23437 PyObject * obj0 = 0 ;
23438 PyObject * obj1 = 0 ;
23439 char * kwnames[] = {
23440 (char *) "self",(char *) "c", NULL
23441 };
23442
23443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
23444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23445 if (!SWIG_IsOK(res1)) {
23446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
23447 }
23448 arg1 = reinterpret_cast< wxEffects * >(argp1);
23449 {
23450 arg2 = &temp2;
23451 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23452 }
23453 {
23454 PyThreadState* __tstate = wxPyBeginAllowThreads();
23455 (arg1)->SetDarkShadow((wxColour const &)*arg2);
23456 wxPyEndAllowThreads(__tstate);
23457 if (PyErr_Occurred()) SWIG_fail;
23458 }
23459 resultobj = SWIG_Py_Void();
23460 return resultobj;
23461 fail:
23462 return NULL;
23463 }
23464
23465
23466 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23467 PyObject *resultobj = 0;
23468 wxEffects *arg1 = (wxEffects *) 0 ;
23469 wxColour *arg2 = 0 ;
23470 wxColour *arg3 = 0 ;
23471 wxColour *arg4 = 0 ;
23472 wxColour *arg5 = 0 ;
23473 wxColour *arg6 = 0 ;
23474 void *argp1 = 0 ;
23475 int res1 = 0 ;
23476 wxColour temp2 ;
23477 wxColour temp3 ;
23478 wxColour temp4 ;
23479 wxColour temp5 ;
23480 wxColour temp6 ;
23481 PyObject * obj0 = 0 ;
23482 PyObject * obj1 = 0 ;
23483 PyObject * obj2 = 0 ;
23484 PyObject * obj3 = 0 ;
23485 PyObject * obj4 = 0 ;
23486 PyObject * obj5 = 0 ;
23487 char * kwnames[] = {
23488 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
23489 };
23490
23491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
23492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23493 if (!SWIG_IsOK(res1)) {
23494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
23495 }
23496 arg1 = reinterpret_cast< wxEffects * >(argp1);
23497 {
23498 arg2 = &temp2;
23499 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23500 }
23501 {
23502 arg3 = &temp3;
23503 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23504 }
23505 {
23506 arg4 = &temp4;
23507 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
23508 }
23509 {
23510 arg5 = &temp5;
23511 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
23512 }
23513 {
23514 arg6 = &temp6;
23515 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
23516 }
23517 {
23518 PyThreadState* __tstate = wxPyBeginAllowThreads();
23519 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
23520 wxPyEndAllowThreads(__tstate);
23521 if (PyErr_Occurred()) SWIG_fail;
23522 }
23523 resultobj = SWIG_Py_Void();
23524 return resultobj;
23525 fail:
23526 return NULL;
23527 }
23528
23529
23530 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23531 PyObject *resultobj = 0;
23532 wxEffects *arg1 = (wxEffects *) 0 ;
23533 wxDC *arg2 = 0 ;
23534 wxRect *arg3 = 0 ;
23535 int arg4 = (int) 1 ;
23536 void *argp1 = 0 ;
23537 int res1 = 0 ;
23538 void *argp2 = 0 ;
23539 int res2 = 0 ;
23540 wxRect temp3 ;
23541 int val4 ;
23542 int ecode4 = 0 ;
23543 PyObject * obj0 = 0 ;
23544 PyObject * obj1 = 0 ;
23545 PyObject * obj2 = 0 ;
23546 PyObject * obj3 = 0 ;
23547 char * kwnames[] = {
23548 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
23549 };
23550
23551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23552 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23553 if (!SWIG_IsOK(res1)) {
23554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
23555 }
23556 arg1 = reinterpret_cast< wxEffects * >(argp1);
23557 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
23558 if (!SWIG_IsOK(res2)) {
23559 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23560 }
23561 if (!argp2) {
23562 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
23563 }
23564 arg2 = reinterpret_cast< wxDC * >(argp2);
23565 {
23566 arg3 = &temp3;
23567 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
23568 }
23569 if (obj3) {
23570 ecode4 = SWIG_AsVal_int(obj3, &val4);
23571 if (!SWIG_IsOK(ecode4)) {
23572 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
23573 }
23574 arg4 = static_cast< int >(val4);
23575 }
23576 {
23577 PyThreadState* __tstate = wxPyBeginAllowThreads();
23578 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
23579 wxPyEndAllowThreads(__tstate);
23580 if (PyErr_Occurred()) SWIG_fail;
23581 }
23582 resultobj = SWIG_Py_Void();
23583 return resultobj;
23584 fail:
23585 return NULL;
23586 }
23587
23588
23589 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23590 PyObject *resultobj = 0;
23591 wxEffects *arg1 = (wxEffects *) 0 ;
23592 wxRect *arg2 = 0 ;
23593 wxDC *arg3 = 0 ;
23594 wxBitmap *arg4 = 0 ;
23595 bool result;
23596 void *argp1 = 0 ;
23597 int res1 = 0 ;
23598 wxRect temp2 ;
23599 void *argp3 = 0 ;
23600 int res3 = 0 ;
23601 void *argp4 = 0 ;
23602 int res4 = 0 ;
23603 PyObject * obj0 = 0 ;
23604 PyObject * obj1 = 0 ;
23605 PyObject * obj2 = 0 ;
23606 PyObject * obj3 = 0 ;
23607 char * kwnames[] = {
23608 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
23609 };
23610
23611 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23612 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
23613 if (!SWIG_IsOK(res1)) {
23614 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
23615 }
23616 arg1 = reinterpret_cast< wxEffects * >(argp1);
23617 {
23618 arg2 = &temp2;
23619 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
23620 }
23621 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
23622 if (!SWIG_IsOK(res3)) {
23623 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23624 }
23625 if (!argp3) {
23626 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
23627 }
23628 arg3 = reinterpret_cast< wxDC * >(argp3);
23629 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
23630 if (!SWIG_IsOK(res4)) {
23631 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23632 }
23633 if (!argp4) {
23634 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
23635 }
23636 arg4 = reinterpret_cast< wxBitmap * >(argp4);
23637 {
23638 PyThreadState* __tstate = wxPyBeginAllowThreads();
23639 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
23640 wxPyEndAllowThreads(__tstate);
23641 if (PyErr_Occurred()) SWIG_fail;
23642 }
23643 {
23644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23645 }
23646 return resultobj;
23647 fail:
23648 return NULL;
23649 }
23650
23651
23652 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23653 PyObject *obj;
23654 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23655 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
23656 return SWIG_Py_Void();
23657 }
23658
23659 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23660 return SWIG_Python_InitShadowInstance(args);
23661 }
23662
23663 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23664 PyObject *resultobj = 0;
23665 int arg1 ;
23666 int arg2 ;
23667 bool arg3 ;
23668 wxSplitterRenderParams *result = 0 ;
23669 int val1 ;
23670 int ecode1 = 0 ;
23671 int val2 ;
23672 int ecode2 = 0 ;
23673 bool val3 ;
23674 int ecode3 = 0 ;
23675 PyObject * obj0 = 0 ;
23676 PyObject * obj1 = 0 ;
23677 PyObject * obj2 = 0 ;
23678 char * kwnames[] = {
23679 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
23680 };
23681
23682 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23683 ecode1 = SWIG_AsVal_int(obj0, &val1);
23684 if (!SWIG_IsOK(ecode1)) {
23685 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
23686 }
23687 arg1 = static_cast< int >(val1);
23688 ecode2 = SWIG_AsVal_int(obj1, &val2);
23689 if (!SWIG_IsOK(ecode2)) {
23690 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
23691 }
23692 arg2 = static_cast< int >(val2);
23693 ecode3 = SWIG_AsVal_bool(obj2, &val3);
23694 if (!SWIG_IsOK(ecode3)) {
23695 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
23696 }
23697 arg3 = static_cast< bool >(val3);
23698 {
23699 PyThreadState* __tstate = wxPyBeginAllowThreads();
23700 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
23701 wxPyEndAllowThreads(__tstate);
23702 if (PyErr_Occurred()) SWIG_fail;
23703 }
23704 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
23705 return resultobj;
23706 fail:
23707 return NULL;
23708 }
23709
23710
23711 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23712 PyObject *resultobj = 0;
23713 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23714 void *argp1 = 0 ;
23715 int res1 = 0 ;
23716 PyObject *swig_obj[1] ;
23717
23718 if (!args) SWIG_fail;
23719 swig_obj[0] = args;
23720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
23721 if (!SWIG_IsOK(res1)) {
23722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23723 }
23724 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23725 {
23726 PyThreadState* __tstate = wxPyBeginAllowThreads();
23727 delete arg1;
23728
23729 wxPyEndAllowThreads(__tstate);
23730 if (PyErr_Occurred()) SWIG_fail;
23731 }
23732 resultobj = SWIG_Py_Void();
23733 return resultobj;
23734 fail:
23735 return NULL;
23736 }
23737
23738
23739 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23740 PyObject *resultobj = 0;
23741 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23742 int result;
23743 void *argp1 = 0 ;
23744 int res1 = 0 ;
23745 PyObject *swig_obj[1] ;
23746
23747 if (!args) SWIG_fail;
23748 swig_obj[0] = args;
23749 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23750 if (!SWIG_IsOK(res1)) {
23751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23752 }
23753 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23754 result = (int)(int) ((arg1)->widthSash);
23755 resultobj = SWIG_From_int(static_cast< int >(result));
23756 return resultobj;
23757 fail:
23758 return NULL;
23759 }
23760
23761
23762 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23763 PyObject *resultobj = 0;
23764 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23765 int result;
23766 void *argp1 = 0 ;
23767 int res1 = 0 ;
23768 PyObject *swig_obj[1] ;
23769
23770 if (!args) SWIG_fail;
23771 swig_obj[0] = args;
23772 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23773 if (!SWIG_IsOK(res1)) {
23774 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23775 }
23776 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23777 result = (int)(int) ((arg1)->border);
23778 resultobj = SWIG_From_int(static_cast< int >(result));
23779 return resultobj;
23780 fail:
23781 return NULL;
23782 }
23783
23784
23785 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23786 PyObject *resultobj = 0;
23787 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
23788 bool result;
23789 void *argp1 = 0 ;
23790 int res1 = 0 ;
23791 PyObject *swig_obj[1] ;
23792
23793 if (!args) SWIG_fail;
23794 swig_obj[0] = args;
23795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
23796 if (!SWIG_IsOK(res1)) {
23797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
23798 }
23799 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
23800 result = (bool)(bool) ((arg1)->isHotSensitive);
23801 resultobj = SWIG_From_bool(static_cast< bool >(result));
23802 return resultobj;
23803 fail:
23804 return NULL;
23805 }
23806
23807
23808 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23809 PyObject *obj;
23810 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23811 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
23812 return SWIG_Py_Void();
23813 }
23814
23815 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23816 return SWIG_Python_InitShadowInstance(args);
23817 }
23818
23819 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23820 PyObject *resultobj = 0;
23821 int arg1 ;
23822 int arg2 ;
23823 wxRendererVersion *result = 0 ;
23824 int val1 ;
23825 int ecode1 = 0 ;
23826 int val2 ;
23827 int ecode2 = 0 ;
23828 PyObject * obj0 = 0 ;
23829 PyObject * obj1 = 0 ;
23830 char * kwnames[] = {
23831 (char *) "version_",(char *) "age_", NULL
23832 };
23833
23834 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
23835 ecode1 = SWIG_AsVal_int(obj0, &val1);
23836 if (!SWIG_IsOK(ecode1)) {
23837 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
23838 }
23839 arg1 = static_cast< int >(val1);
23840 ecode2 = SWIG_AsVal_int(obj1, &val2);
23841 if (!SWIG_IsOK(ecode2)) {
23842 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
23843 }
23844 arg2 = static_cast< int >(val2);
23845 {
23846 PyThreadState* __tstate = wxPyBeginAllowThreads();
23847 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
23848 wxPyEndAllowThreads(__tstate);
23849 if (PyErr_Occurred()) SWIG_fail;
23850 }
23851 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
23852 return resultobj;
23853 fail:
23854 return NULL;
23855 }
23856
23857
23858 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23859 PyObject *resultobj = 0;
23860 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23861 void *argp1 = 0 ;
23862 int res1 = 0 ;
23863 PyObject *swig_obj[1] ;
23864
23865 if (!args) SWIG_fail;
23866 swig_obj[0] = args;
23867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
23868 if (!SWIG_IsOK(res1)) {
23869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23870 }
23871 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23872 {
23873 PyThreadState* __tstate = wxPyBeginAllowThreads();
23874 delete arg1;
23875
23876 wxPyEndAllowThreads(__tstate);
23877 if (PyErr_Occurred()) SWIG_fail;
23878 }
23879 resultobj = SWIG_Py_Void();
23880 return resultobj;
23881 fail:
23882 return NULL;
23883 }
23884
23885
23886 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23887 PyObject *resultobj = 0;
23888 wxRendererVersion *arg1 = 0 ;
23889 bool result;
23890 void *argp1 = 0 ;
23891 int res1 = 0 ;
23892 PyObject * obj0 = 0 ;
23893 char * kwnames[] = {
23894 (char *) "ver", NULL
23895 };
23896
23897 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
23898 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
23899 if (!SWIG_IsOK(res1)) {
23900 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23901 }
23902 if (!argp1) {
23903 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
23904 }
23905 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23906 {
23907 PyThreadState* __tstate = wxPyBeginAllowThreads();
23908 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
23909 wxPyEndAllowThreads(__tstate);
23910 if (PyErr_Occurred()) SWIG_fail;
23911 }
23912 {
23913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
23914 }
23915 return resultobj;
23916 fail:
23917 return NULL;
23918 }
23919
23920
23921 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23922 PyObject *resultobj = 0;
23923 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23924 int result;
23925 void *argp1 = 0 ;
23926 int res1 = 0 ;
23927 PyObject *swig_obj[1] ;
23928
23929 if (!args) SWIG_fail;
23930 swig_obj[0] = args;
23931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
23932 if (!SWIG_IsOK(res1)) {
23933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23934 }
23935 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23936 result = (int)(int) ((arg1)->version);
23937 resultobj = SWIG_From_int(static_cast< int >(result));
23938 return resultobj;
23939 fail:
23940 return NULL;
23941 }
23942
23943
23944 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23945 PyObject *resultobj = 0;
23946 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
23947 int result;
23948 void *argp1 = 0 ;
23949 int res1 = 0 ;
23950 PyObject *swig_obj[1] ;
23951
23952 if (!args) SWIG_fail;
23953 swig_obj[0] = args;
23954 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
23955 if (!SWIG_IsOK(res1)) {
23956 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
23957 }
23958 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
23959 result = (int)(int) ((arg1)->age);
23960 resultobj = SWIG_From_int(static_cast< int >(result));
23961 return resultobj;
23962 fail:
23963 return NULL;
23964 }
23965
23966
23967 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23968 PyObject *obj;
23969 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23970 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
23971 return SWIG_Py_Void();
23972 }
23973
23974 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23975 return SWIG_Python_InitShadowInstance(args);
23976 }
23977
23978 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23979 PyObject *resultobj = 0;
23980 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
23981 wxWindow *arg2 = (wxWindow *) 0 ;
23982 wxDC *arg3 = 0 ;
23983 wxRect *arg4 = 0 ;
23984 int arg5 = (int) 0 ;
23985 void *argp1 = 0 ;
23986 int res1 = 0 ;
23987 void *argp2 = 0 ;
23988 int res2 = 0 ;
23989 void *argp3 = 0 ;
23990 int res3 = 0 ;
23991 wxRect temp4 ;
23992 int val5 ;
23993 int ecode5 = 0 ;
23994 PyObject * obj0 = 0 ;
23995 PyObject * obj1 = 0 ;
23996 PyObject * obj2 = 0 ;
23997 PyObject * obj3 = 0 ;
23998 PyObject * obj4 = 0 ;
23999 char * kwnames[] = {
24000 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24001 };
24002
24003 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24004 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24005 if (!SWIG_IsOK(res1)) {
24006 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24007 }
24008 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24009 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24010 if (!SWIG_IsOK(res2)) {
24011 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24012 }
24013 arg2 = reinterpret_cast< wxWindow * >(argp2);
24014 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24015 if (!SWIG_IsOK(res3)) {
24016 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24017 }
24018 if (!argp3) {
24019 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
24020 }
24021 arg3 = reinterpret_cast< wxDC * >(argp3);
24022 {
24023 arg4 = &temp4;
24024 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24025 }
24026 if (obj4) {
24027 ecode5 = SWIG_AsVal_int(obj4, &val5);
24028 if (!SWIG_IsOK(ecode5)) {
24029 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
24030 }
24031 arg5 = static_cast< int >(val5);
24032 }
24033 {
24034 PyThreadState* __tstate = wxPyBeginAllowThreads();
24035 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24036 wxPyEndAllowThreads(__tstate);
24037 if (PyErr_Occurred()) SWIG_fail;
24038 }
24039 resultobj = SWIG_Py_Void();
24040 return resultobj;
24041 fail:
24042 return NULL;
24043 }
24044
24045
24046 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24047 PyObject *resultobj = 0;
24048 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24049 wxWindow *arg2 = (wxWindow *) 0 ;
24050 wxDC *arg3 = 0 ;
24051 wxRect *arg4 = 0 ;
24052 int arg5 = (int) 0 ;
24053 void *argp1 = 0 ;
24054 int res1 = 0 ;
24055 void *argp2 = 0 ;
24056 int res2 = 0 ;
24057 void *argp3 = 0 ;
24058 int res3 = 0 ;
24059 wxRect temp4 ;
24060 int val5 ;
24061 int ecode5 = 0 ;
24062 PyObject * obj0 = 0 ;
24063 PyObject * obj1 = 0 ;
24064 PyObject * obj2 = 0 ;
24065 PyObject * obj3 = 0 ;
24066 PyObject * obj4 = 0 ;
24067 char * kwnames[] = {
24068 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24069 };
24070
24071 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24072 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24073 if (!SWIG_IsOK(res1)) {
24074 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24075 }
24076 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24077 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24078 if (!SWIG_IsOK(res2)) {
24079 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24080 }
24081 arg2 = reinterpret_cast< wxWindow * >(argp2);
24082 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24083 if (!SWIG_IsOK(res3)) {
24084 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24085 }
24086 if (!argp3) {
24087 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
24088 }
24089 arg3 = reinterpret_cast< wxDC * >(argp3);
24090 {
24091 arg4 = &temp4;
24092 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24093 }
24094 if (obj4) {
24095 ecode5 = SWIG_AsVal_int(obj4, &val5);
24096 if (!SWIG_IsOK(ecode5)) {
24097 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
24098 }
24099 arg5 = static_cast< int >(val5);
24100 }
24101 {
24102 PyThreadState* __tstate = wxPyBeginAllowThreads();
24103 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24104 wxPyEndAllowThreads(__tstate);
24105 if (PyErr_Occurred()) SWIG_fail;
24106 }
24107 resultobj = SWIG_Py_Void();
24108 return resultobj;
24109 fail:
24110 return NULL;
24111 }
24112
24113
24114 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24115 PyObject *resultobj = 0;
24116 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24117 wxWindow *arg2 = (wxWindow *) 0 ;
24118 wxDC *arg3 = 0 ;
24119 wxRect *arg4 = 0 ;
24120 int arg5 = (int) 0 ;
24121 void *argp1 = 0 ;
24122 int res1 = 0 ;
24123 void *argp2 = 0 ;
24124 int res2 = 0 ;
24125 void *argp3 = 0 ;
24126 int res3 = 0 ;
24127 wxRect temp4 ;
24128 int val5 ;
24129 int ecode5 = 0 ;
24130 PyObject * obj0 = 0 ;
24131 PyObject * obj1 = 0 ;
24132 PyObject * obj2 = 0 ;
24133 PyObject * obj3 = 0 ;
24134 PyObject * obj4 = 0 ;
24135 char * kwnames[] = {
24136 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24137 };
24138
24139 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24140 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24141 if (!SWIG_IsOK(res1)) {
24142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24143 }
24144 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24145 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24146 if (!SWIG_IsOK(res2)) {
24147 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
24148 }
24149 arg2 = reinterpret_cast< wxWindow * >(argp2);
24150 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24151 if (!SWIG_IsOK(res3)) {
24152 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24153 }
24154 if (!argp3) {
24155 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
24156 }
24157 arg3 = reinterpret_cast< wxDC * >(argp3);
24158 {
24159 arg4 = &temp4;
24160 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24161 }
24162 if (obj4) {
24163 ecode5 = SWIG_AsVal_int(obj4, &val5);
24164 if (!SWIG_IsOK(ecode5)) {
24165 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
24166 }
24167 arg5 = static_cast< int >(val5);
24168 }
24169 {
24170 PyThreadState* __tstate = wxPyBeginAllowThreads();
24171 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
24172 wxPyEndAllowThreads(__tstate);
24173 if (PyErr_Occurred()) SWIG_fail;
24174 }
24175 resultobj = SWIG_Py_Void();
24176 return resultobj;
24177 fail:
24178 return NULL;
24179 }
24180
24181
24182 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24183 PyObject *resultobj = 0;
24184 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24185 wxWindow *arg2 = (wxWindow *) 0 ;
24186 wxDC *arg3 = 0 ;
24187 wxSize *arg4 = 0 ;
24188 int arg5 ;
24189 wxOrientation arg6 ;
24190 int arg7 = (int) 0 ;
24191 void *argp1 = 0 ;
24192 int res1 = 0 ;
24193 void *argp2 = 0 ;
24194 int res2 = 0 ;
24195 void *argp3 = 0 ;
24196 int res3 = 0 ;
24197 wxSize temp4 ;
24198 int val5 ;
24199 int ecode5 = 0 ;
24200 int val6 ;
24201 int ecode6 = 0 ;
24202 int val7 ;
24203 int ecode7 = 0 ;
24204 PyObject * obj0 = 0 ;
24205 PyObject * obj1 = 0 ;
24206 PyObject * obj2 = 0 ;
24207 PyObject * obj3 = 0 ;
24208 PyObject * obj4 = 0 ;
24209 PyObject * obj5 = 0 ;
24210 PyObject * obj6 = 0 ;
24211 char * kwnames[] = {
24212 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
24213 };
24214
24215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
24216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24217 if (!SWIG_IsOK(res1)) {
24218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24219 }
24220 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24221 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24222 if (!SWIG_IsOK(res2)) {
24223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
24224 }
24225 arg2 = reinterpret_cast< wxWindow * >(argp2);
24226 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24227 if (!SWIG_IsOK(res3)) {
24228 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24229 }
24230 if (!argp3) {
24231 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
24232 }
24233 arg3 = reinterpret_cast< wxDC * >(argp3);
24234 {
24235 arg4 = &temp4;
24236 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
24237 }
24238 ecode5 = SWIG_AsVal_int(obj4, &val5);
24239 if (!SWIG_IsOK(ecode5)) {
24240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
24241 }
24242 arg5 = static_cast< int >(val5);
24243 ecode6 = SWIG_AsVal_int(obj5, &val6);
24244 if (!SWIG_IsOK(ecode6)) {
24245 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
24246 }
24247 arg6 = static_cast< wxOrientation >(val6);
24248 if (obj6) {
24249 ecode7 = SWIG_AsVal_int(obj6, &val7);
24250 if (!SWIG_IsOK(ecode7)) {
24251 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
24252 }
24253 arg7 = static_cast< int >(val7);
24254 }
24255 {
24256 PyThreadState* __tstate = wxPyBeginAllowThreads();
24257 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
24258 wxPyEndAllowThreads(__tstate);
24259 if (PyErr_Occurred()) SWIG_fail;
24260 }
24261 resultobj = SWIG_Py_Void();
24262 return resultobj;
24263 fail:
24264 return NULL;
24265 }
24266
24267
24268 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24269 PyObject *resultobj = 0;
24270 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24271 wxWindow *arg2 = (wxWindow *) 0 ;
24272 wxDC *arg3 = 0 ;
24273 wxRect *arg4 = 0 ;
24274 int arg5 = (int) 0 ;
24275 void *argp1 = 0 ;
24276 int res1 = 0 ;
24277 void *argp2 = 0 ;
24278 int res2 = 0 ;
24279 void *argp3 = 0 ;
24280 int res3 = 0 ;
24281 wxRect temp4 ;
24282 int val5 ;
24283 int ecode5 = 0 ;
24284 PyObject * obj0 = 0 ;
24285 PyObject * obj1 = 0 ;
24286 PyObject * obj2 = 0 ;
24287 PyObject * obj3 = 0 ;
24288 PyObject * obj4 = 0 ;
24289 char * kwnames[] = {
24290 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24291 };
24292
24293 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24294 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24295 if (!SWIG_IsOK(res1)) {
24296 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24297 }
24298 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24299 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24300 if (!SWIG_IsOK(res2)) {
24301 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24302 }
24303 arg2 = reinterpret_cast< wxWindow * >(argp2);
24304 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24305 if (!SWIG_IsOK(res3)) {
24306 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24307 }
24308 if (!argp3) {
24309 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
24310 }
24311 arg3 = reinterpret_cast< wxDC * >(argp3);
24312 {
24313 arg4 = &temp4;
24314 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24315 }
24316 if (obj4) {
24317 ecode5 = SWIG_AsVal_int(obj4, &val5);
24318 if (!SWIG_IsOK(ecode5)) {
24319 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
24320 }
24321 arg5 = static_cast< int >(val5);
24322 }
24323 {
24324 PyThreadState* __tstate = wxPyBeginAllowThreads();
24325 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24326 wxPyEndAllowThreads(__tstate);
24327 if (PyErr_Occurred()) SWIG_fail;
24328 }
24329 resultobj = SWIG_Py_Void();
24330 return resultobj;
24331 fail:
24332 return NULL;
24333 }
24334
24335
24336 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24337 PyObject *resultobj = 0;
24338 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24339 wxWindow *arg2 = (wxWindow *) 0 ;
24340 wxDC *arg3 = 0 ;
24341 wxRect *arg4 = 0 ;
24342 int arg5 = (int) 0 ;
24343 void *argp1 = 0 ;
24344 int res1 = 0 ;
24345 void *argp2 = 0 ;
24346 int res2 = 0 ;
24347 void *argp3 = 0 ;
24348 int res3 = 0 ;
24349 wxRect temp4 ;
24350 int val5 ;
24351 int ecode5 = 0 ;
24352 PyObject * obj0 = 0 ;
24353 PyObject * obj1 = 0 ;
24354 PyObject * obj2 = 0 ;
24355 PyObject * obj3 = 0 ;
24356 PyObject * obj4 = 0 ;
24357 char * kwnames[] = {
24358 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24359 };
24360
24361 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24362 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24363 if (!SWIG_IsOK(res1)) {
24364 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24365 }
24366 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24367 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24368 if (!SWIG_IsOK(res2)) {
24369 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
24370 }
24371 arg2 = reinterpret_cast< wxWindow * >(argp2);
24372 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24373 if (!SWIG_IsOK(res3)) {
24374 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24375 }
24376 if (!argp3) {
24377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
24378 }
24379 arg3 = reinterpret_cast< wxDC * >(argp3);
24380 {
24381 arg4 = &temp4;
24382 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24383 }
24384 if (obj4) {
24385 ecode5 = SWIG_AsVal_int(obj4, &val5);
24386 if (!SWIG_IsOK(ecode5)) {
24387 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
24388 }
24389 arg5 = static_cast< int >(val5);
24390 }
24391 {
24392 PyThreadState* __tstate = wxPyBeginAllowThreads();
24393 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
24394 wxPyEndAllowThreads(__tstate);
24395 if (PyErr_Occurred()) SWIG_fail;
24396 }
24397 resultobj = SWIG_Py_Void();
24398 return resultobj;
24399 fail:
24400 return NULL;
24401 }
24402
24403
24404 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24405 PyObject *resultobj = 0;
24406 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24407 wxWindow *arg2 = (wxWindow *) 0 ;
24408 wxDC *arg3 = 0 ;
24409 wxRect *arg4 = 0 ;
24410 int arg5 = (int) 0 ;
24411 void *argp1 = 0 ;
24412 int res1 = 0 ;
24413 void *argp2 = 0 ;
24414 int res2 = 0 ;
24415 void *argp3 = 0 ;
24416 int res3 = 0 ;
24417 wxRect temp4 ;
24418 int val5 ;
24419 int ecode5 = 0 ;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 PyObject * obj2 = 0 ;
24423 PyObject * obj3 = 0 ;
24424 PyObject * obj4 = 0 ;
24425 char * kwnames[] = {
24426 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
24427 };
24428
24429 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24430 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24431 if (!SWIG_IsOK(res1)) {
24432 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24433 }
24434 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24435 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24436 if (!SWIG_IsOK(res2)) {
24437 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "2"" of type '" "wxWindow *""'");
24438 }
24439 arg2 = reinterpret_cast< wxWindow * >(argp2);
24440 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24441 if (!SWIG_IsOK(res3)) {
24442 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
24443 }
24444 if (!argp3) {
24445 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckButton" "', expected argument " "3"" of type '" "wxDC &""'");
24446 }
24447 arg3 = reinterpret_cast< wxDC * >(argp3);
24448 {
24449 arg4 = &temp4;
24450 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
24451 }
24452 if (obj4) {
24453 ecode5 = SWIG_AsVal_int(obj4, &val5);
24454 if (!SWIG_IsOK(ecode5)) {
24455 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckButton" "', expected argument " "5"" of type '" "int""'");
24456 }
24457 arg5 = static_cast< int >(val5);
24458 }
24459 {
24460 PyThreadState* __tstate = wxPyBeginAllowThreads();
24461 (arg1)->DrawCheckButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
24462 wxPyEndAllowThreads(__tstate);
24463 if (PyErr_Occurred()) SWIG_fail;
24464 }
24465 resultobj = SWIG_Py_Void();
24466 return resultobj;
24467 fail:
24468 return NULL;
24469 }
24470
24471
24472 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24473 PyObject *resultobj = 0;
24474 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24475 wxWindow *arg2 = (wxWindow *) 0 ;
24476 SwigValueWrapper<wxSplitterRenderParams > result;
24477 void *argp1 = 0 ;
24478 int res1 = 0 ;
24479 void *argp2 = 0 ;
24480 int res2 = 0 ;
24481 PyObject * obj0 = 0 ;
24482 PyObject * obj1 = 0 ;
24483 char * kwnames[] = {
24484 (char *) "self",(char *) "win", NULL
24485 };
24486
24487 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
24488 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24489 if (!SWIG_IsOK(res1)) {
24490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24491 }
24492 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24493 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
24494 if (!SWIG_IsOK(res2)) {
24495 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
24496 }
24497 arg2 = reinterpret_cast< wxWindow * >(argp2);
24498 {
24499 PyThreadState* __tstate = wxPyBeginAllowThreads();
24500 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
24501 wxPyEndAllowThreads(__tstate);
24502 if (PyErr_Occurred()) SWIG_fail;
24503 }
24504 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
24505 return resultobj;
24506 fail:
24507 return NULL;
24508 }
24509
24510
24511 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24512 PyObject *resultobj = 0;
24513 wxRendererNative *result = 0 ;
24514
24515 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
24516 {
24517 PyThreadState* __tstate = wxPyBeginAllowThreads();
24518 {
24519 wxRendererNative &_result_ref = wxRendererNative::Get();
24520 result = (wxRendererNative *) &_result_ref;
24521 }
24522 wxPyEndAllowThreads(__tstate);
24523 if (PyErr_Occurred()) SWIG_fail;
24524 }
24525 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24526 return resultobj;
24527 fail:
24528 return NULL;
24529 }
24530
24531
24532 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24533 PyObject *resultobj = 0;
24534 wxRendererNative *result = 0 ;
24535
24536 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
24537 {
24538 PyThreadState* __tstate = wxPyBeginAllowThreads();
24539 {
24540 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
24541 result = (wxRendererNative *) &_result_ref;
24542 }
24543 wxPyEndAllowThreads(__tstate);
24544 if (PyErr_Occurred()) SWIG_fail;
24545 }
24546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24547 return resultobj;
24548 fail:
24549 return NULL;
24550 }
24551
24552
24553 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24554 PyObject *resultobj = 0;
24555 wxRendererNative *result = 0 ;
24556
24557 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
24558 {
24559 PyThreadState* __tstate = wxPyBeginAllowThreads();
24560 {
24561 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
24562 result = (wxRendererNative *) &_result_ref;
24563 }
24564 wxPyEndAllowThreads(__tstate);
24565 if (PyErr_Occurred()) SWIG_fail;
24566 }
24567 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24568 return resultobj;
24569 fail:
24570 return NULL;
24571 }
24572
24573
24574 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24575 PyObject *resultobj = 0;
24576 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24577 wxRendererNative *result = 0 ;
24578 void *argp1 = 0 ;
24579 int res1 = 0 ;
24580 PyObject * obj0 = 0 ;
24581 char * kwnames[] = {
24582 (char *) "renderer", NULL
24583 };
24584
24585 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
24586 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24587 if (!SWIG_IsOK(res1)) {
24588 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
24589 }
24590 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24591 {
24592 PyThreadState* __tstate = wxPyBeginAllowThreads();
24593 result = (wxRendererNative *)wxRendererNative::Set(arg1);
24594 wxPyEndAllowThreads(__tstate);
24595 if (PyErr_Occurred()) SWIG_fail;
24596 }
24597 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
24598 return resultobj;
24599 fail:
24600 return NULL;
24601 }
24602
24603
24604 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24605 PyObject *resultobj = 0;
24606 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
24607 SwigValueWrapper<wxRendererVersion > result;
24608 void *argp1 = 0 ;
24609 int res1 = 0 ;
24610 PyObject *swig_obj[1] ;
24611
24612 if (!args) SWIG_fail;
24613 swig_obj[0] = args;
24614 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
24615 if (!SWIG_IsOK(res1)) {
24616 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
24617 }
24618 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
24619 {
24620 PyThreadState* __tstate = wxPyBeginAllowThreads();
24621 result = ((wxRendererNative const *)arg1)->GetVersion();
24622 wxPyEndAllowThreads(__tstate);
24623 if (PyErr_Occurred()) SWIG_fail;
24624 }
24625 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
24626 return resultobj;
24627 fail:
24628 return NULL;
24629 }
24630
24631
24632 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24633 PyObject *obj;
24634 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24635 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
24636 return SWIG_Py_Void();
24637 }
24638
24639 static PyMethodDef SwigMethods[] = {
24640 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
24641 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
24642 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
24643 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
24644 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
24645 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
24646 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
24647 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24648 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
24649 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
24650 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
24651 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
24652 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
24653 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24654 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24655 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24656 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
24657 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24658 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24659 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
24660 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
24661 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
24662 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
24663 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
24664 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
24665 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24666 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
24667 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
24668 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
24669 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
24670 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
24671 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
24672 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
24673 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
24674 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
24675 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
24676 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
24677 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
24678 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
24679 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
24680 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24681 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
24682 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24683 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24684 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24685 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
24686 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
24687 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
24688 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24689 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24690 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
24691 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
24692 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
24693 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24694 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
24695 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
24696 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24697 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
24698 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
24699 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
24700 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
24701 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
24702 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
24703 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
24704 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
24705 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24706 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
24707 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24708 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24709 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24710 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24711 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
24712 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
24713 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
24714 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
24715 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
24716 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
24717 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
24718 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
24719 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
24720 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
24721 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24722 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
24723 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24724 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
24725 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24726 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24727 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24728 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24729 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
24730 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24731 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24732 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
24733 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
24734 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
24735 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
24736 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
24737 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
24738 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
24739 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
24740 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
24741 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24742 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24743 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
24744 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
24745 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
24746 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
24747 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
24748 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
24749 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
24750 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
24751 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
24752 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24753 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
24754 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
24755 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
24756 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
24757 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
24758 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
24759 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
24760 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
24761 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
24762 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
24763 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
24764 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
24765 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24766 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24767 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
24768 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24769 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
24770 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
24771 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
24772 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
24773 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
24774 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
24775 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
24776 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
24777 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
24778 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
24779 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
24780 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
24781 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24782 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
24783 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
24784 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
24785 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
24786 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
24787 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
24788 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24789 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
24790 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
24791 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
24792 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
24793 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
24794 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24795 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
24796 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
24797 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
24798 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24799 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
24800 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
24801 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24802 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
24803 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
24804 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
24805 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
24806 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
24807 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
24808 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
24809 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
24810 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
24811 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
24812 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
24813 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
24814 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
24815 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
24816 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
24817 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
24818 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
24819 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
24820 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
24821 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
24822 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
24823 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
24824 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
24825 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
24826 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
24827 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
24828 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
24829 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
24830 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
24831 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
24832 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
24833 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
24834 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
24835 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
24836 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
24837 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24838 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
24839 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
24840 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
24841 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
24842 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24843 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
24844 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
24845 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
24846 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
24847 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
24848 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
24849 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
24850 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
24851 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
24852 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
24853 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
24854 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
24855 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
24856 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
24857 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
24858 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
24859 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
24860 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24861 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24862 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
24863 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
24864 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
24865 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
24866 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24867 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
24868 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24869 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
24870 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
24871 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
24872 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
24873 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
24874 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24875 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
24876 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
24877 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
24878 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
24879 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
24880 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
24881 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
24882 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
24883 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
24884 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
24885 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
24886 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
24887 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
24888 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
24889 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
24890 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
24891 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
24892 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
24893 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
24894 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
24895 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
24896 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
24897 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
24898 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
24899 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
24900 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
24901 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
24902 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
24903 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
24904 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
24905 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
24906 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
24907 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
24908 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
24909 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
24910 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24911 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
24912 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
24913 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
24914 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
24915 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
24916 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
24917 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
24918 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
24919 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
24920 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
24921 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
24922 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
24923 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
24924 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
24925 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
24926 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
24927 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
24928 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
24929 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
24930 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
24931 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
24932 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
24933 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
24934 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
24935 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
24936 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
24937 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
24938 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
24939 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
24940 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
24941 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
24942 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
24943 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
24944 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
24945 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
24946 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
24947 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
24948 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
24949 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
24950 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
24951 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
24952 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
24953 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
24954 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
24955 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
24956 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
24957 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
24958 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
24959 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
24960 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
24961 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
24962 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
24963 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
24964 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
24965 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
24966 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
24967 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
24968 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
24969 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
24970 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
24971 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
24972 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
24973 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
24974 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
24975 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24976 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
24977 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
24978 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
24979 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24980 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
24981 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
24982 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
24983 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24984 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
24985 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24986 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
24987 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
24988 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
24989 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
24990 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24991 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
24992 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
24993 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
24994 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
24995 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
24996 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
24997 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
24998 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
24999 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
25000 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
25001 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
25002 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25003 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25004 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25005 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25006 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25007 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
25008 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25009 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
25010 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25011 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
25012 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25013 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25014 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
25015 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25016 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
25017 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
25018 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
25019 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25020 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
25021 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
25022 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
25023 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
25024 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
25025 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
25026 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
25027 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25028 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25029 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25030 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25031 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
25032 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25033 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
25034 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
25035 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
25036 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
25037 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
25038 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25039 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25040 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
25041 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
25042 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
25043 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
25044 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
25045 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
25046 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
25047 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
25048 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25049 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25050 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
25051 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
25052 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
25053 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
25054 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
25055 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
25056 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
25057 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
25058 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
25059 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
25060 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
25061 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
25062 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
25063 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
25064 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
25065 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
25066 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
25067 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
25068 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
25069 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
25070 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
25071 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
25072 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
25073 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
25074 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
25075 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
25076 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25077 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25078 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
25079 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
25080 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
25081 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25082 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
25083 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
25084 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
25085 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
25086 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
25087 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25088 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
25089 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
25090 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
25091 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
25092 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
25093 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
25094 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
25095 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
25096 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
25097 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
25098 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
25099 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
25100 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
25101 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
25102 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
25103 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
25104 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
25105 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
25106 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
25107 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
25108 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
25109 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
25110 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
25111 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25112 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
25113 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
25114 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
25115 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
25116 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
25117 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
25118 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
25119 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
25120 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
25121 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
25122 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
25123 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
25124 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
25125 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
25126 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
25127 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
25128 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
25129 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
25130 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
25131 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
25132 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
25133 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
25134 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
25135 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
25136 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
25137 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
25138 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
25139 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
25140 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
25141 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
25142 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
25143 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
25144 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
25145 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
25146 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
25147 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
25148 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
25149 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
25150 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
25151 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
25152 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25153 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25154 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25155 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
25156 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
25157 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
25158 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
25159 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
25160 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25161 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
25162 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
25163 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
25164 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
25165 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
25166 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
25167 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25168 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25169 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25170 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
25171 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
25172 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
25173 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
25174 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
25175 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
25176 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
25177 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
25178 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
25179 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
25180 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
25181 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
25182 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25183 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25184 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
25185 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
25186 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
25187 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
25188 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
25189 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
25190 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
25191 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
25192 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
25193 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
25194 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
25195 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
25196 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
25197 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
25198 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
25199 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
25200 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
25201 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
25202 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
25203 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
25204 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
25205 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
25206 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
25207 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
25208 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
25209 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25210 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
25211 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25212 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
25213 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25214 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
25215 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25216 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
25217 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
25218 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
25219 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
25220 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
25221 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
25222 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
25223 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
25224 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
25225 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
25226 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
25227 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
25228 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
25229 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
25230 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
25231 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
25232 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
25233 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
25234 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
25235 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
25236 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
25237 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
25238 { (char *)"RendererNative_DrawCheckButton", (PyCFunction) _wrap_RendererNative_DrawCheckButton, METH_VARARGS | METH_KEYWORDS, NULL},
25239 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
25240 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
25241 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
25242 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
25243 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25244 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
25245 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
25246 { NULL, NULL, 0, NULL }
25247 };
25248
25249
25250 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
25251
25252 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
25253 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
25254 }
25255 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
25256 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
25257 }
25258 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
25259 return (void *)((wxGDIObject *) ((wxIcon *) x));
25260 }
25261 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
25262 return (void *)((wxGDIObject *) ((wxPalette *) x));
25263 }
25264 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
25265 return (void *)((wxGDIObject *) ((wxPen *) x));
25266 }
25267 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
25268 return (void *)((wxGDIObject *) ((wxFont *) x));
25269 }
25270 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
25271 return (void *)((wxGDIObject *) ((wxCursor *) x));
25272 }
25273 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
25274 return (void *)((wxGDIObject *) ((wxBitmap *) x));
25275 }
25276 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
25277 return (void *)((wxGDIObject *) ((wxRegion *) x));
25278 }
25279 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
25280 return (void *)((wxGDIObject *) ((wxBrush *) x));
25281 }
25282 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
25283 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
25284 }
25285 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
25286 return (void *)((wxDC *) ((wxScreenDC *) x));
25287 }
25288 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
25289 return (void *)((wxDC *) ((wxMirrorDC *) x));
25290 }
25291 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
25292 return (void *)((wxDC *) ((wxMemoryDC *) x));
25293 }
25294 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
25295 return (void *)((wxDC *) ((wxWindowDC *) x));
25296 }
25297 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
25298 return (void *)((wxDC *) ((wxMetaFileDC *) x));
25299 }
25300 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
25301 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25302 }
25303 static void *_p_wxClientDCTo_p_wxDC(void *x) {
25304 return (void *)((wxDC *) ((wxClientDC *) x));
25305 }
25306 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
25307 return (void *)((wxDC *) ((wxPaintDC *) x));
25308 }
25309 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
25310 return (void *)((wxDC *) ((wxPostScriptDC *) x));
25311 }
25312 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
25313 return (void *)((wxDC *) ((wxPrinterDC *) x));
25314 }
25315 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
25316 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
25317 }
25318 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
25319 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
25320 }
25321 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
25322 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
25323 }
25324 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
25325 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
25326 }
25327 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
25328 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
25329 }
25330 static void *_p_wxPenTo_p_wxObject(void *x) {
25331 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
25332 }
25333 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
25334 return (void *)((wxObject *) ((wxRegionIterator *) x));
25335 }
25336 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
25337 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
25338 }
25339 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
25340 return (void *)((wxObject *) ((wxSizerItem *) x));
25341 }
25342 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
25343 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
25344 }
25345 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
25346 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
25347 }
25348 static void *_p_wxIconTo_p_wxObject(void *x) {
25349 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
25350 }
25351 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
25352 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
25353 }
25354 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
25355 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
25356 }
25357 static void *_p_wxSizerTo_p_wxObject(void *x) {
25358 return (void *)((wxObject *) ((wxSizer *) x));
25359 }
25360 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
25361 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
25362 }
25363 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
25364 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
25365 }
25366 static void *_p_wxEventTo_p_wxObject(void *x) {
25367 return (void *)((wxObject *) ((wxEvent *) x));
25368 }
25369 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
25370 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
25371 }
25372 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
25373 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
25374 }
25375 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
25376 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
25377 }
25378 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
25379 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
25380 }
25381 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
25382 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
25383 }
25384 static void *_p_wxDCTo_p_wxObject(void *x) {
25385 return (void *)((wxObject *) ((wxDC *) x));
25386 }
25387 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
25388 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
25389 }
25390 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
25391 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
25392 }
25393 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
25394 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
25395 }
25396 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
25397 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
25398 }
25399 static void *_p_wxControlTo_p_wxObject(void *x) {
25400 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
25401 }
25402 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
25403 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
25404 }
25405 static void *_p_wxClientDCTo_p_wxObject(void *x) {
25406 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
25407 }
25408 static void *_p_wxFSFileTo_p_wxObject(void *x) {
25409 return (void *)((wxObject *) ((wxFSFile *) x));
25410 }
25411 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
25412 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
25413 }
25414 static void *_p_wxRegionTo_p_wxObject(void *x) {
25415 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
25416 }
25417 static void *_p_wxPySizerTo_p_wxObject(void *x) {
25418 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
25419 }
25420 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
25421 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
25422 }
25423 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
25424 return (void *)((wxObject *) ((wxGDIObject *) x));
25425 }
25426 static void *_p_wxEffectsTo_p_wxObject(void *x) {
25427 return (void *)((wxObject *) ((wxEffects *) x));
25428 }
25429 static void *_p_wxPyEventTo_p_wxObject(void *x) {
25430 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
25431 }
25432 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
25433 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
25434 }
25435 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
25436 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
25437 }
25438 static void *_p_wxShowEventTo_p_wxObject(void *x) {
25439 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
25440 }
25441 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
25442 return (void *)((wxObject *) ((wxMenuItem *) x));
25443 }
25444 static void *_p_wxDateEventTo_p_wxObject(void *x) {
25445 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
25446 }
25447 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
25448 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
25449 }
25450 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
25451 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
25452 }
25453 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
25454 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
25455 }
25456 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
25457 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
25458 }
25459 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
25460 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
25461 }
25462 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
25463 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
25464 }
25465 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
25466 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
25467 }
25468 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
25469 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
25470 }
25471 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
25472 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
25473 }
25474 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
25475 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
25476 }
25477 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
25478 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
25479 }
25480 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
25481 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
25482 }
25483 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
25484 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
25485 }
25486 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
25487 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
25488 }
25489 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
25490 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
25491 }
25492 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
25493 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
25494 }
25495 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
25496 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
25497 }
25498 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
25499 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
25500 }
25501 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
25502 return (void *)((wxObject *) ((wxImageHandler *) x));
25503 }
25504 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
25505 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
25506 }
25507 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
25508 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
25509 }
25510 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
25511 return (void *)((wxObject *) ((wxEvtHandler *) x));
25512 }
25513 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
25514 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
25515 }
25516 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
25517 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
25518 }
25519 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
25520 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
25521 }
25522 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
25523 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
25524 }
25525 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
25526 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
25527 }
25528 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
25529 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
25530 }
25531 static void *_p_wxImageTo_p_wxObject(void *x) {
25532 return (void *)((wxObject *) ((wxImage *) x));
25533 }
25534 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
25535 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
25536 }
25537 static void *_p_wxPaletteTo_p_wxObject(void *x) {
25538 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
25539 }
25540 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
25541 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
25542 }
25543 static void *_p_wxImageListTo_p_wxObject(void *x) {
25544 return (void *)((wxObject *) ((wxImageList *) x));
25545 }
25546 static void *_p_wxCursorTo_p_wxObject(void *x) {
25547 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
25548 }
25549 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
25550 return (void *)((wxObject *) ((wxEncodingConverter *) x));
25551 }
25552 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
25553 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
25554 }
25555 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
25556 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
25557 }
25558 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
25559 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
25560 }
25561 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
25562 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
25563 }
25564 static void *_p_wxWindowTo_p_wxObject(void *x) {
25565 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
25566 }
25567 static void *_p_wxMenuTo_p_wxObject(void *x) {
25568 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
25569 }
25570 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
25571 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
25572 }
25573 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
25574 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
25575 }
25576 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
25577 return (void *)((wxObject *) ((wxFileSystem *) x));
25578 }
25579 static void *_p_wxBitmapTo_p_wxObject(void *x) {
25580 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
25581 }
25582 static void *_p_wxMaskTo_p_wxObject(void *x) {
25583 return (void *)((wxObject *) ((wxMask *) x));
25584 }
25585 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
25586 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
25587 }
25588 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
25589 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
25590 }
25591 static void *_p_wxPyAppTo_p_wxObject(void *x) {
25592 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
25593 }
25594 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
25595 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
25596 }
25597 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
25598 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
25599 }
25600 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
25601 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
25602 }
25603 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
25604 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
25605 }
25606 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
25607 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
25608 }
25609 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
25610 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
25611 }
25612 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
25613 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
25614 }
25615 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
25616 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
25617 }
25618 static void *_p_wxFontTo_p_wxObject(void *x) {
25619 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
25620 }
25621 static void *_p_wxBrushTo_p_wxObject(void *x) {
25622 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
25623 }
25624 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
25625 return (void *)((wxObject *) ((wxMetaFile *) x));
25626 }
25627 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
25628 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
25629 }
25630 static void *_p_wxColourTo_p_wxObject(void *x) {
25631 return (void *)((wxObject *) ((wxColour *) x));
25632 }
25633 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
25634 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
25635 }
25636 static void *_p_wxValidatorTo_p_wxObject(void *x) {
25637 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
25638 }
25639 static void *_p_wxControlTo_p_wxWindow(void *x) {
25640 return (void *)((wxWindow *) ((wxControl *) x));
25641 }
25642 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
25643 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
25644 }
25645 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
25646 return (void *)((wxWindow *) ((wxMenuBar *) x));
25647 }
25648 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
25649 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
25650 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};
25651 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
25652 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
25653 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
25654 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
25655 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
25656 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
25657 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
25658 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
25659 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
25660 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
25661 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
25662 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
25663 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
25664 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
25665 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
25666 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
25667 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
25668 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
25669 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
25670 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
25671 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
25672 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
25673 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
25674 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
25675 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
25676 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
25677 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
25678 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
25679 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
25680 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
25681 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
25682 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
25683 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
25684 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
25685 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
25686 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
25687 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
25688 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
25689 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
25690 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
25691 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
25692 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
25693 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
25694 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
25695 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
25696 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
25697 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
25698 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
25699 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
25700 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
25701 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
25702 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
25703 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
25704 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
25705 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
25706 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
25707 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
25708 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
25709 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
25710 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
25711 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
25712 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
25713 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
25714 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
25715 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
25716 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
25717 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
25718 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
25719 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
25720 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
25721 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
25722 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
25723 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
25724 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
25725 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
25726 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
25727 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
25728 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
25729 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
25730 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
25731 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
25732 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
25733 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
25734 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
25735 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
25736 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
25737 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
25738 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
25739 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
25740 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
25741 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
25742 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
25743 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
25744 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
25745 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
25746 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
25747 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
25748 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
25749 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
25750 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
25751 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
25752 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
25753 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
25754 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
25755 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
25756 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
25757 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
25758 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
25759 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
25760 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
25761 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
25762 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
25763 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
25764 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
25765 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
25766 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
25767 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
25768 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
25769 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
25770 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
25771 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
25772 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
25773 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
25774 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
25775 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
25776 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
25777 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
25778 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
25779 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
25780 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
25781 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
25782 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
25783 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
25784 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
25785
25786 static swig_type_info *swig_type_initial[] = {
25787 &_swigt__p_char,
25788 &_swigt__p_double,
25789 &_swigt__p_form_ops_t,
25790 &_swigt__p_int,
25791 &_swigt__p_unsigned_char,
25792 &_swigt__p_unsigned_int,
25793 &_swigt__p_unsigned_long,
25794 &_swigt__p_wxANIHandler,
25795 &_swigt__p_wxAcceleratorTable,
25796 &_swigt__p_wxActivateEvent,
25797 &_swigt__p_wxBMPHandler,
25798 &_swigt__p_wxBitmap,
25799 &_swigt__p_wxBoxSizer,
25800 &_swigt__p_wxBrush,
25801 &_swigt__p_wxBrushList,
25802 &_swigt__p_wxBufferedDC,
25803 &_swigt__p_wxBufferedPaintDC,
25804 &_swigt__p_wxCURHandler,
25805 &_swigt__p_wxChildFocusEvent,
25806 &_swigt__p_wxClientDC,
25807 &_swigt__p_wxCloseEvent,
25808 &_swigt__p_wxColour,
25809 &_swigt__p_wxColourDatabase,
25810 &_swigt__p_wxCommandEvent,
25811 &_swigt__p_wxContextMenuEvent,
25812 &_swigt__p_wxControl,
25813 &_swigt__p_wxControlWithItems,
25814 &_swigt__p_wxCursor,
25815 &_swigt__p_wxDC,
25816 &_swigt__p_wxDash,
25817 &_swigt__p_wxDateEvent,
25818 &_swigt__p_wxDisplayChangedEvent,
25819 &_swigt__p_wxDropFilesEvent,
25820 &_swigt__p_wxDuplexMode,
25821 &_swigt__p_wxEffects,
25822 &_swigt__p_wxEncodingConverter,
25823 &_swigt__p_wxEraseEvent,
25824 &_swigt__p_wxEvent,
25825 &_swigt__p_wxEvtHandler,
25826 &_swigt__p_wxFSFile,
25827 &_swigt__p_wxFileSystem,
25828 &_swigt__p_wxFlexGridSizer,
25829 &_swigt__p_wxFocusEvent,
25830 &_swigt__p_wxFont,
25831 &_swigt__p_wxFontList,
25832 &_swigt__p_wxFontMapper,
25833 &_swigt__p_wxGBSizerItem,
25834 &_swigt__p_wxGDIObjListBase,
25835 &_swigt__p_wxGDIObject,
25836 &_swigt__p_wxGIFHandler,
25837 &_swigt__p_wxGridBagSizer,
25838 &_swigt__p_wxGridSizer,
25839 &_swigt__p_wxICOHandler,
25840 &_swigt__p_wxIcon,
25841 &_swigt__p_wxIconBundle,
25842 &_swigt__p_wxIconLocation,
25843 &_swigt__p_wxIconizeEvent,
25844 &_swigt__p_wxIdleEvent,
25845 &_swigt__p_wxImage,
25846 &_swigt__p_wxImageHandler,
25847 &_swigt__p_wxImageList,
25848 &_swigt__p_wxIndividualLayoutConstraint,
25849 &_swigt__p_wxInitDialogEvent,
25850 &_swigt__p_wxJPEGHandler,
25851 &_swigt__p_wxKeyEvent,
25852 &_swigt__p_wxLanguageInfo,
25853 &_swigt__p_wxLayoutConstraints,
25854 &_swigt__p_wxLocale,
25855 &_swigt__p_wxMask,
25856 &_swigt__p_wxMaximizeEvent,
25857 &_swigt__p_wxMemoryDC,
25858 &_swigt__p_wxMenu,
25859 &_swigt__p_wxMenuBar,
25860 &_swigt__p_wxMenuEvent,
25861 &_swigt__p_wxMenuItem,
25862 &_swigt__p_wxMetaFile,
25863 &_swigt__p_wxMetaFileDC,
25864 &_swigt__p_wxMirrorDC,
25865 &_swigt__p_wxMouseCaptureChangedEvent,
25866 &_swigt__p_wxMouseEvent,
25867 &_swigt__p_wxMoveEvent,
25868 &_swigt__p_wxNativeEncodingInfo,
25869 &_swigt__p_wxNativeFontInfo,
25870 &_swigt__p_wxNavigationKeyEvent,
25871 &_swigt__p_wxNcPaintEvent,
25872 &_swigt__p_wxNotifyEvent,
25873 &_swigt__p_wxObject,
25874 &_swigt__p_wxPCXHandler,
25875 &_swigt__p_wxPNGHandler,
25876 &_swigt__p_wxPNMHandler,
25877 &_swigt__p_wxPaintDC,
25878 &_swigt__p_wxPaintEvent,
25879 &_swigt__p_wxPalette,
25880 &_swigt__p_wxPaletteChangedEvent,
25881 &_swigt__p_wxPaperSize,
25882 &_swigt__p_wxPen,
25883 &_swigt__p_wxPenList,
25884 &_swigt__p_wxPoint,
25885 &_swigt__p_wxPostScriptDC,
25886 &_swigt__p_wxPrintData,
25887 &_swigt__p_wxPrinterDC,
25888 &_swigt__p_wxPyApp,
25889 &_swigt__p_wxPyCommandEvent,
25890 &_swigt__p_wxPyEvent,
25891 &_swigt__p_wxPyFontEnumerator,
25892 &_swigt__p_wxPyImageHandler,
25893 &_swigt__p_wxPySizer,
25894 &_swigt__p_wxPyValidator,
25895 &_swigt__p_wxQueryNewPaletteEvent,
25896 &_swigt__p_wxRect,
25897 &_swigt__p_wxRegion,
25898 &_swigt__p_wxRegionIterator,
25899 &_swigt__p_wxRendererNative,
25900 &_swigt__p_wxRendererVersion,
25901 &_swigt__p_wxScreenDC,
25902 &_swigt__p_wxScrollEvent,
25903 &_swigt__p_wxScrollWinEvent,
25904 &_swigt__p_wxSetCursorEvent,
25905 &_swigt__p_wxShowEvent,
25906 &_swigt__p_wxSize,
25907 &_swigt__p_wxSizeEvent,
25908 &_swigt__p_wxSizer,
25909 &_swigt__p_wxSizerItem,
25910 &_swigt__p_wxSplitterRenderParams,
25911 &_swigt__p_wxStaticBoxSizer,
25912 &_swigt__p_wxStdDialogButtonSizer,
25913 &_swigt__p_wxStockGDI,
25914 &_swigt__p_wxString,
25915 &_swigt__p_wxSysColourChangedEvent,
25916 &_swigt__p_wxTIFFHandler,
25917 &_swigt__p_wxUpdateUIEvent,
25918 &_swigt__p_wxValidator,
25919 &_swigt__p_wxWindow,
25920 &_swigt__p_wxWindowCreateEvent,
25921 &_swigt__p_wxWindowDC,
25922 &_swigt__p_wxWindowDestroyEvent,
25923 &_swigt__p_wxXPMHandler,
25924 };
25925
25926 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
25927 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
25928 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
25929 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
25930 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
25931 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
25932 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
25933 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
25934 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
25935 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
25936 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}};
25937 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
25938 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
25939 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
25940 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
25941 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
25942 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}};
25943 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
25944 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
25945 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
25946 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
25947 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
25948 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
25949 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
25950 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}};
25951 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}};
25952 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
25953 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
25954 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
25955 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
25956 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
25957 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
25958 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
25959 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
25960 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}};
25961 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
25962 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
25963 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
25964 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
25965 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
25966 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
25967 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
25968 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
25969 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
25970 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
25971 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
25972 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
25973 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
25974 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
25975 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
25976 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
25977 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
25978 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
25979 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
25980 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
25981 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
25982 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
25983 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
25984 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
25985 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
25986 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
25987 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
25988 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
25989 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
25990 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
25991 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
25992 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
25993 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
25994 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
25995 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
25996 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
25997 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
25998 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
25999 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26000 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26001 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
26002 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
26003 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
26004 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
26005 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
26006 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
26007 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
26008 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
26009 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
26010 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26011 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
26012 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
26013 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
26014 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
26015 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
26016 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
26017 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
26018 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
26019 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
26020 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
26021 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
26022 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26023 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
26024 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
26025 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
26026 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26027 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
26028 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
26029 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
26030 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
26031 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
26032 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26033 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
26034 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
26035 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26036 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
26037 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
26038 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
26039 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
26040 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_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_wxGIFHandler, _p_wxGIFHandlerTo_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_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}};
26041 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
26042 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
26043 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
26044 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
26045 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
26046 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
26047 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
26048 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
26049 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
26050 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
26051 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
26052 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
26053 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
26054 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
26055 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
26056 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
26057 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
26058 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
26059 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
26060 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
26061 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}};
26062 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
26063
26064 static swig_cast_info *swig_cast_initial[] = {
26065 _swigc__p_char,
26066 _swigc__p_double,
26067 _swigc__p_form_ops_t,
26068 _swigc__p_int,
26069 _swigc__p_unsigned_char,
26070 _swigc__p_unsigned_int,
26071 _swigc__p_unsigned_long,
26072 _swigc__p_wxANIHandler,
26073 _swigc__p_wxAcceleratorTable,
26074 _swigc__p_wxActivateEvent,
26075 _swigc__p_wxBMPHandler,
26076 _swigc__p_wxBitmap,
26077 _swigc__p_wxBoxSizer,
26078 _swigc__p_wxBrush,
26079 _swigc__p_wxBrushList,
26080 _swigc__p_wxBufferedDC,
26081 _swigc__p_wxBufferedPaintDC,
26082 _swigc__p_wxCURHandler,
26083 _swigc__p_wxChildFocusEvent,
26084 _swigc__p_wxClientDC,
26085 _swigc__p_wxCloseEvent,
26086 _swigc__p_wxColour,
26087 _swigc__p_wxColourDatabase,
26088 _swigc__p_wxCommandEvent,
26089 _swigc__p_wxContextMenuEvent,
26090 _swigc__p_wxControl,
26091 _swigc__p_wxControlWithItems,
26092 _swigc__p_wxCursor,
26093 _swigc__p_wxDC,
26094 _swigc__p_wxDash,
26095 _swigc__p_wxDateEvent,
26096 _swigc__p_wxDisplayChangedEvent,
26097 _swigc__p_wxDropFilesEvent,
26098 _swigc__p_wxDuplexMode,
26099 _swigc__p_wxEffects,
26100 _swigc__p_wxEncodingConverter,
26101 _swigc__p_wxEraseEvent,
26102 _swigc__p_wxEvent,
26103 _swigc__p_wxEvtHandler,
26104 _swigc__p_wxFSFile,
26105 _swigc__p_wxFileSystem,
26106 _swigc__p_wxFlexGridSizer,
26107 _swigc__p_wxFocusEvent,
26108 _swigc__p_wxFont,
26109 _swigc__p_wxFontList,
26110 _swigc__p_wxFontMapper,
26111 _swigc__p_wxGBSizerItem,
26112 _swigc__p_wxGDIObjListBase,
26113 _swigc__p_wxGDIObject,
26114 _swigc__p_wxGIFHandler,
26115 _swigc__p_wxGridBagSizer,
26116 _swigc__p_wxGridSizer,
26117 _swigc__p_wxICOHandler,
26118 _swigc__p_wxIcon,
26119 _swigc__p_wxIconBundle,
26120 _swigc__p_wxIconLocation,
26121 _swigc__p_wxIconizeEvent,
26122 _swigc__p_wxIdleEvent,
26123 _swigc__p_wxImage,
26124 _swigc__p_wxImageHandler,
26125 _swigc__p_wxImageList,
26126 _swigc__p_wxIndividualLayoutConstraint,
26127 _swigc__p_wxInitDialogEvent,
26128 _swigc__p_wxJPEGHandler,
26129 _swigc__p_wxKeyEvent,
26130 _swigc__p_wxLanguageInfo,
26131 _swigc__p_wxLayoutConstraints,
26132 _swigc__p_wxLocale,
26133 _swigc__p_wxMask,
26134 _swigc__p_wxMaximizeEvent,
26135 _swigc__p_wxMemoryDC,
26136 _swigc__p_wxMenu,
26137 _swigc__p_wxMenuBar,
26138 _swigc__p_wxMenuEvent,
26139 _swigc__p_wxMenuItem,
26140 _swigc__p_wxMetaFile,
26141 _swigc__p_wxMetaFileDC,
26142 _swigc__p_wxMirrorDC,
26143 _swigc__p_wxMouseCaptureChangedEvent,
26144 _swigc__p_wxMouseEvent,
26145 _swigc__p_wxMoveEvent,
26146 _swigc__p_wxNativeEncodingInfo,
26147 _swigc__p_wxNativeFontInfo,
26148 _swigc__p_wxNavigationKeyEvent,
26149 _swigc__p_wxNcPaintEvent,
26150 _swigc__p_wxNotifyEvent,
26151 _swigc__p_wxObject,
26152 _swigc__p_wxPCXHandler,
26153 _swigc__p_wxPNGHandler,
26154 _swigc__p_wxPNMHandler,
26155 _swigc__p_wxPaintDC,
26156 _swigc__p_wxPaintEvent,
26157 _swigc__p_wxPalette,
26158 _swigc__p_wxPaletteChangedEvent,
26159 _swigc__p_wxPaperSize,
26160 _swigc__p_wxPen,
26161 _swigc__p_wxPenList,
26162 _swigc__p_wxPoint,
26163 _swigc__p_wxPostScriptDC,
26164 _swigc__p_wxPrintData,
26165 _swigc__p_wxPrinterDC,
26166 _swigc__p_wxPyApp,
26167 _swigc__p_wxPyCommandEvent,
26168 _swigc__p_wxPyEvent,
26169 _swigc__p_wxPyFontEnumerator,
26170 _swigc__p_wxPyImageHandler,
26171 _swigc__p_wxPySizer,
26172 _swigc__p_wxPyValidator,
26173 _swigc__p_wxQueryNewPaletteEvent,
26174 _swigc__p_wxRect,
26175 _swigc__p_wxRegion,
26176 _swigc__p_wxRegionIterator,
26177 _swigc__p_wxRendererNative,
26178 _swigc__p_wxRendererVersion,
26179 _swigc__p_wxScreenDC,
26180 _swigc__p_wxScrollEvent,
26181 _swigc__p_wxScrollWinEvent,
26182 _swigc__p_wxSetCursorEvent,
26183 _swigc__p_wxShowEvent,
26184 _swigc__p_wxSize,
26185 _swigc__p_wxSizeEvent,
26186 _swigc__p_wxSizer,
26187 _swigc__p_wxSizerItem,
26188 _swigc__p_wxSplitterRenderParams,
26189 _swigc__p_wxStaticBoxSizer,
26190 _swigc__p_wxStdDialogButtonSizer,
26191 _swigc__p_wxStockGDI,
26192 _swigc__p_wxString,
26193 _swigc__p_wxSysColourChangedEvent,
26194 _swigc__p_wxTIFFHandler,
26195 _swigc__p_wxUpdateUIEvent,
26196 _swigc__p_wxValidator,
26197 _swigc__p_wxWindow,
26198 _swigc__p_wxWindowCreateEvent,
26199 _swigc__p_wxWindowDC,
26200 _swigc__p_wxWindowDestroyEvent,
26201 _swigc__p_wxXPMHandler,
26202 };
26203
26204
26205 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
26206
26207 static swig_const_info swig_const_table[] = {
26208 {0, 0, 0, 0.0, 0, 0}};
26209
26210 #ifdef __cplusplus
26211 }
26212 #endif
26213 /* -----------------------------------------------------------------------------
26214 * Type initialization:
26215 * This problem is tough by the requirement that no dynamic
26216 * memory is used. Also, since swig_type_info structures store pointers to
26217 * swig_cast_info structures and swig_cast_info structures store pointers back
26218 * to swig_type_info structures, we need some lookup code at initialization.
26219 * The idea is that swig generates all the structures that are needed.
26220 * The runtime then collects these partially filled structures.
26221 * The SWIG_InitializeModule function takes these initial arrays out of
26222 * swig_module, and does all the lookup, filling in the swig_module.types
26223 * array with the correct data and linking the correct swig_cast_info
26224 * structures together.
26225 *
26226 * The generated swig_type_info structures are assigned staticly to an initial
26227 * array. We just loop though that array, and handle each type individually.
26228 * First we lookup if this type has been already loaded, and if so, use the
26229 * loaded structure instead of the generated one. Then we have to fill in the
26230 * cast linked list. The cast data is initially stored in something like a
26231 * two-dimensional array. Each row corresponds to a type (there are the same
26232 * number of rows as there are in the swig_type_initial array). Each entry in
26233 * a column is one of the swig_cast_info structures for that type.
26234 * The cast_initial array is actually an array of arrays, because each row has
26235 * a variable number of columns. So to actually build the cast linked list,
26236 * we find the array of casts associated with the type, and loop through it
26237 * adding the casts to the list. The one last trick we need to do is making
26238 * sure the type pointer in the swig_cast_info struct is correct.
26239 *
26240 * First off, we lookup the cast->type name to see if it is already loaded.
26241 * There are three cases to handle:
26242 * 1) If the cast->type has already been loaded AND the type we are adding
26243 * casting info to has not been loaded (it is in this module), THEN we
26244 * replace the cast->type pointer with the type pointer that has already
26245 * been loaded.
26246 * 2) If BOTH types (the one we are adding casting info to, and the
26247 * cast->type) are loaded, THEN the cast info has already been loaded by
26248 * the previous module so we just ignore it.
26249 * 3) Finally, if cast->type has not already been loaded, then we add that
26250 * swig_cast_info to the linked list (because the cast->type) pointer will
26251 * be correct.
26252 * ----------------------------------------------------------------------------- */
26253
26254 #ifdef __cplusplus
26255 extern "C" {
26256 #if 0
26257 } /* c-mode */
26258 #endif
26259 #endif
26260
26261 #if 0
26262 #define SWIGRUNTIME_DEBUG
26263 #endif
26264
26265 SWIGRUNTIME void
26266 SWIG_InitializeModule(void *clientdata) {
26267 size_t i;
26268 swig_module_info *module_head;
26269 static int init_run = 0;
26270
26271 clientdata = clientdata;
26272
26273 if (init_run) return;
26274 init_run = 1;
26275
26276 /* Initialize the swig_module */
26277 swig_module.type_initial = swig_type_initial;
26278 swig_module.cast_initial = swig_cast_initial;
26279
26280 /* Try and load any already created modules */
26281 module_head = SWIG_GetModule(clientdata);
26282 if (module_head) {
26283 swig_module.next = module_head->next;
26284 module_head->next = &swig_module;
26285 } else {
26286 /* This is the first module loaded */
26287 swig_module.next = &swig_module;
26288 SWIG_SetModule(clientdata, &swig_module);
26289 }
26290
26291 /* Now work on filling in swig_module.types */
26292 #ifdef SWIGRUNTIME_DEBUG
26293 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
26294 #endif
26295 for (i = 0; i < swig_module.size; ++i) {
26296 swig_type_info *type = 0;
26297 swig_type_info *ret;
26298 swig_cast_info *cast;
26299
26300 #ifdef SWIGRUNTIME_DEBUG
26301 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26302 #endif
26303
26304 /* if there is another module already loaded */
26305 if (swig_module.next != &swig_module) {
26306 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
26307 }
26308 if (type) {
26309 /* Overwrite clientdata field */
26310 #ifdef SWIGRUNTIME_DEBUG
26311 printf("SWIG_InitializeModule: found type %s\n", type->name);
26312 #endif
26313 if (swig_module.type_initial[i]->clientdata) {
26314 type->clientdata = swig_module.type_initial[i]->clientdata;
26315 #ifdef SWIGRUNTIME_DEBUG
26316 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
26317 #endif
26318 }
26319 } else {
26320 type = swig_module.type_initial[i];
26321 }
26322
26323 /* Insert casting types */
26324 cast = swig_module.cast_initial[i];
26325 while (cast->type) {
26326 /* Don't need to add information already in the list */
26327 ret = 0;
26328 #ifdef SWIGRUNTIME_DEBUG
26329 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
26330 #endif
26331 if (swig_module.next != &swig_module) {
26332 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
26333 #ifdef SWIGRUNTIME_DEBUG
26334 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
26335 #endif
26336 }
26337 if (ret) {
26338 if (type == swig_module.type_initial[i]) {
26339 #ifdef SWIGRUNTIME_DEBUG
26340 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
26341 #endif
26342 cast->type = ret;
26343 ret = 0;
26344 } else {
26345 /* Check for casting already in the list */
26346 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
26347 #ifdef SWIGRUNTIME_DEBUG
26348 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
26349 #endif
26350 if (!ocast) ret = 0;
26351 }
26352 }
26353
26354 if (!ret) {
26355 #ifdef SWIGRUNTIME_DEBUG
26356 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
26357 #endif
26358 if (type->cast) {
26359 type->cast->prev = cast;
26360 cast->next = type->cast;
26361 }
26362 type->cast = cast;
26363 }
26364 cast++;
26365 }
26366 /* Set entry in modules->types array equal to the type */
26367 swig_module.types[i] = type;
26368 }
26369 swig_module.types[i] = 0;
26370
26371 #ifdef SWIGRUNTIME_DEBUG
26372 printf("**** SWIG_InitializeModule: Cast List ******\n");
26373 for (i = 0; i < swig_module.size; ++i) {
26374 int j = 0;
26375 swig_cast_info *cast = swig_module.cast_initial[i];
26376 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
26377 while (cast->type) {
26378 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
26379 cast++;
26380 ++j;
26381 }
26382 printf("---- Total casts: %d\n",j);
26383 }
26384 printf("**** SWIG_InitializeModule: Cast List ******\n");
26385 #endif
26386 }
26387
26388 /* This function will propagate the clientdata field of type to
26389 * any new swig_type_info structures that have been added into the list
26390 * of equivalent types. It is like calling
26391 * SWIG_TypeClientData(type, clientdata) a second time.
26392 */
26393 SWIGRUNTIME void
26394 SWIG_PropagateClientData(void) {
26395 size_t i;
26396 swig_cast_info *equiv;
26397 static int init_run = 0;
26398
26399 if (init_run) return;
26400 init_run = 1;
26401
26402 for (i = 0; i < swig_module.size; i++) {
26403 if (swig_module.types[i]->clientdata) {
26404 equiv = swig_module.types[i]->cast;
26405 while (equiv) {
26406 if (!equiv->converter) {
26407 if (equiv->type && !equiv->type->clientdata)
26408 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
26409 }
26410 equiv = equiv->next;
26411 }
26412 }
26413 }
26414 }
26415
26416 #ifdef __cplusplus
26417 #if 0
26418 {
26419 /* c-mode */
26420 #endif
26421 }
26422 #endif
26423
26424
26425
26426 #ifdef __cplusplus
26427 extern "C" {
26428 #endif
26429
26430 /* Python-specific SWIG API */
26431 #define SWIG_newvarlink() SWIG_Python_newvarlink()
26432 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
26433 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
26434
26435 /* -----------------------------------------------------------------------------
26436 * global variable support code.
26437 * ----------------------------------------------------------------------------- */
26438
26439 typedef struct swig_globalvar {
26440 char *name; /* Name of global variable */
26441 PyObject *(*get_attr)(void); /* Return the current value */
26442 int (*set_attr)(PyObject *); /* Set the value */
26443 struct swig_globalvar *next;
26444 } swig_globalvar;
26445
26446 typedef struct swig_varlinkobject {
26447 PyObject_HEAD
26448 swig_globalvar *vars;
26449 } swig_varlinkobject;
26450
26451 SWIGINTERN PyObject *
26452 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
26453 return PyString_FromString("<Swig global variables>");
26454 }
26455
26456 SWIGINTERN PyObject *
26457 swig_varlink_str(swig_varlinkobject *v) {
26458 PyObject *str = PyString_FromString("(");
26459 swig_globalvar *var;
26460 for (var = v->vars; var; var=var->next) {
26461 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
26462 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
26463 }
26464 PyString_ConcatAndDel(&str,PyString_FromString(")"));
26465 return str;
26466 }
26467
26468 SWIGINTERN int
26469 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
26470 PyObject *str = swig_varlink_str(v);
26471 fprintf(fp,"Swig global variables ");
26472 fprintf(fp,"%s\n", PyString_AsString(str));
26473 Py_DECREF(str);
26474 return 0;
26475 }
26476
26477 SWIGINTERN void
26478 swig_varlink_dealloc(swig_varlinkobject *v) {
26479 swig_globalvar *var = v->vars;
26480 while (var) {
26481 swig_globalvar *n = var->next;
26482 free(var->name);
26483 free(var);
26484 var = n;
26485 }
26486 }
26487
26488 SWIGINTERN PyObject *
26489 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
26490 PyObject *res = NULL;
26491 swig_globalvar *var = v->vars;
26492 while (var) {
26493 if (strcmp(var->name,n) == 0) {
26494 res = (*var->get_attr)();
26495 break;
26496 }
26497 var = var->next;
26498 }
26499 if (res == NULL && !PyErr_Occurred()) {
26500 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26501 }
26502 return res;
26503 }
26504
26505 SWIGINTERN int
26506 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
26507 int res = 1;
26508 swig_globalvar *var = v->vars;
26509 while (var) {
26510 if (strcmp(var->name,n) == 0) {
26511 res = (*var->set_attr)(p);
26512 break;
26513 }
26514 var = var->next;
26515 }
26516 if (res == 1 && !PyErr_Occurred()) {
26517 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
26518 }
26519 return res;
26520 }
26521
26522 SWIGINTERN PyTypeObject*
26523 swig_varlink_type(void) {
26524 static char varlink__doc__[] = "Swig var link object";
26525 static PyTypeObject varlink_type;
26526 static int type_init = 0;
26527 if (!type_init) {
26528 const PyTypeObject tmp
26529 = {
26530 PyObject_HEAD_INIT(NULL)
26531 0, /* Number of items in variable part (ob_size) */
26532 (char *)"swigvarlink", /* Type name (tp_name) */
26533 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
26534 0, /* Itemsize (tp_itemsize) */
26535 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
26536 (printfunc) swig_varlink_print, /* Print (tp_print) */
26537 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
26538 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
26539 0, /* tp_compare */
26540 (reprfunc) swig_varlink_repr, /* tp_repr */
26541 0, /* tp_as_number */
26542 0, /* tp_as_sequence */
26543 0, /* tp_as_mapping */
26544 0, /* tp_hash */
26545 0, /* tp_call */
26546 (reprfunc)swig_varlink_str, /* tp_str */
26547 0, /* tp_getattro */
26548 0, /* tp_setattro */
26549 0, /* tp_as_buffer */
26550 0, /* tp_flags */
26551 varlink__doc__, /* tp_doc */
26552 0, /* tp_traverse */
26553 0, /* tp_clear */
26554 0, /* tp_richcompare */
26555 0, /* tp_weaklistoffset */
26556 #if PY_VERSION_HEX >= 0x02020000
26557 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
26558 #endif
26559 #if PY_VERSION_HEX >= 0x02030000
26560 0, /* tp_del */
26561 #endif
26562 #ifdef COUNT_ALLOCS
26563 0,0,0,0 /* tp_alloc -> tp_next */
26564 #endif
26565 };
26566 varlink_type = tmp;
26567 varlink_type.ob_type = &PyType_Type;
26568 type_init = 1;
26569 }
26570 return &varlink_type;
26571 }
26572
26573 /* Create a variable linking object for use later */
26574 SWIGINTERN PyObject *
26575 SWIG_Python_newvarlink(void) {
26576 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
26577 if (result) {
26578 result->vars = 0;
26579 }
26580 return ((PyObject*) result);
26581 }
26582
26583 SWIGINTERN void
26584 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
26585 swig_varlinkobject *v = (swig_varlinkobject *) p;
26586 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
26587 if (gv) {
26588 size_t size = strlen(name)+1;
26589 gv->name = (char *)malloc(size);
26590 if (gv->name) {
26591 strncpy(gv->name,name,size);
26592 gv->get_attr = get_attr;
26593 gv->set_attr = set_attr;
26594 gv->next = v->vars;
26595 }
26596 }
26597 v->vars = gv;
26598 }
26599
26600 SWIGINTERN PyObject *
26601 SWIG_globals() {
26602 static PyObject *_SWIG_globals = 0;
26603 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
26604 return _SWIG_globals;
26605 }
26606
26607 /* -----------------------------------------------------------------------------
26608 * constants/methods manipulation
26609 * ----------------------------------------------------------------------------- */
26610
26611 /* Install Constants */
26612 SWIGINTERN void
26613 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
26614 PyObject *obj = 0;
26615 size_t i;
26616 for (i = 0; constants[i].type; ++i) {
26617 switch(constants[i].type) {
26618 case SWIG_PY_POINTER:
26619 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
26620 break;
26621 case SWIG_PY_BINARY:
26622 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
26623 break;
26624 default:
26625 obj = 0;
26626 break;
26627 }
26628 if (obj) {
26629 PyDict_SetItemString(d, constants[i].name, obj);
26630 Py_DECREF(obj);
26631 }
26632 }
26633 }
26634
26635 /* -----------------------------------------------------------------------------*/
26636 /* Fix SwigMethods to carry the callback ptrs when needed */
26637 /* -----------------------------------------------------------------------------*/
26638
26639 SWIGINTERN void
26640 SWIG_Python_FixMethods(PyMethodDef *methods,
26641 swig_const_info *const_table,
26642 swig_type_info **types,
26643 swig_type_info **types_initial) {
26644 size_t i;
26645 for (i = 0; methods[i].ml_name; ++i) {
26646 char *c = methods[i].ml_doc;
26647 if (c && (c = strstr(c, "swig_ptr: "))) {
26648 int j;
26649 swig_const_info *ci = 0;
26650 char *name = c + 10;
26651 for (j = 0; const_table[j].type; ++j) {
26652 if (strncmp(const_table[j].name, name,
26653 strlen(const_table[j].name)) == 0) {
26654 ci = &(const_table[j]);
26655 break;
26656 }
26657 }
26658 if (ci) {
26659 size_t shift = (ci->ptype) - types;
26660 swig_type_info *ty = types_initial[shift];
26661 size_t ldoc = (c - methods[i].ml_doc);
26662 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
26663 char *ndoc = (char*)malloc(ldoc + lptr + 10);
26664 if (ndoc) {
26665 char *buff = ndoc;
26666 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
26667 if (ptr) {
26668 strncpy(buff, methods[i].ml_doc, ldoc);
26669 buff += ldoc;
26670 strncpy(buff, "swig_ptr: ", 10);
26671 buff += 10;
26672 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
26673 methods[i].ml_doc = ndoc;
26674 }
26675 }
26676 }
26677 }
26678 }
26679 }
26680
26681 #ifdef __cplusplus
26682 }
26683 #endif
26684
26685 /* -----------------------------------------------------------------------------*
26686 * Partial Init method
26687 * -----------------------------------------------------------------------------*/
26688
26689 #ifdef __cplusplus
26690 extern "C"
26691 #endif
26692 SWIGEXPORT void SWIG_init(void) {
26693 PyObject *m, *d;
26694
26695 /* Fix SwigMethods to carry the callback ptrs when needed */
26696 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
26697
26698 m = Py_InitModule((char *) SWIG_name, SwigMethods);
26699 d = PyModule_GetDict(m);
26700
26701 SWIG_InitializeModule(0);
26702 SWIG_InstallConstants(d,swig_const_table);
26703
26704
26705 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
26706 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
26707 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
26708 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
26709 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
26710 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
26711 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
26712 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
26713 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
26714 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
26715 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
26716 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
26717 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
26718 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
26719 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
26720 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
26721 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
26722 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
26723 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
26724 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
26725 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
26726 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
26727 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
26728 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
26729 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
26730 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
26731 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
26732 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
26733 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
26734 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
26735 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
26736 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
26737 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
26738 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
26739 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
26740 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
26741 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
26742 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
26743 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
26744 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
26745 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
26746 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
26747 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
26748 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
26749 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
26750 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
26751 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
26752 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
26753 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
26754 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
26755 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
26756 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
26757 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
26758 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
26759 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
26760 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
26761 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
26762 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
26763 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
26764 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
26765 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
26766 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
26767 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
26768 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
26769 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
26770 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
26771 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
26772 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
26773 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
26774 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
26775 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
26776 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
26777 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
26778 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
26779 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
26780 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
26781 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
26782 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
26783 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
26784 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
26785 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
26786 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
26787 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
26788 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
26789 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
26790 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
26791 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
26792 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
26793 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
26794 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
26795 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
26796 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
26797 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
26798 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
26799 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
26800 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
26801 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
26802 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
26803 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
26804 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
26805 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
26806 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
26807 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
26808 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
26809 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
26810 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
26811 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
26812 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
26813 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
26814 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
26815 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
26816 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
26817 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
26818 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
26819 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
26820 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
26821 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
26822 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
26823 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
26824 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
26825 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
26826 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
26827 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
26828 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
26829 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
26830 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
26831 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
26832
26833 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
26834
26835 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
26836 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
26837 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
26838 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
26839 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
26840 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
26841 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
26842 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
26843 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
26844 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
26845 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
26846 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
26847 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
26848 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
26849 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
26850 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
26851 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
26852 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
26853 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
26854 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
26855 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
26856 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
26857 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
26858 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
26859 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
26860 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
26861 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
26862 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
26863 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
26864 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
26865 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
26866 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
26867 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
26868 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
26869 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
26870 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
26871 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
26872 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
26873 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
26874 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
26875 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
26876 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
26877 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
26878 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
26879 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
26880 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
26881 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
26882 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
26883 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
26884 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
26885 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
26886 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
26887 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
26888 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
26889 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
26890 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
26891 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
26892 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
26893 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
26894 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
26895 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
26896 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
26897 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
26898 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
26899 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
26900 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
26901 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
26902 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
26903 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
26904 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
26905 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
26906 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
26907 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
26908 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
26909 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
26910 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
26911 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
26912 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
26913 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
26914 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
26915 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
26916 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
26917 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
26918 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
26919 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
26920 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
26921 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
26922 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
26923 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
26924 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
26925 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
26926 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
26927 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
26928 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
26929 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
26930 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
26931 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
26932 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
26933 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
26934 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
26935 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
26936 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
26937 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
26938 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
26939 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
26940 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
26941 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
26942 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
26943 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
26944 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
26945 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
26946 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
26947 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
26948 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
26949 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
26950 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
26951 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
26952 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
26953 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
26954 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
26955 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
26956 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
26957 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
26958 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
26959 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
26960 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
26961 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
26962 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
26963 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
26964 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
26965 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
26966 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
26967 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
26968 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
26969 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
26970 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
26971 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
26972 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
26973 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
26974 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
26975 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
26976 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
26977 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
26978 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
26979 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
26980 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
26981 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
26982 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
26983 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
26984 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
26985 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
26986 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
26987 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
26988 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
26989 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
26990 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
26991 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
26992 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
26993 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
26994 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
26995 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
26996 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
26997 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
26998 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
26999 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
27000 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
27001 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
27002 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
27003 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
27004 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
27005 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
27006 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
27007 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
27008 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
27009 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
27010 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
27011 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
27012 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
27013 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
27014 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
27015 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
27016 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
27017 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
27018 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
27019 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
27020 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
27021 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
27022 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
27023 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
27024 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
27025 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
27026 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
27027 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
27028 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
27029 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
27030 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
27031 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
27032 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
27033 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
27034 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
27035 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
27036 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
27037 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
27038 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
27039 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
27040 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
27041 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
27042 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
27043 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
27044 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
27045 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
27046 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
27047 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
27048 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
27049 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
27050 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
27051 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
27052 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
27053 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
27054 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
27055 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
27056 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
27057 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
27058 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
27059 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
27060 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
27061 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
27062 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
27063 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
27064 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
27065 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
27066 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
27067 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
27068 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
27069 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
27070 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
27071 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
27072 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
27073 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
27074 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
27075 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
27076 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
27077 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
27078 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
27079 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
27080 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
27081 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
27082 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
27083 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
27084 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
27085 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
27086 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
27087 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
27088 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
27089 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
27090 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
27091 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
27092 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
27093 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
27094 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
27095 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
27096 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
27097 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
27098 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
27099 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
27100 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
27101 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
27102 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
27103 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
27104 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
27105 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
27106 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
27107 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
27108 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
27109 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
27110 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
27111 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
27112 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
27113 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
27114 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
27115 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
27116 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
27117 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
27118 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
27119 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
27120 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
27121 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
27122 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
27123 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
27124 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
27125 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
27126 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
27127 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
27128 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
27129 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
27130 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
27131 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
27132 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
27133 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
27134 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
27135 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
27136 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
27137 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
27138 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
27139 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
27140 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
27141 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
27142 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
27143 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
27144 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
27145 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
27146 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
27147 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
27148 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
27149
27150 // Work around a chicken/egg problem in drawlist.cpp
27151 wxPyDrawList_SetAPIPtr();
27152
27153 }
27154