]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_gdi_wrap.cpp
memory dc must have bitmap selected into it before it can be used for measuring
[wxWidgets.git] / wxPython / src / msw / _gdi_wrap.cpp
1 /* ----------------------------------------------------------------------------
2 * This file was automatically generated by SWIG (http://www.swig.org).
3 * Version 1.3.29
4 *
5 * This file is not intended to be easily readable and contains a number of
6 * coding conventions designed to improve portability and efficiency. Do not make
7 * changes to this file unless you know what you are doing--modify the SWIG
8 * interface file instead.
9 * ----------------------------------------------------------------------------- */
10
11 #define SWIGPYTHON
12 #define SWIG_PYTHON_DIRECTOR_NO_VTABLE
13
14 #ifdef __cplusplus
15 template<class T> class SwigValueWrapper {
16 T *tt;
17 public:
18 SwigValueWrapper() : tt(0) { }
19 SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { }
20 SwigValueWrapper(const T& t) : tt(new T(t)) { }
21 ~SwigValueWrapper() { delete tt; }
22 SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; }
23 operator T&() const { return *tt; }
24 T *operator&() { return tt; }
25 private:
26 SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
27 };
28 #endif
29
30 /* -----------------------------------------------------------------------------
31 * This section contains generic SWIG labels for method/variable
32 * declarations/attributes, and other compiler dependent labels.
33 * ----------------------------------------------------------------------------- */
34
35 /* template workaround for compilers that cannot correctly implement the C++ standard */
36 #ifndef SWIGTEMPLATEDISAMBIGUATOR
37 # if defined(__SUNPRO_CC)
38 # if (__SUNPRO_CC <= 0x560)
39 # define SWIGTEMPLATEDISAMBIGUATOR template
40 # else
41 # define SWIGTEMPLATEDISAMBIGUATOR
42 # endif
43 # else
44 # define SWIGTEMPLATEDISAMBIGUATOR
45 # endif
46 #endif
47
48 /* inline attribute */
49 #ifndef SWIGINLINE
50 # if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
51 # define SWIGINLINE inline
52 # else
53 # define SWIGINLINE
54 # endif
55 #endif
56
57 /* attribute recognised by some compilers to avoid 'unused' warnings */
58 #ifndef SWIGUNUSED
59 # if defined(__GNUC__)
60 # if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
61 # define SWIGUNUSED __attribute__ ((__unused__))
62 # else
63 # define SWIGUNUSED
64 # endif
65 # elif defined(__ICC)
66 # define SWIGUNUSED __attribute__ ((__unused__))
67 # else
68 # define SWIGUNUSED
69 # endif
70 #endif
71
72 #ifndef SWIGUNUSEDPARM
73 # ifdef __cplusplus
74 # define SWIGUNUSEDPARM(p)
75 # else
76 # define SWIGUNUSEDPARM(p) p SWIGUNUSED
77 # endif
78 #endif
79
80 /* internal SWIG method */
81 #ifndef SWIGINTERN
82 # define SWIGINTERN static SWIGUNUSED
83 #endif
84
85 /* internal inline SWIG method */
86 #ifndef SWIGINTERNINLINE
87 # define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
88 #endif
89
90 /* exporting methods */
91 #if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
92 # ifndef GCC_HASCLASSVISIBILITY
93 # define GCC_HASCLASSVISIBILITY
94 # endif
95 #endif
96
97 #ifndef SWIGEXPORT
98 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
99 # if defined(STATIC_LINKED)
100 # define SWIGEXPORT
101 # else
102 # define SWIGEXPORT __declspec(dllexport)
103 # endif
104 # else
105 # if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
106 # define SWIGEXPORT __attribute__ ((visibility("default")))
107 # else
108 # define SWIGEXPORT
109 # endif
110 # endif
111 #endif
112
113 /* calling conventions for Windows */
114 #ifndef SWIGSTDCALL
115 # if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
116 # define SWIGSTDCALL __stdcall
117 # else
118 # define SWIGSTDCALL
119 # endif
120 #endif
121
122 /* Deal with Microsoft's attempt at deprecating C standard runtime functions */
123 #if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER)
124 # define _CRT_SECURE_NO_DEPRECATE
125 #endif
126
127
128 /* Python.h has to appear first */
129 #include <Python.h>
130
131 /* -----------------------------------------------------------------------------
132 * swigrun.swg
133 *
134 * This file contains generic CAPI SWIG runtime support for pointer
135 * type checking.
136 * ----------------------------------------------------------------------------- */
137
138 /* This should only be incremented when either the layout of swig_type_info changes,
139 or for whatever reason, the runtime changes incompatibly */
140 #define SWIG_RUNTIME_VERSION "2"
141
142 /* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
143 #ifdef SWIG_TYPE_TABLE
144 # define SWIG_QUOTE_STRING(x) #x
145 # define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
146 # define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
147 #else
148 # define SWIG_TYPE_TABLE_NAME
149 #endif
150
151 /*
152 You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
153 creating a static or dynamic library from the swig runtime code.
154 In 99.9% of the cases, swig just needs to declare them as 'static'.
155
156 But only do this if is strictly necessary, ie, if you have problems
157 with your compiler or so.
158 */
159
160 #ifndef SWIGRUNTIME
161 # define SWIGRUNTIME SWIGINTERN
162 #endif
163
164 #ifndef SWIGRUNTIMEINLINE
165 # define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
166 #endif
167
168 /* Generic buffer size */
169 #ifndef SWIG_BUFFER_SIZE
170 # define SWIG_BUFFER_SIZE 1024
171 #endif
172
173 /* Flags for pointer conversions */
174 #define SWIG_POINTER_DISOWN 0x1
175
176 /* Flags for new pointer objects */
177 #define SWIG_POINTER_OWN 0x1
178
179
180 /*
181 Flags/methods for returning states.
182
183 The swig conversion methods, as ConvertPtr, return and integer
184 that tells if the conversion was successful or not. And if not,
185 an error code can be returned (see swigerrors.swg for the codes).
186
187 Use the following macros/flags to set or process the returning
188 states.
189
190 In old swig versions, you usually write code as:
191
192 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
193 // success code
194 } else {
195 //fail code
196 }
197
198 Now you can be more explicit as:
199
200 int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
201 if (SWIG_IsOK(res)) {
202 // success code
203 } else {
204 // fail code
205 }
206
207 that seems to be the same, but now you can also do
208
209 Type *ptr;
210 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
211 if (SWIG_IsOK(res)) {
212 // success code
213 if (SWIG_IsNewObj(res) {
214 ...
215 delete *ptr;
216 } else {
217 ...
218 }
219 } else {
220 // fail code
221 }
222
223 I.e., now SWIG_ConvertPtr can return new objects and you can
224 identify the case and take care of the deallocation. Of course that
225 requires also to SWIG_ConvertPtr to return new result values, as
226
227 int SWIG_ConvertPtr(obj, ptr,...) {
228 if (<obj is ok>) {
229 if (<need new object>) {
230 *ptr = <ptr to new allocated object>;
231 return SWIG_NEWOBJ;
232 } else {
233 *ptr = <ptr to old object>;
234 return SWIG_OLDOBJ;
235 }
236 } else {
237 return SWIG_BADOBJ;
238 }
239 }
240
241 Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
242 more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
243 swig errors code.
244
245 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
246 allows to return the 'cast rank', for example, if you have this
247
248 int food(double)
249 int fooi(int);
250
251 and you call
252
253 food(1) // cast rank '1' (1 -> 1.0)
254 fooi(1) // cast rank '0'
255
256 just use the SWIG_AddCast()/SWIG_CheckState()
257
258
259 */
260 #define SWIG_OK (0)
261 #define SWIG_ERROR (-1)
262 #define SWIG_IsOK(r) (r >= 0)
263 #define SWIG_ArgError(r) ((r != SWIG_ERROR) ? r : SWIG_TypeError)
264
265 /* The CastRankLimit says how many bits are used for the cast rank */
266 #define SWIG_CASTRANKLIMIT (1 << 8)
267 /* The NewMask denotes the object was created (using new/malloc) */
268 #define SWIG_NEWOBJMASK (SWIG_CASTRANKLIMIT << 1)
269 /* The TmpMask is for in/out typemaps that use temporal objects */
270 #define SWIG_TMPOBJMASK (SWIG_NEWOBJMASK << 1)
271 /* Simple returning values */
272 #define SWIG_BADOBJ (SWIG_ERROR)
273 #define SWIG_OLDOBJ (SWIG_OK)
274 #define SWIG_NEWOBJ (SWIG_OK | SWIG_NEWOBJMASK)
275 #define SWIG_TMPOBJ (SWIG_OK | SWIG_TMPOBJMASK)
276 /* Check, add and del mask methods */
277 #define SWIG_AddNewMask(r) (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
278 #define SWIG_DelNewMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
279 #define SWIG_IsNewObj(r) (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
280 #define SWIG_AddTmpMask(r) (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
281 #define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
282 #define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
283
284
285 /* Cast-Rank Mode */
286 #if defined(SWIG_CASTRANK_MODE)
287 # ifndef SWIG_TypeRank
288 # define SWIG_TypeRank unsigned long
289 # endif
290 # ifndef SWIG_MAXCASTRANK /* Default cast allowed */
291 # define SWIG_MAXCASTRANK (2)
292 # endif
293 # define SWIG_CASTRANKMASK ((SWIG_CASTRANKLIMIT) -1)
294 # define SWIG_CastRank(r) (r & SWIG_CASTRANKMASK)
295 SWIGINTERNINLINE int SWIG_AddCast(int r) {
296 return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
297 }
298 SWIGINTERNINLINE int SWIG_CheckState(int r) {
299 return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
300 }
301 #else /* no cast-rank mode */
302 # define SWIG_AddCast
303 # define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
304 #endif
305
306
307
308
309 #include <string.h>
310
311 #ifdef __cplusplus
312 extern "C" {
313 #endif
314
315 typedef void *(*swig_converter_func)(void *);
316 typedef struct swig_type_info *(*swig_dycast_func)(void **);
317
318 /* Structure to store inforomation on one type */
319 typedef struct swig_type_info {
320 const char *name; /* mangled name of this type */
321 const char *str; /* human readable name of this type */
322 swig_dycast_func dcast; /* dynamic cast function down a hierarchy */
323 struct swig_cast_info *cast; /* linked list of types that can cast into this type */
324 void *clientdata; /* language specific type data */
325 int owndata; /* flag if the structure owns the clientdata */
326 } swig_type_info;
327
328 /* Structure to store a type and conversion function used for casting */
329 typedef struct swig_cast_info {
330 swig_type_info *type; /* pointer to type that is equivalent to this type */
331 swig_converter_func converter; /* function to cast the void pointers */
332 struct swig_cast_info *next; /* pointer to next cast in linked list */
333 struct swig_cast_info *prev; /* pointer to the previous cast */
334 } swig_cast_info;
335
336 /* Structure used to store module information
337 * Each module generates one structure like this, and the runtime collects
338 * all of these structures and stores them in a circularly linked list.*/
339 typedef struct swig_module_info {
340 swig_type_info **types; /* Array of pointers to swig_type_info structures that are in this module */
341 size_t size; /* Number of types in this module */
342 struct swig_module_info *next; /* Pointer to next element in circularly linked list */
343 swig_type_info **type_initial; /* Array of initially generated type structures */
344 swig_cast_info **cast_initial; /* Array of initially generated casting structures */
345 void *clientdata; /* Language specific module data */
346 } swig_module_info;
347
348 /*
349 Compare two type names skipping the space characters, therefore
350 "char*" == "char *" and "Class<int>" == "Class<int >", etc.
351
352 Return 0 when the two name types are equivalent, as in
353 strncmp, but skipping ' '.
354 */
355 SWIGRUNTIME int
356 SWIG_TypeNameComp(const char *f1, const char *l1,
357 const char *f2, const char *l2) {
358 for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
359 while ((*f1 == ' ') && (f1 != l1)) ++f1;
360 while ((*f2 == ' ') && (f2 != l2)) ++f2;
361 if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
362 }
363 return (l1 - f1) - (l2 - f2);
364 }
365
366 /*
367 Check type equivalence in a name list like <name1>|<name2>|...
368 Return 0 if not equal, 1 if equal
369 */
370 SWIGRUNTIME int
371 SWIG_TypeEquiv(const char *nb, const char *tb) {
372 int equiv = 0;
373 const char* te = tb + strlen(tb);
374 const char* ne = nb;
375 while (!equiv && *ne) {
376 for (nb = ne; *ne; ++ne) {
377 if (*ne == '|') break;
378 }
379 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
380 if (*ne) ++ne;
381 }
382 return equiv;
383 }
384
385 /*
386 Check type equivalence in a name list like <name1>|<name2>|...
387 Return 0 if equal, -1 if nb < tb, 1 if nb > tb
388 */
389 SWIGRUNTIME int
390 SWIG_TypeCompare(const char *nb, const char *tb) {
391 int equiv = 0;
392 const char* te = tb + strlen(tb);
393 const char* ne = nb;
394 while (!equiv && *ne) {
395 for (nb = ne; *ne; ++ne) {
396 if (*ne == '|') break;
397 }
398 equiv = (SWIG_TypeNameComp(nb, ne, tb, te) == 0) ? 1 : 0;
399 if (*ne) ++ne;
400 }
401 return equiv;
402 }
403
404
405 /* think of this as a c++ template<> or a scheme macro */
406 #define SWIG_TypeCheck_Template(comparison, ty) \
407 if (ty) { \
408 swig_cast_info *iter = ty->cast; \
409 while (iter) { \
410 if (comparison) { \
411 if (iter == ty->cast) return iter; \
412 /* Move iter to the top of the linked list */ \
413 iter->prev->next = iter->next; \
414 if (iter->next) \
415 iter->next->prev = iter->prev; \
416 iter->next = ty->cast; \
417 iter->prev = 0; \
418 if (ty->cast) ty->cast->prev = iter; \
419 ty->cast = iter; \
420 return iter; \
421 } \
422 iter = iter->next; \
423 } \
424 } \
425 return 0
426
427 /*
428 Check the typename
429 */
430 SWIGRUNTIME swig_cast_info *
431 SWIG_TypeCheck(const char *c, swig_type_info *ty) {
432 SWIG_TypeCheck_Template(strcmp(iter->type->name, c) == 0, ty);
433 }
434
435 /* Same as previous function, except strcmp is replaced with a pointer comparison */
436 SWIGRUNTIME swig_cast_info *
437 SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *into) {
438 SWIG_TypeCheck_Template(iter->type == from, into);
439 }
440
441 /*
442 Cast a pointer up an inheritance hierarchy
443 */
444 SWIGRUNTIMEINLINE void *
445 SWIG_TypeCast(swig_cast_info *ty, void *ptr) {
446 return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr);
447 }
448
449 /*
450 Dynamic pointer casting. Down an inheritance hierarchy
451 */
452 SWIGRUNTIME swig_type_info *
453 SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
454 swig_type_info *lastty = ty;
455 if (!ty || !ty->dcast) return ty;
456 while (ty && (ty->dcast)) {
457 ty = (*ty->dcast)(ptr);
458 if (ty) lastty = ty;
459 }
460 return lastty;
461 }
462
463 /*
464 Return the name associated with this type
465 */
466 SWIGRUNTIMEINLINE const char *
467 SWIG_TypeName(const swig_type_info *ty) {
468 return ty->name;
469 }
470
471 /*
472 Return the pretty name associated with this type,
473 that is an unmangled type name in a form presentable to the user.
474 */
475 SWIGRUNTIME const char *
476 SWIG_TypePrettyName(const swig_type_info *type) {
477 /* The "str" field contains the equivalent pretty names of the
478 type, separated by vertical-bar characters. We choose
479 to print the last name, as it is often (?) the most
480 specific. */
481 if (!type) return NULL;
482 if (type->str != NULL) {
483 const char *last_name = type->str;
484 const char *s;
485 for (s = type->str; *s; s++)
486 if (*s == '|') last_name = s+1;
487 return last_name;
488 }
489 else
490 return type->name;
491 }
492
493 /*
494 Set the clientdata field for a type
495 */
496 SWIGRUNTIME void
497 SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
498 swig_cast_info *cast = ti->cast;
499 /* if (ti->clientdata == clientdata) return; */
500 ti->clientdata = clientdata;
501
502 while (cast) {
503 if (!cast->converter) {
504 swig_type_info *tc = cast->type;
505 if (!tc->clientdata) {
506 SWIG_TypeClientData(tc, clientdata);
507 }
508 }
509 cast = cast->next;
510 }
511 }
512 SWIGRUNTIME void
513 SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
514 SWIG_TypeClientData(ti, clientdata);
515 ti->owndata = 1;
516 }
517
518 /*
519 Search for a swig_type_info structure only by mangled name
520 Search is a O(log #types)
521
522 We start searching at module start, and finish searching when start == end.
523 Note: if start == end at the beginning of the function, we go all the way around
524 the circular list.
525 */
526 SWIGRUNTIME swig_type_info *
527 SWIG_MangledTypeQueryModule(swig_module_info *start,
528 swig_module_info *end,
529 const char *name) {
530 swig_module_info *iter = start;
531 do {
532 if (iter->size) {
533 register size_t l = 0;
534 register size_t r = iter->size - 1;
535 do {
536 /* since l+r >= 0, we can (>> 1) instead (/ 2) */
537 register size_t i = (l + r) >> 1;
538 const char *iname = iter->types[i]->name;
539 if (iname) {
540 register int compare = strcmp(name, iname);
541 if (compare == 0) {
542 return iter->types[i];
543 } else if (compare < 0) {
544 if (i) {
545 r = i - 1;
546 } else {
547 break;
548 }
549 } else if (compare > 0) {
550 l = i + 1;
551 }
552 } else {
553 break; /* should never happen */
554 }
555 } while (l <= r);
556 }
557 iter = iter->next;
558 } while (iter != end);
559 return 0;
560 }
561
562 /*
563 Search for a swig_type_info structure for either a mangled name or a human readable name.
564 It first searches the mangled names of the types, which is a O(log #types)
565 If a type is not found it then searches the human readable names, which is O(#types).
566
567 We start searching at module start, and finish searching when start == end.
568 Note: if start == end at the beginning of the function, we go all the way around
569 the circular list.
570 */
571 SWIGRUNTIME swig_type_info *
572 SWIG_TypeQueryModule(swig_module_info *start,
573 swig_module_info *end,
574 const char *name) {
575 /* STEP 1: Search the name field using binary search */
576 swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
577 if (ret) {
578 return ret;
579 } else {
580 /* STEP 2: If the type hasn't been found, do a complete search
581 of the str field (the human readable name) */
582 swig_module_info *iter = start;
583 do {
584 register size_t i = 0;
585 for (; i < iter->size; ++i) {
586 if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
587 return iter->types[i];
588 }
589 iter = iter->next;
590 } while (iter != end);
591 }
592
593 /* neither found a match */
594 return 0;
595 }
596
597 /*
598 Pack binary data into a string
599 */
600 SWIGRUNTIME char *
601 SWIG_PackData(char *c, void *ptr, size_t sz) {
602 static const char hex[17] = "0123456789abcdef";
603 register const unsigned char *u = (unsigned char *) ptr;
604 register const unsigned char *eu = u + sz;
605 for (; u != eu; ++u) {
606 register unsigned char uu = *u;
607 *(c++) = hex[(uu & 0xf0) >> 4];
608 *(c++) = hex[uu & 0xf];
609 }
610 return c;
611 }
612
613 /*
614 Unpack binary data from a string
615 */
616 SWIGRUNTIME const char *
617 SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
618 register unsigned char *u = (unsigned char *) ptr;
619 register const unsigned char *eu = u + sz;
620 for (; u != eu; ++u) {
621 register char d = *(c++);
622 register unsigned char uu;
623 if ((d >= '0') && (d <= '9'))
624 uu = ((d - '0') << 4);
625 else if ((d >= 'a') && (d <= 'f'))
626 uu = ((d - ('a'-10)) << 4);
627 else
628 return (char *) 0;
629 d = *(c++);
630 if ((d >= '0') && (d <= '9'))
631 uu |= (d - '0');
632 else if ((d >= 'a') && (d <= 'f'))
633 uu |= (d - ('a'-10));
634 else
635 return (char *) 0;
636 *u = uu;
637 }
638 return c;
639 }
640
641 /*
642 Pack 'void *' into a string buffer.
643 */
644 SWIGRUNTIME char *
645 SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
646 char *r = buff;
647 if ((2*sizeof(void *) + 2) > bsz) return 0;
648 *(r++) = '_';
649 r = SWIG_PackData(r,&ptr,sizeof(void *));
650 if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
651 strcpy(r,name);
652 return buff;
653 }
654
655 SWIGRUNTIME const char *
656 SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
657 if (*c != '_') {
658 if (strcmp(c,"NULL") == 0) {
659 *ptr = (void *) 0;
660 return name;
661 } else {
662 return 0;
663 }
664 }
665 return SWIG_UnpackData(++c,ptr,sizeof(void *));
666 }
667
668 SWIGRUNTIME char *
669 SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
670 char *r = buff;
671 size_t lname = (name ? strlen(name) : 0);
672 if ((2*sz + 2 + lname) > bsz) return 0;
673 *(r++) = '_';
674 r = SWIG_PackData(r,ptr,sz);
675 if (lname) {
676 strncpy(r,name,lname+1);
677 } else {
678 *r = 0;
679 }
680 return buff;
681 }
682
683 SWIGRUNTIME const char *
684 SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
685 if (*c != '_') {
686 if (strcmp(c,"NULL") == 0) {
687 memset(ptr,0,sz);
688 return name;
689 } else {
690 return 0;
691 }
692 }
693 return SWIG_UnpackData(++c,ptr,sz);
694 }
695
696 #ifdef __cplusplus
697 }
698 #endif
699
700 /* Errors in SWIG */
701 #define SWIG_UnknownError -1
702 #define SWIG_IOError -2
703 #define SWIG_RuntimeError -3
704 #define SWIG_IndexError -4
705 #define SWIG_TypeError -5
706 #define SWIG_DivisionByZero -6
707 #define SWIG_OverflowError -7
708 #define SWIG_SyntaxError -8
709 #define SWIG_ValueError -9
710 #define SWIG_SystemError -10
711 #define SWIG_AttributeError -11
712 #define SWIG_MemoryError -12
713 #define SWIG_NullReferenceError -13
714
715
716
717 /* Python.h has to appear first */
718 #include <Python.h>
719
720 /* Add PyOS_snprintf for old Pythons */
721 #if PY_VERSION_HEX < 0x02020000
722 # if defined(_MSC_VER) || defined(__BORLANDC__) || defined(_WATCOM)
723 # define PyOS_snprintf _snprintf
724 # else
725 # define PyOS_snprintf snprintf
726 # endif
727 #endif
728
729 /* A crude PyString_FromFormat implementation for old Pythons */
730 #if PY_VERSION_HEX < 0x02020000
731
732 #ifndef SWIG_PYBUFFER_SIZE
733 # define SWIG_PYBUFFER_SIZE 1024
734 #endif
735
736 static PyObject *
737 PyString_FromFormat(const char *fmt, ...) {
738 va_list ap;
739 char buf[SWIG_PYBUFFER_SIZE * 2];
740 int res;
741 va_start(ap, fmt);
742 res = vsnprintf(buf, sizeof(buf), fmt, ap);
743 va_end(ap);
744 return (res < 0 || res >= (int)sizeof(buf)) ? 0 : PyString_FromString(buf);
745 }
746 #endif
747
748 /* Add PyObject_Del for old Pythons */
749 #if PY_VERSION_HEX < 0x01060000
750 # define PyObject_Del(op) PyMem_DEL((op))
751 #endif
752 #ifndef PyObject_DEL
753 # define PyObject_DEL PyObject_Del
754 #endif
755
756 /* A crude PyExc_StopIteration exception for old Pythons */
757 #if PY_VERSION_HEX < 0x02020000
758 # ifndef PyExc_StopIteration
759 # define PyExc_StopIteration PyExc_RuntimeError
760 # endif
761 # ifndef PyObject_GenericGetAttr
762 # define PyObject_GenericGetAttr 0
763 # endif
764 #endif
765 /* Py_NotImplemented is defined in 2.1 and up. */
766 #if PY_VERSION_HEX < 0x02010000
767 # ifndef Py_NotImplemented
768 # define Py_NotImplemented PyExc_RuntimeError
769 # endif
770 #endif
771
772
773 /* A crude PyString_AsStringAndSize implementation for old Pythons */
774 #if PY_VERSION_HEX < 0x02010000
775 # ifndef PyString_AsStringAndSize
776 # define PyString_AsStringAndSize(obj, s, len) {*s = PyString_AsString(obj); *len = *s ? strlen(*s) : 0;}
777 # endif
778 #endif
779
780 /* PySequence_Size for old Pythons */
781 #if PY_VERSION_HEX < 0x02000000
782 # ifndef PySequence_Size
783 # define PySequence_Size PySequence_Length
784 # endif
785 #endif
786
787
788 /* PyBool_FromLong for old Pythons */
789 #if PY_VERSION_HEX < 0x02030000
790 static
791 PyObject *PyBool_FromLong(long ok)
792 {
793 PyObject *result = ok ? Py_True : Py_False;
794 Py_INCREF(result);
795 return result;
796 }
797 #endif
798
799
800 /* -----------------------------------------------------------------------------
801 * error manipulation
802 * ----------------------------------------------------------------------------- */
803
804 SWIGRUNTIME PyObject*
805 SWIG_Python_ErrorType(int code) {
806 PyObject* type = 0;
807 switch(code) {
808 case SWIG_MemoryError:
809 type = PyExc_MemoryError;
810 break;
811 case SWIG_IOError:
812 type = PyExc_IOError;
813 break;
814 case SWIG_RuntimeError:
815 type = PyExc_RuntimeError;
816 break;
817 case SWIG_IndexError:
818 type = PyExc_IndexError;
819 break;
820 case SWIG_TypeError:
821 type = PyExc_TypeError;
822 break;
823 case SWIG_DivisionByZero:
824 type = PyExc_ZeroDivisionError;
825 break;
826 case SWIG_OverflowError:
827 type = PyExc_OverflowError;
828 break;
829 case SWIG_SyntaxError:
830 type = PyExc_SyntaxError;
831 break;
832 case SWIG_ValueError:
833 type = PyExc_ValueError;
834 break;
835 case SWIG_SystemError:
836 type = PyExc_SystemError;
837 break;
838 case SWIG_AttributeError:
839 type = PyExc_AttributeError;
840 break;
841 default:
842 type = PyExc_RuntimeError;
843 }
844 return type;
845 }
846
847
848 SWIGRUNTIME void
849 SWIG_Python_AddErrorMsg(const char* mesg)
850 {
851 PyObject *type = 0;
852 PyObject *value = 0;
853 PyObject *traceback = 0;
854
855 if (PyErr_Occurred()) PyErr_Fetch(&type, &value, &traceback);
856 if (value) {
857 PyObject *old_str = PyObject_Str(value);
858 PyErr_Clear();
859 Py_XINCREF(type);
860 PyErr_Format(type, "%s %s", PyString_AsString(old_str), mesg);
861 Py_DECREF(old_str);
862 Py_DECREF(value);
863 } else {
864 PyErr_Format(PyExc_RuntimeError, mesg);
865 }
866 }
867
868
869
870 #if defined(SWIG_PYTHON_NO_THREADS)
871 # if defined(SWIG_PYTHON_THREADS)
872 # undef SWIG_PYTHON_THREADS
873 # endif
874 #endif
875 #if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
876 # if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
877 # if (PY_VERSION_HEX >= 0x02030000) /* For 2.3 or later, use the PyGILState calls */
878 # define SWIG_PYTHON_USE_GIL
879 # endif
880 # endif
881 # if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
882 # ifndef SWIG_PYTHON_INITIALIZE_THREADS
883 # define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
884 # endif
885 # ifdef __cplusplus /* C++ code */
886 class SWIG_Python_Thread_Block {
887 bool status;
888 PyGILState_STATE state;
889 public:
890 void end() { if (status) { PyGILState_Release(state); status = false;} }
891 SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
892 ~SWIG_Python_Thread_Block() { end(); }
893 };
894 class SWIG_Python_Thread_Allow {
895 bool status;
896 PyThreadState *save;
897 public:
898 void end() { if (status) { PyEval_RestoreThread(save); status = false; }}
899 SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
900 ~SWIG_Python_Thread_Allow() { end(); }
901 };
902 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK SWIG_Python_Thread_Block _swig_thread_block
903 # define SWIG_PYTHON_THREAD_END_BLOCK _swig_thread_block.end()
904 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW SWIG_Python_Thread_Allow _swig_thread_allow
905 # define SWIG_PYTHON_THREAD_END_ALLOW _swig_thread_allow.end()
906 # else /* C code */
907 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
908 # define SWIG_PYTHON_THREAD_END_BLOCK PyGILState_Release(_swig_thread_block)
909 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW PyThreadState *_swig_thread_allow = PyEval_SaveThread()
910 # define SWIG_PYTHON_THREAD_END_ALLOW PyEval_RestoreThread(_swig_thread_allow)
911 # endif
912 # else /* Old thread way, not implemented, user must provide it */
913 # if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
914 # define SWIG_PYTHON_INITIALIZE_THREADS
915 # endif
916 # if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
917 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
918 # endif
919 # if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
920 # define SWIG_PYTHON_THREAD_END_BLOCK
921 # endif
922 # if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
923 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
924 # endif
925 # if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
926 # define SWIG_PYTHON_THREAD_END_ALLOW
927 # endif
928 # endif
929 #else /* No thread support */
930 # define SWIG_PYTHON_INITIALIZE_THREADS
931 # define SWIG_PYTHON_THREAD_BEGIN_BLOCK
932 # define SWIG_PYTHON_THREAD_END_BLOCK
933 # define SWIG_PYTHON_THREAD_BEGIN_ALLOW
934 # define SWIG_PYTHON_THREAD_END_ALLOW
935 #endif
936
937 /* -----------------------------------------------------------------------------
938 * Python API portion that goes into the runtime
939 * ----------------------------------------------------------------------------- */
940
941 #ifdef __cplusplus
942 extern "C" {
943 #if 0
944 } /* cc-mode */
945 #endif
946 #endif
947
948 /* -----------------------------------------------------------------------------
949 * Constant declarations
950 * ----------------------------------------------------------------------------- */
951
952 /* Constant Types */
953 #define SWIG_PY_POINTER 4
954 #define SWIG_PY_BINARY 5
955
956 /* Constant information structure */
957 typedef struct swig_const_info {
958 int type;
959 char *name;
960 long lvalue;
961 double dvalue;
962 void *pvalue;
963 swig_type_info **ptype;
964 } swig_const_info;
965
966 #ifdef __cplusplus
967 #if 0
968 { /* cc-mode */
969 #endif
970 }
971 #endif
972
973
974 /* -----------------------------------------------------------------------------
975 * See the LICENSE file for information on copyright, usage and redistribution
976 * of SWIG, and the README file for authors - http://www.swig.org/release.html.
977 *
978 * pyrun.swg
979 *
980 * This file contains the runtime support for Python modules
981 * and includes code for managing global variables and pointer
982 * type checking.
983 *
984 * ----------------------------------------------------------------------------- */
985
986 /* Common SWIG API */
987
988 /* 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 #define SWIG_From_long PyInt_FromLong
2705
2706
2707 SWIGINTERNINLINE PyObject *
2708 SWIG_From_int (int value)
2709 {
2710 return SWIG_From_long (value);
2711 }
2712
2713
2714 #include <limits.h>
2715 #ifndef LLONG_MIN
2716 # define LLONG_MIN LONG_LONG_MIN
2717 #endif
2718 #ifndef LLONG_MAX
2719 # define LLONG_MAX LONG_LONG_MAX
2720 #endif
2721 #ifndef ULLONG_MAX
2722 # define ULLONG_MAX ULONG_LONG_MAX
2723 #endif
2724
2725
2726 SWIGINTERN int
2727 SWIG_AsVal_long (PyObject* obj, long* val)
2728 {
2729 if (PyNumber_Check(obj)) {
2730 if (val) *val = PyInt_AsLong(obj);
2731 return SWIG_OK;
2732 }
2733 return SWIG_TypeError;
2734 }
2735
2736
2737 SWIGINTERN int
2738 SWIG_AsVal_unsigned_SS_long (PyObject* obj, unsigned long* val)
2739 {
2740 long v = 0;
2741 if (SWIG_AsVal_long(obj, &v) && v < 0) {
2742 return SWIG_TypeError;
2743 }
2744 else if (val)
2745 *val = (unsigned long)v;
2746 return SWIG_OK;
2747 }
2748
2749
2750 SWIGINTERN int
2751 SWIG_AsVal_unsigned_SS_char (PyObject * obj, unsigned char *val)
2752 {
2753 unsigned long v;
2754 int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
2755 if (SWIG_IsOK(res)) {
2756 if ((v > UCHAR_MAX)) {
2757 return SWIG_OverflowError;
2758 } else {
2759 if (val) *val = static_cast< unsigned char >(v);
2760 }
2761 }
2762 return res;
2763 }
2764
2765
2766 SWIGINTERNINLINE PyObject*
2767 SWIG_From_unsigned_SS_long (unsigned long value)
2768 {
2769 return (value > LONG_MAX) ?
2770 PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
2771 }
2772
2773
2774 SWIGINTERNINLINE PyObject *
2775 SWIG_From_unsigned_SS_char (unsigned char value)
2776 {
2777 return SWIG_From_unsigned_SS_long (value);
2778 }
2779
2780 SWIGINTERN bool wxColour___eq__(wxColour *self,PyObject *other){
2781 wxColour temp, *obj = &temp;
2782 if ( other == Py_None ) return false;
2783 if ( ! wxColour_helper(other, &obj) ) {
2784 PyErr_Clear();
2785 return false;
2786 }
2787 return self->operator==(*obj);
2788 }
2789 SWIGINTERN bool wxColour___ne__(wxColour *self,PyObject *other){
2790 wxColour temp, *obj = &temp;
2791 if ( other == Py_None ) return true;
2792 if ( ! wxColour_helper(other, &obj)) {
2793 PyErr_Clear();
2794 return true;
2795 }
2796 return self->operator!=(*obj);
2797 }
2798 SWIGINTERN PyObject *wxColour_Get(wxColour *self){
2799 PyObject* rv = PyTuple_New(3);
2800 int red = -1;
2801 int green = -1;
2802 int blue = -1;
2803 if (self->Ok()) {
2804 red = self->Red();
2805 green = self->Green();
2806 blue = self->Blue();
2807 }
2808 PyTuple_SetItem(rv, 0, PyInt_FromLong(red));
2809 PyTuple_SetItem(rv, 1, PyInt_FromLong(green));
2810 PyTuple_SetItem(rv, 2, PyInt_FromLong(blue));
2811 return rv;
2812 }
2813 SWIGINTERN unsigned long wxColour_GetRGB(wxColour *self){
2814 return self->Red() | (self->Green() << 8) | (self->Blue() << 16);
2815 }
2816
2817 SWIGINTERN int
2818 SWIG_AsVal_int (PyObject * obj, int *val)
2819 {
2820 long v;
2821 int res = SWIG_AsVal_long (obj, &v);
2822 if (SWIG_IsOK(res)) {
2823 if ((v < INT_MIN || v > INT_MAX)) {
2824 return SWIG_OverflowError;
2825 } else {
2826 if (val) *val = static_cast< int >(v);
2827 }
2828 }
2829 return res;
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 void wxBitmap_SetHandle(wxBitmap *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2906 SWIGINTERN wxSize wxBitmap_GetSize(wxBitmap *self){
2907 wxSize size(self->GetWidth(), self->GetHeight());
2908 return size;
2909 }
2910 SWIGINTERN void wxBitmap_SetMaskColour(wxBitmap *self,wxColour const &colour){
2911 wxMask *mask = new wxMask(*self, colour);
2912 self->SetMask(mask);
2913 }
2914 SWIGINTERN void wxBitmap_SetSize(wxBitmap *self,wxSize const &size){
2915 self->SetWidth(size.x);
2916 self->SetHeight(size.y);
2917 }
2918 SWIGINTERN bool wxBitmap___eq__(wxBitmap *self,wxBitmap const *other){ return other ? (*self == *other) : false; }
2919 SWIGINTERN bool wxBitmap___ne__(wxBitmap *self,wxBitmap const *other){ return other ? (*self != *other) : true; }
2920 SWIGINTERN wxMask *new_wxMask(wxBitmap const &bitmap,wxColour const &colour=wxNullColour){
2921 if ( !colour.Ok() )
2922 return new wxMask(bitmap, *wxBLACK);
2923 else
2924 return new wxMask(bitmap, colour);
2925 }
2926
2927 #include <wx/iconbndl.h>
2928
2929 SWIGINTERN wxIcon *new_wxIcon(wxBitmap const &bmp){
2930 wxIcon* icon = new wxIcon();
2931 icon->CopyFromBitmap(bmp);
2932 return icon;
2933 }
2934 SWIGINTERN wxIcon *new_wxIcon(PyObject *listOfStrings){
2935 char** cArray = NULL;
2936 wxIcon* icon;
2937
2938 cArray = ConvertListOfStrings(listOfStrings);
2939 if (! cArray)
2940 return NULL;
2941 icon = new wxIcon(cArray);
2942 delete [] cArray;
2943 return icon;
2944 }
2945 SWIGINTERN void wxIcon_SetHandle(wxIcon *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2946 SWIGINTERN wxIconLocation *new_wxIconLocation(wxString const *filename=&wxPyEmptyString,int num=0){
2947
2948 return new wxIconLocation(*filename, num);
2949
2950
2951
2952 }
2953 SWIGINTERN void wxIconLocation_SetIndex(wxIconLocation *self,int num){
2954
2955 self->SetIndex(num);
2956
2957
2958
2959 }
2960 SWIGINTERN int wxIconLocation_GetIndex(wxIconLocation *self){
2961
2962 return self->GetIndex();
2963
2964
2965
2966 }
2967 SWIGINTERN wxCursor *new_wxCursor(wxString const &cursorName,long type,int hotSpotX=0,int hotSpotY=0){
2968 #ifdef __WXGTK__
2969 wxImage img(cursorName, type);
2970 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_X, hotSpotX);
2971 img.SetOption(wxIMAGE_OPTION_CUR_HOTSPOT_Y, hotSpotY);
2972 return new wxCursor(img);
2973 #else
2974 return new wxCursor(cursorName, type, hotSpotX, hotSpotY);
2975 #endif
2976 }
2977 SWIGINTERN void wxCursor_SetHandle(wxCursor *self,long handle){ self->SetHandle((WXHANDLE)handle); }
2978
2979
2980 SWIGINTERN void wxRegionIterator_Next(wxRegionIterator *self){
2981 (*self) ++;
2982 }
2983 SWIGINTERN bool wxRegionIterator___nonzero__(wxRegionIterator *self){
2984 return self->operator bool();
2985 }
2986
2987 #include <wx/fontutil.h>
2988 #include <wx/fontmap.h>
2989 #include <wx/fontenum.h>
2990
2991
2992 SWIGINTERN int
2993 SWIG_AsVal_bool (PyObject *obj, bool *val)
2994 {
2995 if (obj == Py_True) {
2996 if (val) *val = true;
2997 return SWIG_OK;
2998 } else if (obj == Py_False) {
2999 if (val) *val = false;
3000 return SWIG_OK;
3001 } else {
3002 long v = 0;
3003 int res = SWIG_AddCast(SWIG_AsVal_long (obj, val ? &v : 0));
3004 if (SWIG_IsOK(res) && val) *val = v ? true : false;
3005 return res;
3006 }
3007 }
3008
3009 SWIGINTERN wxString wxNativeFontInfo___str__(wxNativeFontInfo *self){
3010 return self->ToString();
3011 }
3012
3013 wxNativeEncodingInfo* wxGetNativeFontEncoding(wxFontEncoding encoding)
3014 { wxPyRaiseNotImplemented(); return NULL; }
3015
3016 bool wxTestFontEncoding(const wxNativeEncodingInfo& info)
3017 { wxPyRaiseNotImplemented(); return false; }
3018
3019
3020 SWIGINTERNINLINE PyObject *
3021 SWIG_From_size_t (size_t value)
3022 {
3023 return SWIG_From_unsigned_SS_long (static_cast< unsigned long >(value));
3024 }
3025
3026
3027 SWIGINTERNINLINE int
3028 SWIG_AsVal_size_t (PyObject * obj, size_t *val)
3029 {
3030 unsigned long v;
3031 int res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
3032 if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
3033 return res;
3034 }
3035
3036 SWIGINTERN PyObject *wxFontMapper_GetAltForEncoding(wxFontMapper *self,wxFontEncoding encoding,wxString const &facename=wxPyEmptyString,bool interactive=true){
3037 wxFontEncoding alt_enc;
3038 if (self->GetAltForEncoding(encoding, &alt_enc, facename, interactive))
3039 return PyInt_FromLong(alt_enc);
3040 else {
3041 Py_INCREF(Py_None);
3042 return Py_None;
3043 }
3044 }
3045 SWIGINTERN wxFont *new_wxFont(wxString const &info){
3046 wxNativeFontInfo nfi;
3047 nfi.FromString(info);
3048 return new wxFont(nfi);
3049 }
3050 SWIGINTERN wxFont *new_wxFont(int pointSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxPyEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3051 return wxFont::New(pointSize, family, flags, face, encoding);
3052 }
3053 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,int family,int style,int weight,bool underlined=false,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3054 return wxFontBase::New(pixelSize, family,
3055 style, weight, underlined,
3056 face, encoding);
3057 }
3058 SWIGINTERN wxFont *new_wxFont(wxSize const &pixelSize,wxFontFamily family,int flags=wxFONTFLAG_DEFAULT,wxString const &face=wxEmptyString,wxFontEncoding encoding=wxFONTENCODING_DEFAULT){
3059 return wxFontBase::New(pixelSize, family, flags, face, encoding);
3060 }
3061 SWIGINTERN bool wxFont___eq__(wxFont *self,wxFont const *other){ return other ? (*self == *other) : false; }
3062 SWIGINTERN bool wxFont___ne__(wxFont *self,wxFont const *other){ return other ? (*self != *other) : true; }
3063
3064 class wxPyFontEnumerator : public wxFontEnumerator {
3065 public:
3066 wxPyFontEnumerator() {}
3067 ~wxPyFontEnumerator() {}
3068
3069 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
3070 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
3071
3072 PYPRIVATE;
3073 };
3074
3075 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
3076 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
3077
3078
3079 SWIGINTERN PyObject *wxPyFontEnumerator_GetEncodings(wxPyFontEnumerator *self){
3080 PyObject* ret;
3081 wxArrayString* arr = self->GetEncodings();
3082 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3083 if (arr)
3084 ret = wxArrayString2PyList_helper(*arr);
3085 else
3086 ret = PyList_New(0);
3087 wxPyEndBlockThreads(blocked);
3088 return ret;
3089 }
3090 SWIGINTERN PyObject *wxPyFontEnumerator_GetFacenames(wxPyFontEnumerator *self){
3091 PyObject* ret;
3092 wxArrayString* arr = self->GetFacenames();
3093 wxPyBlock_t blocked = wxPyBeginBlockThreads();
3094 if (arr)
3095 ret = wxArrayString2PyList_helper(*arr);
3096 else
3097 ret = PyList_New(0);
3098 wxPyEndBlockThreads(blocked);
3099 return ret;
3100 }
3101
3102 #include <locale.h>
3103
3104 SWIGINTERN wxLocale *new_wxLocale(int language=-1,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3105 wxLocale* loc;
3106 if (language == -1)
3107 loc = new wxLocale();
3108 else
3109 loc = new wxLocale(language, flags);
3110 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3111 // for the floating point conversions and such to work right.
3112 #if PY_VERSION_HEX < 0x02040000
3113 setlocale(LC_NUMERIC, "C");
3114 #endif
3115 return loc;
3116 }
3117 SWIGINTERN bool wxLocale_Init1(wxLocale *self,wxString const &szName,wxString const &szShort=wxPyEmptyString,wxString const &szLocale=wxPyEmptyString,bool bLoadDefault=true,bool bConvertEncoding=false){
3118 bool rc = self->Init(szName, szShort, szLocale, bLoadDefault, bConvertEncoding);
3119 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3120 // for the floating point conversions and such to work right.
3121 #if PY_VERSION_HEX < 0x02040000
3122 setlocale(LC_NUMERIC, "C");
3123 #endif
3124 return rc;
3125 }
3126 SWIGINTERN bool wxLocale_Init2(wxLocale *self,int language=wxLANGUAGE_DEFAULT,int flags=wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING){
3127 bool rc = self->Init(language, flags);
3128 // Python before 2.4 needs to have LC_NUMERIC set to "C" in order
3129 // for the floating point conversions and such to work right.
3130 #if PY_VERSION_HEX < 0x02040000
3131 setlocale(LC_NUMERIC, "C");
3132 #endif
3133 return rc;
3134 }
3135
3136 #include "wx/wxPython/pydrawxxx.h"
3137
3138 SWIGINTERN wxColour wxDC_GetPixel(wxDC *self,int x,int y){
3139 wxColour col;
3140 self->GetPixel(x, y, &col);
3141 return col;
3142 }
3143 SWIGINTERN wxColour wxDC_GetPixelPoint(wxDC *self,wxPoint const &pt){
3144 wxColour col;
3145 self->GetPixel(pt, &col);
3146 return col;
3147 }
3148
3149 SWIGINTERN int
3150 SWIG_AsVal_double (PyObject *obj, double* val)
3151 {
3152 if (PyNumber_Check(obj)) {
3153 if (val) *val = PyFloat_AsDouble(obj);
3154 return SWIG_OK;
3155 }
3156 return SWIG_TypeError;
3157 }
3158
3159 SWIGINTERN wxRect wxDC_DrawImageLabel(wxDC *self,wxString const &text,wxBitmap const &image,wxRect const &rect,int alignment=wxALIGN_LEFT|wxALIGN_TOP,int indexAccel=-1){
3160 wxRect rv;
3161 self->DrawLabel(text, image, rect, alignment, indexAccel, &rv);
3162 return rv;
3163 }
3164 SWIGINTERN wxRect wxDC_GetClippingRect(wxDC *self){
3165 wxRect rect;
3166 self->GetClippingBox(rect);
3167 return rect;
3168 }
3169 SWIGINTERN wxArrayInt wxDC_GetPartialTextExtents(wxDC *self,wxString const &text){
3170 wxArrayInt widths;
3171 self->GetPartialTextExtents(text, widths);
3172 return widths;
3173 }
3174
3175 #define SWIG_From_double PyFloat_FromDouble
3176
3177 SWIGINTERN void wxDC_SetLogicalOriginPoint(wxDC *self,wxPoint const &point){
3178 self->SetLogicalOrigin(point.x, point.y);
3179 }
3180 SWIGINTERN void wxDC_SetDeviceOriginPoint(wxDC *self,wxPoint const &point){
3181 self->SetDeviceOrigin(point.x, point.y);
3182 }
3183 SWIGINTERN void wxDC_CalcBoundingBoxPoint(wxDC *self,wxPoint const &point){
3184 self->CalcBoundingBox(point.x, point.y);
3185 }
3186 SWIGINTERN PyObject *wxDC__DrawPointList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3187 return wxPyDrawXXXList(*self, wxPyDrawXXXPoint, pyCoords, pyPens, pyBrushes);
3188 }
3189 SWIGINTERN PyObject *wxDC__DrawLineList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3190 return wxPyDrawXXXList(*self, wxPyDrawXXXLine, pyCoords, pyPens, pyBrushes);
3191 }
3192 SWIGINTERN PyObject *wxDC__DrawRectangleList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3193 return wxPyDrawXXXList(*self, wxPyDrawXXXRectangle, pyCoords, pyPens, pyBrushes);
3194 }
3195 SWIGINTERN PyObject *wxDC__DrawEllipseList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3196 return wxPyDrawXXXList(*self, wxPyDrawXXXEllipse, pyCoords, pyPens, pyBrushes);
3197 }
3198 SWIGINTERN PyObject *wxDC__DrawPolygonList(wxDC *self,PyObject *pyCoords,PyObject *pyPens,PyObject *pyBrushes){
3199 return wxPyDrawXXXList(*self, wxPyDrawXXXPolygon, pyCoords, pyPens, pyBrushes);
3200 }
3201 SWIGINTERN PyObject *wxDC__DrawTextList(wxDC *self,PyObject *textList,PyObject *pyPoints,PyObject *foregroundList,PyObject *backgroundList){
3202 return wxPyDrawTextList(*self, textList, pyPoints, foregroundList, backgroundList);
3203 }
3204
3205 static void wxDC_GetBoundingBox(wxDC* dc, int* x1, int* y1, int* x2, int* y2) {
3206 *x1 = dc->MinX();
3207 *y1 = dc->MinY();
3208 *x2 = dc->MaxX();
3209 *y2 = dc->MaxY();
3210 }
3211
3212
3213 #include <wx/dcbuffer.h>
3214
3215
3216 #include <wx/dcps.h>
3217
3218
3219 #include <wx/metafile.h>
3220
3221
3222
3223 SWIGINTERN void wxColourDatabase_Append(wxColourDatabase *self,wxString const &name,int red,int green,int blue){
3224 self->AddColour(name, wxColour(red, green, blue));
3225 }
3226
3227 wxFontList* _wxPyInitTheFontList() { return wxTheFontList; }
3228 wxPenList* _wxPyInitThePenList() { return wxThePenList; }
3229 wxBrushList* _wxPyInitTheBrushList() { return wxTheBrushList; }
3230 wxColourDatabase* _wxPyInitTheColourDatabase() { return wxTheColourDatabase; }
3231
3232
3233 #include <wx/effects.h>
3234
3235
3236 #include "wx/renderer.h"
3237
3238
3239 SWIGINTERNINLINE PyObject*
3240 SWIG_From_bool (bool value)
3241 {
3242 return PyBool_FromLong(value ? 1 : 0);
3243 }
3244
3245 #ifdef __cplusplus
3246 extern "C" {
3247 #endif
3248 SWIGINTERN PyObject *_wrap_new_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3249 PyObject *resultobj = 0;
3250 wxGDIObject *result = 0 ;
3251
3252 if (!SWIG_Python_UnpackTuple(args,"new_GDIObject",0,0,0)) SWIG_fail;
3253 {
3254 if (!wxPyCheckForApp()) SWIG_fail;
3255 PyThreadState* __tstate = wxPyBeginAllowThreads();
3256 result = (wxGDIObject *)new wxGDIObject();
3257 wxPyEndAllowThreads(__tstate);
3258 if (PyErr_Occurred()) SWIG_fail;
3259 }
3260 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObject, SWIG_POINTER_NEW | 0 );
3261 return resultobj;
3262 fail:
3263 return NULL;
3264 }
3265
3266
3267 SWIGINTERN PyObject *_wrap_delete_GDIObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3268 PyObject *resultobj = 0;
3269 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3270 void *argp1 = 0 ;
3271 int res1 = 0 ;
3272 PyObject *swig_obj[1] ;
3273
3274 if (!args) SWIG_fail;
3275 swig_obj[0] = args;
3276 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, SWIG_POINTER_DISOWN | 0 );
3277 if (!SWIG_IsOK(res1)) {
3278 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObject" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3279 }
3280 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3281 {
3282 PyThreadState* __tstate = wxPyBeginAllowThreads();
3283 delete arg1;
3284
3285 wxPyEndAllowThreads(__tstate);
3286 if (PyErr_Occurred()) SWIG_fail;
3287 }
3288 resultobj = SWIG_Py_Void();
3289 return resultobj;
3290 fail:
3291 return NULL;
3292 }
3293
3294
3295 SWIGINTERN PyObject *_wrap_GDIObject_IsNull(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3296 PyObject *resultobj = 0;
3297 wxGDIObject *arg1 = (wxGDIObject *) 0 ;
3298 bool result;
3299 void *argp1 = 0 ;
3300 int res1 = 0 ;
3301 PyObject *swig_obj[1] ;
3302
3303 if (!args) SWIG_fail;
3304 swig_obj[0] = args;
3305 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObject, 0 | 0 );
3306 if (!SWIG_IsOK(res1)) {
3307 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "GDIObject_IsNull" "', expected argument " "1"" of type '" "wxGDIObject *""'");
3308 }
3309 arg1 = reinterpret_cast< wxGDIObject * >(argp1);
3310 {
3311 PyThreadState* __tstate = wxPyBeginAllowThreads();
3312 result = (bool)(arg1)->IsNull();
3313 wxPyEndAllowThreads(__tstate);
3314 if (PyErr_Occurred()) SWIG_fail;
3315 }
3316 {
3317 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3318 }
3319 return resultobj;
3320 fail:
3321 return NULL;
3322 }
3323
3324
3325 SWIGINTERN PyObject *GDIObject_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3326 PyObject *obj;
3327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3328 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObject, SWIG_NewClientData(obj));
3329 return SWIG_Py_Void();
3330 }
3331
3332 SWIGINTERN PyObject *GDIObject_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3333 return SWIG_Python_InitShadowInstance(args);
3334 }
3335
3336 SWIGINTERN PyObject *_wrap_new_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3337 PyObject *resultobj = 0;
3338 byte arg1 = (byte) 0 ;
3339 byte arg2 = (byte) 0 ;
3340 byte arg3 = (byte) 0 ;
3341 wxColour *result = 0 ;
3342 unsigned char val1 ;
3343 int ecode1 = 0 ;
3344 unsigned char val2 ;
3345 int ecode2 = 0 ;
3346 unsigned char val3 ;
3347 int ecode3 = 0 ;
3348 PyObject * obj0 = 0 ;
3349 PyObject * obj1 = 0 ;
3350 PyObject * obj2 = 0 ;
3351 char * kwnames[] = {
3352 (char *) "red",(char *) "green",(char *) "blue", NULL
3353 };
3354
3355 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_Colour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
3356 if (obj0) {
3357 ecode1 = SWIG_AsVal_unsigned_SS_char(obj0, &val1);
3358 if (!SWIG_IsOK(ecode1)) {
3359 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Colour" "', expected argument " "1"" of type '" "byte""'");
3360 }
3361 arg1 = static_cast< byte >(val1);
3362 }
3363 if (obj1) {
3364 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3365 if (!SWIG_IsOK(ecode2)) {
3366 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Colour" "', expected argument " "2"" of type '" "byte""'");
3367 }
3368 arg2 = static_cast< byte >(val2);
3369 }
3370 if (obj2) {
3371 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3372 if (!SWIG_IsOK(ecode3)) {
3373 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Colour" "', expected argument " "3"" of type '" "byte""'");
3374 }
3375 arg3 = static_cast< byte >(val3);
3376 }
3377 {
3378 PyThreadState* __tstate = wxPyBeginAllowThreads();
3379 result = (wxColour *)new wxColour(arg1,arg2,arg3);
3380 wxPyEndAllowThreads(__tstate);
3381 if (PyErr_Occurred()) SWIG_fail;
3382 }
3383 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_NEW | 0 );
3384 return resultobj;
3385 fail:
3386 return NULL;
3387 }
3388
3389
3390 SWIGINTERN PyObject *_wrap_new_NamedColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3391 PyObject *resultobj = 0;
3392 wxString *arg1 = 0 ;
3393 wxColour *result = 0 ;
3394 bool temp1 = false ;
3395 PyObject * obj0 = 0 ;
3396 char * kwnames[] = {
3397 (char *) "colorName", NULL
3398 };
3399
3400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NamedColour",kwnames,&obj0)) SWIG_fail;
3401 {
3402 arg1 = wxString_in_helper(obj0);
3403 if (arg1 == NULL) SWIG_fail;
3404 temp1 = true;
3405 }
3406 {
3407 if (!wxPyCheckForApp()) SWIG_fail;
3408 PyThreadState* __tstate = wxPyBeginAllowThreads();
3409 result = (wxColour *)new wxColour((wxString const &)*arg1);
3410 wxPyEndAllowThreads(__tstate);
3411 if (PyErr_Occurred()) SWIG_fail;
3412 }
3413 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3414 {
3415 if (temp1)
3416 delete arg1;
3417 }
3418 return resultobj;
3419 fail:
3420 {
3421 if (temp1)
3422 delete arg1;
3423 }
3424 return NULL;
3425 }
3426
3427
3428 SWIGINTERN PyObject *_wrap_new_ColourRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3429 PyObject *resultobj = 0;
3430 unsigned long arg1 ;
3431 wxColour *result = 0 ;
3432 unsigned long val1 ;
3433 int ecode1 = 0 ;
3434 PyObject * obj0 = 0 ;
3435 char * kwnames[] = {
3436 (char *) "colRGB", NULL
3437 };
3438
3439 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ColourRGB",kwnames,&obj0)) SWIG_fail;
3440 ecode1 = SWIG_AsVal_unsigned_SS_long(obj0, &val1);
3441 if (!SWIG_IsOK(ecode1)) {
3442 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ColourRGB" "', expected argument " "1"" of type '" "unsigned long""'");
3443 }
3444 arg1 = static_cast< unsigned long >(val1);
3445 {
3446 PyThreadState* __tstate = wxPyBeginAllowThreads();
3447 result = (wxColour *)new wxColour(arg1);
3448 wxPyEndAllowThreads(__tstate);
3449 if (PyErr_Occurred()) SWIG_fail;
3450 }
3451 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
3452 return resultobj;
3453 fail:
3454 return NULL;
3455 }
3456
3457
3458 SWIGINTERN PyObject *_wrap_delete_Colour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3459 PyObject *resultobj = 0;
3460 wxColour *arg1 = (wxColour *) 0 ;
3461 void *argp1 = 0 ;
3462 int res1 = 0 ;
3463 PyObject *swig_obj[1] ;
3464
3465 if (!args) SWIG_fail;
3466 swig_obj[0] = args;
3467 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, SWIG_POINTER_DISOWN | 0 );
3468 if (!SWIG_IsOK(res1)) {
3469 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Colour" "', expected argument " "1"" of type '" "wxColour *""'");
3470 }
3471 arg1 = reinterpret_cast< wxColour * >(argp1);
3472 {
3473 PyThreadState* __tstate = wxPyBeginAllowThreads();
3474 delete arg1;
3475
3476 wxPyEndAllowThreads(__tstate);
3477 if (PyErr_Occurred()) SWIG_fail;
3478 }
3479 resultobj = SWIG_Py_Void();
3480 return resultobj;
3481 fail:
3482 return NULL;
3483 }
3484
3485
3486 SWIGINTERN PyObject *_wrap_Colour_Red(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3487 PyObject *resultobj = 0;
3488 wxColour *arg1 = (wxColour *) 0 ;
3489 byte result;
3490 void *argp1 = 0 ;
3491 int res1 = 0 ;
3492 PyObject *swig_obj[1] ;
3493
3494 if (!args) SWIG_fail;
3495 swig_obj[0] = args;
3496 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3497 if (!SWIG_IsOK(res1)) {
3498 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Red" "', expected argument " "1"" of type '" "wxColour *""'");
3499 }
3500 arg1 = reinterpret_cast< wxColour * >(argp1);
3501 {
3502 PyThreadState* __tstate = wxPyBeginAllowThreads();
3503 result = (byte)(arg1)->Red();
3504 wxPyEndAllowThreads(__tstate);
3505 if (PyErr_Occurred()) SWIG_fail;
3506 }
3507 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3508 return resultobj;
3509 fail:
3510 return NULL;
3511 }
3512
3513
3514 SWIGINTERN PyObject *_wrap_Colour_Green(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3515 PyObject *resultobj = 0;
3516 wxColour *arg1 = (wxColour *) 0 ;
3517 byte result;
3518 void *argp1 = 0 ;
3519 int res1 = 0 ;
3520 PyObject *swig_obj[1] ;
3521
3522 if (!args) SWIG_fail;
3523 swig_obj[0] = args;
3524 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3525 if (!SWIG_IsOK(res1)) {
3526 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Green" "', expected argument " "1"" of type '" "wxColour *""'");
3527 }
3528 arg1 = reinterpret_cast< wxColour * >(argp1);
3529 {
3530 PyThreadState* __tstate = wxPyBeginAllowThreads();
3531 result = (byte)(arg1)->Green();
3532 wxPyEndAllowThreads(__tstate);
3533 if (PyErr_Occurred()) SWIG_fail;
3534 }
3535 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3536 return resultobj;
3537 fail:
3538 return NULL;
3539 }
3540
3541
3542 SWIGINTERN PyObject *_wrap_Colour_Blue(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3543 PyObject *resultobj = 0;
3544 wxColour *arg1 = (wxColour *) 0 ;
3545 byte result;
3546 void *argp1 = 0 ;
3547 int res1 = 0 ;
3548 PyObject *swig_obj[1] ;
3549
3550 if (!args) SWIG_fail;
3551 swig_obj[0] = args;
3552 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3553 if (!SWIG_IsOK(res1)) {
3554 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Blue" "', expected argument " "1"" of type '" "wxColour *""'");
3555 }
3556 arg1 = reinterpret_cast< wxColour * >(argp1);
3557 {
3558 PyThreadState* __tstate = wxPyBeginAllowThreads();
3559 result = (byte)(arg1)->Blue();
3560 wxPyEndAllowThreads(__tstate);
3561 if (PyErr_Occurred()) SWIG_fail;
3562 }
3563 resultobj = SWIG_From_unsigned_SS_char(static_cast< unsigned char >(result));
3564 return resultobj;
3565 fail:
3566 return NULL;
3567 }
3568
3569
3570 SWIGINTERN PyObject *_wrap_Colour_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3571 PyObject *resultobj = 0;
3572 wxColour *arg1 = (wxColour *) 0 ;
3573 bool result;
3574 void *argp1 = 0 ;
3575 int res1 = 0 ;
3576 PyObject *swig_obj[1] ;
3577
3578 if (!args) SWIG_fail;
3579 swig_obj[0] = args;
3580 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3581 if (!SWIG_IsOK(res1)) {
3582 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Ok" "', expected argument " "1"" of type '" "wxColour *""'");
3583 }
3584 arg1 = reinterpret_cast< wxColour * >(argp1);
3585 {
3586 PyThreadState* __tstate = wxPyBeginAllowThreads();
3587 result = (bool)(arg1)->Ok();
3588 wxPyEndAllowThreads(__tstate);
3589 if (PyErr_Occurred()) SWIG_fail;
3590 }
3591 {
3592 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3593 }
3594 return resultobj;
3595 fail:
3596 return NULL;
3597 }
3598
3599
3600 SWIGINTERN PyObject *_wrap_Colour_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3601 PyObject *resultobj = 0;
3602 wxColour *arg1 = (wxColour *) 0 ;
3603 byte arg2 ;
3604 byte arg3 ;
3605 byte arg4 ;
3606 void *argp1 = 0 ;
3607 int res1 = 0 ;
3608 unsigned char val2 ;
3609 int ecode2 = 0 ;
3610 unsigned char val3 ;
3611 int ecode3 = 0 ;
3612 unsigned char val4 ;
3613 int ecode4 = 0 ;
3614 PyObject * obj0 = 0 ;
3615 PyObject * obj1 = 0 ;
3616 PyObject * obj2 = 0 ;
3617 PyObject * obj3 = 0 ;
3618 char * kwnames[] = {
3619 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
3620 };
3621
3622 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Colour_Set",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3623 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3624 if (!SWIG_IsOK(res1)) {
3625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Set" "', expected argument " "1"" of type '" "wxColour *""'");
3626 }
3627 arg1 = reinterpret_cast< wxColour * >(argp1);
3628 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
3629 if (!SWIG_IsOK(ecode2)) {
3630 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_Set" "', expected argument " "2"" of type '" "byte""'");
3631 }
3632 arg2 = static_cast< byte >(val2);
3633 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
3634 if (!SWIG_IsOK(ecode3)) {
3635 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Colour_Set" "', expected argument " "3"" of type '" "byte""'");
3636 }
3637 arg3 = static_cast< byte >(val3);
3638 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
3639 if (!SWIG_IsOK(ecode4)) {
3640 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Colour_Set" "', expected argument " "4"" of type '" "byte""'");
3641 }
3642 arg4 = static_cast< byte >(val4);
3643 {
3644 PyThreadState* __tstate = wxPyBeginAllowThreads();
3645 (arg1)->Set(arg2,arg3,arg4);
3646 wxPyEndAllowThreads(__tstate);
3647 if (PyErr_Occurred()) SWIG_fail;
3648 }
3649 resultobj = SWIG_Py_Void();
3650 return resultobj;
3651 fail:
3652 return NULL;
3653 }
3654
3655
3656 SWIGINTERN PyObject *_wrap_Colour_SetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3657 PyObject *resultobj = 0;
3658 wxColour *arg1 = (wxColour *) 0 ;
3659 unsigned long arg2 ;
3660 void *argp1 = 0 ;
3661 int res1 = 0 ;
3662 unsigned long val2 ;
3663 int ecode2 = 0 ;
3664 PyObject * obj0 = 0 ;
3665 PyObject * obj1 = 0 ;
3666 char * kwnames[] = {
3667 (char *) "self",(char *) "colRGB", NULL
3668 };
3669
3670 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
3671 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3672 if (!SWIG_IsOK(res1)) {
3673 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3674 }
3675 arg1 = reinterpret_cast< wxColour * >(argp1);
3676 ecode2 = SWIG_AsVal_unsigned_SS_long(obj1, &val2);
3677 if (!SWIG_IsOK(ecode2)) {
3678 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_SetRGB" "', expected argument " "2"" of type '" "unsigned long""'");
3679 }
3680 arg2 = static_cast< unsigned long >(val2);
3681 {
3682 PyThreadState* __tstate = wxPyBeginAllowThreads();
3683 (arg1)->Set(arg2);
3684 wxPyEndAllowThreads(__tstate);
3685 if (PyErr_Occurred()) SWIG_fail;
3686 }
3687 resultobj = SWIG_Py_Void();
3688 return resultobj;
3689 fail:
3690 return NULL;
3691 }
3692
3693
3694 SWIGINTERN PyObject *_wrap_Colour_SetFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3695 PyObject *resultobj = 0;
3696 wxColour *arg1 = (wxColour *) 0 ;
3697 wxString *arg2 = 0 ;
3698 void *argp1 = 0 ;
3699 int res1 = 0 ;
3700 bool temp2 = false ;
3701 PyObject * obj0 = 0 ;
3702 PyObject * obj1 = 0 ;
3703 char * kwnames[] = {
3704 (char *) "self",(char *) "colourName", NULL
3705 };
3706
3707 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour_SetFromName",kwnames,&obj0,&obj1)) SWIG_fail;
3708 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3709 if (!SWIG_IsOK(res1)) {
3710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_SetFromName" "', expected argument " "1"" of type '" "wxColour *""'");
3711 }
3712 arg1 = reinterpret_cast< wxColour * >(argp1);
3713 {
3714 arg2 = wxString_in_helper(obj1);
3715 if (arg2 == NULL) SWIG_fail;
3716 temp2 = true;
3717 }
3718 {
3719 PyThreadState* __tstate = wxPyBeginAllowThreads();
3720 (arg1)->InitFromName((wxString const &)*arg2);
3721 wxPyEndAllowThreads(__tstate);
3722 if (PyErr_Occurred()) SWIG_fail;
3723 }
3724 resultobj = SWIG_Py_Void();
3725 {
3726 if (temp2)
3727 delete arg2;
3728 }
3729 return resultobj;
3730 fail:
3731 {
3732 if (temp2)
3733 delete arg2;
3734 }
3735 return NULL;
3736 }
3737
3738
3739 SWIGINTERN PyObject *_wrap_Colour_GetAsString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3740 PyObject *resultobj = 0;
3741 wxColour *arg1 = (wxColour *) 0 ;
3742 long arg2 = (long) wxC2S_NAME|wxC2S_CSS_SYNTAX ;
3743 wxString result;
3744 void *argp1 = 0 ;
3745 int res1 = 0 ;
3746 long val2 ;
3747 int ecode2 = 0 ;
3748 PyObject * obj0 = 0 ;
3749 PyObject * obj1 = 0 ;
3750 char * kwnames[] = {
3751 (char *) "self",(char *) "flags", NULL
3752 };
3753
3754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Colour_GetAsString",kwnames,&obj0,&obj1)) SWIG_fail;
3755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3756 if (!SWIG_IsOK(res1)) {
3757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetAsString" "', expected argument " "1"" of type '" "wxColour const *""'");
3758 }
3759 arg1 = reinterpret_cast< wxColour * >(argp1);
3760 if (obj1) {
3761 ecode2 = SWIG_AsVal_long(obj1, &val2);
3762 if (!SWIG_IsOK(ecode2)) {
3763 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Colour_GetAsString" "', expected argument " "2"" of type '" "long""'");
3764 }
3765 arg2 = static_cast< long >(val2);
3766 }
3767 {
3768 PyThreadState* __tstate = wxPyBeginAllowThreads();
3769 result = ((wxColour const *)arg1)->GetAsString(arg2);
3770 wxPyEndAllowThreads(__tstate);
3771 if (PyErr_Occurred()) SWIG_fail;
3772 }
3773 {
3774 #if wxUSE_UNICODE
3775 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
3776 #else
3777 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
3778 #endif
3779 }
3780 return resultobj;
3781 fail:
3782 return NULL;
3783 }
3784
3785
3786 SWIGINTERN PyObject *_wrap_Colour_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3787 PyObject *resultobj = 0;
3788 wxColour *arg1 = (wxColour *) 0 ;
3789 long result;
3790 void *argp1 = 0 ;
3791 int res1 = 0 ;
3792 PyObject *swig_obj[1] ;
3793
3794 if (!args) SWIG_fail;
3795 swig_obj[0] = args;
3796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3797 if (!SWIG_IsOK(res1)) {
3798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetPixel" "', expected argument " "1"" of type '" "wxColour const *""'");
3799 }
3800 arg1 = reinterpret_cast< wxColour * >(argp1);
3801 {
3802 PyThreadState* __tstate = wxPyBeginAllowThreads();
3803 result = (long)((wxColour const *)arg1)->GetPixel();
3804 wxPyEndAllowThreads(__tstate);
3805 if (PyErr_Occurred()) SWIG_fail;
3806 }
3807 resultobj = SWIG_From_long(static_cast< long >(result));
3808 return resultobj;
3809 fail:
3810 return NULL;
3811 }
3812
3813
3814 SWIGINTERN PyObject *_wrap_Colour___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3815 PyObject *resultobj = 0;
3816 wxColour *arg1 = (wxColour *) 0 ;
3817 PyObject *arg2 = (PyObject *) 0 ;
3818 bool result;
3819 void *argp1 = 0 ;
3820 int res1 = 0 ;
3821 PyObject * obj0 = 0 ;
3822 PyObject * obj1 = 0 ;
3823 char * kwnames[] = {
3824 (char *) "self",(char *) "other", NULL
3825 };
3826
3827 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
3828 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3829 if (!SWIG_IsOK(res1)) {
3830 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___eq__" "', expected argument " "1"" of type '" "wxColour *""'");
3831 }
3832 arg1 = reinterpret_cast< wxColour * >(argp1);
3833 arg2 = obj1;
3834 {
3835 result = (bool)wxColour___eq__(arg1,arg2);
3836 if (PyErr_Occurred()) SWIG_fail;
3837 }
3838 {
3839 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3840 }
3841 return resultobj;
3842 fail:
3843 return NULL;
3844 }
3845
3846
3847 SWIGINTERN PyObject *_wrap_Colour___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3848 PyObject *resultobj = 0;
3849 wxColour *arg1 = (wxColour *) 0 ;
3850 PyObject *arg2 = (PyObject *) 0 ;
3851 bool result;
3852 void *argp1 = 0 ;
3853 int res1 = 0 ;
3854 PyObject * obj0 = 0 ;
3855 PyObject * obj1 = 0 ;
3856 char * kwnames[] = {
3857 (char *) "self",(char *) "other", NULL
3858 };
3859
3860 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Colour___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
3861 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3862 if (!SWIG_IsOK(res1)) {
3863 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour___ne__" "', expected argument " "1"" of type '" "wxColour *""'");
3864 }
3865 arg1 = reinterpret_cast< wxColour * >(argp1);
3866 arg2 = obj1;
3867 {
3868 result = (bool)wxColour___ne__(arg1,arg2);
3869 if (PyErr_Occurred()) SWIG_fail;
3870 }
3871 {
3872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
3873 }
3874 return resultobj;
3875 fail:
3876 return NULL;
3877 }
3878
3879
3880 SWIGINTERN PyObject *_wrap_Colour_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3881 PyObject *resultobj = 0;
3882 wxColour *arg1 = (wxColour *) 0 ;
3883 PyObject *result = 0 ;
3884 void *argp1 = 0 ;
3885 int res1 = 0 ;
3886 PyObject *swig_obj[1] ;
3887
3888 if (!args) SWIG_fail;
3889 swig_obj[0] = args;
3890 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3891 if (!SWIG_IsOK(res1)) {
3892 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_Get" "', expected argument " "1"" of type '" "wxColour *""'");
3893 }
3894 arg1 = reinterpret_cast< wxColour * >(argp1);
3895 {
3896 PyThreadState* __tstate = wxPyBeginAllowThreads();
3897 result = (PyObject *)wxColour_Get(arg1);
3898 wxPyEndAllowThreads(__tstate);
3899 if (PyErr_Occurred()) SWIG_fail;
3900 }
3901 resultobj = result;
3902 return resultobj;
3903 fail:
3904 return NULL;
3905 }
3906
3907
3908 SWIGINTERN PyObject *_wrap_Colour_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3909 PyObject *resultobj = 0;
3910 wxColour *arg1 = (wxColour *) 0 ;
3911 unsigned long result;
3912 void *argp1 = 0 ;
3913 int res1 = 0 ;
3914 PyObject *swig_obj[1] ;
3915
3916 if (!args) SWIG_fail;
3917 swig_obj[0] = args;
3918 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColour, 0 | 0 );
3919 if (!SWIG_IsOK(res1)) {
3920 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Colour_GetRGB" "', expected argument " "1"" of type '" "wxColour *""'");
3921 }
3922 arg1 = reinterpret_cast< wxColour * >(argp1);
3923 {
3924 PyThreadState* __tstate = wxPyBeginAllowThreads();
3925 result = (unsigned long)wxColour_GetRGB(arg1);
3926 wxPyEndAllowThreads(__tstate);
3927 if (PyErr_Occurred()) SWIG_fail;
3928 }
3929 resultobj = SWIG_From_unsigned_SS_long(static_cast< unsigned long >(result));
3930 return resultobj;
3931 fail:
3932 return NULL;
3933 }
3934
3935
3936 SWIGINTERN PyObject *Colour_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3937 PyObject *obj;
3938 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
3939 SWIG_TypeNewClientData(SWIGTYPE_p_wxColour, SWIG_NewClientData(obj));
3940 return SWIG_Py_Void();
3941 }
3942
3943 SWIGINTERN PyObject *Colour_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
3944 return SWIG_Python_InitShadowInstance(args);
3945 }
3946
3947 SWIGINTERN PyObject *_wrap_new_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
3948 PyObject *resultobj = 0;
3949 int arg1 ;
3950 unsigned char *arg2 = (unsigned char *) 0 ;
3951 unsigned char *arg3 = (unsigned char *) 0 ;
3952 unsigned char *arg4 = (unsigned char *) 0 ;
3953 wxPalette *result = 0 ;
3954 int val1 ;
3955 int ecode1 = 0 ;
3956 void *argp2 = 0 ;
3957 int res2 = 0 ;
3958 void *argp3 = 0 ;
3959 int res3 = 0 ;
3960 void *argp4 = 0 ;
3961 int res4 = 0 ;
3962 PyObject * obj0 = 0 ;
3963 PyObject * obj1 = 0 ;
3964 PyObject * obj2 = 0 ;
3965 PyObject * obj3 = 0 ;
3966 char * kwnames[] = {
3967 (char *) "n",(char *) "red",(char *) "green",(char *) "blue", NULL
3968 };
3969
3970 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_Palette",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
3971 ecode1 = SWIG_AsVal_int(obj0, &val1);
3972 if (!SWIG_IsOK(ecode1)) {
3973 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Palette" "', expected argument " "1"" of type '" "int""'");
3974 }
3975 arg1 = static_cast< int >(val1);
3976 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_unsigned_char, 0 | 0 );
3977 if (!SWIG_IsOK(res2)) {
3978 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_Palette" "', expected argument " "2"" of type '" "unsigned char const *""'");
3979 }
3980 arg2 = reinterpret_cast< unsigned char * >(argp2);
3981 res3 = SWIG_ConvertPtr(obj2, &argp3,SWIGTYPE_p_unsigned_char, 0 | 0 );
3982 if (!SWIG_IsOK(res3)) {
3983 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "new_Palette" "', expected argument " "3"" of type '" "unsigned char const *""'");
3984 }
3985 arg3 = reinterpret_cast< unsigned char * >(argp3);
3986 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_unsigned_char, 0 | 0 );
3987 if (!SWIG_IsOK(res4)) {
3988 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "new_Palette" "', expected argument " "4"" of type '" "unsigned char const *""'");
3989 }
3990 arg4 = reinterpret_cast< unsigned char * >(argp4);
3991 {
3992 if (!wxPyCheckForApp()) SWIG_fail;
3993 PyThreadState* __tstate = wxPyBeginAllowThreads();
3994 result = (wxPalette *)new wxPalette(arg1,(unsigned char const *)arg2,(unsigned char const *)arg3,(unsigned char const *)arg4);
3995 wxPyEndAllowThreads(__tstate);
3996 if (PyErr_Occurred()) SWIG_fail;
3997 }
3998 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, SWIG_POINTER_NEW | 0 );
3999 return resultobj;
4000 fail:
4001 return NULL;
4002 }
4003
4004
4005 SWIGINTERN PyObject *_wrap_delete_Palette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4006 PyObject *resultobj = 0;
4007 wxPalette *arg1 = (wxPalette *) 0 ;
4008 void *argp1 = 0 ;
4009 int res1 = 0 ;
4010 PyObject *swig_obj[1] ;
4011
4012 if (!args) SWIG_fail;
4013 swig_obj[0] = args;
4014 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, SWIG_POINTER_DISOWN | 0 );
4015 if (!SWIG_IsOK(res1)) {
4016 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Palette" "', expected argument " "1"" of type '" "wxPalette *""'");
4017 }
4018 arg1 = reinterpret_cast< wxPalette * >(argp1);
4019 {
4020 PyThreadState* __tstate = wxPyBeginAllowThreads();
4021 delete arg1;
4022
4023 wxPyEndAllowThreads(__tstate);
4024 if (PyErr_Occurred()) SWIG_fail;
4025 }
4026 resultobj = SWIG_Py_Void();
4027 return resultobj;
4028 fail:
4029 return NULL;
4030 }
4031
4032
4033 SWIGINTERN PyObject *_wrap_Palette_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4034 PyObject *resultobj = 0;
4035 wxPalette *arg1 = (wxPalette *) 0 ;
4036 byte arg2 ;
4037 byte arg3 ;
4038 byte arg4 ;
4039 int result;
4040 void *argp1 = 0 ;
4041 int res1 = 0 ;
4042 unsigned char val2 ;
4043 int ecode2 = 0 ;
4044 unsigned char val3 ;
4045 int ecode3 = 0 ;
4046 unsigned char val4 ;
4047 int ecode4 = 0 ;
4048 PyObject * obj0 = 0 ;
4049 PyObject * obj1 = 0 ;
4050 PyObject * obj2 = 0 ;
4051 PyObject * obj3 = 0 ;
4052 char * kwnames[] = {
4053 (char *) "self",(char *) "red",(char *) "green",(char *) "blue", NULL
4054 };
4055
4056 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Palette_GetPixel",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
4057 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4058 if (!SWIG_IsOK(res1)) {
4059 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetPixel" "', expected argument " "1"" of type '" "wxPalette *""'");
4060 }
4061 arg1 = reinterpret_cast< wxPalette * >(argp1);
4062 ecode2 = SWIG_AsVal_unsigned_SS_char(obj1, &val2);
4063 if (!SWIG_IsOK(ecode2)) {
4064 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetPixel" "', expected argument " "2"" of type '" "byte""'");
4065 }
4066 arg2 = static_cast< byte >(val2);
4067 ecode3 = SWIG_AsVal_unsigned_SS_char(obj2, &val3);
4068 if (!SWIG_IsOK(ecode3)) {
4069 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Palette_GetPixel" "', expected argument " "3"" of type '" "byte""'");
4070 }
4071 arg3 = static_cast< byte >(val3);
4072 ecode4 = SWIG_AsVal_unsigned_SS_char(obj3, &val4);
4073 if (!SWIG_IsOK(ecode4)) {
4074 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Palette_GetPixel" "', expected argument " "4"" of type '" "byte""'");
4075 }
4076 arg4 = static_cast< byte >(val4);
4077 {
4078 PyThreadState* __tstate = wxPyBeginAllowThreads();
4079 result = (int)(arg1)->GetPixel(arg2,arg3,arg4);
4080 wxPyEndAllowThreads(__tstate);
4081 if (PyErr_Occurred()) SWIG_fail;
4082 }
4083 resultobj = SWIG_From_int(static_cast< int >(result));
4084 return resultobj;
4085 fail:
4086 return NULL;
4087 }
4088
4089
4090 SWIGINTERN PyObject *_wrap_Palette_GetRGB(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4091 PyObject *resultobj = 0;
4092 wxPalette *arg1 = (wxPalette *) 0 ;
4093 int arg2 ;
4094 byte *arg3 = (byte *) 0 ;
4095 byte *arg4 = (byte *) 0 ;
4096 byte *arg5 = (byte *) 0 ;
4097 bool result;
4098 void *argp1 = 0 ;
4099 int res1 = 0 ;
4100 int val2 ;
4101 int ecode2 = 0 ;
4102 byte temp3 ;
4103 int res3 = SWIG_TMPOBJ ;
4104 byte temp4 ;
4105 int res4 = SWIG_TMPOBJ ;
4106 byte temp5 ;
4107 int res5 = SWIG_TMPOBJ ;
4108 PyObject * obj0 = 0 ;
4109 PyObject * obj1 = 0 ;
4110 char * kwnames[] = {
4111 (char *) "self",(char *) "pixel", NULL
4112 };
4113
4114 arg3 = &temp3;
4115 arg4 = &temp4;
4116 arg5 = &temp5;
4117 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Palette_GetRGB",kwnames,&obj0,&obj1)) SWIG_fail;
4118 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4119 if (!SWIG_IsOK(res1)) {
4120 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetRGB" "', expected argument " "1"" of type '" "wxPalette *""'");
4121 }
4122 arg1 = reinterpret_cast< wxPalette * >(argp1);
4123 ecode2 = SWIG_AsVal_int(obj1, &val2);
4124 if (!SWIG_IsOK(ecode2)) {
4125 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Palette_GetRGB" "', expected argument " "2"" of type '" "int""'");
4126 }
4127 arg2 = static_cast< int >(val2);
4128 {
4129 PyThreadState* __tstate = wxPyBeginAllowThreads();
4130 result = (bool)(arg1)->GetRGB(arg2,arg3,arg4,arg5);
4131 wxPyEndAllowThreads(__tstate);
4132 if (PyErr_Occurred()) SWIG_fail;
4133 }
4134 {
4135 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4136 }
4137 if (SWIG_IsTmpObj(res3)) {
4138 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg3)));
4139 } else {
4140 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4141 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_unsigned_char, new_flags));
4142 }
4143 if (SWIG_IsTmpObj(res4)) {
4144 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg4)));
4145 } else {
4146 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4147 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_unsigned_char, new_flags));
4148 }
4149 if (SWIG_IsTmpObj(res5)) {
4150 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_unsigned_SS_char((*arg5)));
4151 } else {
4152 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
4153 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_unsigned_char, new_flags));
4154 }
4155 return resultobj;
4156 fail:
4157 return NULL;
4158 }
4159
4160
4161 SWIGINTERN PyObject *_wrap_Palette_GetColoursCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4162 PyObject *resultobj = 0;
4163 wxPalette *arg1 = (wxPalette *) 0 ;
4164 int result;
4165 void *argp1 = 0 ;
4166 int res1 = 0 ;
4167 PyObject *swig_obj[1] ;
4168
4169 if (!args) SWIG_fail;
4170 swig_obj[0] = args;
4171 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4172 if (!SWIG_IsOK(res1)) {
4173 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_GetColoursCount" "', expected argument " "1"" of type '" "wxPalette const *""'");
4174 }
4175 arg1 = reinterpret_cast< wxPalette * >(argp1);
4176 {
4177 PyThreadState* __tstate = wxPyBeginAllowThreads();
4178 result = (int)((wxPalette const *)arg1)->GetColoursCount();
4179 wxPyEndAllowThreads(__tstate);
4180 if (PyErr_Occurred()) SWIG_fail;
4181 }
4182 resultobj = SWIG_From_int(static_cast< int >(result));
4183 return resultobj;
4184 fail:
4185 return NULL;
4186 }
4187
4188
4189 SWIGINTERN PyObject *_wrap_Palette_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4190 PyObject *resultobj = 0;
4191 wxPalette *arg1 = (wxPalette *) 0 ;
4192 bool result;
4193 void *argp1 = 0 ;
4194 int res1 = 0 ;
4195 PyObject *swig_obj[1] ;
4196
4197 if (!args) SWIG_fail;
4198 swig_obj[0] = args;
4199 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPalette, 0 | 0 );
4200 if (!SWIG_IsOK(res1)) {
4201 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Palette_Ok" "', expected argument " "1"" of type '" "wxPalette *""'");
4202 }
4203 arg1 = reinterpret_cast< wxPalette * >(argp1);
4204 {
4205 PyThreadState* __tstate = wxPyBeginAllowThreads();
4206 result = (bool)(arg1)->Ok();
4207 wxPyEndAllowThreads(__tstate);
4208 if (PyErr_Occurred()) SWIG_fail;
4209 }
4210 {
4211 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4212 }
4213 return resultobj;
4214 fail:
4215 return NULL;
4216 }
4217
4218
4219 SWIGINTERN PyObject *Palette_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4220 PyObject *obj;
4221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4222 SWIG_TypeNewClientData(SWIGTYPE_p_wxPalette, SWIG_NewClientData(obj));
4223 return SWIG_Py_Void();
4224 }
4225
4226 SWIGINTERN PyObject *Palette_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4227 return SWIG_Python_InitShadowInstance(args);
4228 }
4229
4230 SWIGINTERN PyObject *_wrap_new_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4231 PyObject *resultobj = 0;
4232 wxColour *arg1 = 0 ;
4233 int arg2 = (int) 1 ;
4234 int arg3 = (int) wxSOLID ;
4235 wxPen *result = 0 ;
4236 wxColour temp1 ;
4237 int val2 ;
4238 int ecode2 = 0 ;
4239 int val3 ;
4240 int ecode3 = 0 ;
4241 PyObject * obj0 = 0 ;
4242 PyObject * obj1 = 0 ;
4243 PyObject * obj2 = 0 ;
4244 char * kwnames[] = {
4245 (char *) "colour",(char *) "width",(char *) "style", NULL
4246 };
4247
4248 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_Pen",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4249 {
4250 arg1 = &temp1;
4251 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4252 }
4253 if (obj1) {
4254 ecode2 = SWIG_AsVal_int(obj1, &val2);
4255 if (!SWIG_IsOK(ecode2)) {
4256 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Pen" "', expected argument " "2"" of type '" "int""'");
4257 }
4258 arg2 = static_cast< int >(val2);
4259 }
4260 if (obj2) {
4261 ecode3 = SWIG_AsVal_int(obj2, &val3);
4262 if (!SWIG_IsOK(ecode3)) {
4263 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Pen" "', expected argument " "3"" of type '" "int""'");
4264 }
4265 arg3 = static_cast< int >(val3);
4266 }
4267 {
4268 if (!wxPyCheckForApp()) SWIG_fail;
4269 PyThreadState* __tstate = wxPyBeginAllowThreads();
4270 result = (wxPen *)new wxPen(*arg1,arg2,arg3);
4271 wxPyEndAllowThreads(__tstate);
4272 if (PyErr_Occurred()) SWIG_fail;
4273 }
4274 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, SWIG_POINTER_NEW | 0 );
4275 return resultobj;
4276 fail:
4277 return NULL;
4278 }
4279
4280
4281 SWIGINTERN PyObject *_wrap_delete_Pen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4282 PyObject *resultobj = 0;
4283 wxPen *arg1 = (wxPen *) 0 ;
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, SWIG_POINTER_DISOWN | 0 );
4291 if (!SWIG_IsOK(res1)) {
4292 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Pen" "', expected argument " "1"" of type '" "wxPen *""'");
4293 }
4294 arg1 = reinterpret_cast< wxPen * >(argp1);
4295 {
4296 PyThreadState* __tstate = wxPyBeginAllowThreads();
4297 delete arg1;
4298
4299 wxPyEndAllowThreads(__tstate);
4300 if (PyErr_Occurred()) SWIG_fail;
4301 }
4302 resultobj = SWIG_Py_Void();
4303 return resultobj;
4304 fail:
4305 return NULL;
4306 }
4307
4308
4309 SWIGINTERN PyObject *_wrap_Pen_GetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4310 PyObject *resultobj = 0;
4311 wxPen *arg1 = (wxPen *) 0 ;
4312 int result;
4313 void *argp1 = 0 ;
4314 int res1 = 0 ;
4315 PyObject *swig_obj[1] ;
4316
4317 if (!args) SWIG_fail;
4318 swig_obj[0] = args;
4319 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4320 if (!SWIG_IsOK(res1)) {
4321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4322 }
4323 arg1 = reinterpret_cast< wxPen * >(argp1);
4324 {
4325 PyThreadState* __tstate = wxPyBeginAllowThreads();
4326 result = (int)(arg1)->GetCap();
4327 wxPyEndAllowThreads(__tstate);
4328 if (PyErr_Occurred()) SWIG_fail;
4329 }
4330 resultobj = SWIG_From_int(static_cast< int >(result));
4331 return resultobj;
4332 fail:
4333 return NULL;
4334 }
4335
4336
4337 SWIGINTERN PyObject *_wrap_Pen_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4338 PyObject *resultobj = 0;
4339 wxPen *arg1 = (wxPen *) 0 ;
4340 wxColour result;
4341 void *argp1 = 0 ;
4342 int res1 = 0 ;
4343 PyObject *swig_obj[1] ;
4344
4345 if (!args) SWIG_fail;
4346 swig_obj[0] = args;
4347 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4348 if (!SWIG_IsOK(res1)) {
4349 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4350 }
4351 arg1 = reinterpret_cast< wxPen * >(argp1);
4352 {
4353 PyThreadState* __tstate = wxPyBeginAllowThreads();
4354 result = (arg1)->GetColour();
4355 wxPyEndAllowThreads(__tstate);
4356 if (PyErr_Occurred()) SWIG_fail;
4357 }
4358 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
4359 return resultobj;
4360 fail:
4361 return NULL;
4362 }
4363
4364
4365 SWIGINTERN PyObject *_wrap_Pen_GetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4366 PyObject *resultobj = 0;
4367 wxPen *arg1 = (wxPen *) 0 ;
4368 int result;
4369 void *argp1 = 0 ;
4370 int res1 = 0 ;
4371 PyObject *swig_obj[1] ;
4372
4373 if (!args) SWIG_fail;
4374 swig_obj[0] = args;
4375 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4376 if (!SWIG_IsOK(res1)) {
4377 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4378 }
4379 arg1 = reinterpret_cast< wxPen * >(argp1);
4380 {
4381 PyThreadState* __tstate = wxPyBeginAllowThreads();
4382 result = (int)(arg1)->GetJoin();
4383 wxPyEndAllowThreads(__tstate);
4384 if (PyErr_Occurred()) SWIG_fail;
4385 }
4386 resultobj = SWIG_From_int(static_cast< int >(result));
4387 return resultobj;
4388 fail:
4389 return NULL;
4390 }
4391
4392
4393 SWIGINTERN PyObject *_wrap_Pen_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4394 PyObject *resultobj = 0;
4395 wxPen *arg1 = (wxPen *) 0 ;
4396 int result;
4397 void *argp1 = 0 ;
4398 int res1 = 0 ;
4399 PyObject *swig_obj[1] ;
4400
4401 if (!args) SWIG_fail;
4402 swig_obj[0] = args;
4403 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4404 if (!SWIG_IsOK(res1)) {
4405 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4406 }
4407 arg1 = reinterpret_cast< wxPen * >(argp1);
4408 {
4409 PyThreadState* __tstate = wxPyBeginAllowThreads();
4410 result = (int)(arg1)->GetStyle();
4411 wxPyEndAllowThreads(__tstate);
4412 if (PyErr_Occurred()) SWIG_fail;
4413 }
4414 resultobj = SWIG_From_int(static_cast< int >(result));
4415 return resultobj;
4416 fail:
4417 return NULL;
4418 }
4419
4420
4421 SWIGINTERN PyObject *_wrap_Pen_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4422 PyObject *resultobj = 0;
4423 wxPen *arg1 = (wxPen *) 0 ;
4424 int result;
4425 void *argp1 = 0 ;
4426 int res1 = 0 ;
4427 PyObject *swig_obj[1] ;
4428
4429 if (!args) SWIG_fail;
4430 swig_obj[0] = args;
4431 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4432 if (!SWIG_IsOK(res1)) {
4433 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4434 }
4435 arg1 = reinterpret_cast< wxPen * >(argp1);
4436 {
4437 PyThreadState* __tstate = wxPyBeginAllowThreads();
4438 result = (int)(arg1)->GetWidth();
4439 wxPyEndAllowThreads(__tstate);
4440 if (PyErr_Occurred()) SWIG_fail;
4441 }
4442 resultobj = SWIG_From_int(static_cast< int >(result));
4443 return resultobj;
4444 fail:
4445 return NULL;
4446 }
4447
4448
4449 SWIGINTERN PyObject *_wrap_Pen_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4450 PyObject *resultobj = 0;
4451 wxPen *arg1 = (wxPen *) 0 ;
4452 bool result;
4453 void *argp1 = 0 ;
4454 int res1 = 0 ;
4455 PyObject *swig_obj[1] ;
4456
4457 if (!args) SWIG_fail;
4458 swig_obj[0] = args;
4459 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4460 if (!SWIG_IsOK(res1)) {
4461 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_Ok" "', expected argument " "1"" of type '" "wxPen *""'");
4462 }
4463 arg1 = reinterpret_cast< wxPen * >(argp1);
4464 {
4465 PyThreadState* __tstate = wxPyBeginAllowThreads();
4466 result = (bool)(arg1)->Ok();
4467 wxPyEndAllowThreads(__tstate);
4468 if (PyErr_Occurred()) SWIG_fail;
4469 }
4470 {
4471 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4472 }
4473 return resultobj;
4474 fail:
4475 return NULL;
4476 }
4477
4478
4479 SWIGINTERN PyObject *_wrap_Pen_SetCap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4480 PyObject *resultobj = 0;
4481 wxPen *arg1 = (wxPen *) 0 ;
4482 int arg2 ;
4483 void *argp1 = 0 ;
4484 int res1 = 0 ;
4485 int val2 ;
4486 int ecode2 = 0 ;
4487 PyObject * obj0 = 0 ;
4488 PyObject * obj1 = 0 ;
4489 char * kwnames[] = {
4490 (char *) "self",(char *) "cap_style", NULL
4491 };
4492
4493 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetCap",kwnames,&obj0,&obj1)) SWIG_fail;
4494 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4495 if (!SWIG_IsOK(res1)) {
4496 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetCap" "', expected argument " "1"" of type '" "wxPen *""'");
4497 }
4498 arg1 = reinterpret_cast< wxPen * >(argp1);
4499 ecode2 = SWIG_AsVal_int(obj1, &val2);
4500 if (!SWIG_IsOK(ecode2)) {
4501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetCap" "', expected argument " "2"" of type '" "int""'");
4502 }
4503 arg2 = static_cast< int >(val2);
4504 {
4505 PyThreadState* __tstate = wxPyBeginAllowThreads();
4506 (arg1)->SetCap(arg2);
4507 wxPyEndAllowThreads(__tstate);
4508 if (PyErr_Occurred()) SWIG_fail;
4509 }
4510 resultobj = SWIG_Py_Void();
4511 return resultobj;
4512 fail:
4513 return NULL;
4514 }
4515
4516
4517 SWIGINTERN PyObject *_wrap_Pen_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4518 PyObject *resultobj = 0;
4519 wxPen *arg1 = (wxPen *) 0 ;
4520 wxColour *arg2 = 0 ;
4521 void *argp1 = 0 ;
4522 int res1 = 0 ;
4523 wxColour temp2 ;
4524 PyObject * obj0 = 0 ;
4525 PyObject * obj1 = 0 ;
4526 char * kwnames[] = {
4527 (char *) "self",(char *) "colour", NULL
4528 };
4529
4530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
4531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4532 if (!SWIG_IsOK(res1)) {
4533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetColour" "', expected argument " "1"" of type '" "wxPen *""'");
4534 }
4535 arg1 = reinterpret_cast< wxPen * >(argp1);
4536 {
4537 arg2 = &temp2;
4538 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
4539 }
4540 {
4541 PyThreadState* __tstate = wxPyBeginAllowThreads();
4542 (arg1)->SetColour(*arg2);
4543 wxPyEndAllowThreads(__tstate);
4544 if (PyErr_Occurred()) SWIG_fail;
4545 }
4546 resultobj = SWIG_Py_Void();
4547 return resultobj;
4548 fail:
4549 return NULL;
4550 }
4551
4552
4553 SWIGINTERN PyObject *_wrap_Pen_SetJoin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4554 PyObject *resultobj = 0;
4555 wxPen *arg1 = (wxPen *) 0 ;
4556 int arg2 ;
4557 void *argp1 = 0 ;
4558 int res1 = 0 ;
4559 int val2 ;
4560 int ecode2 = 0 ;
4561 PyObject * obj0 = 0 ;
4562 PyObject * obj1 = 0 ;
4563 char * kwnames[] = {
4564 (char *) "self",(char *) "join_style", NULL
4565 };
4566
4567 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetJoin",kwnames,&obj0,&obj1)) SWIG_fail;
4568 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4569 if (!SWIG_IsOK(res1)) {
4570 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetJoin" "', expected argument " "1"" of type '" "wxPen *""'");
4571 }
4572 arg1 = reinterpret_cast< wxPen * >(argp1);
4573 ecode2 = SWIG_AsVal_int(obj1, &val2);
4574 if (!SWIG_IsOK(ecode2)) {
4575 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetJoin" "', expected argument " "2"" of type '" "int""'");
4576 }
4577 arg2 = static_cast< int >(val2);
4578 {
4579 PyThreadState* __tstate = wxPyBeginAllowThreads();
4580 (arg1)->SetJoin(arg2);
4581 wxPyEndAllowThreads(__tstate);
4582 if (PyErr_Occurred()) SWIG_fail;
4583 }
4584 resultobj = SWIG_Py_Void();
4585 return resultobj;
4586 fail:
4587 return NULL;
4588 }
4589
4590
4591 SWIGINTERN PyObject *_wrap_Pen_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4592 PyObject *resultobj = 0;
4593 wxPen *arg1 = (wxPen *) 0 ;
4594 int arg2 ;
4595 void *argp1 = 0 ;
4596 int res1 = 0 ;
4597 int val2 ;
4598 int ecode2 = 0 ;
4599 PyObject * obj0 = 0 ;
4600 PyObject * obj1 = 0 ;
4601 char * kwnames[] = {
4602 (char *) "self",(char *) "style", NULL
4603 };
4604
4605 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
4606 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4607 if (!SWIG_IsOK(res1)) {
4608 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStyle" "', expected argument " "1"" of type '" "wxPen *""'");
4609 }
4610 arg1 = reinterpret_cast< wxPen * >(argp1);
4611 ecode2 = SWIG_AsVal_int(obj1, &val2);
4612 if (!SWIG_IsOK(ecode2)) {
4613 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetStyle" "', expected argument " "2"" of type '" "int""'");
4614 }
4615 arg2 = static_cast< int >(val2);
4616 {
4617 PyThreadState* __tstate = wxPyBeginAllowThreads();
4618 (arg1)->SetStyle(arg2);
4619 wxPyEndAllowThreads(__tstate);
4620 if (PyErr_Occurred()) SWIG_fail;
4621 }
4622 resultobj = SWIG_Py_Void();
4623 return resultobj;
4624 fail:
4625 return NULL;
4626 }
4627
4628
4629 SWIGINTERN PyObject *_wrap_Pen_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4630 PyObject *resultobj = 0;
4631 wxPen *arg1 = (wxPen *) 0 ;
4632 int arg2 ;
4633 void *argp1 = 0 ;
4634 int res1 = 0 ;
4635 int val2 ;
4636 int ecode2 = 0 ;
4637 PyObject * obj0 = 0 ;
4638 PyObject * obj1 = 0 ;
4639 char * kwnames[] = {
4640 (char *) "self",(char *) "width", NULL
4641 };
4642
4643 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
4644 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4645 if (!SWIG_IsOK(res1)) {
4646 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetWidth" "', expected argument " "1"" of type '" "wxPen *""'");
4647 }
4648 arg1 = reinterpret_cast< wxPen * >(argp1);
4649 ecode2 = SWIG_AsVal_int(obj1, &val2);
4650 if (!SWIG_IsOK(ecode2)) {
4651 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Pen_SetWidth" "', expected argument " "2"" of type '" "int""'");
4652 }
4653 arg2 = static_cast< int >(val2);
4654 {
4655 PyThreadState* __tstate = wxPyBeginAllowThreads();
4656 (arg1)->SetWidth(arg2);
4657 wxPyEndAllowThreads(__tstate);
4658 if (PyErr_Occurred()) SWIG_fail;
4659 }
4660 resultobj = SWIG_Py_Void();
4661 return resultobj;
4662 fail:
4663 return NULL;
4664 }
4665
4666
4667 SWIGINTERN PyObject *_wrap_Pen_SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4668 PyObject *resultobj = 0;
4669 wxPen *arg1 = (wxPen *) 0 ;
4670 int arg2 ;
4671 wxDash *arg3 = (wxDash *) 0 ;
4672 void *argp1 = 0 ;
4673 int res1 = 0 ;
4674 PyObject * obj0 = 0 ;
4675 PyObject * obj1 = 0 ;
4676 char * kwnames[] = {
4677 (char *) "self",(char *) "dashes", NULL
4678 };
4679
4680 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetDashes",kwnames,&obj0,&obj1)) SWIG_fail;
4681 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4682 if (!SWIG_IsOK(res1)) {
4683 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4684 }
4685 arg1 = reinterpret_cast< wxPen * >(argp1);
4686 {
4687 arg2 = PyList_Size(obj1);
4688 arg3 = (wxDash*)byte_LIST_helper(obj1);
4689 if (arg3 == NULL) SWIG_fail;
4690 }
4691 {
4692 PyThreadState* __tstate = wxPyBeginAllowThreads();
4693 (arg1)->SetDashes(arg2,arg3);
4694 wxPyEndAllowThreads(__tstate);
4695 if (PyErr_Occurred()) SWIG_fail;
4696 }
4697 resultobj = SWIG_Py_Void();
4698 {
4699 if (arg3) delete [] arg3;
4700 }
4701 return resultobj;
4702 fail:
4703 {
4704 if (arg3) delete [] arg3;
4705 }
4706 return NULL;
4707 }
4708
4709
4710 SWIGINTERN PyObject *_wrap_Pen_GetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4711 PyObject *resultobj = 0;
4712 wxPen *arg1 = (wxPen *) 0 ;
4713 PyObject *result = 0 ;
4714 void *argp1 = 0 ;
4715 int res1 = 0 ;
4716 PyObject *swig_obj[1] ;
4717
4718 if (!args) SWIG_fail;
4719 swig_obj[0] = args;
4720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4721 if (!SWIG_IsOK(res1)) {
4722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4723 }
4724 arg1 = reinterpret_cast< wxPen * >(argp1);
4725 {
4726 PyThreadState* __tstate = wxPyBeginAllowThreads();
4727 result = (PyObject *)wxPen_GetDashes(arg1);
4728 wxPyEndAllowThreads(__tstate);
4729 if (PyErr_Occurred()) SWIG_fail;
4730 }
4731 resultobj = result;
4732 return resultobj;
4733 fail:
4734 return NULL;
4735 }
4736
4737
4738 SWIGINTERN PyObject *_wrap_Pen__SetDashes(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4739 PyObject *resultobj = 0;
4740 wxPen *arg1 = (wxPen *) 0 ;
4741 PyObject *arg2 = (PyObject *) 0 ;
4742 PyObject *arg3 = (PyObject *) 0 ;
4743 void *argp1 = 0 ;
4744 int res1 = 0 ;
4745 PyObject * obj0 = 0 ;
4746 PyObject * obj1 = 0 ;
4747 PyObject * obj2 = 0 ;
4748 char * kwnames[] = {
4749 (char *) "self",(char *) "_self",(char *) "pyDashes", NULL
4750 };
4751
4752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Pen__SetDashes",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
4753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4754 if (!SWIG_IsOK(res1)) {
4755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen__SetDashes" "', expected argument " "1"" of type '" "wxPen *""'");
4756 }
4757 arg1 = reinterpret_cast< wxPen * >(argp1);
4758 arg2 = obj1;
4759 arg3 = obj2;
4760 {
4761 PyThreadState* __tstate = wxPyBeginAllowThreads();
4762 wxPen__SetDashes(arg1,arg2,arg3);
4763 wxPyEndAllowThreads(__tstate);
4764 if (PyErr_Occurred()) SWIG_fail;
4765 }
4766 resultobj = SWIG_Py_Void();
4767 return resultobj;
4768 fail:
4769 return NULL;
4770 }
4771
4772
4773 SWIGINTERN PyObject *_wrap_Pen_GetDashCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4774 PyObject *resultobj = 0;
4775 wxPen *arg1 = (wxPen *) 0 ;
4776 int result;
4777 void *argp1 = 0 ;
4778 int res1 = 0 ;
4779 PyObject *swig_obj[1] ;
4780
4781 if (!args) SWIG_fail;
4782 swig_obj[0] = args;
4783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4784 if (!SWIG_IsOK(res1)) {
4785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetDashCount" "', expected argument " "1"" of type '" "wxPen const *""'");
4786 }
4787 arg1 = reinterpret_cast< wxPen * >(argp1);
4788 {
4789 PyThreadState* __tstate = wxPyBeginAllowThreads();
4790 result = (int)((wxPen const *)arg1)->GetDashCount();
4791 wxPyEndAllowThreads(__tstate);
4792 if (PyErr_Occurred()) SWIG_fail;
4793 }
4794 resultobj = SWIG_From_int(static_cast< int >(result));
4795 return resultobj;
4796 fail:
4797 return NULL;
4798 }
4799
4800
4801 SWIGINTERN PyObject *_wrap_Pen_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4802 PyObject *resultobj = 0;
4803 wxPen *arg1 = (wxPen *) 0 ;
4804 wxBitmap *result = 0 ;
4805 void *argp1 = 0 ;
4806 int res1 = 0 ;
4807 PyObject *swig_obj[1] ;
4808
4809 if (!args) SWIG_fail;
4810 swig_obj[0] = args;
4811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4812 if (!SWIG_IsOK(res1)) {
4813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_GetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4814 }
4815 arg1 = reinterpret_cast< wxPen * >(argp1);
4816 {
4817 PyThreadState* __tstate = wxPyBeginAllowThreads();
4818 result = (wxBitmap *)(arg1)->GetStipple();
4819 wxPyEndAllowThreads(__tstate);
4820 if (PyErr_Occurred()) SWIG_fail;
4821 }
4822 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
4823 return resultobj;
4824 fail:
4825 return NULL;
4826 }
4827
4828
4829 SWIGINTERN PyObject *_wrap_Pen_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4830 PyObject *resultobj = 0;
4831 wxPen *arg1 = (wxPen *) 0 ;
4832 wxBitmap *arg2 = 0 ;
4833 void *argp1 = 0 ;
4834 int res1 = 0 ;
4835 void *argp2 = 0 ;
4836 int res2 = 0 ;
4837 PyObject * obj0 = 0 ;
4838 PyObject * obj1 = 0 ;
4839 char * kwnames[] = {
4840 (char *) "self",(char *) "stipple", NULL
4841 };
4842
4843 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
4844 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4845 if (!SWIG_IsOK(res1)) {
4846 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen_SetStipple" "', expected argument " "1"" of type '" "wxPen *""'");
4847 }
4848 arg1 = reinterpret_cast< wxPen * >(argp1);
4849 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 );
4850 if (!SWIG_IsOK(res2)) {
4851 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4852 }
4853 if (!argp2) {
4854 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Pen_SetStipple" "', expected argument " "2"" of type '" "wxBitmap &""'");
4855 }
4856 arg2 = reinterpret_cast< wxBitmap * >(argp2);
4857 {
4858 PyThreadState* __tstate = wxPyBeginAllowThreads();
4859 (arg1)->SetStipple(*arg2);
4860 wxPyEndAllowThreads(__tstate);
4861 if (PyErr_Occurred()) SWIG_fail;
4862 }
4863 resultobj = SWIG_Py_Void();
4864 return resultobj;
4865 fail:
4866 return NULL;
4867 }
4868
4869
4870 SWIGINTERN PyObject *_wrap_Pen___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4871 PyObject *resultobj = 0;
4872 wxPen *arg1 = (wxPen *) 0 ;
4873 wxPen *arg2 = (wxPen *) 0 ;
4874 bool result;
4875 void *argp1 = 0 ;
4876 int res1 = 0 ;
4877 void *argp2 = 0 ;
4878 int res2 = 0 ;
4879 PyObject * obj0 = 0 ;
4880 PyObject * obj1 = 0 ;
4881 char * kwnames[] = {
4882 (char *) "self",(char *) "other", NULL
4883 };
4884
4885 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
4886 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4887 if (!SWIG_IsOK(res1)) {
4888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___eq__" "', expected argument " "1"" of type '" "wxPen *""'");
4889 }
4890 arg1 = reinterpret_cast< wxPen * >(argp1);
4891 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4892 if (!SWIG_IsOK(res2)) {
4893 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___eq__" "', expected argument " "2"" of type '" "wxPen const *""'");
4894 }
4895 arg2 = reinterpret_cast< wxPen * >(argp2);
4896 {
4897 PyThreadState* __tstate = wxPyBeginAllowThreads();
4898 result = (bool)wxPen___eq__(arg1,(wxPen const *)arg2);
4899 wxPyEndAllowThreads(__tstate);
4900 if (PyErr_Occurred()) SWIG_fail;
4901 }
4902 {
4903 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4904 }
4905 return resultobj;
4906 fail:
4907 return NULL;
4908 }
4909
4910
4911 SWIGINTERN PyObject *_wrap_Pen___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4912 PyObject *resultobj = 0;
4913 wxPen *arg1 = (wxPen *) 0 ;
4914 wxPen *arg2 = (wxPen *) 0 ;
4915 bool result;
4916 void *argp1 = 0 ;
4917 int res1 = 0 ;
4918 void *argp2 = 0 ;
4919 int res2 = 0 ;
4920 PyObject * obj0 = 0 ;
4921 PyObject * obj1 = 0 ;
4922 char * kwnames[] = {
4923 (char *) "self",(char *) "other", NULL
4924 };
4925
4926 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Pen___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
4927 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPen, 0 | 0 );
4928 if (!SWIG_IsOK(res1)) {
4929 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Pen___ne__" "', expected argument " "1"" of type '" "wxPen *""'");
4930 }
4931 arg1 = reinterpret_cast< wxPen * >(argp1);
4932 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
4933 if (!SWIG_IsOK(res2)) {
4934 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Pen___ne__" "', expected argument " "2"" of type '" "wxPen const *""'");
4935 }
4936 arg2 = reinterpret_cast< wxPen * >(argp2);
4937 {
4938 PyThreadState* __tstate = wxPyBeginAllowThreads();
4939 result = (bool)wxPen___ne__(arg1,(wxPen const *)arg2);
4940 wxPyEndAllowThreads(__tstate);
4941 if (PyErr_Occurred()) SWIG_fail;
4942 }
4943 {
4944 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
4945 }
4946 return resultobj;
4947 fail:
4948 return NULL;
4949 }
4950
4951
4952 SWIGINTERN PyObject *Pen_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4953 PyObject *obj;
4954 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
4955 SWIG_TypeNewClientData(SWIGTYPE_p_wxPen, SWIG_NewClientData(obj));
4956 return SWIG_Py_Void();
4957 }
4958
4959 SWIGINTERN PyObject *Pen_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
4960 return SWIG_Python_InitShadowInstance(args);
4961 }
4962
4963 SWIGINTERN PyObject *_wrap_new_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
4964 PyObject *resultobj = 0;
4965 wxColour *arg1 = 0 ;
4966 int arg2 = (int) wxSOLID ;
4967 wxBrush *result = 0 ;
4968 wxColour temp1 ;
4969 int val2 ;
4970 int ecode2 = 0 ;
4971 PyObject * obj0 = 0 ;
4972 PyObject * obj1 = 0 ;
4973 char * kwnames[] = {
4974 (char *) "colour",(char *) "style", NULL
4975 };
4976
4977 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Brush",kwnames,&obj0,&obj1)) SWIG_fail;
4978 {
4979 arg1 = &temp1;
4980 if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail;
4981 }
4982 if (obj1) {
4983 ecode2 = SWIG_AsVal_int(obj1, &val2);
4984 if (!SWIG_IsOK(ecode2)) {
4985 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Brush" "', expected argument " "2"" of type '" "int""'");
4986 }
4987 arg2 = static_cast< int >(val2);
4988 }
4989 {
4990 if (!wxPyCheckForApp()) SWIG_fail;
4991 PyThreadState* __tstate = wxPyBeginAllowThreads();
4992 result = (wxBrush *)new wxBrush((wxColour const &)*arg1,arg2);
4993 wxPyEndAllowThreads(__tstate);
4994 if (PyErr_Occurred()) SWIG_fail;
4995 }
4996 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_NEW | 0 );
4997 return resultobj;
4998 fail:
4999 return NULL;
5000 }
5001
5002
5003 SWIGINTERN PyObject *_wrap_new_BrushFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5004 PyObject *resultobj = 0;
5005 wxBitmap *arg1 = 0 ;
5006 wxBrush *result = 0 ;
5007 void *argp1 = 0 ;
5008 int res1 = 0 ;
5009 PyObject * obj0 = 0 ;
5010 char * kwnames[] = {
5011 (char *) "stippleBitmap", NULL
5012 };
5013
5014 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BrushFromBitmap",kwnames,&obj0)) SWIG_fail;
5015 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
5016 if (!SWIG_IsOK(res1)) {
5017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5018 }
5019 if (!argp1) {
5020 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BrushFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
5021 }
5022 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5023 {
5024 if (!wxPyCheckForApp()) SWIG_fail;
5025 PyThreadState* __tstate = wxPyBeginAllowThreads();
5026 result = (wxBrush *)new wxBrush((wxBitmap const &)*arg1);
5027 wxPyEndAllowThreads(__tstate);
5028 if (PyErr_Occurred()) SWIG_fail;
5029 }
5030 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, SWIG_POINTER_OWN | 0 );
5031 return resultobj;
5032 fail:
5033 return NULL;
5034 }
5035
5036
5037 SWIGINTERN PyObject *_wrap_delete_Brush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5038 PyObject *resultobj = 0;
5039 wxBrush *arg1 = (wxBrush *) 0 ;
5040 void *argp1 = 0 ;
5041 int res1 = 0 ;
5042 PyObject *swig_obj[1] ;
5043
5044 if (!args) SWIG_fail;
5045 swig_obj[0] = args;
5046 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, SWIG_POINTER_DISOWN | 0 );
5047 if (!SWIG_IsOK(res1)) {
5048 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Brush" "', expected argument " "1"" of type '" "wxBrush *""'");
5049 }
5050 arg1 = reinterpret_cast< wxBrush * >(argp1);
5051 {
5052 PyThreadState* __tstate = wxPyBeginAllowThreads();
5053 delete arg1;
5054
5055 wxPyEndAllowThreads(__tstate);
5056 if (PyErr_Occurred()) SWIG_fail;
5057 }
5058 resultobj = SWIG_Py_Void();
5059 return resultobj;
5060 fail:
5061 return NULL;
5062 }
5063
5064
5065 SWIGINTERN PyObject *_wrap_Brush_SetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5066 PyObject *resultobj = 0;
5067 wxBrush *arg1 = (wxBrush *) 0 ;
5068 wxColour *arg2 = 0 ;
5069 void *argp1 = 0 ;
5070 int res1 = 0 ;
5071 wxColour temp2 ;
5072 PyObject * obj0 = 0 ;
5073 PyObject * obj1 = 0 ;
5074 char * kwnames[] = {
5075 (char *) "self",(char *) "col", NULL
5076 };
5077
5078 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetColour",kwnames,&obj0,&obj1)) SWIG_fail;
5079 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5080 if (!SWIG_IsOK(res1)) {
5081 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetColour" "', expected argument " "1"" of type '" "wxBrush *""'");
5082 }
5083 arg1 = reinterpret_cast< wxBrush * >(argp1);
5084 {
5085 arg2 = &temp2;
5086 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5087 }
5088 {
5089 PyThreadState* __tstate = wxPyBeginAllowThreads();
5090 (arg1)->SetColour((wxColour const &)*arg2);
5091 wxPyEndAllowThreads(__tstate);
5092 if (PyErr_Occurred()) SWIG_fail;
5093 }
5094 resultobj = SWIG_Py_Void();
5095 return resultobj;
5096 fail:
5097 return NULL;
5098 }
5099
5100
5101 SWIGINTERN PyObject *_wrap_Brush_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5102 PyObject *resultobj = 0;
5103 wxBrush *arg1 = (wxBrush *) 0 ;
5104 int arg2 ;
5105 void *argp1 = 0 ;
5106 int res1 = 0 ;
5107 int val2 ;
5108 int ecode2 = 0 ;
5109 PyObject * obj0 = 0 ;
5110 PyObject * obj1 = 0 ;
5111 char * kwnames[] = {
5112 (char *) "self",(char *) "style", NULL
5113 };
5114
5115 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
5116 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5117 if (!SWIG_IsOK(res1)) {
5118 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStyle" "', expected argument " "1"" of type '" "wxBrush *""'");
5119 }
5120 arg1 = reinterpret_cast< wxBrush * >(argp1);
5121 ecode2 = SWIG_AsVal_int(obj1, &val2);
5122 if (!SWIG_IsOK(ecode2)) {
5123 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Brush_SetStyle" "', expected argument " "2"" of type '" "int""'");
5124 }
5125 arg2 = static_cast< int >(val2);
5126 {
5127 PyThreadState* __tstate = wxPyBeginAllowThreads();
5128 (arg1)->SetStyle(arg2);
5129 wxPyEndAllowThreads(__tstate);
5130 if (PyErr_Occurred()) SWIG_fail;
5131 }
5132 resultobj = SWIG_Py_Void();
5133 return resultobj;
5134 fail:
5135 return NULL;
5136 }
5137
5138
5139 SWIGINTERN PyObject *_wrap_Brush_SetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5140 PyObject *resultobj = 0;
5141 wxBrush *arg1 = (wxBrush *) 0 ;
5142 wxBitmap *arg2 = 0 ;
5143 void *argp1 = 0 ;
5144 int res1 = 0 ;
5145 void *argp2 = 0 ;
5146 int res2 = 0 ;
5147 PyObject * obj0 = 0 ;
5148 PyObject * obj1 = 0 ;
5149 char * kwnames[] = {
5150 (char *) "self",(char *) "stipple", NULL
5151 };
5152
5153 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Brush_SetStipple",kwnames,&obj0,&obj1)) SWIG_fail;
5154 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5155 if (!SWIG_IsOK(res1)) {
5156 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_SetStipple" "', expected argument " "1"" of type '" "wxBrush *""'");
5157 }
5158 arg1 = reinterpret_cast< wxBrush * >(argp1);
5159 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
5160 if (!SWIG_IsOK(res2)) {
5161 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5162 }
5163 if (!argp2) {
5164 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Brush_SetStipple" "', expected argument " "2"" of type '" "wxBitmap const &""'");
5165 }
5166 arg2 = reinterpret_cast< wxBitmap * >(argp2);
5167 {
5168 PyThreadState* __tstate = wxPyBeginAllowThreads();
5169 (arg1)->SetStipple((wxBitmap const &)*arg2);
5170 wxPyEndAllowThreads(__tstate);
5171 if (PyErr_Occurred()) SWIG_fail;
5172 }
5173 resultobj = SWIG_Py_Void();
5174 return resultobj;
5175 fail:
5176 return NULL;
5177 }
5178
5179
5180 SWIGINTERN PyObject *_wrap_Brush_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5181 PyObject *resultobj = 0;
5182 wxBrush *arg1 = (wxBrush *) 0 ;
5183 wxColour result;
5184 void *argp1 = 0 ;
5185 int res1 = 0 ;
5186 PyObject *swig_obj[1] ;
5187
5188 if (!args) SWIG_fail;
5189 swig_obj[0] = args;
5190 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5191 if (!SWIG_IsOK(res1)) {
5192 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetColour" "', expected argument " "1"" of type '" "wxBrush const *""'");
5193 }
5194 arg1 = reinterpret_cast< wxBrush * >(argp1);
5195 {
5196 PyThreadState* __tstate = wxPyBeginAllowThreads();
5197 result = ((wxBrush const *)arg1)->GetColour();
5198 wxPyEndAllowThreads(__tstate);
5199 if (PyErr_Occurred()) SWIG_fail;
5200 }
5201 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
5202 return resultobj;
5203 fail:
5204 return NULL;
5205 }
5206
5207
5208 SWIGINTERN PyObject *_wrap_Brush_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5209 PyObject *resultobj = 0;
5210 wxBrush *arg1 = (wxBrush *) 0 ;
5211 int result;
5212 void *argp1 = 0 ;
5213 int res1 = 0 ;
5214 PyObject *swig_obj[1] ;
5215
5216 if (!args) SWIG_fail;
5217 swig_obj[0] = args;
5218 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5219 if (!SWIG_IsOK(res1)) {
5220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStyle" "', expected argument " "1"" of type '" "wxBrush const *""'");
5221 }
5222 arg1 = reinterpret_cast< wxBrush * >(argp1);
5223 {
5224 PyThreadState* __tstate = wxPyBeginAllowThreads();
5225 result = (int)((wxBrush const *)arg1)->GetStyle();
5226 wxPyEndAllowThreads(__tstate);
5227 if (PyErr_Occurred()) SWIG_fail;
5228 }
5229 resultobj = SWIG_From_int(static_cast< int >(result));
5230 return resultobj;
5231 fail:
5232 return NULL;
5233 }
5234
5235
5236 SWIGINTERN PyObject *_wrap_Brush_GetStipple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5237 PyObject *resultobj = 0;
5238 wxBrush *arg1 = (wxBrush *) 0 ;
5239 wxBitmap *result = 0 ;
5240 void *argp1 = 0 ;
5241 int res1 = 0 ;
5242 PyObject *swig_obj[1] ;
5243
5244 if (!args) SWIG_fail;
5245 swig_obj[0] = args;
5246 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5247 if (!SWIG_IsOK(res1)) {
5248 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_GetStipple" "', expected argument " "1"" of type '" "wxBrush const *""'");
5249 }
5250 arg1 = reinterpret_cast< wxBrush * >(argp1);
5251 {
5252 PyThreadState* __tstate = wxPyBeginAllowThreads();
5253 result = (wxBitmap *)((wxBrush const *)arg1)->GetStipple();
5254 wxPyEndAllowThreads(__tstate);
5255 if (PyErr_Occurred()) SWIG_fail;
5256 }
5257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, 0 | 0 );
5258 return resultobj;
5259 fail:
5260 return NULL;
5261 }
5262
5263
5264 SWIGINTERN PyObject *_wrap_Brush_IsHatch(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5265 PyObject *resultobj = 0;
5266 wxBrush *arg1 = (wxBrush *) 0 ;
5267 bool result;
5268 void *argp1 = 0 ;
5269 int res1 = 0 ;
5270 PyObject *swig_obj[1] ;
5271
5272 if (!args) SWIG_fail;
5273 swig_obj[0] = args;
5274 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5275 if (!SWIG_IsOK(res1)) {
5276 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_IsHatch" "', expected argument " "1"" of type '" "wxBrush const *""'");
5277 }
5278 arg1 = reinterpret_cast< wxBrush * >(argp1);
5279 {
5280 PyThreadState* __tstate = wxPyBeginAllowThreads();
5281 result = (bool)((wxBrush const *)arg1)->IsHatch();
5282 wxPyEndAllowThreads(__tstate);
5283 if (PyErr_Occurred()) SWIG_fail;
5284 }
5285 {
5286 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5287 }
5288 return resultobj;
5289 fail:
5290 return NULL;
5291 }
5292
5293
5294 SWIGINTERN PyObject *_wrap_Brush_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5295 PyObject *resultobj = 0;
5296 wxBrush *arg1 = (wxBrush *) 0 ;
5297 bool result;
5298 void *argp1 = 0 ;
5299 int res1 = 0 ;
5300 PyObject *swig_obj[1] ;
5301
5302 if (!args) SWIG_fail;
5303 swig_obj[0] = args;
5304 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBrush, 0 | 0 );
5305 if (!SWIG_IsOK(res1)) {
5306 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Brush_Ok" "', expected argument " "1"" of type '" "wxBrush *""'");
5307 }
5308 arg1 = reinterpret_cast< wxBrush * >(argp1);
5309 {
5310 PyThreadState* __tstate = wxPyBeginAllowThreads();
5311 result = (bool)(arg1)->Ok();
5312 wxPyEndAllowThreads(__tstate);
5313 if (PyErr_Occurred()) SWIG_fail;
5314 }
5315 {
5316 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5317 }
5318 return resultobj;
5319 fail:
5320 return NULL;
5321 }
5322
5323
5324 SWIGINTERN PyObject *Brush_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5325 PyObject *obj;
5326 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
5327 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrush, SWIG_NewClientData(obj));
5328 return SWIG_Py_Void();
5329 }
5330
5331 SWIGINTERN PyObject *Brush_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5332 return SWIG_Python_InitShadowInstance(args);
5333 }
5334
5335 SWIGINTERN PyObject *_wrap_new_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5336 PyObject *resultobj = 0;
5337 wxString *arg1 = 0 ;
5338 wxBitmapType arg2 = (wxBitmapType) wxBITMAP_TYPE_ANY ;
5339 wxBitmap *result = 0 ;
5340 bool temp1 = false ;
5341 int val2 ;
5342 int ecode2 = 0 ;
5343 PyObject * obj0 = 0 ;
5344 PyObject * obj1 = 0 ;
5345 char * kwnames[] = {
5346 (char *) "name",(char *) "type", NULL
5347 };
5348
5349 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Bitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5350 {
5351 arg1 = wxString_in_helper(obj0);
5352 if (arg1 == NULL) SWIG_fail;
5353 temp1 = true;
5354 }
5355 if (obj1) {
5356 ecode2 = SWIG_AsVal_int(obj1, &val2);
5357 if (!SWIG_IsOK(ecode2)) {
5358 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Bitmap" "', expected argument " "2"" of type '" "wxBitmapType""'");
5359 }
5360 arg2 = static_cast< wxBitmapType >(val2);
5361 }
5362 {
5363 if (!wxPyCheckForApp()) SWIG_fail;
5364 PyThreadState* __tstate = wxPyBeginAllowThreads();
5365 result = (wxBitmap *)new wxBitmap((wxString const &)*arg1,arg2);
5366 wxPyEndAllowThreads(__tstate);
5367 if (PyErr_Occurred()) SWIG_fail;
5368 }
5369 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_NEW | 0 );
5370 {
5371 if (temp1)
5372 delete arg1;
5373 }
5374 return resultobj;
5375 fail:
5376 {
5377 if (temp1)
5378 delete arg1;
5379 }
5380 return NULL;
5381 }
5382
5383
5384 SWIGINTERN PyObject *_wrap_delete_Bitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5385 PyObject *resultobj = 0;
5386 wxBitmap *arg1 = (wxBitmap *) 0 ;
5387 void *argp1 = 0 ;
5388 int res1 = 0 ;
5389 PyObject *swig_obj[1] ;
5390
5391 if (!args) SWIG_fail;
5392 swig_obj[0] = args;
5393 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, SWIG_POINTER_DISOWN | 0 );
5394 if (!SWIG_IsOK(res1)) {
5395 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Bitmap" "', expected argument " "1"" of type '" "wxBitmap *""'");
5396 }
5397 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5398 {
5399 PyThreadState* __tstate = wxPyBeginAllowThreads();
5400 delete arg1;
5401
5402 wxPyEndAllowThreads(__tstate);
5403 if (PyErr_Occurred()) SWIG_fail;
5404 }
5405 resultobj = SWIG_Py_Void();
5406 return resultobj;
5407 fail:
5408 return NULL;
5409 }
5410
5411
5412 SWIGINTERN PyObject *_wrap_new_EmptyBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5413 PyObject *resultobj = 0;
5414 int arg1 ;
5415 int arg2 ;
5416 int arg3 = (int) -1 ;
5417 wxBitmap *result = 0 ;
5418 int val1 ;
5419 int ecode1 = 0 ;
5420 int val2 ;
5421 int ecode2 = 0 ;
5422 int val3 ;
5423 int ecode3 = 0 ;
5424 PyObject * obj0 = 0 ;
5425 PyObject * obj1 = 0 ;
5426 PyObject * obj2 = 0 ;
5427 char * kwnames[] = {
5428 (char *) "width",(char *) "height",(char *) "depth", NULL
5429 };
5430
5431 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_EmptyBitmap",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
5432 ecode1 = SWIG_AsVal_int(obj0, &val1);
5433 if (!SWIG_IsOK(ecode1)) {
5434 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_EmptyBitmap" "', expected argument " "1"" of type '" "int""'");
5435 }
5436 arg1 = static_cast< int >(val1);
5437 ecode2 = SWIG_AsVal_int(obj1, &val2);
5438 if (!SWIG_IsOK(ecode2)) {
5439 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_EmptyBitmap" "', expected argument " "2"" of type '" "int""'");
5440 }
5441 arg2 = static_cast< int >(val2);
5442 if (obj2) {
5443 ecode3 = SWIG_AsVal_int(obj2, &val3);
5444 if (!SWIG_IsOK(ecode3)) {
5445 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_EmptyBitmap" "', expected argument " "3"" of type '" "int""'");
5446 }
5447 arg3 = static_cast< int >(val3);
5448 }
5449 {
5450 if (!wxPyCheckForApp()) SWIG_fail;
5451 PyThreadState* __tstate = wxPyBeginAllowThreads();
5452 result = (wxBitmap *)new wxBitmap(arg1,arg2,arg3);
5453 wxPyEndAllowThreads(__tstate);
5454 if (PyErr_Occurred()) SWIG_fail;
5455 }
5456 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5457 return resultobj;
5458 fail:
5459 return NULL;
5460 }
5461
5462
5463 SWIGINTERN PyObject *_wrap_new_BitmapFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5464 PyObject *resultobj = 0;
5465 wxIcon *arg1 = 0 ;
5466 wxBitmap *result = 0 ;
5467 void *argp1 = 0 ;
5468 int res1 = 0 ;
5469 PyObject * obj0 = 0 ;
5470 char * kwnames[] = {
5471 (char *) "icon", NULL
5472 };
5473
5474 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromIcon",kwnames,&obj0)) SWIG_fail;
5475 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
5476 if (!SWIG_IsOK(res1)) {
5477 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5478 }
5479 if (!argp1) {
5480 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
5481 }
5482 arg1 = reinterpret_cast< wxIcon * >(argp1);
5483 {
5484 if (!wxPyCheckForApp()) SWIG_fail;
5485 PyThreadState* __tstate = wxPyBeginAllowThreads();
5486 result = (wxBitmap *)new wxBitmap((wxIcon const &)*arg1);
5487 wxPyEndAllowThreads(__tstate);
5488 if (PyErr_Occurred()) SWIG_fail;
5489 }
5490 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5491 return resultobj;
5492 fail:
5493 return NULL;
5494 }
5495
5496
5497 SWIGINTERN PyObject *_wrap_new_BitmapFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5498 PyObject *resultobj = 0;
5499 wxImage *arg1 = 0 ;
5500 int arg2 = (int) -1 ;
5501 wxBitmap *result = 0 ;
5502 void *argp1 = 0 ;
5503 int res1 = 0 ;
5504 int val2 ;
5505 int ecode2 = 0 ;
5506 PyObject * obj0 = 0 ;
5507 PyObject * obj1 = 0 ;
5508 char * kwnames[] = {
5509 (char *) "image",(char *) "depth", NULL
5510 };
5511
5512 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_BitmapFromImage",kwnames,&obj0,&obj1)) SWIG_fail;
5513 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
5514 if (!SWIG_IsOK(res1)) {
5515 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5516 }
5517 if (!argp1) {
5518 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BitmapFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
5519 }
5520 arg1 = reinterpret_cast< wxImage * >(argp1);
5521 if (obj1) {
5522 ecode2 = SWIG_AsVal_int(obj1, &val2);
5523 if (!SWIG_IsOK(ecode2)) {
5524 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromImage" "', expected argument " "2"" of type '" "int""'");
5525 }
5526 arg2 = static_cast< int >(val2);
5527 }
5528 {
5529 if (!wxPyCheckForApp()) SWIG_fail;
5530 PyThreadState* __tstate = wxPyBeginAllowThreads();
5531 result = (wxBitmap *)new wxBitmap((wxImage const &)*arg1,arg2);
5532 wxPyEndAllowThreads(__tstate);
5533 if (PyErr_Occurred()) SWIG_fail;
5534 }
5535 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5536 return resultobj;
5537 fail:
5538 return NULL;
5539 }
5540
5541
5542 SWIGINTERN PyObject *_wrap_new_BitmapFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5543 PyObject *resultobj = 0;
5544 PyObject *arg1 = (PyObject *) 0 ;
5545 wxBitmap *result = 0 ;
5546 PyObject * obj0 = 0 ;
5547 char * kwnames[] = {
5548 (char *) "listOfStrings", NULL
5549 };
5550
5551 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BitmapFromXPMData",kwnames,&obj0)) SWIG_fail;
5552 arg1 = obj0;
5553 {
5554 if (!wxPyCheckForApp()) SWIG_fail;
5555 PyThreadState* __tstate = wxPyBeginAllowThreads();
5556 result = (wxBitmap *)new_wxBitmap(arg1);
5557 wxPyEndAllowThreads(__tstate);
5558 if (PyErr_Occurred()) SWIG_fail;
5559 }
5560 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5561 return resultobj;
5562 fail:
5563 return NULL;
5564 }
5565
5566
5567 SWIGINTERN PyObject *_wrap_new_BitmapFromBits(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5568 PyObject *resultobj = 0;
5569 PyObject *arg1 = (PyObject *) 0 ;
5570 int arg2 ;
5571 int arg3 ;
5572 int arg4 = (int) 1 ;
5573 wxBitmap *result = 0 ;
5574 int val2 ;
5575 int ecode2 = 0 ;
5576 int val3 ;
5577 int ecode3 = 0 ;
5578 int val4 ;
5579 int ecode4 = 0 ;
5580 PyObject * obj0 = 0 ;
5581 PyObject * obj1 = 0 ;
5582 PyObject * obj2 = 0 ;
5583 PyObject * obj3 = 0 ;
5584 char * kwnames[] = {
5585 (char *) "bits",(char *) "width",(char *) "height",(char *) "depth", NULL
5586 };
5587
5588 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:new_BitmapFromBits",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
5589 arg1 = obj0;
5590 ecode2 = SWIG_AsVal_int(obj1, &val2);
5591 if (!SWIG_IsOK(ecode2)) {
5592 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_BitmapFromBits" "', expected argument " "2"" of type '" "int""'");
5593 }
5594 arg2 = static_cast< int >(val2);
5595 ecode3 = SWIG_AsVal_int(obj2, &val3);
5596 if (!SWIG_IsOK(ecode3)) {
5597 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BitmapFromBits" "', expected argument " "3"" of type '" "int""'");
5598 }
5599 arg3 = static_cast< int >(val3);
5600 if (obj3) {
5601 ecode4 = SWIG_AsVal_int(obj3, &val4);
5602 if (!SWIG_IsOK(ecode4)) {
5603 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_BitmapFromBits" "', expected argument " "4"" of type '" "int""'");
5604 }
5605 arg4 = static_cast< int >(val4);
5606 }
5607 {
5608 if (!wxPyCheckForApp()) SWIG_fail;
5609 PyThreadState* __tstate = wxPyBeginAllowThreads();
5610 result = (wxBitmap *)new_wxBitmap(arg1,arg2,arg3,arg4);
5611 wxPyEndAllowThreads(__tstate);
5612 if (PyErr_Occurred()) SWIG_fail;
5613 }
5614 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5615 return resultobj;
5616 fail:
5617 return NULL;
5618 }
5619
5620
5621 SWIGINTERN PyObject *_wrap_Bitmap_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5622 PyObject *resultobj = 0;
5623 wxBitmap *arg1 = (wxBitmap *) 0 ;
5624 long result;
5625 void *argp1 = 0 ;
5626 int res1 = 0 ;
5627 PyObject *swig_obj[1] ;
5628
5629 if (!args) SWIG_fail;
5630 swig_obj[0] = args;
5631 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5632 if (!SWIG_IsOK(res1)) {
5633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5634 }
5635 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5636 {
5637 PyThreadState* __tstate = wxPyBeginAllowThreads();
5638 result = (long)(arg1)->GetHandle();
5639 wxPyEndAllowThreads(__tstate);
5640 if (PyErr_Occurred()) SWIG_fail;
5641 }
5642 resultobj = SWIG_From_long(static_cast< long >(result));
5643 return resultobj;
5644 fail:
5645 return NULL;
5646 }
5647
5648
5649 SWIGINTERN PyObject *_wrap_Bitmap_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5650 PyObject *resultobj = 0;
5651 wxBitmap *arg1 = (wxBitmap *) 0 ;
5652 long arg2 ;
5653 void *argp1 = 0 ;
5654 int res1 = 0 ;
5655 long val2 ;
5656 int ecode2 = 0 ;
5657 PyObject * obj0 = 0 ;
5658 PyObject * obj1 = 0 ;
5659 char * kwnames[] = {
5660 (char *) "self",(char *) "handle", NULL
5661 };
5662
5663 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
5664 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5665 if (!SWIG_IsOK(res1)) {
5666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHandle" "', expected argument " "1"" of type '" "wxBitmap *""'");
5667 }
5668 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5669 ecode2 = SWIG_AsVal_long(obj1, &val2);
5670 if (!SWIG_IsOK(ecode2)) {
5671 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHandle" "', expected argument " "2"" of type '" "long""'");
5672 }
5673 arg2 = static_cast< long >(val2);
5674 {
5675 PyThreadState* __tstate = wxPyBeginAllowThreads();
5676 wxBitmap_SetHandle(arg1,arg2);
5677 wxPyEndAllowThreads(__tstate);
5678 if (PyErr_Occurred()) SWIG_fail;
5679 }
5680 resultobj = SWIG_Py_Void();
5681 return resultobj;
5682 fail:
5683 return NULL;
5684 }
5685
5686
5687 SWIGINTERN PyObject *_wrap_Bitmap_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5688 PyObject *resultobj = 0;
5689 wxBitmap *arg1 = (wxBitmap *) 0 ;
5690 bool result;
5691 void *argp1 = 0 ;
5692 int res1 = 0 ;
5693 PyObject *swig_obj[1] ;
5694
5695 if (!args) SWIG_fail;
5696 swig_obj[0] = args;
5697 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5698 if (!SWIG_IsOK(res1)) {
5699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_Ok" "', expected argument " "1"" of type '" "wxBitmap *""'");
5700 }
5701 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5702 {
5703 PyThreadState* __tstate = wxPyBeginAllowThreads();
5704 result = (bool)(arg1)->Ok();
5705 wxPyEndAllowThreads(__tstate);
5706 if (PyErr_Occurred()) SWIG_fail;
5707 }
5708 {
5709 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
5710 }
5711 return resultobj;
5712 fail:
5713 return NULL;
5714 }
5715
5716
5717 SWIGINTERN PyObject *_wrap_Bitmap_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5718 PyObject *resultobj = 0;
5719 wxBitmap *arg1 = (wxBitmap *) 0 ;
5720 int result;
5721 void *argp1 = 0 ;
5722 int res1 = 0 ;
5723 PyObject *swig_obj[1] ;
5724
5725 if (!args) SWIG_fail;
5726 swig_obj[0] = args;
5727 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5728 if (!SWIG_IsOK(res1)) {
5729 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5730 }
5731 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5732 {
5733 PyThreadState* __tstate = wxPyBeginAllowThreads();
5734 result = (int)(arg1)->GetWidth();
5735 wxPyEndAllowThreads(__tstate);
5736 if (PyErr_Occurred()) SWIG_fail;
5737 }
5738 resultobj = SWIG_From_int(static_cast< int >(result));
5739 return resultobj;
5740 fail:
5741 return NULL;
5742 }
5743
5744
5745 SWIGINTERN PyObject *_wrap_Bitmap_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5746 PyObject *resultobj = 0;
5747 wxBitmap *arg1 = (wxBitmap *) 0 ;
5748 int result;
5749 void *argp1 = 0 ;
5750 int res1 = 0 ;
5751 PyObject *swig_obj[1] ;
5752
5753 if (!args) SWIG_fail;
5754 swig_obj[0] = args;
5755 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5756 if (!SWIG_IsOK(res1)) {
5757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
5758 }
5759 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5760 {
5761 PyThreadState* __tstate = wxPyBeginAllowThreads();
5762 result = (int)(arg1)->GetHeight();
5763 wxPyEndAllowThreads(__tstate);
5764 if (PyErr_Occurred()) SWIG_fail;
5765 }
5766 resultobj = SWIG_From_int(static_cast< int >(result));
5767 return resultobj;
5768 fail:
5769 return NULL;
5770 }
5771
5772
5773 SWIGINTERN PyObject *_wrap_Bitmap_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5774 PyObject *resultobj = 0;
5775 wxBitmap *arg1 = (wxBitmap *) 0 ;
5776 int result;
5777 void *argp1 = 0 ;
5778 int res1 = 0 ;
5779 PyObject *swig_obj[1] ;
5780
5781 if (!args) SWIG_fail;
5782 swig_obj[0] = args;
5783 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5784 if (!SWIG_IsOK(res1)) {
5785 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
5786 }
5787 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5788 {
5789 PyThreadState* __tstate = wxPyBeginAllowThreads();
5790 result = (int)(arg1)->GetDepth();
5791 wxPyEndAllowThreads(__tstate);
5792 if (PyErr_Occurred()) SWIG_fail;
5793 }
5794 resultobj = SWIG_From_int(static_cast< int >(result));
5795 return resultobj;
5796 fail:
5797 return NULL;
5798 }
5799
5800
5801 SWIGINTERN PyObject *_wrap_Bitmap_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5802 PyObject *resultobj = 0;
5803 wxBitmap *arg1 = (wxBitmap *) 0 ;
5804 wxSize result;
5805 void *argp1 = 0 ;
5806 int res1 = 0 ;
5807 PyObject *swig_obj[1] ;
5808
5809 if (!args) SWIG_fail;
5810 swig_obj[0] = args;
5811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5812 if (!SWIG_IsOK(res1)) {
5813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
5814 }
5815 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5816 {
5817 PyThreadState* __tstate = wxPyBeginAllowThreads();
5818 result = wxBitmap_GetSize(arg1);
5819 wxPyEndAllowThreads(__tstate);
5820 if (PyErr_Occurred()) SWIG_fail;
5821 }
5822 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
5823 return resultobj;
5824 fail:
5825 return NULL;
5826 }
5827
5828
5829 SWIGINTERN PyObject *_wrap_Bitmap_ConvertToImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5830 PyObject *resultobj = 0;
5831 wxBitmap *arg1 = (wxBitmap *) 0 ;
5832 SwigValueWrapper<wxImage > result;
5833 void *argp1 = 0 ;
5834 int res1 = 0 ;
5835 PyObject *swig_obj[1] ;
5836
5837 if (!args) SWIG_fail;
5838 swig_obj[0] = args;
5839 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5840 if (!SWIG_IsOK(res1)) {
5841 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_ConvertToImage" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5842 }
5843 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5844 {
5845 PyThreadState* __tstate = wxPyBeginAllowThreads();
5846 result = ((wxBitmap const *)arg1)->ConvertToImage();
5847 wxPyEndAllowThreads(__tstate);
5848 if (PyErr_Occurred()) SWIG_fail;
5849 }
5850 resultobj = SWIG_NewPointerObj((new wxImage(static_cast< const wxImage& >(result))), SWIGTYPE_p_wxImage, SWIG_POINTER_OWN | 0 );
5851 return resultobj;
5852 fail:
5853 return NULL;
5854 }
5855
5856
5857 SWIGINTERN PyObject *_wrap_Bitmap_GetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
5858 PyObject *resultobj = 0;
5859 wxBitmap *arg1 = (wxBitmap *) 0 ;
5860 wxMask *result = 0 ;
5861 void *argp1 = 0 ;
5862 int res1 = 0 ;
5863 PyObject *swig_obj[1] ;
5864
5865 if (!args) SWIG_fail;
5866 swig_obj[0] = args;
5867 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5868 if (!SWIG_IsOK(res1)) {
5869 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetMask" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5870 }
5871 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5872 {
5873 PyThreadState* __tstate = wxPyBeginAllowThreads();
5874 result = (wxMask *)((wxBitmap const *)arg1)->GetMask();
5875 wxPyEndAllowThreads(__tstate);
5876 if (PyErr_Occurred()) SWIG_fail;
5877 }
5878 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, 0 | 0 );
5879 return resultobj;
5880 fail:
5881 return NULL;
5882 }
5883
5884
5885 SWIGINTERN PyObject *_wrap_Bitmap_SetMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5886 PyObject *resultobj = 0;
5887 wxBitmap *arg1 = (wxBitmap *) 0 ;
5888 wxMask *arg2 = (wxMask *) 0 ;
5889 void *argp1 = 0 ;
5890 int res1 = 0 ;
5891 int res2 = 0 ;
5892 PyObject * obj0 = 0 ;
5893 PyObject * obj1 = 0 ;
5894 char * kwnames[] = {
5895 (char *) "self",(char *) "mask", NULL
5896 };
5897
5898 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMask",kwnames,&obj0,&obj1)) SWIG_fail;
5899 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5900 if (!SWIG_IsOK(res1)) {
5901 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMask" "', expected argument " "1"" of type '" "wxBitmap *""'");
5902 }
5903 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5904 res2 = SWIG_ConvertPtr(obj1, SWIG_as_voidptrptr(&arg2), SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
5905 if (!SWIG_IsOK(res2)) {
5906 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetMask" "', expected argument " "2"" of type '" "wxMask *""'");
5907 }
5908 {
5909 PyThreadState* __tstate = wxPyBeginAllowThreads();
5910 (arg1)->SetMask(arg2);
5911 wxPyEndAllowThreads(__tstate);
5912 if (PyErr_Occurred()) SWIG_fail;
5913 }
5914 resultobj = SWIG_Py_Void();
5915 return resultobj;
5916 fail:
5917 return NULL;
5918 }
5919
5920
5921 SWIGINTERN PyObject *_wrap_Bitmap_SetMaskColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5922 PyObject *resultobj = 0;
5923 wxBitmap *arg1 = (wxBitmap *) 0 ;
5924 wxColour *arg2 = 0 ;
5925 void *argp1 = 0 ;
5926 int res1 = 0 ;
5927 wxColour temp2 ;
5928 PyObject * obj0 = 0 ;
5929 PyObject * obj1 = 0 ;
5930 char * kwnames[] = {
5931 (char *) "self",(char *) "colour", NULL
5932 };
5933
5934 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetMaskColour",kwnames,&obj0,&obj1)) SWIG_fail;
5935 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5936 if (!SWIG_IsOK(res1)) {
5937 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetMaskColour" "', expected argument " "1"" of type '" "wxBitmap *""'");
5938 }
5939 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5940 {
5941 arg2 = &temp2;
5942 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
5943 }
5944 {
5945 PyThreadState* __tstate = wxPyBeginAllowThreads();
5946 wxBitmap_SetMaskColour(arg1,(wxColour const &)*arg2);
5947 wxPyEndAllowThreads(__tstate);
5948 if (PyErr_Occurred()) SWIG_fail;
5949 }
5950 resultobj = SWIG_Py_Void();
5951 return resultobj;
5952 fail:
5953 return NULL;
5954 }
5955
5956
5957 SWIGINTERN PyObject *_wrap_Bitmap_GetSubBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5958 PyObject *resultobj = 0;
5959 wxBitmap *arg1 = (wxBitmap *) 0 ;
5960 wxRect *arg2 = 0 ;
5961 SwigValueWrapper<wxBitmap > result;
5962 void *argp1 = 0 ;
5963 int res1 = 0 ;
5964 wxRect temp2 ;
5965 PyObject * obj0 = 0 ;
5966 PyObject * obj1 = 0 ;
5967 char * kwnames[] = {
5968 (char *) "self",(char *) "rect", NULL
5969 };
5970
5971 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_GetSubBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
5972 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
5973 if (!SWIG_IsOK(res1)) {
5974 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetSubBitmap" "', expected argument " "1"" of type '" "wxBitmap const *""'");
5975 }
5976 arg1 = reinterpret_cast< wxBitmap * >(argp1);
5977 {
5978 arg2 = &temp2;
5979 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
5980 }
5981 {
5982 PyThreadState* __tstate = wxPyBeginAllowThreads();
5983 result = ((wxBitmap const *)arg1)->GetSubBitmap((wxRect const &)*arg2);
5984 wxPyEndAllowThreads(__tstate);
5985 if (PyErr_Occurred()) SWIG_fail;
5986 }
5987 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
5988 return resultobj;
5989 fail:
5990 return NULL;
5991 }
5992
5993
5994 SWIGINTERN PyObject *_wrap_Bitmap_SaveFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
5995 PyObject *resultobj = 0;
5996 wxBitmap *arg1 = (wxBitmap *) 0 ;
5997 wxString *arg2 = 0 ;
5998 wxBitmapType arg3 ;
5999 wxPalette *arg4 = (wxPalette *) NULL ;
6000 bool result;
6001 void *argp1 = 0 ;
6002 int res1 = 0 ;
6003 bool temp2 = false ;
6004 int val3 ;
6005 int ecode3 = 0 ;
6006 void *argp4 = 0 ;
6007 int res4 = 0 ;
6008 PyObject * obj0 = 0 ;
6009 PyObject * obj1 = 0 ;
6010 PyObject * obj2 = 0 ;
6011 PyObject * obj3 = 0 ;
6012 char * kwnames[] = {
6013 (char *) "self",(char *) "name",(char *) "type",(char *) "palette", NULL
6014 };
6015
6016 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Bitmap_SaveFile",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6017 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6018 if (!SWIG_IsOK(res1)) {
6019 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SaveFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6020 }
6021 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6022 {
6023 arg2 = wxString_in_helper(obj1);
6024 if (arg2 == NULL) SWIG_fail;
6025 temp2 = true;
6026 }
6027 ecode3 = SWIG_AsVal_int(obj2, &val3);
6028 if (!SWIG_IsOK(ecode3)) {
6029 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_SaveFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6030 }
6031 arg3 = static_cast< wxBitmapType >(val3);
6032 if (obj3) {
6033 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxPalette, 0 | 0 );
6034 if (!SWIG_IsOK(res4)) {
6035 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Bitmap_SaveFile" "', expected argument " "4"" of type '" "wxPalette *""'");
6036 }
6037 arg4 = reinterpret_cast< wxPalette * >(argp4);
6038 }
6039 {
6040 PyThreadState* __tstate = wxPyBeginAllowThreads();
6041 result = (bool)(arg1)->SaveFile((wxString const &)*arg2,arg3,arg4);
6042 wxPyEndAllowThreads(__tstate);
6043 if (PyErr_Occurred()) SWIG_fail;
6044 }
6045 {
6046 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6047 }
6048 {
6049 if (temp2)
6050 delete arg2;
6051 }
6052 return resultobj;
6053 fail:
6054 {
6055 if (temp2)
6056 delete arg2;
6057 }
6058 return NULL;
6059 }
6060
6061
6062 SWIGINTERN PyObject *_wrap_Bitmap_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6063 PyObject *resultobj = 0;
6064 wxBitmap *arg1 = (wxBitmap *) 0 ;
6065 wxString *arg2 = 0 ;
6066 wxBitmapType arg3 ;
6067 bool result;
6068 void *argp1 = 0 ;
6069 int res1 = 0 ;
6070 bool temp2 = false ;
6071 int val3 ;
6072 int ecode3 = 0 ;
6073 PyObject * obj0 = 0 ;
6074 PyObject * obj1 = 0 ;
6075 PyObject * obj2 = 0 ;
6076 char * kwnames[] = {
6077 (char *) "self",(char *) "name",(char *) "type", NULL
6078 };
6079
6080 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Bitmap_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6081 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6082 if (!SWIG_IsOK(res1)) {
6083 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_LoadFile" "', expected argument " "1"" of type '" "wxBitmap *""'");
6084 }
6085 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6086 {
6087 arg2 = wxString_in_helper(obj1);
6088 if (arg2 == NULL) SWIG_fail;
6089 temp2 = true;
6090 }
6091 ecode3 = SWIG_AsVal_int(obj2, &val3);
6092 if (!SWIG_IsOK(ecode3)) {
6093 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Bitmap_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6094 }
6095 arg3 = static_cast< wxBitmapType >(val3);
6096 {
6097 PyThreadState* __tstate = wxPyBeginAllowThreads();
6098 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6099 wxPyEndAllowThreads(__tstate);
6100 if (PyErr_Occurred()) SWIG_fail;
6101 }
6102 {
6103 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6104 }
6105 {
6106 if (temp2)
6107 delete arg2;
6108 }
6109 return resultobj;
6110 fail:
6111 {
6112 if (temp2)
6113 delete arg2;
6114 }
6115 return NULL;
6116 }
6117
6118
6119 SWIGINTERN PyObject *_wrap_Bitmap_GetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6120 PyObject *resultobj = 0;
6121 wxBitmap *arg1 = (wxBitmap *) 0 ;
6122 wxPalette *result = 0 ;
6123 void *argp1 = 0 ;
6124 int res1 = 0 ;
6125 PyObject *swig_obj[1] ;
6126
6127 if (!args) SWIG_fail;
6128 swig_obj[0] = args;
6129 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6130 if (!SWIG_IsOK(res1)) {
6131 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_GetPalette" "', expected argument " "1"" of type '" "wxBitmap const *""'");
6132 }
6133 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6134 {
6135 PyThreadState* __tstate = wxPyBeginAllowThreads();
6136 result = (wxPalette *)((wxBitmap const *)arg1)->GetPalette();
6137 wxPyEndAllowThreads(__tstate);
6138 if (PyErr_Occurred()) SWIG_fail;
6139 }
6140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPalette, 0 | 0 );
6141 return resultobj;
6142 fail:
6143 return NULL;
6144 }
6145
6146
6147 SWIGINTERN PyObject *_wrap_Bitmap_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6148 PyObject *resultobj = 0;
6149 wxBitmap *arg1 = (wxBitmap *) 0 ;
6150 wxPalette *arg2 = 0 ;
6151 void *argp1 = 0 ;
6152 int res1 = 0 ;
6153 void *argp2 = 0 ;
6154 int res2 = 0 ;
6155 PyObject * obj0 = 0 ;
6156 PyObject * obj1 = 0 ;
6157 char * kwnames[] = {
6158 (char *) "self",(char *) "palette", NULL
6159 };
6160
6161 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
6162 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6163 if (!SWIG_IsOK(res1)) {
6164 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetPalette" "', expected argument " "1"" of type '" "wxBitmap *""'");
6165 }
6166 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6167 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
6168 if (!SWIG_IsOK(res2)) {
6169 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6170 }
6171 if (!argp2) {
6172 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
6173 }
6174 arg2 = reinterpret_cast< wxPalette * >(argp2);
6175 {
6176 PyThreadState* __tstate = wxPyBeginAllowThreads();
6177 (arg1)->SetPalette((wxPalette const &)*arg2);
6178 wxPyEndAllowThreads(__tstate);
6179 if (PyErr_Occurred()) SWIG_fail;
6180 }
6181 resultobj = SWIG_Py_Void();
6182 return resultobj;
6183 fail:
6184 return NULL;
6185 }
6186
6187
6188 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6189 PyObject *resultobj = 0;
6190 wxBitmap *arg1 = (wxBitmap *) 0 ;
6191 wxIcon *arg2 = 0 ;
6192 bool result;
6193 void *argp1 = 0 ;
6194 int res1 = 0 ;
6195 void *argp2 = 0 ;
6196 int res2 = 0 ;
6197 PyObject * obj0 = 0 ;
6198 PyObject * obj1 = 0 ;
6199 char * kwnames[] = {
6200 (char *) "self",(char *) "icon", NULL
6201 };
6202
6203 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromIcon",kwnames,&obj0,&obj1)) SWIG_fail;
6204 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6205 if (!SWIG_IsOK(res1)) {
6206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "1"" of type '" "wxBitmap *""'");
6207 }
6208 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6209 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
6210 if (!SWIG_IsOK(res2)) {
6211 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6212 }
6213 if (!argp2) {
6214 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
6215 }
6216 arg2 = reinterpret_cast< wxIcon * >(argp2);
6217 {
6218 PyThreadState* __tstate = wxPyBeginAllowThreads();
6219 result = (bool)(arg1)->CopyFromIcon((wxIcon const &)*arg2);
6220 wxPyEndAllowThreads(__tstate);
6221 if (PyErr_Occurred()) SWIG_fail;
6222 }
6223 {
6224 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6225 }
6226 return resultobj;
6227 fail:
6228 return NULL;
6229 }
6230
6231
6232 SWIGINTERN PyObject *_wrap_Bitmap_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6233 PyObject *resultobj = 0;
6234 wxBitmap *arg1 = (wxBitmap *) 0 ;
6235 int arg2 ;
6236 void *argp1 = 0 ;
6237 int res1 = 0 ;
6238 int val2 ;
6239 int ecode2 = 0 ;
6240 PyObject * obj0 = 0 ;
6241 PyObject * obj1 = 0 ;
6242 char * kwnames[] = {
6243 (char *) "self",(char *) "height", NULL
6244 };
6245
6246 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
6247 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6248 if (!SWIG_IsOK(res1)) {
6249 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetHeight" "', expected argument " "1"" of type '" "wxBitmap *""'");
6250 }
6251 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6252 ecode2 = SWIG_AsVal_int(obj1, &val2);
6253 if (!SWIG_IsOK(ecode2)) {
6254 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetHeight" "', expected argument " "2"" of type '" "int""'");
6255 }
6256 arg2 = static_cast< int >(val2);
6257 {
6258 PyThreadState* __tstate = wxPyBeginAllowThreads();
6259 (arg1)->SetHeight(arg2);
6260 wxPyEndAllowThreads(__tstate);
6261 if (PyErr_Occurred()) SWIG_fail;
6262 }
6263 resultobj = SWIG_Py_Void();
6264 return resultobj;
6265 fail:
6266 return NULL;
6267 }
6268
6269
6270 SWIGINTERN PyObject *_wrap_Bitmap_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6271 PyObject *resultobj = 0;
6272 wxBitmap *arg1 = (wxBitmap *) 0 ;
6273 int arg2 ;
6274 void *argp1 = 0 ;
6275 int res1 = 0 ;
6276 int val2 ;
6277 int ecode2 = 0 ;
6278 PyObject * obj0 = 0 ;
6279 PyObject * obj1 = 0 ;
6280 char * kwnames[] = {
6281 (char *) "self",(char *) "width", NULL
6282 };
6283
6284 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
6285 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6286 if (!SWIG_IsOK(res1)) {
6287 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetWidth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6288 }
6289 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6290 ecode2 = SWIG_AsVal_int(obj1, &val2);
6291 if (!SWIG_IsOK(ecode2)) {
6292 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetWidth" "', expected argument " "2"" of type '" "int""'");
6293 }
6294 arg2 = static_cast< int >(val2);
6295 {
6296 PyThreadState* __tstate = wxPyBeginAllowThreads();
6297 (arg1)->SetWidth(arg2);
6298 wxPyEndAllowThreads(__tstate);
6299 if (PyErr_Occurred()) SWIG_fail;
6300 }
6301 resultobj = SWIG_Py_Void();
6302 return resultobj;
6303 fail:
6304 return NULL;
6305 }
6306
6307
6308 SWIGINTERN PyObject *_wrap_Bitmap_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6309 PyObject *resultobj = 0;
6310 wxBitmap *arg1 = (wxBitmap *) 0 ;
6311 int arg2 ;
6312 void *argp1 = 0 ;
6313 int res1 = 0 ;
6314 int val2 ;
6315 int ecode2 = 0 ;
6316 PyObject * obj0 = 0 ;
6317 PyObject * obj1 = 0 ;
6318 char * kwnames[] = {
6319 (char *) "self",(char *) "depth", NULL
6320 };
6321
6322 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
6323 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6324 if (!SWIG_IsOK(res1)) {
6325 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetDepth" "', expected argument " "1"" of type '" "wxBitmap *""'");
6326 }
6327 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6328 ecode2 = SWIG_AsVal_int(obj1, &val2);
6329 if (!SWIG_IsOK(ecode2)) {
6330 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Bitmap_SetDepth" "', expected argument " "2"" of type '" "int""'");
6331 }
6332 arg2 = static_cast< int >(val2);
6333 {
6334 PyThreadState* __tstate = wxPyBeginAllowThreads();
6335 (arg1)->SetDepth(arg2);
6336 wxPyEndAllowThreads(__tstate);
6337 if (PyErr_Occurred()) SWIG_fail;
6338 }
6339 resultobj = SWIG_Py_Void();
6340 return resultobj;
6341 fail:
6342 return NULL;
6343 }
6344
6345
6346 SWIGINTERN PyObject *_wrap_Bitmap_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6347 PyObject *resultobj = 0;
6348 wxBitmap *arg1 = (wxBitmap *) 0 ;
6349 wxSize *arg2 = 0 ;
6350 void *argp1 = 0 ;
6351 int res1 = 0 ;
6352 wxSize temp2 ;
6353 PyObject * obj0 = 0 ;
6354 PyObject * obj1 = 0 ;
6355 char * kwnames[] = {
6356 (char *) "self",(char *) "size", NULL
6357 };
6358
6359 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
6360 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6361 if (!SWIG_IsOK(res1)) {
6362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_SetSize" "', expected argument " "1"" of type '" "wxBitmap *""'");
6363 }
6364 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6365 {
6366 arg2 = &temp2;
6367 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
6368 }
6369 {
6370 PyThreadState* __tstate = wxPyBeginAllowThreads();
6371 wxBitmap_SetSize(arg1,(wxSize const &)*arg2);
6372 wxPyEndAllowThreads(__tstate);
6373 if (PyErr_Occurred()) SWIG_fail;
6374 }
6375 resultobj = SWIG_Py_Void();
6376 return resultobj;
6377 fail:
6378 return NULL;
6379 }
6380
6381
6382 SWIGINTERN PyObject *_wrap_Bitmap_CopyFromCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6383 PyObject *resultobj = 0;
6384 wxBitmap *arg1 = (wxBitmap *) 0 ;
6385 wxCursor *arg2 = 0 ;
6386 bool result;
6387 void *argp1 = 0 ;
6388 int res1 = 0 ;
6389 void *argp2 = 0 ;
6390 int res2 = 0 ;
6391 PyObject * obj0 = 0 ;
6392 PyObject * obj1 = 0 ;
6393 char * kwnames[] = {
6394 (char *) "self",(char *) "cursor", NULL
6395 };
6396
6397 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap_CopyFromCursor",kwnames,&obj0,&obj1)) SWIG_fail;
6398 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6399 if (!SWIG_IsOK(res1)) {
6400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "1"" of type '" "wxBitmap *""'");
6401 }
6402 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6403 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxCursor, 0 | 0);
6404 if (!SWIG_IsOK(res2)) {
6405 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6406 }
6407 if (!argp2) {
6408 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Bitmap_CopyFromCursor" "', expected argument " "2"" of type '" "wxCursor const &""'");
6409 }
6410 arg2 = reinterpret_cast< wxCursor * >(argp2);
6411 {
6412 PyThreadState* __tstate = wxPyBeginAllowThreads();
6413 result = (bool)(arg1)->CopyFromCursor((wxCursor const &)*arg2);
6414 wxPyEndAllowThreads(__tstate);
6415 if (PyErr_Occurred()) SWIG_fail;
6416 }
6417 {
6418 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6419 }
6420 return resultobj;
6421 fail:
6422 return NULL;
6423 }
6424
6425
6426 SWIGINTERN PyObject *_wrap_Bitmap___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6427 PyObject *resultobj = 0;
6428 wxBitmap *arg1 = (wxBitmap *) 0 ;
6429 wxBitmap *arg2 = (wxBitmap *) 0 ;
6430 bool result;
6431 void *argp1 = 0 ;
6432 int res1 = 0 ;
6433 void *argp2 = 0 ;
6434 int res2 = 0 ;
6435 PyObject * obj0 = 0 ;
6436 PyObject * obj1 = 0 ;
6437 char * kwnames[] = {
6438 (char *) "self",(char *) "other", NULL
6439 };
6440
6441 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
6442 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6443 if (!SWIG_IsOK(res1)) {
6444 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___eq__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6445 }
6446 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6447 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6448 if (!SWIG_IsOK(res2)) {
6449 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___eq__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6450 }
6451 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6452 {
6453 PyThreadState* __tstate = wxPyBeginAllowThreads();
6454 result = (bool)wxBitmap___eq__(arg1,(wxBitmap const *)arg2);
6455 wxPyEndAllowThreads(__tstate);
6456 if (PyErr_Occurred()) SWIG_fail;
6457 }
6458 {
6459 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6460 }
6461 return resultobj;
6462 fail:
6463 return NULL;
6464 }
6465
6466
6467 SWIGINTERN PyObject *_wrap_Bitmap___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6468 PyObject *resultobj = 0;
6469 wxBitmap *arg1 = (wxBitmap *) 0 ;
6470 wxBitmap *arg2 = (wxBitmap *) 0 ;
6471 bool result;
6472 void *argp1 = 0 ;
6473 int res1 = 0 ;
6474 void *argp2 = 0 ;
6475 int res2 = 0 ;
6476 PyObject * obj0 = 0 ;
6477 PyObject * obj1 = 0 ;
6478 char * kwnames[] = {
6479 (char *) "self",(char *) "other", NULL
6480 };
6481
6482 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Bitmap___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
6483 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBitmap, 0 | 0 );
6484 if (!SWIG_IsOK(res1)) {
6485 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Bitmap___ne__" "', expected argument " "1"" of type '" "wxBitmap *""'");
6486 }
6487 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6488 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBitmap, 0 | 0 );
6489 if (!SWIG_IsOK(res2)) {
6490 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Bitmap___ne__" "', expected argument " "2"" of type '" "wxBitmap const *""'");
6491 }
6492 arg2 = reinterpret_cast< wxBitmap * >(argp2);
6493 {
6494 PyThreadState* __tstate = wxPyBeginAllowThreads();
6495 result = (bool)wxBitmap___ne__(arg1,(wxBitmap const *)arg2);
6496 wxPyEndAllowThreads(__tstate);
6497 if (PyErr_Occurred()) SWIG_fail;
6498 }
6499 {
6500 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6501 }
6502 return resultobj;
6503 fail:
6504 return NULL;
6505 }
6506
6507
6508 SWIGINTERN PyObject *Bitmap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6509 PyObject *obj;
6510 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6511 SWIG_TypeNewClientData(SWIGTYPE_p_wxBitmap, SWIG_NewClientData(obj));
6512 return SWIG_Py_Void();
6513 }
6514
6515 SWIGINTERN PyObject *Bitmap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6516 return SWIG_Python_InitShadowInstance(args);
6517 }
6518
6519 SWIGINTERN PyObject *_wrap_new_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6520 PyObject *resultobj = 0;
6521 wxBitmap *arg1 = 0 ;
6522 wxColour const &arg2_defvalue = wxNullColour ;
6523 wxColour *arg2 = (wxColour *) &arg2_defvalue ;
6524 wxMask *result = 0 ;
6525 void *argp1 = 0 ;
6526 int res1 = 0 ;
6527 wxColour temp2 ;
6528 PyObject * obj0 = 0 ;
6529 PyObject * obj1 = 0 ;
6530 char * kwnames[] = {
6531 (char *) "bitmap",(char *) "colour", NULL
6532 };
6533
6534 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_Mask",kwnames,&obj0,&obj1)) SWIG_fail;
6535 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6536 if (!SWIG_IsOK(res1)) {
6537 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6538 }
6539 if (!argp1) {
6540 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_Mask" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6541 }
6542 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6543 if (obj1) {
6544 {
6545 arg2 = &temp2;
6546 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
6547 }
6548 }
6549 {
6550 if (!wxPyCheckForApp()) SWIG_fail;
6551 PyThreadState* __tstate = wxPyBeginAllowThreads();
6552 result = (wxMask *)new_wxMask((wxBitmap const &)*arg1,(wxColour const &)*arg2);
6553 wxPyEndAllowThreads(__tstate);
6554 if (PyErr_Occurred()) SWIG_fail;
6555 }
6556 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMask, SWIG_POINTER_NEW | 0 );
6557 return resultobj;
6558 fail:
6559 return NULL;
6560 }
6561
6562
6563 SWIGINTERN PyObject *_wrap_delete_Mask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6564 PyObject *resultobj = 0;
6565 wxMask *arg1 = (wxMask *) 0 ;
6566 void *argp1 = 0 ;
6567 int res1 = 0 ;
6568 PyObject *swig_obj[1] ;
6569
6570 if (!args) SWIG_fail;
6571 swig_obj[0] = args;
6572 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMask, SWIG_POINTER_DISOWN | 0 );
6573 if (!SWIG_IsOK(res1)) {
6574 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Mask" "', expected argument " "1"" of type '" "wxMask *""'");
6575 }
6576 arg1 = reinterpret_cast< wxMask * >(argp1);
6577 {
6578 PyThreadState* __tstate = wxPyBeginAllowThreads();
6579 delete arg1;
6580
6581 wxPyEndAllowThreads(__tstate);
6582 if (PyErr_Occurred()) SWIG_fail;
6583 }
6584 resultobj = SWIG_Py_Void();
6585 return resultobj;
6586 fail:
6587 return NULL;
6588 }
6589
6590
6591 SWIGINTERN PyObject *Mask_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6592 PyObject *obj;
6593 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
6594 SWIG_TypeNewClientData(SWIGTYPE_p_wxMask, SWIG_NewClientData(obj));
6595 return SWIG_Py_Void();
6596 }
6597
6598 SWIGINTERN PyObject *Mask_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6599 return SWIG_Python_InitShadowInstance(args);
6600 }
6601
6602 SWIGINTERN PyObject *_wrap_new_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6603 PyObject *resultobj = 0;
6604 wxString *arg1 = 0 ;
6605 wxBitmapType arg2 ;
6606 int arg3 = (int) -1 ;
6607 int arg4 = (int) -1 ;
6608 wxIcon *result = 0 ;
6609 bool temp1 = false ;
6610 int val2 ;
6611 int ecode2 = 0 ;
6612 int val3 ;
6613 int ecode3 = 0 ;
6614 int val4 ;
6615 int ecode4 = 0 ;
6616 PyObject * obj0 = 0 ;
6617 PyObject * obj1 = 0 ;
6618 PyObject * obj2 = 0 ;
6619 PyObject * obj3 = 0 ;
6620 char * kwnames[] = {
6621 (char *) "name",(char *) "type",(char *) "desiredWidth",(char *) "desiredHeight", NULL
6622 };
6623
6624 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Icon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
6625 {
6626 arg1 = wxString_in_helper(obj0);
6627 if (arg1 == NULL) SWIG_fail;
6628 temp1 = true;
6629 }
6630 ecode2 = SWIG_AsVal_int(obj1, &val2);
6631 if (!SWIG_IsOK(ecode2)) {
6632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Icon" "', expected argument " "2"" of type '" "wxBitmapType""'");
6633 }
6634 arg2 = static_cast< wxBitmapType >(val2);
6635 if (obj2) {
6636 ecode3 = SWIG_AsVal_int(obj2, &val3);
6637 if (!SWIG_IsOK(ecode3)) {
6638 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Icon" "', expected argument " "3"" of type '" "int""'");
6639 }
6640 arg3 = static_cast< int >(val3);
6641 }
6642 if (obj3) {
6643 ecode4 = SWIG_AsVal_int(obj3, &val4);
6644 if (!SWIG_IsOK(ecode4)) {
6645 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Icon" "', expected argument " "4"" of type '" "int""'");
6646 }
6647 arg4 = static_cast< int >(val4);
6648 }
6649 {
6650 if (!wxPyCheckForApp()) SWIG_fail;
6651 PyThreadState* __tstate = wxPyBeginAllowThreads();
6652 result = (wxIcon *)new wxIcon((wxString const &)*arg1,arg2,arg3,arg4);
6653 wxPyEndAllowThreads(__tstate);
6654 if (PyErr_Occurred()) SWIG_fail;
6655 }
6656 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_NEW | 0 );
6657 {
6658 if (temp1)
6659 delete arg1;
6660 }
6661 return resultobj;
6662 fail:
6663 {
6664 if (temp1)
6665 delete arg1;
6666 }
6667 return NULL;
6668 }
6669
6670
6671 SWIGINTERN PyObject *_wrap_delete_Icon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6672 PyObject *resultobj = 0;
6673 wxIcon *arg1 = (wxIcon *) 0 ;
6674 void *argp1 = 0 ;
6675 int res1 = 0 ;
6676 PyObject *swig_obj[1] ;
6677
6678 if (!args) SWIG_fail;
6679 swig_obj[0] = args;
6680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, SWIG_POINTER_DISOWN | 0 );
6681 if (!SWIG_IsOK(res1)) {
6682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Icon" "', expected argument " "1"" of type '" "wxIcon *""'");
6683 }
6684 arg1 = reinterpret_cast< wxIcon * >(argp1);
6685 {
6686 PyThreadState* __tstate = wxPyBeginAllowThreads();
6687 delete arg1;
6688
6689 wxPyEndAllowThreads(__tstate);
6690 if (PyErr_Occurred()) SWIG_fail;
6691 }
6692 resultobj = SWIG_Py_Void();
6693 return resultobj;
6694 fail:
6695 return NULL;
6696 }
6697
6698
6699 SWIGINTERN PyObject *_wrap_new_EmptyIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6700 PyObject *resultobj = 0;
6701 wxIcon *result = 0 ;
6702
6703 if (!SWIG_Python_UnpackTuple(args,"new_EmptyIcon",0,0,0)) SWIG_fail;
6704 {
6705 if (!wxPyCheckForApp()) SWIG_fail;
6706 PyThreadState* __tstate = wxPyBeginAllowThreads();
6707 result = (wxIcon *)new wxIcon();
6708 wxPyEndAllowThreads(__tstate);
6709 if (PyErr_Occurred()) SWIG_fail;
6710 }
6711 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6712 return resultobj;
6713 fail:
6714 return NULL;
6715 }
6716
6717
6718 SWIGINTERN PyObject *_wrap_new_IconFromLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6719 PyObject *resultobj = 0;
6720 wxIconLocation *arg1 = 0 ;
6721 wxIcon *result = 0 ;
6722 void *argp1 = 0 ;
6723 int res1 = 0 ;
6724 PyObject * obj0 = 0 ;
6725 char * kwnames[] = {
6726 (char *) "loc", NULL
6727 };
6728
6729 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromLocation",kwnames,&obj0)) SWIG_fail;
6730 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIconLocation, 0 | 0);
6731 if (!SWIG_IsOK(res1)) {
6732 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6733 }
6734 if (!argp1) {
6735 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromLocation" "', expected argument " "1"" of type '" "wxIconLocation const &""'");
6736 }
6737 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
6738 {
6739 if (!wxPyCheckForApp()) SWIG_fail;
6740 PyThreadState* __tstate = wxPyBeginAllowThreads();
6741 result = (wxIcon *)new wxIcon((wxIconLocation const &)*arg1);
6742 wxPyEndAllowThreads(__tstate);
6743 if (PyErr_Occurred()) SWIG_fail;
6744 }
6745 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6746 return resultobj;
6747 fail:
6748 return NULL;
6749 }
6750
6751
6752 SWIGINTERN PyObject *_wrap_new_IconFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6753 PyObject *resultobj = 0;
6754 wxBitmap *arg1 = 0 ;
6755 wxIcon *result = 0 ;
6756 void *argp1 = 0 ;
6757 int res1 = 0 ;
6758 PyObject * obj0 = 0 ;
6759 char * kwnames[] = {
6760 (char *) "bmp", NULL
6761 };
6762
6763 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromBitmap",kwnames,&obj0)) SWIG_fail;
6764 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
6765 if (!SWIG_IsOK(res1)) {
6766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6767 }
6768 if (!argp1) {
6769 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
6770 }
6771 arg1 = reinterpret_cast< wxBitmap * >(argp1);
6772 {
6773 if (!wxPyCheckForApp()) SWIG_fail;
6774 PyThreadState* __tstate = wxPyBeginAllowThreads();
6775 result = (wxIcon *)new_wxIcon((wxBitmap const &)*arg1);
6776 wxPyEndAllowThreads(__tstate);
6777 if (PyErr_Occurred()) SWIG_fail;
6778 }
6779 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6780 return resultobj;
6781 fail:
6782 return NULL;
6783 }
6784
6785
6786 SWIGINTERN PyObject *_wrap_new_IconFromXPMData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6787 PyObject *resultobj = 0;
6788 PyObject *arg1 = (PyObject *) 0 ;
6789 wxIcon *result = 0 ;
6790 PyObject * obj0 = 0 ;
6791 char * kwnames[] = {
6792 (char *) "listOfStrings", NULL
6793 };
6794
6795 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconFromXPMData",kwnames,&obj0)) SWIG_fail;
6796 arg1 = obj0;
6797 {
6798 if (!wxPyCheckForApp()) SWIG_fail;
6799 PyThreadState* __tstate = wxPyBeginAllowThreads();
6800 result = (wxIcon *)new_wxIcon(arg1);
6801 wxPyEndAllowThreads(__tstate);
6802 if (PyErr_Occurred()) SWIG_fail;
6803 }
6804 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
6805 return resultobj;
6806 fail:
6807 return NULL;
6808 }
6809
6810
6811 SWIGINTERN PyObject *_wrap_Icon_LoadFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6812 PyObject *resultobj = 0;
6813 wxIcon *arg1 = (wxIcon *) 0 ;
6814 wxString *arg2 = 0 ;
6815 wxBitmapType arg3 ;
6816 bool result;
6817 void *argp1 = 0 ;
6818 int res1 = 0 ;
6819 bool temp2 = false ;
6820 int val3 ;
6821 int ecode3 = 0 ;
6822 PyObject * obj0 = 0 ;
6823 PyObject * obj1 = 0 ;
6824 PyObject * obj2 = 0 ;
6825 char * kwnames[] = {
6826 (char *) "self",(char *) "name",(char *) "type", NULL
6827 };
6828
6829 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Icon_LoadFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
6830 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6831 if (!SWIG_IsOK(res1)) {
6832 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_LoadFile" "', expected argument " "1"" of type '" "wxIcon *""'");
6833 }
6834 arg1 = reinterpret_cast< wxIcon * >(argp1);
6835 {
6836 arg2 = wxString_in_helper(obj1);
6837 if (arg2 == NULL) SWIG_fail;
6838 temp2 = true;
6839 }
6840 ecode3 = SWIG_AsVal_int(obj2, &val3);
6841 if (!SWIG_IsOK(ecode3)) {
6842 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Icon_LoadFile" "', expected argument " "3"" of type '" "wxBitmapType""'");
6843 }
6844 arg3 = static_cast< wxBitmapType >(val3);
6845 {
6846 PyThreadState* __tstate = wxPyBeginAllowThreads();
6847 result = (bool)(arg1)->LoadFile((wxString const &)*arg2,arg3);
6848 wxPyEndAllowThreads(__tstate);
6849 if (PyErr_Occurred()) SWIG_fail;
6850 }
6851 {
6852 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6853 }
6854 {
6855 if (temp2)
6856 delete arg2;
6857 }
6858 return resultobj;
6859 fail:
6860 {
6861 if (temp2)
6862 delete arg2;
6863 }
6864 return NULL;
6865 }
6866
6867
6868 SWIGINTERN PyObject *_wrap_Icon_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6869 PyObject *resultobj = 0;
6870 wxIcon *arg1 = (wxIcon *) 0 ;
6871 long result;
6872 void *argp1 = 0 ;
6873 int res1 = 0 ;
6874 PyObject *swig_obj[1] ;
6875
6876 if (!args) SWIG_fail;
6877 swig_obj[0] = args;
6878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6879 if (!SWIG_IsOK(res1)) {
6880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6881 }
6882 arg1 = reinterpret_cast< wxIcon * >(argp1);
6883 {
6884 PyThreadState* __tstate = wxPyBeginAllowThreads();
6885 result = (long)(arg1)->GetHandle();
6886 wxPyEndAllowThreads(__tstate);
6887 if (PyErr_Occurred()) SWIG_fail;
6888 }
6889 resultobj = SWIG_From_long(static_cast< long >(result));
6890 return resultobj;
6891 fail:
6892 return NULL;
6893 }
6894
6895
6896 SWIGINTERN PyObject *_wrap_Icon_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
6897 PyObject *resultobj = 0;
6898 wxIcon *arg1 = (wxIcon *) 0 ;
6899 long arg2 ;
6900 void *argp1 = 0 ;
6901 int res1 = 0 ;
6902 long val2 ;
6903 int ecode2 = 0 ;
6904 PyObject * obj0 = 0 ;
6905 PyObject * obj1 = 0 ;
6906 char * kwnames[] = {
6907 (char *) "self",(char *) "handle", NULL
6908 };
6909
6910 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
6911 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6912 if (!SWIG_IsOK(res1)) {
6913 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHandle" "', expected argument " "1"" of type '" "wxIcon *""'");
6914 }
6915 arg1 = reinterpret_cast< wxIcon * >(argp1);
6916 ecode2 = SWIG_AsVal_long(obj1, &val2);
6917 if (!SWIG_IsOK(ecode2)) {
6918 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHandle" "', expected argument " "2"" of type '" "long""'");
6919 }
6920 arg2 = static_cast< long >(val2);
6921 {
6922 PyThreadState* __tstate = wxPyBeginAllowThreads();
6923 wxIcon_SetHandle(arg1,arg2);
6924 wxPyEndAllowThreads(__tstate);
6925 if (PyErr_Occurred()) SWIG_fail;
6926 }
6927 resultobj = SWIG_Py_Void();
6928 return resultobj;
6929 fail:
6930 return NULL;
6931 }
6932
6933
6934 SWIGINTERN PyObject *_wrap_Icon_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6935 PyObject *resultobj = 0;
6936 wxIcon *arg1 = (wxIcon *) 0 ;
6937 bool result;
6938 void *argp1 = 0 ;
6939 int res1 = 0 ;
6940 PyObject *swig_obj[1] ;
6941
6942 if (!args) SWIG_fail;
6943 swig_obj[0] = args;
6944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6945 if (!SWIG_IsOK(res1)) {
6946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_Ok" "', expected argument " "1"" of type '" "wxIcon *""'");
6947 }
6948 arg1 = reinterpret_cast< wxIcon * >(argp1);
6949 {
6950 PyThreadState* __tstate = wxPyBeginAllowThreads();
6951 result = (bool)(arg1)->Ok();
6952 wxPyEndAllowThreads(__tstate);
6953 if (PyErr_Occurred()) SWIG_fail;
6954 }
6955 {
6956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
6957 }
6958 return resultobj;
6959 fail:
6960 return NULL;
6961 }
6962
6963
6964 SWIGINTERN PyObject *_wrap_Icon_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6965 PyObject *resultobj = 0;
6966 wxIcon *arg1 = (wxIcon *) 0 ;
6967 int result;
6968 void *argp1 = 0 ;
6969 int res1 = 0 ;
6970 PyObject *swig_obj[1] ;
6971
6972 if (!args) SWIG_fail;
6973 swig_obj[0] = args;
6974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
6975 if (!SWIG_IsOK(res1)) {
6976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
6977 }
6978 arg1 = reinterpret_cast< wxIcon * >(argp1);
6979 {
6980 PyThreadState* __tstate = wxPyBeginAllowThreads();
6981 result = (int)(arg1)->GetWidth();
6982 wxPyEndAllowThreads(__tstate);
6983 if (PyErr_Occurred()) SWIG_fail;
6984 }
6985 resultobj = SWIG_From_int(static_cast< int >(result));
6986 return resultobj;
6987 fail:
6988 return NULL;
6989 }
6990
6991
6992 SWIGINTERN PyObject *_wrap_Icon_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
6993 PyObject *resultobj = 0;
6994 wxIcon *arg1 = (wxIcon *) 0 ;
6995 int result;
6996 void *argp1 = 0 ;
6997 int res1 = 0 ;
6998 PyObject *swig_obj[1] ;
6999
7000 if (!args) SWIG_fail;
7001 swig_obj[0] = args;
7002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7003 if (!SWIG_IsOK(res1)) {
7004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7005 }
7006 arg1 = reinterpret_cast< wxIcon * >(argp1);
7007 {
7008 PyThreadState* __tstate = wxPyBeginAllowThreads();
7009 result = (int)(arg1)->GetHeight();
7010 wxPyEndAllowThreads(__tstate);
7011 if (PyErr_Occurred()) SWIG_fail;
7012 }
7013 resultobj = SWIG_From_int(static_cast< int >(result));
7014 return resultobj;
7015 fail:
7016 return NULL;
7017 }
7018
7019
7020 SWIGINTERN PyObject *_wrap_Icon_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7021 PyObject *resultobj = 0;
7022 wxIcon *arg1 = (wxIcon *) 0 ;
7023 int result;
7024 void *argp1 = 0 ;
7025 int res1 = 0 ;
7026 PyObject *swig_obj[1] ;
7027
7028 if (!args) SWIG_fail;
7029 swig_obj[0] = args;
7030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7031 if (!SWIG_IsOK(res1)) {
7032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_GetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7033 }
7034 arg1 = reinterpret_cast< wxIcon * >(argp1);
7035 {
7036 PyThreadState* __tstate = wxPyBeginAllowThreads();
7037 result = (int)(arg1)->GetDepth();
7038 wxPyEndAllowThreads(__tstate);
7039 if (PyErr_Occurred()) SWIG_fail;
7040 }
7041 resultobj = SWIG_From_int(static_cast< int >(result));
7042 return resultobj;
7043 fail:
7044 return NULL;
7045 }
7046
7047
7048 SWIGINTERN PyObject *_wrap_Icon_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7049 PyObject *resultobj = 0;
7050 wxIcon *arg1 = (wxIcon *) 0 ;
7051 int arg2 ;
7052 void *argp1 = 0 ;
7053 int res1 = 0 ;
7054 int val2 ;
7055 int ecode2 = 0 ;
7056 PyObject * obj0 = 0 ;
7057 PyObject * obj1 = 0 ;
7058 char * kwnames[] = {
7059 (char *) "self",(char *) "w", NULL
7060 };
7061
7062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
7063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7064 if (!SWIG_IsOK(res1)) {
7065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetWidth" "', expected argument " "1"" of type '" "wxIcon *""'");
7066 }
7067 arg1 = reinterpret_cast< wxIcon * >(argp1);
7068 ecode2 = SWIG_AsVal_int(obj1, &val2);
7069 if (!SWIG_IsOK(ecode2)) {
7070 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetWidth" "', expected argument " "2"" of type '" "int""'");
7071 }
7072 arg2 = static_cast< int >(val2);
7073 {
7074 PyThreadState* __tstate = wxPyBeginAllowThreads();
7075 (arg1)->SetWidth(arg2);
7076 wxPyEndAllowThreads(__tstate);
7077 if (PyErr_Occurred()) SWIG_fail;
7078 }
7079 resultobj = SWIG_Py_Void();
7080 return resultobj;
7081 fail:
7082 return NULL;
7083 }
7084
7085
7086 SWIGINTERN PyObject *_wrap_Icon_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7087 PyObject *resultobj = 0;
7088 wxIcon *arg1 = (wxIcon *) 0 ;
7089 int arg2 ;
7090 void *argp1 = 0 ;
7091 int res1 = 0 ;
7092 int val2 ;
7093 int ecode2 = 0 ;
7094 PyObject * obj0 = 0 ;
7095 PyObject * obj1 = 0 ;
7096 char * kwnames[] = {
7097 (char *) "self",(char *) "h", NULL
7098 };
7099
7100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
7101 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7102 if (!SWIG_IsOK(res1)) {
7103 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetHeight" "', expected argument " "1"" of type '" "wxIcon *""'");
7104 }
7105 arg1 = reinterpret_cast< wxIcon * >(argp1);
7106 ecode2 = SWIG_AsVal_int(obj1, &val2);
7107 if (!SWIG_IsOK(ecode2)) {
7108 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetHeight" "', expected argument " "2"" of type '" "int""'");
7109 }
7110 arg2 = static_cast< int >(val2);
7111 {
7112 PyThreadState* __tstate = wxPyBeginAllowThreads();
7113 (arg1)->SetHeight(arg2);
7114 wxPyEndAllowThreads(__tstate);
7115 if (PyErr_Occurred()) SWIG_fail;
7116 }
7117 resultobj = SWIG_Py_Void();
7118 return resultobj;
7119 fail:
7120 return NULL;
7121 }
7122
7123
7124 SWIGINTERN PyObject *_wrap_Icon_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7125 PyObject *resultobj = 0;
7126 wxIcon *arg1 = (wxIcon *) 0 ;
7127 int arg2 ;
7128 void *argp1 = 0 ;
7129 int res1 = 0 ;
7130 int val2 ;
7131 int ecode2 = 0 ;
7132 PyObject * obj0 = 0 ;
7133 PyObject * obj1 = 0 ;
7134 char * kwnames[] = {
7135 (char *) "self",(char *) "d", NULL
7136 };
7137
7138 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
7139 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7140 if (!SWIG_IsOK(res1)) {
7141 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetDepth" "', expected argument " "1"" of type '" "wxIcon *""'");
7142 }
7143 arg1 = reinterpret_cast< wxIcon * >(argp1);
7144 ecode2 = SWIG_AsVal_int(obj1, &val2);
7145 if (!SWIG_IsOK(ecode2)) {
7146 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Icon_SetDepth" "', expected argument " "2"" of type '" "int""'");
7147 }
7148 arg2 = static_cast< int >(val2);
7149 {
7150 PyThreadState* __tstate = wxPyBeginAllowThreads();
7151 (arg1)->SetDepth(arg2);
7152 wxPyEndAllowThreads(__tstate);
7153 if (PyErr_Occurred()) SWIG_fail;
7154 }
7155 resultobj = SWIG_Py_Void();
7156 return resultobj;
7157 fail:
7158 return NULL;
7159 }
7160
7161
7162 SWIGINTERN PyObject *_wrap_Icon_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7163 PyObject *resultobj = 0;
7164 wxIcon *arg1 = (wxIcon *) 0 ;
7165 wxSize *arg2 = 0 ;
7166 void *argp1 = 0 ;
7167 int res1 = 0 ;
7168 wxSize temp2 ;
7169 PyObject * obj0 = 0 ;
7170 PyObject * obj1 = 0 ;
7171 char * kwnames[] = {
7172 (char *) "self",(char *) "size", NULL
7173 };
7174
7175 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
7176 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7177 if (!SWIG_IsOK(res1)) {
7178 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_SetSize" "', expected argument " "1"" of type '" "wxIcon *""'");
7179 }
7180 arg1 = reinterpret_cast< wxIcon * >(argp1);
7181 {
7182 arg2 = &temp2;
7183 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7184 }
7185 {
7186 PyThreadState* __tstate = wxPyBeginAllowThreads();
7187 (arg1)->SetSize((wxSize const &)*arg2);
7188 wxPyEndAllowThreads(__tstate);
7189 if (PyErr_Occurred()) SWIG_fail;
7190 }
7191 resultobj = SWIG_Py_Void();
7192 return resultobj;
7193 fail:
7194 return NULL;
7195 }
7196
7197
7198 SWIGINTERN PyObject *_wrap_Icon_CopyFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7199 PyObject *resultobj = 0;
7200 wxIcon *arg1 = (wxIcon *) 0 ;
7201 wxBitmap *arg2 = 0 ;
7202 void *argp1 = 0 ;
7203 int res1 = 0 ;
7204 void *argp2 = 0 ;
7205 int res2 = 0 ;
7206 PyObject * obj0 = 0 ;
7207 PyObject * obj1 = 0 ;
7208 char * kwnames[] = {
7209 (char *) "self",(char *) "bmp", NULL
7210 };
7211
7212 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Icon_CopyFromBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
7213 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIcon, 0 | 0 );
7214 if (!SWIG_IsOK(res1)) {
7215 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Icon_CopyFromBitmap" "', expected argument " "1"" of type '" "wxIcon *""'");
7216 }
7217 arg1 = reinterpret_cast< wxIcon * >(argp1);
7218 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
7219 if (!SWIG_IsOK(res2)) {
7220 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7221 }
7222 if (!argp2) {
7223 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Icon_CopyFromBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
7224 }
7225 arg2 = reinterpret_cast< wxBitmap * >(argp2);
7226 {
7227 PyThreadState* __tstate = wxPyBeginAllowThreads();
7228 (arg1)->CopyFromBitmap((wxBitmap const &)*arg2);
7229 wxPyEndAllowThreads(__tstate);
7230 if (PyErr_Occurred()) SWIG_fail;
7231 }
7232 resultobj = SWIG_Py_Void();
7233 return resultobj;
7234 fail:
7235 return NULL;
7236 }
7237
7238
7239 SWIGINTERN PyObject *Icon_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7240 PyObject *obj;
7241 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7242 SWIG_TypeNewClientData(SWIGTYPE_p_wxIcon, SWIG_NewClientData(obj));
7243 return SWIG_Py_Void();
7244 }
7245
7246 SWIGINTERN PyObject *Icon_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7247 return SWIG_Python_InitShadowInstance(args);
7248 }
7249
7250 SWIGINTERN PyObject *_wrap_new_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7251 PyObject *resultobj = 0;
7252 wxString *arg1 = (wxString *) &wxPyEmptyString ;
7253 int arg2 = (int) 0 ;
7254 wxIconLocation *result = 0 ;
7255 bool temp1 = false ;
7256 int val2 ;
7257 int ecode2 = 0 ;
7258 PyObject * obj0 = 0 ;
7259 PyObject * obj1 = 0 ;
7260 char * kwnames[] = {
7261 (char *) "filename",(char *) "num", NULL
7262 };
7263
7264 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_IconLocation",kwnames,&obj0,&obj1)) SWIG_fail;
7265 if (obj0) {
7266 {
7267 arg1 = wxString_in_helper(obj0);
7268 if (arg1 == NULL) SWIG_fail;
7269 temp1 = true;
7270 }
7271 }
7272 if (obj1) {
7273 ecode2 = SWIG_AsVal_int(obj1, &val2);
7274 if (!SWIG_IsOK(ecode2)) {
7275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconLocation" "', expected argument " "2"" of type '" "int""'");
7276 }
7277 arg2 = static_cast< int >(val2);
7278 }
7279 {
7280 PyThreadState* __tstate = wxPyBeginAllowThreads();
7281 result = (wxIconLocation *)new_wxIconLocation((wxString const *)arg1,arg2);
7282 wxPyEndAllowThreads(__tstate);
7283 if (PyErr_Occurred()) SWIG_fail;
7284 }
7285 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconLocation, SWIG_POINTER_NEW | 0 );
7286 {
7287 if (temp1)
7288 delete arg1;
7289 }
7290 return resultobj;
7291 fail:
7292 {
7293 if (temp1)
7294 delete arg1;
7295 }
7296 return NULL;
7297 }
7298
7299
7300 SWIGINTERN PyObject *_wrap_delete_IconLocation(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7301 PyObject *resultobj = 0;
7302 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7303 void *argp1 = 0 ;
7304 int res1 = 0 ;
7305 PyObject *swig_obj[1] ;
7306
7307 if (!args) SWIG_fail;
7308 swig_obj[0] = args;
7309 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, SWIG_POINTER_DISOWN | 0 );
7310 if (!SWIG_IsOK(res1)) {
7311 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconLocation" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7312 }
7313 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7314 {
7315 PyThreadState* __tstate = wxPyBeginAllowThreads();
7316 delete arg1;
7317
7318 wxPyEndAllowThreads(__tstate);
7319 if (PyErr_Occurred()) SWIG_fail;
7320 }
7321 resultobj = SWIG_Py_Void();
7322 return resultobj;
7323 fail:
7324 return NULL;
7325 }
7326
7327
7328 SWIGINTERN PyObject *_wrap_IconLocation_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7329 PyObject *resultobj = 0;
7330 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7331 bool result;
7332 void *argp1 = 0 ;
7333 int res1 = 0 ;
7334 PyObject *swig_obj[1] ;
7335
7336 if (!args) SWIG_fail;
7337 swig_obj[0] = args;
7338 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7339 if (!SWIG_IsOK(res1)) {
7340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_IsOk" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7341 }
7342 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7343 {
7344 PyThreadState* __tstate = wxPyBeginAllowThreads();
7345 result = (bool)((wxIconLocation const *)arg1)->IsOk();
7346 wxPyEndAllowThreads(__tstate);
7347 if (PyErr_Occurred()) SWIG_fail;
7348 }
7349 {
7350 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
7351 }
7352 return resultobj;
7353 fail:
7354 return NULL;
7355 }
7356
7357
7358 SWIGINTERN PyObject *_wrap_IconLocation_SetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7359 PyObject *resultobj = 0;
7360 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7361 wxString *arg2 = 0 ;
7362 void *argp1 = 0 ;
7363 int res1 = 0 ;
7364 bool temp2 = false ;
7365 PyObject * obj0 = 0 ;
7366 PyObject * obj1 = 0 ;
7367 char * kwnames[] = {
7368 (char *) "self",(char *) "filename", NULL
7369 };
7370
7371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetFileName",kwnames,&obj0,&obj1)) SWIG_fail;
7372 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7373 if (!SWIG_IsOK(res1)) {
7374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetFileName" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7375 }
7376 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7377 {
7378 arg2 = wxString_in_helper(obj1);
7379 if (arg2 == NULL) SWIG_fail;
7380 temp2 = true;
7381 }
7382 {
7383 PyThreadState* __tstate = wxPyBeginAllowThreads();
7384 (arg1)->SetFileName((wxString const &)*arg2);
7385 wxPyEndAllowThreads(__tstate);
7386 if (PyErr_Occurred()) SWIG_fail;
7387 }
7388 resultobj = SWIG_Py_Void();
7389 {
7390 if (temp2)
7391 delete arg2;
7392 }
7393 return resultobj;
7394 fail:
7395 {
7396 if (temp2)
7397 delete arg2;
7398 }
7399 return NULL;
7400 }
7401
7402
7403 SWIGINTERN PyObject *_wrap_IconLocation_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7404 PyObject *resultobj = 0;
7405 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7406 wxString *result = 0 ;
7407 void *argp1 = 0 ;
7408 int res1 = 0 ;
7409 PyObject *swig_obj[1] ;
7410
7411 if (!args) SWIG_fail;
7412 swig_obj[0] = args;
7413 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7414 if (!SWIG_IsOK(res1)) {
7415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetFileName" "', expected argument " "1"" of type '" "wxIconLocation const *""'");
7416 }
7417 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7418 {
7419 PyThreadState* __tstate = wxPyBeginAllowThreads();
7420 {
7421 wxString const &_result_ref = ((wxIconLocation const *)arg1)->GetFileName();
7422 result = (wxString *) &_result_ref;
7423 }
7424 wxPyEndAllowThreads(__tstate);
7425 if (PyErr_Occurred()) SWIG_fail;
7426 }
7427 {
7428 #if wxUSE_UNICODE
7429 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
7430 #else
7431 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
7432 #endif
7433 }
7434 return resultobj;
7435 fail:
7436 return NULL;
7437 }
7438
7439
7440 SWIGINTERN PyObject *_wrap_IconLocation_SetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7441 PyObject *resultobj = 0;
7442 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7443 int arg2 ;
7444 void *argp1 = 0 ;
7445 int res1 = 0 ;
7446 int val2 ;
7447 int ecode2 = 0 ;
7448 PyObject * obj0 = 0 ;
7449 PyObject * obj1 = 0 ;
7450 char * kwnames[] = {
7451 (char *) "self",(char *) "num", NULL
7452 };
7453
7454 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconLocation_SetIndex",kwnames,&obj0,&obj1)) SWIG_fail;
7455 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7456 if (!SWIG_IsOK(res1)) {
7457 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_SetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7458 }
7459 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7460 ecode2 = SWIG_AsVal_int(obj1, &val2);
7461 if (!SWIG_IsOK(ecode2)) {
7462 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IconLocation_SetIndex" "', expected argument " "2"" of type '" "int""'");
7463 }
7464 arg2 = static_cast< int >(val2);
7465 {
7466 PyThreadState* __tstate = wxPyBeginAllowThreads();
7467 wxIconLocation_SetIndex(arg1,arg2);
7468 wxPyEndAllowThreads(__tstate);
7469 if (PyErr_Occurred()) SWIG_fail;
7470 }
7471 resultobj = SWIG_Py_Void();
7472 return resultobj;
7473 fail:
7474 return NULL;
7475 }
7476
7477
7478 SWIGINTERN PyObject *_wrap_IconLocation_GetIndex(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7479 PyObject *resultobj = 0;
7480 wxIconLocation *arg1 = (wxIconLocation *) 0 ;
7481 int result;
7482 void *argp1 = 0 ;
7483 int res1 = 0 ;
7484 PyObject *swig_obj[1] ;
7485
7486 if (!args) SWIG_fail;
7487 swig_obj[0] = args;
7488 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconLocation, 0 | 0 );
7489 if (!SWIG_IsOK(res1)) {
7490 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconLocation_GetIndex" "', expected argument " "1"" of type '" "wxIconLocation *""'");
7491 }
7492 arg1 = reinterpret_cast< wxIconLocation * >(argp1);
7493 {
7494 PyThreadState* __tstate = wxPyBeginAllowThreads();
7495 result = (int)wxIconLocation_GetIndex(arg1);
7496 wxPyEndAllowThreads(__tstate);
7497 if (PyErr_Occurred()) SWIG_fail;
7498 }
7499 resultobj = SWIG_From_int(static_cast< int >(result));
7500 return resultobj;
7501 fail:
7502 return NULL;
7503 }
7504
7505
7506 SWIGINTERN PyObject *IconLocation_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7507 PyObject *obj;
7508 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7509 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconLocation, SWIG_NewClientData(obj));
7510 return SWIG_Py_Void();
7511 }
7512
7513 SWIGINTERN PyObject *IconLocation_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7514 return SWIG_Python_InitShadowInstance(args);
7515 }
7516
7517 SWIGINTERN PyObject *_wrap_new_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7518 PyObject *resultobj = 0;
7519 wxIconBundle *result = 0 ;
7520
7521 if (!SWIG_Python_UnpackTuple(args,"new_IconBundle",0,0,0)) SWIG_fail;
7522 {
7523 PyThreadState* __tstate = wxPyBeginAllowThreads();
7524 result = (wxIconBundle *)new wxIconBundle();
7525 wxPyEndAllowThreads(__tstate);
7526 if (PyErr_Occurred()) SWIG_fail;
7527 }
7528 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_NEW | 0 );
7529 return resultobj;
7530 fail:
7531 return NULL;
7532 }
7533
7534
7535 SWIGINTERN PyObject *_wrap_new_IconBundleFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7536 PyObject *resultobj = 0;
7537 wxString *arg1 = 0 ;
7538 long arg2 ;
7539 wxIconBundle *result = 0 ;
7540 bool temp1 = false ;
7541 long val2 ;
7542 int ecode2 = 0 ;
7543 PyObject * obj0 = 0 ;
7544 PyObject * obj1 = 0 ;
7545 char * kwnames[] = {
7546 (char *) "file",(char *) "type", NULL
7547 };
7548
7549 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_IconBundleFromFile",kwnames,&obj0,&obj1)) SWIG_fail;
7550 {
7551 arg1 = wxString_in_helper(obj0);
7552 if (arg1 == NULL) SWIG_fail;
7553 temp1 = true;
7554 }
7555 ecode2 = SWIG_AsVal_long(obj1, &val2);
7556 if (!SWIG_IsOK(ecode2)) {
7557 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_IconBundleFromFile" "', expected argument " "2"" of type '" "long""'");
7558 }
7559 arg2 = static_cast< long >(val2);
7560 {
7561 PyThreadState* __tstate = wxPyBeginAllowThreads();
7562 result = (wxIconBundle *)new wxIconBundle((wxString const &)*arg1,arg2);
7563 wxPyEndAllowThreads(__tstate);
7564 if (PyErr_Occurred()) SWIG_fail;
7565 }
7566 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7567 {
7568 if (temp1)
7569 delete arg1;
7570 }
7571 return resultobj;
7572 fail:
7573 {
7574 if (temp1)
7575 delete arg1;
7576 }
7577 return NULL;
7578 }
7579
7580
7581 SWIGINTERN PyObject *_wrap_new_IconBundleFromIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7582 PyObject *resultobj = 0;
7583 wxIcon *arg1 = 0 ;
7584 wxIconBundle *result = 0 ;
7585 void *argp1 = 0 ;
7586 int res1 = 0 ;
7587 PyObject * obj0 = 0 ;
7588 char * kwnames[] = {
7589 (char *) "icon", NULL
7590 };
7591
7592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_IconBundleFromIcon",kwnames,&obj0)) SWIG_fail;
7593 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxIcon, 0 | 0);
7594 if (!SWIG_IsOK(res1)) {
7595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7596 }
7597 if (!argp1) {
7598 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_IconBundleFromIcon" "', expected argument " "1"" of type '" "wxIcon const &""'");
7599 }
7600 arg1 = reinterpret_cast< wxIcon * >(argp1);
7601 {
7602 PyThreadState* __tstate = wxPyBeginAllowThreads();
7603 result = (wxIconBundle *)new wxIconBundle((wxIcon const &)*arg1);
7604 wxPyEndAllowThreads(__tstate);
7605 if (PyErr_Occurred()) SWIG_fail;
7606 }
7607 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxIconBundle, SWIG_POINTER_OWN | 0 );
7608 return resultobj;
7609 fail:
7610 return NULL;
7611 }
7612
7613
7614 SWIGINTERN PyObject *_wrap_delete_IconBundle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7615 PyObject *resultobj = 0;
7616 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7617 void *argp1 = 0 ;
7618 int res1 = 0 ;
7619 PyObject *swig_obj[1] ;
7620
7621 if (!args) SWIG_fail;
7622 swig_obj[0] = args;
7623 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxIconBundle, SWIG_POINTER_DISOWN | 0 );
7624 if (!SWIG_IsOK(res1)) {
7625 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_IconBundle" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7626 }
7627 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7628 {
7629 PyThreadState* __tstate = wxPyBeginAllowThreads();
7630 delete arg1;
7631
7632 wxPyEndAllowThreads(__tstate);
7633 if (PyErr_Occurred()) SWIG_fail;
7634 }
7635 resultobj = SWIG_Py_Void();
7636 return resultobj;
7637 fail:
7638 return NULL;
7639 }
7640
7641
7642 SWIGINTERN PyObject *_wrap_IconBundle_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7643 PyObject *resultobj = 0;
7644 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7645 wxIcon *arg2 = 0 ;
7646 void *argp1 = 0 ;
7647 int res1 = 0 ;
7648 void *argp2 = 0 ;
7649 int res2 = 0 ;
7650 PyObject * obj0 = 0 ;
7651 PyObject * obj1 = 0 ;
7652 char * kwnames[] = {
7653 (char *) "self",(char *) "icon", NULL
7654 };
7655
7656 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7657 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7658 if (!SWIG_IsOK(res1)) {
7659 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIcon" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7660 }
7661 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7662 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
7663 if (!SWIG_IsOK(res2)) {
7664 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7665 }
7666 if (!argp2) {
7667 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "IconBundle_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
7668 }
7669 arg2 = reinterpret_cast< wxIcon * >(argp2);
7670 {
7671 PyThreadState* __tstate = wxPyBeginAllowThreads();
7672 (arg1)->AddIcon((wxIcon const &)*arg2);
7673 wxPyEndAllowThreads(__tstate);
7674 if (PyErr_Occurred()) SWIG_fail;
7675 }
7676 resultobj = SWIG_Py_Void();
7677 return resultobj;
7678 fail:
7679 return NULL;
7680 }
7681
7682
7683 SWIGINTERN PyObject *_wrap_IconBundle_AddIconFromFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7684 PyObject *resultobj = 0;
7685 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7686 wxString *arg2 = 0 ;
7687 long arg3 ;
7688 void *argp1 = 0 ;
7689 int res1 = 0 ;
7690 bool temp2 = false ;
7691 long val3 ;
7692 int ecode3 = 0 ;
7693 PyObject * obj0 = 0 ;
7694 PyObject * obj1 = 0 ;
7695 PyObject * obj2 = 0 ;
7696 char * kwnames[] = {
7697 (char *) "self",(char *) "file",(char *) "type", NULL
7698 };
7699
7700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:IconBundle_AddIconFromFile",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
7701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7702 if (!SWIG_IsOK(res1)) {
7703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "1"" of type '" "wxIconBundle *""'");
7704 }
7705 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7706 {
7707 arg2 = wxString_in_helper(obj1);
7708 if (arg2 == NULL) SWIG_fail;
7709 temp2 = true;
7710 }
7711 ecode3 = SWIG_AsVal_long(obj2, &val3);
7712 if (!SWIG_IsOK(ecode3)) {
7713 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "IconBundle_AddIconFromFile" "', expected argument " "3"" of type '" "long""'");
7714 }
7715 arg3 = static_cast< long >(val3);
7716 {
7717 PyThreadState* __tstate = wxPyBeginAllowThreads();
7718 (arg1)->AddIcon((wxString const &)*arg2,arg3);
7719 wxPyEndAllowThreads(__tstate);
7720 if (PyErr_Occurred()) SWIG_fail;
7721 }
7722 resultobj = SWIG_Py_Void();
7723 {
7724 if (temp2)
7725 delete arg2;
7726 }
7727 return resultobj;
7728 fail:
7729 {
7730 if (temp2)
7731 delete arg2;
7732 }
7733 return NULL;
7734 }
7735
7736
7737 SWIGINTERN PyObject *_wrap_IconBundle_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7738 PyObject *resultobj = 0;
7739 wxIconBundle *arg1 = (wxIconBundle *) 0 ;
7740 wxSize *arg2 = 0 ;
7741 wxIcon *result = 0 ;
7742 void *argp1 = 0 ;
7743 int res1 = 0 ;
7744 wxSize temp2 ;
7745 PyObject * obj0 = 0 ;
7746 PyObject * obj1 = 0 ;
7747 char * kwnames[] = {
7748 (char *) "self",(char *) "size", NULL
7749 };
7750
7751 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:IconBundle_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
7752 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxIconBundle, 0 | 0 );
7753 if (!SWIG_IsOK(res1)) {
7754 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IconBundle_GetIcon" "', expected argument " "1"" of type '" "wxIconBundle const *""'");
7755 }
7756 arg1 = reinterpret_cast< wxIconBundle * >(argp1);
7757 {
7758 arg2 = &temp2;
7759 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
7760 }
7761 {
7762 PyThreadState* __tstate = wxPyBeginAllowThreads();
7763 {
7764 wxIcon const &_result_ref = ((wxIconBundle const *)arg1)->GetIcon((wxSize const &)*arg2);
7765 result = (wxIcon *) &_result_ref;
7766 }
7767 wxPyEndAllowThreads(__tstate);
7768 if (PyErr_Occurred()) SWIG_fail;
7769 }
7770 {
7771 wxIcon* resultptr = new wxIcon(*result);
7772 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxIcon, 1);
7773 }
7774 return resultobj;
7775 fail:
7776 return NULL;
7777 }
7778
7779
7780 SWIGINTERN PyObject *IconBundle_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7781 PyObject *obj;
7782 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
7783 SWIG_TypeNewClientData(SWIGTYPE_p_wxIconBundle, SWIG_NewClientData(obj));
7784 return SWIG_Py_Void();
7785 }
7786
7787 SWIGINTERN PyObject *IconBundle_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7788 return SWIG_Python_InitShadowInstance(args);
7789 }
7790
7791 SWIGINTERN PyObject *_wrap_new_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7792 PyObject *resultobj = 0;
7793 wxString *arg1 = 0 ;
7794 long arg2 ;
7795 int arg3 = (int) 0 ;
7796 int arg4 = (int) 0 ;
7797 wxCursor *result = 0 ;
7798 bool temp1 = false ;
7799 long val2 ;
7800 int ecode2 = 0 ;
7801 int val3 ;
7802 int ecode3 = 0 ;
7803 int val4 ;
7804 int ecode4 = 0 ;
7805 PyObject * obj0 = 0 ;
7806 PyObject * obj1 = 0 ;
7807 PyObject * obj2 = 0 ;
7808 PyObject * obj3 = 0 ;
7809 char * kwnames[] = {
7810 (char *) "cursorName",(char *) "type",(char *) "hotSpotX",(char *) "hotSpotY", NULL
7811 };
7812
7813 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_Cursor",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
7814 {
7815 arg1 = wxString_in_helper(obj0);
7816 if (arg1 == NULL) SWIG_fail;
7817 temp1 = true;
7818 }
7819 ecode2 = SWIG_AsVal_long(obj1, &val2);
7820 if (!SWIG_IsOK(ecode2)) {
7821 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Cursor" "', expected argument " "2"" of type '" "long""'");
7822 }
7823 arg2 = static_cast< long >(val2);
7824 if (obj2) {
7825 ecode3 = SWIG_AsVal_int(obj2, &val3);
7826 if (!SWIG_IsOK(ecode3)) {
7827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Cursor" "', expected argument " "3"" of type '" "int""'");
7828 }
7829 arg3 = static_cast< int >(val3);
7830 }
7831 if (obj3) {
7832 ecode4 = SWIG_AsVal_int(obj3, &val4);
7833 if (!SWIG_IsOK(ecode4)) {
7834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Cursor" "', expected argument " "4"" of type '" "int""'");
7835 }
7836 arg4 = static_cast< int >(val4);
7837 }
7838 {
7839 if (!wxPyCheckForApp()) SWIG_fail;
7840 PyThreadState* __tstate = wxPyBeginAllowThreads();
7841 result = (wxCursor *)new_wxCursor((wxString const &)*arg1,arg2,arg3,arg4);
7842 wxPyEndAllowThreads(__tstate);
7843 if (PyErr_Occurred()) SWIG_fail;
7844 }
7845 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_NEW | 0 );
7846 {
7847 if (temp1)
7848 delete arg1;
7849 }
7850 return resultobj;
7851 fail:
7852 {
7853 if (temp1)
7854 delete arg1;
7855 }
7856 return NULL;
7857 }
7858
7859
7860 SWIGINTERN PyObject *_wrap_delete_Cursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7861 PyObject *resultobj = 0;
7862 wxCursor *arg1 = (wxCursor *) 0 ;
7863 void *argp1 = 0 ;
7864 int res1 = 0 ;
7865 PyObject *swig_obj[1] ;
7866
7867 if (!args) SWIG_fail;
7868 swig_obj[0] = args;
7869 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, SWIG_POINTER_DISOWN | 0 );
7870 if (!SWIG_IsOK(res1)) {
7871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Cursor" "', expected argument " "1"" of type '" "wxCursor *""'");
7872 }
7873 arg1 = reinterpret_cast< wxCursor * >(argp1);
7874 {
7875 PyThreadState* __tstate = wxPyBeginAllowThreads();
7876 delete arg1;
7877
7878 wxPyEndAllowThreads(__tstate);
7879 if (PyErr_Occurred()) SWIG_fail;
7880 }
7881 resultobj = SWIG_Py_Void();
7882 return resultobj;
7883 fail:
7884 return NULL;
7885 }
7886
7887
7888 SWIGINTERN PyObject *_wrap_new_StockCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7889 PyObject *resultobj = 0;
7890 int arg1 ;
7891 wxCursor *result = 0 ;
7892 int val1 ;
7893 int ecode1 = 0 ;
7894 PyObject * obj0 = 0 ;
7895 char * kwnames[] = {
7896 (char *) "id", NULL
7897 };
7898
7899 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_StockCursor",kwnames,&obj0)) SWIG_fail;
7900 ecode1 = SWIG_AsVal_int(obj0, &val1);
7901 if (!SWIG_IsOK(ecode1)) {
7902 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_StockCursor" "', expected argument " "1"" of type '" "int""'");
7903 }
7904 arg1 = static_cast< int >(val1);
7905 {
7906 if (!wxPyCheckForApp()) SWIG_fail;
7907 PyThreadState* __tstate = wxPyBeginAllowThreads();
7908 result = (wxCursor *)new wxCursor(arg1);
7909 wxPyEndAllowThreads(__tstate);
7910 if (PyErr_Occurred()) SWIG_fail;
7911 }
7912 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7913 return resultobj;
7914 fail:
7915 return NULL;
7916 }
7917
7918
7919 SWIGINTERN PyObject *_wrap_new_CursorFromImage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7920 PyObject *resultobj = 0;
7921 wxImage *arg1 = 0 ;
7922 wxCursor *result = 0 ;
7923 void *argp1 = 0 ;
7924 int res1 = 0 ;
7925 PyObject * obj0 = 0 ;
7926 char * kwnames[] = {
7927 (char *) "image", NULL
7928 };
7929
7930 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_CursorFromImage",kwnames,&obj0)) SWIG_fail;
7931 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxImage, 0 | 0);
7932 if (!SWIG_IsOK(res1)) {
7933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7934 }
7935 if (!argp1) {
7936 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_CursorFromImage" "', expected argument " "1"" of type '" "wxImage const &""'");
7937 }
7938 arg1 = reinterpret_cast< wxImage * >(argp1);
7939 {
7940 if (!wxPyCheckForApp()) SWIG_fail;
7941 PyThreadState* __tstate = wxPyBeginAllowThreads();
7942 result = (wxCursor *)new wxCursor((wxImage const &)*arg1);
7943 wxPyEndAllowThreads(__tstate);
7944 if (PyErr_Occurred()) SWIG_fail;
7945 }
7946 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, SWIG_POINTER_OWN | 0 );
7947 return resultobj;
7948 fail:
7949 return NULL;
7950 }
7951
7952
7953 SWIGINTERN PyObject *_wrap_Cursor_GetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
7954 PyObject *resultobj = 0;
7955 wxCursor *arg1 = (wxCursor *) 0 ;
7956 long result;
7957 void *argp1 = 0 ;
7958 int res1 = 0 ;
7959 PyObject *swig_obj[1] ;
7960
7961 if (!args) SWIG_fail;
7962 swig_obj[0] = args;
7963 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7964 if (!SWIG_IsOK(res1)) {
7965 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7966 }
7967 arg1 = reinterpret_cast< wxCursor * >(argp1);
7968 {
7969 PyThreadState* __tstate = wxPyBeginAllowThreads();
7970 result = (long)(arg1)->GetHandle();
7971 wxPyEndAllowThreads(__tstate);
7972 if (PyErr_Occurred()) SWIG_fail;
7973 }
7974 resultobj = SWIG_From_long(static_cast< long >(result));
7975 return resultobj;
7976 fail:
7977 return NULL;
7978 }
7979
7980
7981 SWIGINTERN PyObject *_wrap_Cursor_SetHandle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
7982 PyObject *resultobj = 0;
7983 wxCursor *arg1 = (wxCursor *) 0 ;
7984 long arg2 ;
7985 void *argp1 = 0 ;
7986 int res1 = 0 ;
7987 long val2 ;
7988 int ecode2 = 0 ;
7989 PyObject * obj0 = 0 ;
7990 PyObject * obj1 = 0 ;
7991 char * kwnames[] = {
7992 (char *) "self",(char *) "handle", NULL
7993 };
7994
7995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHandle",kwnames,&obj0,&obj1)) SWIG_fail;
7996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
7997 if (!SWIG_IsOK(res1)) {
7998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHandle" "', expected argument " "1"" of type '" "wxCursor *""'");
7999 }
8000 arg1 = reinterpret_cast< wxCursor * >(argp1);
8001 ecode2 = SWIG_AsVal_long(obj1, &val2);
8002 if (!SWIG_IsOK(ecode2)) {
8003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHandle" "', expected argument " "2"" of type '" "long""'");
8004 }
8005 arg2 = static_cast< long >(val2);
8006 {
8007 PyThreadState* __tstate = wxPyBeginAllowThreads();
8008 wxCursor_SetHandle(arg1,arg2);
8009 wxPyEndAllowThreads(__tstate);
8010 if (PyErr_Occurred()) SWIG_fail;
8011 }
8012 resultobj = SWIG_Py_Void();
8013 return resultobj;
8014 fail:
8015 return NULL;
8016 }
8017
8018
8019 SWIGINTERN PyObject *_wrap_Cursor_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8020 PyObject *resultobj = 0;
8021 wxCursor *arg1 = (wxCursor *) 0 ;
8022 bool result;
8023 void *argp1 = 0 ;
8024 int res1 = 0 ;
8025 PyObject *swig_obj[1] ;
8026
8027 if (!args) SWIG_fail;
8028 swig_obj[0] = args;
8029 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8030 if (!SWIG_IsOK(res1)) {
8031 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_Ok" "', expected argument " "1"" of type '" "wxCursor *""'");
8032 }
8033 arg1 = reinterpret_cast< wxCursor * >(argp1);
8034 {
8035 PyThreadState* __tstate = wxPyBeginAllowThreads();
8036 result = (bool)(arg1)->Ok();
8037 wxPyEndAllowThreads(__tstate);
8038 if (PyErr_Occurred()) SWIG_fail;
8039 }
8040 {
8041 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8042 }
8043 return resultobj;
8044 fail:
8045 return NULL;
8046 }
8047
8048
8049 SWIGINTERN PyObject *_wrap_Cursor_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8050 PyObject *resultobj = 0;
8051 wxCursor *arg1 = (wxCursor *) 0 ;
8052 int result;
8053 void *argp1 = 0 ;
8054 int res1 = 0 ;
8055 PyObject *swig_obj[1] ;
8056
8057 if (!args) SWIG_fail;
8058 swig_obj[0] = args;
8059 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8060 if (!SWIG_IsOK(res1)) {
8061 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8062 }
8063 arg1 = reinterpret_cast< wxCursor * >(argp1);
8064 {
8065 PyThreadState* __tstate = wxPyBeginAllowThreads();
8066 result = (int)(arg1)->GetWidth();
8067 wxPyEndAllowThreads(__tstate);
8068 if (PyErr_Occurred()) SWIG_fail;
8069 }
8070 resultobj = SWIG_From_int(static_cast< int >(result));
8071 return resultobj;
8072 fail:
8073 return NULL;
8074 }
8075
8076
8077 SWIGINTERN PyObject *_wrap_Cursor_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8078 PyObject *resultobj = 0;
8079 wxCursor *arg1 = (wxCursor *) 0 ;
8080 int result;
8081 void *argp1 = 0 ;
8082 int res1 = 0 ;
8083 PyObject *swig_obj[1] ;
8084
8085 if (!args) SWIG_fail;
8086 swig_obj[0] = args;
8087 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8088 if (!SWIG_IsOK(res1)) {
8089 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8090 }
8091 arg1 = reinterpret_cast< wxCursor * >(argp1);
8092 {
8093 PyThreadState* __tstate = wxPyBeginAllowThreads();
8094 result = (int)(arg1)->GetHeight();
8095 wxPyEndAllowThreads(__tstate);
8096 if (PyErr_Occurred()) SWIG_fail;
8097 }
8098 resultobj = SWIG_From_int(static_cast< int >(result));
8099 return resultobj;
8100 fail:
8101 return NULL;
8102 }
8103
8104
8105 SWIGINTERN PyObject *_wrap_Cursor_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8106 PyObject *resultobj = 0;
8107 wxCursor *arg1 = (wxCursor *) 0 ;
8108 int result;
8109 void *argp1 = 0 ;
8110 int res1 = 0 ;
8111 PyObject *swig_obj[1] ;
8112
8113 if (!args) SWIG_fail;
8114 swig_obj[0] = args;
8115 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8116 if (!SWIG_IsOK(res1)) {
8117 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_GetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8118 }
8119 arg1 = reinterpret_cast< wxCursor * >(argp1);
8120 {
8121 PyThreadState* __tstate = wxPyBeginAllowThreads();
8122 result = (int)(arg1)->GetDepth();
8123 wxPyEndAllowThreads(__tstate);
8124 if (PyErr_Occurred()) SWIG_fail;
8125 }
8126 resultobj = SWIG_From_int(static_cast< int >(result));
8127 return resultobj;
8128 fail:
8129 return NULL;
8130 }
8131
8132
8133 SWIGINTERN PyObject *_wrap_Cursor_SetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8134 PyObject *resultobj = 0;
8135 wxCursor *arg1 = (wxCursor *) 0 ;
8136 int arg2 ;
8137 void *argp1 = 0 ;
8138 int res1 = 0 ;
8139 int val2 ;
8140 int ecode2 = 0 ;
8141 PyObject * obj0 = 0 ;
8142 PyObject * obj1 = 0 ;
8143 char * kwnames[] = {
8144 (char *) "self",(char *) "w", NULL
8145 };
8146
8147 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetWidth",kwnames,&obj0,&obj1)) SWIG_fail;
8148 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8149 if (!SWIG_IsOK(res1)) {
8150 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetWidth" "', expected argument " "1"" of type '" "wxCursor *""'");
8151 }
8152 arg1 = reinterpret_cast< wxCursor * >(argp1);
8153 ecode2 = SWIG_AsVal_int(obj1, &val2);
8154 if (!SWIG_IsOK(ecode2)) {
8155 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetWidth" "', expected argument " "2"" of type '" "int""'");
8156 }
8157 arg2 = static_cast< int >(val2);
8158 {
8159 PyThreadState* __tstate = wxPyBeginAllowThreads();
8160 (arg1)->SetWidth(arg2);
8161 wxPyEndAllowThreads(__tstate);
8162 if (PyErr_Occurred()) SWIG_fail;
8163 }
8164 resultobj = SWIG_Py_Void();
8165 return resultobj;
8166 fail:
8167 return NULL;
8168 }
8169
8170
8171 SWIGINTERN PyObject *_wrap_Cursor_SetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8172 PyObject *resultobj = 0;
8173 wxCursor *arg1 = (wxCursor *) 0 ;
8174 int arg2 ;
8175 void *argp1 = 0 ;
8176 int res1 = 0 ;
8177 int val2 ;
8178 int ecode2 = 0 ;
8179 PyObject * obj0 = 0 ;
8180 PyObject * obj1 = 0 ;
8181 char * kwnames[] = {
8182 (char *) "self",(char *) "h", NULL
8183 };
8184
8185 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetHeight",kwnames,&obj0,&obj1)) SWIG_fail;
8186 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8187 if (!SWIG_IsOK(res1)) {
8188 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetHeight" "', expected argument " "1"" of type '" "wxCursor *""'");
8189 }
8190 arg1 = reinterpret_cast< wxCursor * >(argp1);
8191 ecode2 = SWIG_AsVal_int(obj1, &val2);
8192 if (!SWIG_IsOK(ecode2)) {
8193 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetHeight" "', expected argument " "2"" of type '" "int""'");
8194 }
8195 arg2 = static_cast< int >(val2);
8196 {
8197 PyThreadState* __tstate = wxPyBeginAllowThreads();
8198 (arg1)->SetHeight(arg2);
8199 wxPyEndAllowThreads(__tstate);
8200 if (PyErr_Occurred()) SWIG_fail;
8201 }
8202 resultobj = SWIG_Py_Void();
8203 return resultobj;
8204 fail:
8205 return NULL;
8206 }
8207
8208
8209 SWIGINTERN PyObject *_wrap_Cursor_SetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8210 PyObject *resultobj = 0;
8211 wxCursor *arg1 = (wxCursor *) 0 ;
8212 int arg2 ;
8213 void *argp1 = 0 ;
8214 int res1 = 0 ;
8215 int val2 ;
8216 int ecode2 = 0 ;
8217 PyObject * obj0 = 0 ;
8218 PyObject * obj1 = 0 ;
8219 char * kwnames[] = {
8220 (char *) "self",(char *) "d", NULL
8221 };
8222
8223 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetDepth",kwnames,&obj0,&obj1)) SWIG_fail;
8224 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8225 if (!SWIG_IsOK(res1)) {
8226 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetDepth" "', expected argument " "1"" of type '" "wxCursor *""'");
8227 }
8228 arg1 = reinterpret_cast< wxCursor * >(argp1);
8229 ecode2 = SWIG_AsVal_int(obj1, &val2);
8230 if (!SWIG_IsOK(ecode2)) {
8231 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Cursor_SetDepth" "', expected argument " "2"" of type '" "int""'");
8232 }
8233 arg2 = static_cast< int >(val2);
8234 {
8235 PyThreadState* __tstate = wxPyBeginAllowThreads();
8236 (arg1)->SetDepth(arg2);
8237 wxPyEndAllowThreads(__tstate);
8238 if (PyErr_Occurred()) SWIG_fail;
8239 }
8240 resultobj = SWIG_Py_Void();
8241 return resultobj;
8242 fail:
8243 return NULL;
8244 }
8245
8246
8247 SWIGINTERN PyObject *_wrap_Cursor_SetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8248 PyObject *resultobj = 0;
8249 wxCursor *arg1 = (wxCursor *) 0 ;
8250 wxSize *arg2 = 0 ;
8251 void *argp1 = 0 ;
8252 int res1 = 0 ;
8253 wxSize temp2 ;
8254 PyObject * obj0 = 0 ;
8255 PyObject * obj1 = 0 ;
8256 char * kwnames[] = {
8257 (char *) "self",(char *) "size", NULL
8258 };
8259
8260 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Cursor_SetSize",kwnames,&obj0,&obj1)) SWIG_fail;
8261 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxCursor, 0 | 0 );
8262 if (!SWIG_IsOK(res1)) {
8263 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Cursor_SetSize" "', expected argument " "1"" of type '" "wxCursor *""'");
8264 }
8265 arg1 = reinterpret_cast< wxCursor * >(argp1);
8266 {
8267 arg2 = &temp2;
8268 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
8269 }
8270 {
8271 PyThreadState* __tstate = wxPyBeginAllowThreads();
8272 (arg1)->SetSize((wxSize const &)*arg2);
8273 wxPyEndAllowThreads(__tstate);
8274 if (PyErr_Occurred()) SWIG_fail;
8275 }
8276 resultobj = SWIG_Py_Void();
8277 return resultobj;
8278 fail:
8279 return NULL;
8280 }
8281
8282
8283 SWIGINTERN PyObject *Cursor_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8284 PyObject *obj;
8285 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
8286 SWIG_TypeNewClientData(SWIGTYPE_p_wxCursor, SWIG_NewClientData(obj));
8287 return SWIG_Py_Void();
8288 }
8289
8290 SWIGINTERN PyObject *Cursor_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8291 return SWIG_Python_InitShadowInstance(args);
8292 }
8293
8294 SWIGINTERN PyObject *_wrap_new_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8295 PyObject *resultobj = 0;
8296 int arg1 = (int) 0 ;
8297 int arg2 = (int) 0 ;
8298 int arg3 = (int) 0 ;
8299 int arg4 = (int) 0 ;
8300 wxRegion *result = 0 ;
8301 int val1 ;
8302 int ecode1 = 0 ;
8303 int val2 ;
8304 int ecode2 = 0 ;
8305 int val3 ;
8306 int ecode3 = 0 ;
8307 int val4 ;
8308 int ecode4 = 0 ;
8309 PyObject * obj0 = 0 ;
8310 PyObject * obj1 = 0 ;
8311 PyObject * obj2 = 0 ;
8312 PyObject * obj3 = 0 ;
8313 char * kwnames[] = {
8314 (char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8315 };
8316
8317 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_Region",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
8318 if (obj0) {
8319 ecode1 = SWIG_AsVal_int(obj0, &val1);
8320 if (!SWIG_IsOK(ecode1)) {
8321 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Region" "', expected argument " "1"" of type '" "int""'");
8322 }
8323 arg1 = static_cast< int >(val1);
8324 }
8325 if (obj1) {
8326 ecode2 = SWIG_AsVal_int(obj1, &val2);
8327 if (!SWIG_IsOK(ecode2)) {
8328 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Region" "', expected argument " "2"" of type '" "int""'");
8329 }
8330 arg2 = static_cast< int >(val2);
8331 }
8332 if (obj2) {
8333 ecode3 = SWIG_AsVal_int(obj2, &val3);
8334 if (!SWIG_IsOK(ecode3)) {
8335 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Region" "', expected argument " "3"" of type '" "int""'");
8336 }
8337 arg3 = static_cast< int >(val3);
8338 }
8339 if (obj3) {
8340 ecode4 = SWIG_AsVal_int(obj3, &val4);
8341 if (!SWIG_IsOK(ecode4)) {
8342 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Region" "', expected argument " "4"" of type '" "int""'");
8343 }
8344 arg4 = static_cast< int >(val4);
8345 }
8346 {
8347 if (!wxPyCheckForApp()) SWIG_fail;
8348 PyThreadState* __tstate = wxPyBeginAllowThreads();
8349 result = (wxRegion *)new wxRegion(arg1,arg2,arg3,arg4);
8350 wxPyEndAllowThreads(__tstate);
8351 if (PyErr_Occurred()) SWIG_fail;
8352 }
8353 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_NEW | 0 );
8354 return resultobj;
8355 fail:
8356 return NULL;
8357 }
8358
8359
8360 SWIGINTERN PyObject *_wrap_new_RegionFromBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8361 PyObject *resultobj = 0;
8362 wxBitmap *arg1 = 0 ;
8363 wxRegion *result = 0 ;
8364 void *argp1 = 0 ;
8365 int res1 = 0 ;
8366 PyObject * obj0 = 0 ;
8367 char * kwnames[] = {
8368 (char *) "bmp", NULL
8369 };
8370
8371 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionFromBitmap",kwnames,&obj0)) SWIG_fail;
8372 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8373 if (!SWIG_IsOK(res1)) {
8374 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8375 }
8376 if (!argp1) {
8377 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmap" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8378 }
8379 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8380 {
8381 if (!wxPyCheckForApp()) SWIG_fail;
8382 PyThreadState* __tstate = wxPyBeginAllowThreads();
8383 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1);
8384 wxPyEndAllowThreads(__tstate);
8385 if (PyErr_Occurred()) SWIG_fail;
8386 }
8387 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8388 return resultobj;
8389 fail:
8390 return NULL;
8391 }
8392
8393
8394 SWIGINTERN PyObject *_wrap_new_RegionFromBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8395 PyObject *resultobj = 0;
8396 wxBitmap *arg1 = 0 ;
8397 wxColour *arg2 = 0 ;
8398 int arg3 = (int) 0 ;
8399 wxRegion *result = 0 ;
8400 void *argp1 = 0 ;
8401 int res1 = 0 ;
8402 wxColour temp2 ;
8403 int val3 ;
8404 int ecode3 = 0 ;
8405 PyObject * obj0 = 0 ;
8406 PyObject * obj1 = 0 ;
8407 PyObject * obj2 = 0 ;
8408 char * kwnames[] = {
8409 (char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
8410 };
8411
8412 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:new_RegionFromBitmapColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8413 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxBitmap, 0 | 0);
8414 if (!SWIG_IsOK(res1)) {
8415 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8416 }
8417 if (!argp1) {
8418 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionFromBitmapColour" "', expected argument " "1"" of type '" "wxBitmap const &""'");
8419 }
8420 arg1 = reinterpret_cast< wxBitmap * >(argp1);
8421 {
8422 arg2 = &temp2;
8423 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
8424 }
8425 if (obj2) {
8426 ecode3 = SWIG_AsVal_int(obj2, &val3);
8427 if (!SWIG_IsOK(ecode3)) {
8428 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromBitmapColour" "', expected argument " "3"" of type '" "int""'");
8429 }
8430 arg3 = static_cast< int >(val3);
8431 }
8432 {
8433 if (!wxPyCheckForApp()) SWIG_fail;
8434 PyThreadState* __tstate = wxPyBeginAllowThreads();
8435 result = (wxRegion *)new wxRegion((wxBitmap const &)*arg1,(wxColour const &)*arg2,arg3);
8436 wxPyEndAllowThreads(__tstate);
8437 if (PyErr_Occurred()) SWIG_fail;
8438 }
8439 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8440 return resultobj;
8441 fail:
8442 return NULL;
8443 }
8444
8445
8446 SWIGINTERN PyObject *_wrap_new_RegionFromPoints(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8447 PyObject *resultobj = 0;
8448 int arg1 ;
8449 wxPoint *arg2 = (wxPoint *) 0 ;
8450 int arg3 = (int) wxWINDING_RULE ;
8451 wxRegion *result = 0 ;
8452 int val3 ;
8453 int ecode3 = 0 ;
8454 PyObject * obj0 = 0 ;
8455 PyObject * obj1 = 0 ;
8456 char * kwnames[] = {
8457 (char *) "points",(char *) "fillStyle", NULL
8458 };
8459
8460 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_RegionFromPoints",kwnames,&obj0,&obj1)) SWIG_fail;
8461 {
8462 arg2 = wxPoint_LIST_helper(obj0, &arg1);
8463 if (arg2 == NULL) SWIG_fail;
8464 }
8465 if (obj1) {
8466 ecode3 = SWIG_AsVal_int(obj1, &val3);
8467 if (!SWIG_IsOK(ecode3)) {
8468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_RegionFromPoints" "', expected argument " "3"" of type '" "int""'");
8469 }
8470 arg3 = static_cast< int >(val3);
8471 }
8472 {
8473 if (!wxPyCheckForApp()) SWIG_fail;
8474 PyThreadState* __tstate = wxPyBeginAllowThreads();
8475 result = (wxRegion *)new wxRegion(arg1,arg2,arg3);
8476 wxPyEndAllowThreads(__tstate);
8477 if (PyErr_Occurred()) SWIG_fail;
8478 }
8479 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegion, SWIG_POINTER_OWN | 0 );
8480 {
8481 if (arg2) delete [] arg2;
8482 }
8483 return resultobj;
8484 fail:
8485 {
8486 if (arg2) delete [] arg2;
8487 }
8488 return NULL;
8489 }
8490
8491
8492 SWIGINTERN PyObject *_wrap_delete_Region(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8493 PyObject *resultobj = 0;
8494 wxRegion *arg1 = (wxRegion *) 0 ;
8495 void *argp1 = 0 ;
8496 int res1 = 0 ;
8497 PyObject *swig_obj[1] ;
8498
8499 if (!args) SWIG_fail;
8500 swig_obj[0] = args;
8501 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, SWIG_POINTER_DISOWN | 0 );
8502 if (!SWIG_IsOK(res1)) {
8503 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Region" "', expected argument " "1"" of type '" "wxRegion *""'");
8504 }
8505 arg1 = reinterpret_cast< wxRegion * >(argp1);
8506 {
8507 PyThreadState* __tstate = wxPyBeginAllowThreads();
8508 delete arg1;
8509
8510 wxPyEndAllowThreads(__tstate);
8511 if (PyErr_Occurred()) SWIG_fail;
8512 }
8513 resultobj = SWIG_Py_Void();
8514 return resultobj;
8515 fail:
8516 return NULL;
8517 }
8518
8519
8520 SWIGINTERN PyObject *_wrap_Region_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8521 PyObject *resultobj = 0;
8522 wxRegion *arg1 = (wxRegion *) 0 ;
8523 void *argp1 = 0 ;
8524 int res1 = 0 ;
8525 PyObject *swig_obj[1] ;
8526
8527 if (!args) SWIG_fail;
8528 swig_obj[0] = args;
8529 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8530 if (!SWIG_IsOK(res1)) {
8531 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Clear" "', expected argument " "1"" of type '" "wxRegion *""'");
8532 }
8533 arg1 = reinterpret_cast< wxRegion * >(argp1);
8534 {
8535 PyThreadState* __tstate = wxPyBeginAllowThreads();
8536 (arg1)->Clear();
8537 wxPyEndAllowThreads(__tstate);
8538 if (PyErr_Occurred()) SWIG_fail;
8539 }
8540 resultobj = SWIG_Py_Void();
8541 return resultobj;
8542 fail:
8543 return NULL;
8544 }
8545
8546
8547 SWIGINTERN PyObject *_wrap_Region_Offset(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8548 PyObject *resultobj = 0;
8549 wxRegion *arg1 = (wxRegion *) 0 ;
8550 int arg2 ;
8551 int arg3 ;
8552 bool result;
8553 void *argp1 = 0 ;
8554 int res1 = 0 ;
8555 int val2 ;
8556 int ecode2 = 0 ;
8557 int val3 ;
8558 int ecode3 = 0 ;
8559 PyObject * obj0 = 0 ;
8560 PyObject * obj1 = 0 ;
8561 PyObject * obj2 = 0 ;
8562 char * kwnames[] = {
8563 (char *) "self",(char *) "x",(char *) "y", NULL
8564 };
8565
8566 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Offset",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
8567 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8568 if (!SWIG_IsOK(res1)) {
8569 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Offset" "', expected argument " "1"" of type '" "wxRegion *""'");
8570 }
8571 arg1 = reinterpret_cast< wxRegion * >(argp1);
8572 ecode2 = SWIG_AsVal_int(obj1, &val2);
8573 if (!SWIG_IsOK(ecode2)) {
8574 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Offset" "', expected argument " "2"" of type '" "int""'");
8575 }
8576 arg2 = static_cast< int >(val2);
8577 ecode3 = SWIG_AsVal_int(obj2, &val3);
8578 if (!SWIG_IsOK(ecode3)) {
8579 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Offset" "', expected argument " "3"" of type '" "int""'");
8580 }
8581 arg3 = static_cast< int >(val3);
8582 {
8583 PyThreadState* __tstate = wxPyBeginAllowThreads();
8584 result = (bool)(arg1)->Offset(arg2,arg3);
8585 wxPyEndAllowThreads(__tstate);
8586 if (PyErr_Occurred()) SWIG_fail;
8587 }
8588 {
8589 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8590 }
8591 return resultobj;
8592 fail:
8593 return NULL;
8594 }
8595
8596
8597 SWIGINTERN PyObject *_wrap_Region_Contains(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8598 PyObject *resultobj = 0;
8599 wxRegion *arg1 = (wxRegion *) 0 ;
8600 int arg2 ;
8601 int arg3 ;
8602 wxRegionContain result;
8603 void *argp1 = 0 ;
8604 int res1 = 0 ;
8605 int val2 ;
8606 int ecode2 = 0 ;
8607 int val3 ;
8608 int ecode3 = 0 ;
8609 PyObject * obj0 = 0 ;
8610 PyObject * obj1 = 0 ;
8611 PyObject * obj2 = 0 ;
8612 char * kwnames[] = {
8613 (char *) "self",(char *) "x",(char *) "y", NULL
8614 };
8615
8616 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Region_Contains",kwnames,&obj0,&obj1,&obj2)) 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_Contains" "', expected argument " "1"" of type '" "wxRegion *""'");
8620 }
8621 arg1 = reinterpret_cast< wxRegion * >(argp1);
8622 ecode2 = SWIG_AsVal_int(obj1, &val2);
8623 if (!SWIG_IsOK(ecode2)) {
8624 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Contains" "', expected argument " "2"" of type '" "int""'");
8625 }
8626 arg2 = static_cast< int >(val2);
8627 ecode3 = SWIG_AsVal_int(obj2, &val3);
8628 if (!SWIG_IsOK(ecode3)) {
8629 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Contains" "', expected argument " "3"" of type '" "int""'");
8630 }
8631 arg3 = static_cast< int >(val3);
8632 {
8633 PyThreadState* __tstate = wxPyBeginAllowThreads();
8634 result = (wxRegionContain)(arg1)->Contains(arg2,arg3);
8635 wxPyEndAllowThreads(__tstate);
8636 if (PyErr_Occurred()) SWIG_fail;
8637 }
8638 resultobj = SWIG_From_int(static_cast< int >(result));
8639 return resultobj;
8640 fail:
8641 return NULL;
8642 }
8643
8644
8645 SWIGINTERN PyObject *_wrap_Region_ContainsPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8646 PyObject *resultobj = 0;
8647 wxRegion *arg1 = (wxRegion *) 0 ;
8648 wxPoint *arg2 = 0 ;
8649 wxRegionContain result;
8650 void *argp1 = 0 ;
8651 int res1 = 0 ;
8652 wxPoint temp2 ;
8653 PyObject * obj0 = 0 ;
8654 PyObject * obj1 = 0 ;
8655 char * kwnames[] = {
8656 (char *) "self",(char *) "pt", NULL
8657 };
8658
8659 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsPoint",kwnames,&obj0,&obj1)) SWIG_fail;
8660 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8661 if (!SWIG_IsOK(res1)) {
8662 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsPoint" "', expected argument " "1"" of type '" "wxRegion *""'");
8663 }
8664 arg1 = reinterpret_cast< wxRegion * >(argp1);
8665 {
8666 arg2 = &temp2;
8667 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
8668 }
8669 {
8670 PyThreadState* __tstate = wxPyBeginAllowThreads();
8671 result = (wxRegionContain)(arg1)->Contains((wxPoint const &)*arg2);
8672 wxPyEndAllowThreads(__tstate);
8673 if (PyErr_Occurred()) SWIG_fail;
8674 }
8675 resultobj = SWIG_From_int(static_cast< int >(result));
8676 return resultobj;
8677 fail:
8678 return NULL;
8679 }
8680
8681
8682 SWIGINTERN PyObject *_wrap_Region_ContainsRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8683 PyObject *resultobj = 0;
8684 wxRegion *arg1 = (wxRegion *) 0 ;
8685 wxRect *arg2 = 0 ;
8686 wxRegionContain result;
8687 void *argp1 = 0 ;
8688 int res1 = 0 ;
8689 wxRect temp2 ;
8690 PyObject * obj0 = 0 ;
8691 PyObject * obj1 = 0 ;
8692 char * kwnames[] = {
8693 (char *) "self",(char *) "rect", NULL
8694 };
8695
8696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_ContainsRect",kwnames,&obj0,&obj1)) SWIG_fail;
8697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8698 if (!SWIG_IsOK(res1)) {
8699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8700 }
8701 arg1 = reinterpret_cast< wxRegion * >(argp1);
8702 {
8703 arg2 = &temp2;
8704 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8705 }
8706 {
8707 PyThreadState* __tstate = wxPyBeginAllowThreads();
8708 result = (wxRegionContain)(arg1)->Contains((wxRect const &)*arg2);
8709 wxPyEndAllowThreads(__tstate);
8710 if (PyErr_Occurred()) SWIG_fail;
8711 }
8712 resultobj = SWIG_From_int(static_cast< int >(result));
8713 return resultobj;
8714 fail:
8715 return NULL;
8716 }
8717
8718
8719 SWIGINTERN PyObject *_wrap_Region_ContainsRectDim(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8720 PyObject *resultobj = 0;
8721 wxRegion *arg1 = (wxRegion *) 0 ;
8722 int arg2 ;
8723 int arg3 ;
8724 int arg4 ;
8725 int arg5 ;
8726 wxRegionContain result;
8727 void *argp1 = 0 ;
8728 int res1 = 0 ;
8729 int val2 ;
8730 int ecode2 = 0 ;
8731 int val3 ;
8732 int ecode3 = 0 ;
8733 int val4 ;
8734 int ecode4 = 0 ;
8735 int val5 ;
8736 int ecode5 = 0 ;
8737 PyObject * obj0 = 0 ;
8738 PyObject * obj1 = 0 ;
8739 PyObject * obj2 = 0 ;
8740 PyObject * obj3 = 0 ;
8741 PyObject * obj4 = 0 ;
8742 char * kwnames[] = {
8743 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h", NULL
8744 };
8745
8746 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_ContainsRectDim",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8747 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8748 if (!SWIG_IsOK(res1)) {
8749 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ContainsRectDim" "', expected argument " "1"" of type '" "wxRegion *""'");
8750 }
8751 arg1 = reinterpret_cast< wxRegion * >(argp1);
8752 ecode2 = SWIG_AsVal_int(obj1, &val2);
8753 if (!SWIG_IsOK(ecode2)) {
8754 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_ContainsRectDim" "', expected argument " "2"" of type '" "int""'");
8755 }
8756 arg2 = static_cast< int >(val2);
8757 ecode3 = SWIG_AsVal_int(obj2, &val3);
8758 if (!SWIG_IsOK(ecode3)) {
8759 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_ContainsRectDim" "', expected argument " "3"" of type '" "int""'");
8760 }
8761 arg3 = static_cast< int >(val3);
8762 ecode4 = SWIG_AsVal_int(obj3, &val4);
8763 if (!SWIG_IsOK(ecode4)) {
8764 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_ContainsRectDim" "', expected argument " "4"" of type '" "int""'");
8765 }
8766 arg4 = static_cast< int >(val4);
8767 ecode5 = SWIG_AsVal_int(obj4, &val5);
8768 if (!SWIG_IsOK(ecode5)) {
8769 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_ContainsRectDim" "', expected argument " "5"" of type '" "int""'");
8770 }
8771 arg5 = static_cast< int >(val5);
8772 {
8773 PyThreadState* __tstate = wxPyBeginAllowThreads();
8774 result = (wxRegionContain)(arg1)->Contains(arg2,arg3,arg4,arg5);
8775 wxPyEndAllowThreads(__tstate);
8776 if (PyErr_Occurred()) SWIG_fail;
8777 }
8778 resultobj = SWIG_From_int(static_cast< int >(result));
8779 return resultobj;
8780 fail:
8781 return NULL;
8782 }
8783
8784
8785 SWIGINTERN PyObject *_wrap_Region_GetBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8786 PyObject *resultobj = 0;
8787 wxRegion *arg1 = (wxRegion *) 0 ;
8788 wxRect result;
8789 void *argp1 = 0 ;
8790 int res1 = 0 ;
8791 PyObject *swig_obj[1] ;
8792
8793 if (!args) SWIG_fail;
8794 swig_obj[0] = args;
8795 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8796 if (!SWIG_IsOK(res1)) {
8797 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_GetBox" "', expected argument " "1"" of type '" "wxRegion *""'");
8798 }
8799 arg1 = reinterpret_cast< wxRegion * >(argp1);
8800 {
8801 PyThreadState* __tstate = wxPyBeginAllowThreads();
8802 result = (arg1)->GetBox();
8803 wxPyEndAllowThreads(__tstate);
8804 if (PyErr_Occurred()) SWIG_fail;
8805 }
8806 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
8807 return resultobj;
8808 fail:
8809 return NULL;
8810 }
8811
8812
8813 SWIGINTERN PyObject *_wrap_Region_Intersect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8814 PyObject *resultobj = 0;
8815 wxRegion *arg1 = (wxRegion *) 0 ;
8816 int arg2 ;
8817 int arg3 ;
8818 int arg4 ;
8819 int arg5 ;
8820 bool result;
8821 void *argp1 = 0 ;
8822 int res1 = 0 ;
8823 int val2 ;
8824 int ecode2 = 0 ;
8825 int val3 ;
8826 int ecode3 = 0 ;
8827 int val4 ;
8828 int ecode4 = 0 ;
8829 int val5 ;
8830 int ecode5 = 0 ;
8831 PyObject * obj0 = 0 ;
8832 PyObject * obj1 = 0 ;
8833 PyObject * obj2 = 0 ;
8834 PyObject * obj3 = 0 ;
8835 PyObject * obj4 = 0 ;
8836 char * kwnames[] = {
8837 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
8838 };
8839
8840 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Intersect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
8841 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8842 if (!SWIG_IsOK(res1)) {
8843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Intersect" "', expected argument " "1"" of type '" "wxRegion *""'");
8844 }
8845 arg1 = reinterpret_cast< wxRegion * >(argp1);
8846 ecode2 = SWIG_AsVal_int(obj1, &val2);
8847 if (!SWIG_IsOK(ecode2)) {
8848 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Intersect" "', expected argument " "2"" of type '" "int""'");
8849 }
8850 arg2 = static_cast< int >(val2);
8851 ecode3 = SWIG_AsVal_int(obj2, &val3);
8852 if (!SWIG_IsOK(ecode3)) {
8853 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Intersect" "', expected argument " "3"" of type '" "int""'");
8854 }
8855 arg3 = static_cast< int >(val3);
8856 ecode4 = SWIG_AsVal_int(obj3, &val4);
8857 if (!SWIG_IsOK(ecode4)) {
8858 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Intersect" "', expected argument " "4"" of type '" "int""'");
8859 }
8860 arg4 = static_cast< int >(val4);
8861 ecode5 = SWIG_AsVal_int(obj4, &val5);
8862 if (!SWIG_IsOK(ecode5)) {
8863 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Intersect" "', expected argument " "5"" of type '" "int""'");
8864 }
8865 arg5 = static_cast< int >(val5);
8866 {
8867 PyThreadState* __tstate = wxPyBeginAllowThreads();
8868 result = (bool)(arg1)->Intersect(arg2,arg3,arg4,arg5);
8869 wxPyEndAllowThreads(__tstate);
8870 if (PyErr_Occurred()) SWIG_fail;
8871 }
8872 {
8873 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8874 }
8875 return resultobj;
8876 fail:
8877 return NULL;
8878 }
8879
8880
8881 SWIGINTERN PyObject *_wrap_Region_IntersectRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8882 PyObject *resultobj = 0;
8883 wxRegion *arg1 = (wxRegion *) 0 ;
8884 wxRect *arg2 = 0 ;
8885 bool result;
8886 void *argp1 = 0 ;
8887 int res1 = 0 ;
8888 wxRect temp2 ;
8889 PyObject * obj0 = 0 ;
8890 PyObject * obj1 = 0 ;
8891 char * kwnames[] = {
8892 (char *) "self",(char *) "rect", NULL
8893 };
8894
8895 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRect",kwnames,&obj0,&obj1)) SWIG_fail;
8896 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8897 if (!SWIG_IsOK(res1)) {
8898 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRect" "', expected argument " "1"" of type '" "wxRegion *""'");
8899 }
8900 arg1 = reinterpret_cast< wxRegion * >(argp1);
8901 {
8902 arg2 = &temp2;
8903 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
8904 }
8905 {
8906 PyThreadState* __tstate = wxPyBeginAllowThreads();
8907 result = (bool)(arg1)->Intersect((wxRect const &)*arg2);
8908 wxPyEndAllowThreads(__tstate);
8909 if (PyErr_Occurred()) SWIG_fail;
8910 }
8911 {
8912 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8913 }
8914 return resultobj;
8915 fail:
8916 return NULL;
8917 }
8918
8919
8920 SWIGINTERN PyObject *_wrap_Region_IntersectRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8921 PyObject *resultobj = 0;
8922 wxRegion *arg1 = (wxRegion *) 0 ;
8923 wxRegion *arg2 = 0 ;
8924 bool result;
8925 void *argp1 = 0 ;
8926 int res1 = 0 ;
8927 void *argp2 = 0 ;
8928 int res2 = 0 ;
8929 PyObject * obj0 = 0 ;
8930 PyObject * obj1 = 0 ;
8931 char * kwnames[] = {
8932 (char *) "self",(char *) "region", NULL
8933 };
8934
8935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_IntersectRegion",kwnames,&obj0,&obj1)) SWIG_fail;
8936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8937 if (!SWIG_IsOK(res1)) {
8938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IntersectRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
8939 }
8940 arg1 = reinterpret_cast< wxRegion * >(argp1);
8941 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
8942 if (!SWIG_IsOK(res2)) {
8943 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8944 }
8945 if (!argp2) {
8946 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_IntersectRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
8947 }
8948 arg2 = reinterpret_cast< wxRegion * >(argp2);
8949 {
8950 PyThreadState* __tstate = wxPyBeginAllowThreads();
8951 result = (bool)(arg1)->Intersect((wxRegion const &)*arg2);
8952 wxPyEndAllowThreads(__tstate);
8953 if (PyErr_Occurred()) SWIG_fail;
8954 }
8955 {
8956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8957 }
8958 return resultobj;
8959 fail:
8960 return NULL;
8961 }
8962
8963
8964 SWIGINTERN PyObject *_wrap_Region_IsEmpty(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
8965 PyObject *resultobj = 0;
8966 wxRegion *arg1 = (wxRegion *) 0 ;
8967 bool result;
8968 void *argp1 = 0 ;
8969 int res1 = 0 ;
8970 PyObject *swig_obj[1] ;
8971
8972 if (!args) SWIG_fail;
8973 swig_obj[0] = args;
8974 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
8975 if (!SWIG_IsOK(res1)) {
8976 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_IsEmpty" "', expected argument " "1"" of type '" "wxRegion *""'");
8977 }
8978 arg1 = reinterpret_cast< wxRegion * >(argp1);
8979 {
8980 PyThreadState* __tstate = wxPyBeginAllowThreads();
8981 result = (bool)(arg1)->IsEmpty();
8982 wxPyEndAllowThreads(__tstate);
8983 if (PyErr_Occurred()) SWIG_fail;
8984 }
8985 {
8986 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
8987 }
8988 return resultobj;
8989 fail:
8990 return NULL;
8991 }
8992
8993
8994 SWIGINTERN PyObject *_wrap_Region_Union(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
8995 PyObject *resultobj = 0;
8996 wxRegion *arg1 = (wxRegion *) 0 ;
8997 int arg2 ;
8998 int arg3 ;
8999 int arg4 ;
9000 int arg5 ;
9001 bool result;
9002 void *argp1 = 0 ;
9003 int res1 = 0 ;
9004 int val2 ;
9005 int ecode2 = 0 ;
9006 int val3 ;
9007 int ecode3 = 0 ;
9008 int val4 ;
9009 int ecode4 = 0 ;
9010 int val5 ;
9011 int ecode5 = 0 ;
9012 PyObject * obj0 = 0 ;
9013 PyObject * obj1 = 0 ;
9014 PyObject * obj2 = 0 ;
9015 PyObject * obj3 = 0 ;
9016 PyObject * obj4 = 0 ;
9017 char * kwnames[] = {
9018 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9019 };
9020
9021 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Union",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9022 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9023 if (!SWIG_IsOK(res1)) {
9024 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Union" "', expected argument " "1"" of type '" "wxRegion *""'");
9025 }
9026 arg1 = reinterpret_cast< wxRegion * >(argp1);
9027 ecode2 = SWIG_AsVal_int(obj1, &val2);
9028 if (!SWIG_IsOK(ecode2)) {
9029 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Union" "', expected argument " "2"" of type '" "int""'");
9030 }
9031 arg2 = static_cast< int >(val2);
9032 ecode3 = SWIG_AsVal_int(obj2, &val3);
9033 if (!SWIG_IsOK(ecode3)) {
9034 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Union" "', expected argument " "3"" of type '" "int""'");
9035 }
9036 arg3 = static_cast< int >(val3);
9037 ecode4 = SWIG_AsVal_int(obj3, &val4);
9038 if (!SWIG_IsOK(ecode4)) {
9039 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Union" "', expected argument " "4"" of type '" "int""'");
9040 }
9041 arg4 = static_cast< int >(val4);
9042 ecode5 = SWIG_AsVal_int(obj4, &val5);
9043 if (!SWIG_IsOK(ecode5)) {
9044 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Union" "', expected argument " "5"" of type '" "int""'");
9045 }
9046 arg5 = static_cast< int >(val5);
9047 {
9048 PyThreadState* __tstate = wxPyBeginAllowThreads();
9049 result = (bool)(arg1)->Union(arg2,arg3,arg4,arg5);
9050 wxPyEndAllowThreads(__tstate);
9051 if (PyErr_Occurred()) SWIG_fail;
9052 }
9053 {
9054 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9055 }
9056 return resultobj;
9057 fail:
9058 return NULL;
9059 }
9060
9061
9062 SWIGINTERN PyObject *_wrap_Region_UnionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9063 PyObject *resultobj = 0;
9064 wxRegion *arg1 = (wxRegion *) 0 ;
9065 wxRect *arg2 = 0 ;
9066 bool result;
9067 void *argp1 = 0 ;
9068 int res1 = 0 ;
9069 wxRect temp2 ;
9070 PyObject * obj0 = 0 ;
9071 PyObject * obj1 = 0 ;
9072 char * kwnames[] = {
9073 (char *) "self",(char *) "rect", NULL
9074 };
9075
9076 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRect",kwnames,&obj0,&obj1)) SWIG_fail;
9077 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9078 if (!SWIG_IsOK(res1)) {
9079 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9080 }
9081 arg1 = reinterpret_cast< wxRegion * >(argp1);
9082 {
9083 arg2 = &temp2;
9084 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9085 }
9086 {
9087 PyThreadState* __tstate = wxPyBeginAllowThreads();
9088 result = (bool)(arg1)->Union((wxRect const &)*arg2);
9089 wxPyEndAllowThreads(__tstate);
9090 if (PyErr_Occurred()) SWIG_fail;
9091 }
9092 {
9093 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9094 }
9095 return resultobj;
9096 fail:
9097 return NULL;
9098 }
9099
9100
9101 SWIGINTERN PyObject *_wrap_Region_UnionRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9102 PyObject *resultobj = 0;
9103 wxRegion *arg1 = (wxRegion *) 0 ;
9104 wxRegion *arg2 = 0 ;
9105 bool result;
9106 void *argp1 = 0 ;
9107 int res1 = 0 ;
9108 void *argp2 = 0 ;
9109 int res2 = 0 ;
9110 PyObject * obj0 = 0 ;
9111 PyObject * obj1 = 0 ;
9112 char * kwnames[] = {
9113 (char *) "self",(char *) "region", NULL
9114 };
9115
9116 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9117 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9118 if (!SWIG_IsOK(res1)) {
9119 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9120 }
9121 arg1 = reinterpret_cast< wxRegion * >(argp1);
9122 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9123 if (!SWIG_IsOK(res2)) {
9124 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9125 }
9126 if (!argp2) {
9127 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9128 }
9129 arg2 = reinterpret_cast< wxRegion * >(argp2);
9130 {
9131 PyThreadState* __tstate = wxPyBeginAllowThreads();
9132 result = (bool)(arg1)->Union((wxRegion const &)*arg2);
9133 wxPyEndAllowThreads(__tstate);
9134 if (PyErr_Occurred()) SWIG_fail;
9135 }
9136 {
9137 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9138 }
9139 return resultobj;
9140 fail:
9141 return NULL;
9142 }
9143
9144
9145 SWIGINTERN PyObject *_wrap_Region_Subtract(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9146 PyObject *resultobj = 0;
9147 wxRegion *arg1 = (wxRegion *) 0 ;
9148 int arg2 ;
9149 int arg3 ;
9150 int arg4 ;
9151 int arg5 ;
9152 bool result;
9153 void *argp1 = 0 ;
9154 int res1 = 0 ;
9155 int val2 ;
9156 int ecode2 = 0 ;
9157 int val3 ;
9158 int ecode3 = 0 ;
9159 int val4 ;
9160 int ecode4 = 0 ;
9161 int val5 ;
9162 int ecode5 = 0 ;
9163 PyObject * obj0 = 0 ;
9164 PyObject * obj1 = 0 ;
9165 PyObject * obj2 = 0 ;
9166 PyObject * obj3 = 0 ;
9167 PyObject * obj4 = 0 ;
9168 char * kwnames[] = {
9169 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9170 };
9171
9172 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Subtract",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9173 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9174 if (!SWIG_IsOK(res1)) {
9175 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Subtract" "', expected argument " "1"" of type '" "wxRegion *""'");
9176 }
9177 arg1 = reinterpret_cast< wxRegion * >(argp1);
9178 ecode2 = SWIG_AsVal_int(obj1, &val2);
9179 if (!SWIG_IsOK(ecode2)) {
9180 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Subtract" "', expected argument " "2"" of type '" "int""'");
9181 }
9182 arg2 = static_cast< int >(val2);
9183 ecode3 = SWIG_AsVal_int(obj2, &val3);
9184 if (!SWIG_IsOK(ecode3)) {
9185 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Subtract" "', expected argument " "3"" of type '" "int""'");
9186 }
9187 arg3 = static_cast< int >(val3);
9188 ecode4 = SWIG_AsVal_int(obj3, &val4);
9189 if (!SWIG_IsOK(ecode4)) {
9190 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Subtract" "', expected argument " "4"" of type '" "int""'");
9191 }
9192 arg4 = static_cast< int >(val4);
9193 ecode5 = SWIG_AsVal_int(obj4, &val5);
9194 if (!SWIG_IsOK(ecode5)) {
9195 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Subtract" "', expected argument " "5"" of type '" "int""'");
9196 }
9197 arg5 = static_cast< int >(val5);
9198 {
9199 PyThreadState* __tstate = wxPyBeginAllowThreads();
9200 result = (bool)(arg1)->Subtract(arg2,arg3,arg4,arg5);
9201 wxPyEndAllowThreads(__tstate);
9202 if (PyErr_Occurred()) SWIG_fail;
9203 }
9204 {
9205 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9206 }
9207 return resultobj;
9208 fail:
9209 return NULL;
9210 }
9211
9212
9213 SWIGINTERN PyObject *_wrap_Region_SubtractRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9214 PyObject *resultobj = 0;
9215 wxRegion *arg1 = (wxRegion *) 0 ;
9216 wxRect *arg2 = 0 ;
9217 bool result;
9218 void *argp1 = 0 ;
9219 int res1 = 0 ;
9220 wxRect temp2 ;
9221 PyObject * obj0 = 0 ;
9222 PyObject * obj1 = 0 ;
9223 char * kwnames[] = {
9224 (char *) "self",(char *) "rect", NULL
9225 };
9226
9227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRect",kwnames,&obj0,&obj1)) SWIG_fail;
9228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9229 if (!SWIG_IsOK(res1)) {
9230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9231 }
9232 arg1 = reinterpret_cast< wxRegion * >(argp1);
9233 {
9234 arg2 = &temp2;
9235 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9236 }
9237 {
9238 PyThreadState* __tstate = wxPyBeginAllowThreads();
9239 result = (bool)(arg1)->Subtract((wxRect const &)*arg2);
9240 wxPyEndAllowThreads(__tstate);
9241 if (PyErr_Occurred()) SWIG_fail;
9242 }
9243 {
9244 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9245 }
9246 return resultobj;
9247 fail:
9248 return NULL;
9249 }
9250
9251
9252 SWIGINTERN PyObject *_wrap_Region_SubtractRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9253 PyObject *resultobj = 0;
9254 wxRegion *arg1 = (wxRegion *) 0 ;
9255 wxRegion *arg2 = 0 ;
9256 bool result;
9257 void *argp1 = 0 ;
9258 int res1 = 0 ;
9259 void *argp2 = 0 ;
9260 int res2 = 0 ;
9261 PyObject * obj0 = 0 ;
9262 PyObject * obj1 = 0 ;
9263 char * kwnames[] = {
9264 (char *) "self",(char *) "region", NULL
9265 };
9266
9267 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_SubtractRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9268 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9269 if (!SWIG_IsOK(res1)) {
9270 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_SubtractRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9271 }
9272 arg1 = reinterpret_cast< wxRegion * >(argp1);
9273 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9274 if (!SWIG_IsOK(res2)) {
9275 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9276 }
9277 if (!argp2) {
9278 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_SubtractRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9279 }
9280 arg2 = reinterpret_cast< wxRegion * >(argp2);
9281 {
9282 PyThreadState* __tstate = wxPyBeginAllowThreads();
9283 result = (bool)(arg1)->Subtract((wxRegion const &)*arg2);
9284 wxPyEndAllowThreads(__tstate);
9285 if (PyErr_Occurred()) SWIG_fail;
9286 }
9287 {
9288 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9289 }
9290 return resultobj;
9291 fail:
9292 return NULL;
9293 }
9294
9295
9296 SWIGINTERN PyObject *_wrap_Region_Xor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9297 PyObject *resultobj = 0;
9298 wxRegion *arg1 = (wxRegion *) 0 ;
9299 int arg2 ;
9300 int arg3 ;
9301 int arg4 ;
9302 int arg5 ;
9303 bool result;
9304 void *argp1 = 0 ;
9305 int res1 = 0 ;
9306 int val2 ;
9307 int ecode2 = 0 ;
9308 int val3 ;
9309 int ecode3 = 0 ;
9310 int val4 ;
9311 int ecode4 = 0 ;
9312 int val5 ;
9313 int ecode5 = 0 ;
9314 PyObject * obj0 = 0 ;
9315 PyObject * obj1 = 0 ;
9316 PyObject * obj2 = 0 ;
9317 PyObject * obj3 = 0 ;
9318 PyObject * obj4 = 0 ;
9319 char * kwnames[] = {
9320 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
9321 };
9322
9323 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:Region_Xor",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
9324 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9325 if (!SWIG_IsOK(res1)) {
9326 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_Xor" "', expected argument " "1"" of type '" "wxRegion *""'");
9327 }
9328 arg1 = reinterpret_cast< wxRegion * >(argp1);
9329 ecode2 = SWIG_AsVal_int(obj1, &val2);
9330 if (!SWIG_IsOK(ecode2)) {
9331 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Region_Xor" "', expected argument " "2"" of type '" "int""'");
9332 }
9333 arg2 = static_cast< int >(val2);
9334 ecode3 = SWIG_AsVal_int(obj2, &val3);
9335 if (!SWIG_IsOK(ecode3)) {
9336 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Region_Xor" "', expected argument " "3"" of type '" "int""'");
9337 }
9338 arg3 = static_cast< int >(val3);
9339 ecode4 = SWIG_AsVal_int(obj3, &val4);
9340 if (!SWIG_IsOK(ecode4)) {
9341 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_Xor" "', expected argument " "4"" of type '" "int""'");
9342 }
9343 arg4 = static_cast< int >(val4);
9344 ecode5 = SWIG_AsVal_int(obj4, &val5);
9345 if (!SWIG_IsOK(ecode5)) {
9346 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Region_Xor" "', expected argument " "5"" of type '" "int""'");
9347 }
9348 arg5 = static_cast< int >(val5);
9349 {
9350 PyThreadState* __tstate = wxPyBeginAllowThreads();
9351 result = (bool)(arg1)->Xor(arg2,arg3,arg4,arg5);
9352 wxPyEndAllowThreads(__tstate);
9353 if (PyErr_Occurred()) SWIG_fail;
9354 }
9355 {
9356 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9357 }
9358 return resultobj;
9359 fail:
9360 return NULL;
9361 }
9362
9363
9364 SWIGINTERN PyObject *_wrap_Region_XorRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9365 PyObject *resultobj = 0;
9366 wxRegion *arg1 = (wxRegion *) 0 ;
9367 wxRect *arg2 = 0 ;
9368 bool result;
9369 void *argp1 = 0 ;
9370 int res1 = 0 ;
9371 wxRect temp2 ;
9372 PyObject * obj0 = 0 ;
9373 PyObject * obj1 = 0 ;
9374 char * kwnames[] = {
9375 (char *) "self",(char *) "rect", NULL
9376 };
9377
9378 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRect",kwnames,&obj0,&obj1)) SWIG_fail;
9379 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9380 if (!SWIG_IsOK(res1)) {
9381 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRect" "', expected argument " "1"" of type '" "wxRegion *""'");
9382 }
9383 arg1 = reinterpret_cast< wxRegion * >(argp1);
9384 {
9385 arg2 = &temp2;
9386 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
9387 }
9388 {
9389 PyThreadState* __tstate = wxPyBeginAllowThreads();
9390 result = (bool)(arg1)->Xor((wxRect const &)*arg2);
9391 wxPyEndAllowThreads(__tstate);
9392 if (PyErr_Occurred()) SWIG_fail;
9393 }
9394 {
9395 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9396 }
9397 return resultobj;
9398 fail:
9399 return NULL;
9400 }
9401
9402
9403 SWIGINTERN PyObject *_wrap_Region_XorRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9404 PyObject *resultobj = 0;
9405 wxRegion *arg1 = (wxRegion *) 0 ;
9406 wxRegion *arg2 = 0 ;
9407 bool result;
9408 void *argp1 = 0 ;
9409 int res1 = 0 ;
9410 void *argp2 = 0 ;
9411 int res2 = 0 ;
9412 PyObject * obj0 = 0 ;
9413 PyObject * obj1 = 0 ;
9414 char * kwnames[] = {
9415 (char *) "self",(char *) "region", NULL
9416 };
9417
9418 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_XorRegion",kwnames,&obj0,&obj1)) SWIG_fail;
9419 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9420 if (!SWIG_IsOK(res1)) {
9421 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_XorRegion" "', expected argument " "1"" of type '" "wxRegion *""'");
9422 }
9423 arg1 = reinterpret_cast< wxRegion * >(argp1);
9424 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
9425 if (!SWIG_IsOK(res2)) {
9426 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9427 }
9428 if (!argp2) {
9429 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_XorRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
9430 }
9431 arg2 = reinterpret_cast< wxRegion * >(argp2);
9432 {
9433 PyThreadState* __tstate = wxPyBeginAllowThreads();
9434 result = (bool)(arg1)->Xor((wxRegion const &)*arg2);
9435 wxPyEndAllowThreads(__tstate);
9436 if (PyErr_Occurred()) SWIG_fail;
9437 }
9438 {
9439 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9440 }
9441 return resultobj;
9442 fail:
9443 return NULL;
9444 }
9445
9446
9447 SWIGINTERN PyObject *_wrap_Region_ConvertToBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9448 PyObject *resultobj = 0;
9449 wxRegion *arg1 = (wxRegion *) 0 ;
9450 SwigValueWrapper<wxBitmap > result;
9451 void *argp1 = 0 ;
9452 int res1 = 0 ;
9453 PyObject *swig_obj[1] ;
9454
9455 if (!args) SWIG_fail;
9456 swig_obj[0] = args;
9457 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9458 if (!SWIG_IsOK(res1)) {
9459 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_ConvertToBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9460 }
9461 arg1 = reinterpret_cast< wxRegion * >(argp1);
9462 {
9463 PyThreadState* __tstate = wxPyBeginAllowThreads();
9464 result = (arg1)->ConvertToBitmap();
9465 wxPyEndAllowThreads(__tstate);
9466 if (PyErr_Occurred()) SWIG_fail;
9467 }
9468 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
9469 return resultobj;
9470 fail:
9471 return NULL;
9472 }
9473
9474
9475 SWIGINTERN PyObject *_wrap_Region_UnionBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9476 PyObject *resultobj = 0;
9477 wxRegion *arg1 = (wxRegion *) 0 ;
9478 wxBitmap *arg2 = 0 ;
9479 bool result;
9480 void *argp1 = 0 ;
9481 int res1 = 0 ;
9482 void *argp2 = 0 ;
9483 int res2 = 0 ;
9484 PyObject * obj0 = 0 ;
9485 PyObject * obj1 = 0 ;
9486 char * kwnames[] = {
9487 (char *) "self",(char *) "bmp", NULL
9488 };
9489
9490 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Region_UnionBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
9491 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9492 if (!SWIG_IsOK(res1)) {
9493 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmap" "', expected argument " "1"" of type '" "wxRegion *""'");
9494 }
9495 arg1 = reinterpret_cast< wxRegion * >(argp1);
9496 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9497 if (!SWIG_IsOK(res2)) {
9498 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9499 }
9500 if (!argp2) {
9501 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9502 }
9503 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9504 {
9505 PyThreadState* __tstate = wxPyBeginAllowThreads();
9506 result = (bool)(arg1)->Union((wxBitmap const &)*arg2);
9507 wxPyEndAllowThreads(__tstate);
9508 if (PyErr_Occurred()) SWIG_fail;
9509 }
9510 {
9511 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9512 }
9513 return resultobj;
9514 fail:
9515 return NULL;
9516 }
9517
9518
9519 SWIGINTERN PyObject *_wrap_Region_UnionBitmapColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9520 PyObject *resultobj = 0;
9521 wxRegion *arg1 = (wxRegion *) 0 ;
9522 wxBitmap *arg2 = 0 ;
9523 wxColour *arg3 = 0 ;
9524 int arg4 = (int) 0 ;
9525 bool result;
9526 void *argp1 = 0 ;
9527 int res1 = 0 ;
9528 void *argp2 = 0 ;
9529 int res2 = 0 ;
9530 wxColour temp3 ;
9531 int val4 ;
9532 int ecode4 = 0 ;
9533 PyObject * obj0 = 0 ;
9534 PyObject * obj1 = 0 ;
9535 PyObject * obj2 = 0 ;
9536 PyObject * obj3 = 0 ;
9537 char * kwnames[] = {
9538 (char *) "self",(char *) "bmp",(char *) "transColour",(char *) "tolerance", NULL
9539 };
9540
9541 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Region_UnionBitmapColour",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
9542 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRegion, 0 | 0 );
9543 if (!SWIG_IsOK(res1)) {
9544 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Region_UnionBitmapColour" "', expected argument " "1"" of type '" "wxRegion *""'");
9545 }
9546 arg1 = reinterpret_cast< wxRegion * >(argp1);
9547 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
9548 if (!SWIG_IsOK(res2)) {
9549 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9550 }
9551 if (!argp2) {
9552 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Region_UnionBitmapColour" "', expected argument " "2"" of type '" "wxBitmap const &""'");
9553 }
9554 arg2 = reinterpret_cast< wxBitmap * >(argp2);
9555 {
9556 arg3 = &temp3;
9557 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
9558 }
9559 if (obj3) {
9560 ecode4 = SWIG_AsVal_int(obj3, &val4);
9561 if (!SWIG_IsOK(ecode4)) {
9562 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Region_UnionBitmapColour" "', expected argument " "4"" of type '" "int""'");
9563 }
9564 arg4 = static_cast< int >(val4);
9565 }
9566 {
9567 PyThreadState* __tstate = wxPyBeginAllowThreads();
9568 result = (bool)(arg1)->Union((wxBitmap const &)*arg2,(wxColour const &)*arg3,arg4);
9569 wxPyEndAllowThreads(__tstate);
9570 if (PyErr_Occurred()) SWIG_fail;
9571 }
9572 {
9573 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9574 }
9575 return resultobj;
9576 fail:
9577 return NULL;
9578 }
9579
9580
9581 SWIGINTERN PyObject *Region_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9582 PyObject *obj;
9583 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9584 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegion, SWIG_NewClientData(obj));
9585 return SWIG_Py_Void();
9586 }
9587
9588 SWIGINTERN PyObject *Region_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9589 return SWIG_Python_InitShadowInstance(args);
9590 }
9591
9592 SWIGINTERN PyObject *_wrap_new_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
9593 PyObject *resultobj = 0;
9594 wxRegion *arg1 = 0 ;
9595 wxRegionIterator *result = 0 ;
9596 void *argp1 = 0 ;
9597 int res1 = 0 ;
9598 PyObject * obj0 = 0 ;
9599 char * kwnames[] = {
9600 (char *) "region", NULL
9601 };
9602
9603 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_RegionIterator",kwnames,&obj0)) SWIG_fail;
9604 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRegion, 0 | 0);
9605 if (!SWIG_IsOK(res1)) {
9606 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9607 }
9608 if (!argp1) {
9609 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_RegionIterator" "', expected argument " "1"" of type '" "wxRegion const &""'");
9610 }
9611 arg1 = reinterpret_cast< wxRegion * >(argp1);
9612 {
9613 if (!wxPyCheckForApp()) SWIG_fail;
9614 PyThreadState* __tstate = wxPyBeginAllowThreads();
9615 result = (wxRegionIterator *)new wxRegionIterator((wxRegion const &)*arg1);
9616 wxPyEndAllowThreads(__tstate);
9617 if (PyErr_Occurred()) SWIG_fail;
9618 }
9619 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_NEW | 0 );
9620 return resultobj;
9621 fail:
9622 return NULL;
9623 }
9624
9625
9626 SWIGINTERN PyObject *_wrap_delete_RegionIterator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9627 PyObject *resultobj = 0;
9628 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9629 void *argp1 = 0 ;
9630 int res1 = 0 ;
9631 PyObject *swig_obj[1] ;
9632
9633 if (!args) SWIG_fail;
9634 swig_obj[0] = args;
9635 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, SWIG_POINTER_DISOWN | 0 );
9636 if (!SWIG_IsOK(res1)) {
9637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RegionIterator" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9638 }
9639 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9640 {
9641 PyThreadState* __tstate = wxPyBeginAllowThreads();
9642 delete arg1;
9643
9644 wxPyEndAllowThreads(__tstate);
9645 if (PyErr_Occurred()) SWIG_fail;
9646 }
9647 resultobj = SWIG_Py_Void();
9648 return resultobj;
9649 fail:
9650 return NULL;
9651 }
9652
9653
9654 SWIGINTERN PyObject *_wrap_RegionIterator_GetX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9655 PyObject *resultobj = 0;
9656 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9657 int result;
9658 void *argp1 = 0 ;
9659 int res1 = 0 ;
9660 PyObject *swig_obj[1] ;
9661
9662 if (!args) SWIG_fail;
9663 swig_obj[0] = args;
9664 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9665 if (!SWIG_IsOK(res1)) {
9666 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetX" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9667 }
9668 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9669 {
9670 PyThreadState* __tstate = wxPyBeginAllowThreads();
9671 result = (int)(arg1)->GetX();
9672 wxPyEndAllowThreads(__tstate);
9673 if (PyErr_Occurred()) SWIG_fail;
9674 }
9675 resultobj = SWIG_From_int(static_cast< int >(result));
9676 return resultobj;
9677 fail:
9678 return NULL;
9679 }
9680
9681
9682 SWIGINTERN PyObject *_wrap_RegionIterator_GetY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9683 PyObject *resultobj = 0;
9684 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9685 int result;
9686 void *argp1 = 0 ;
9687 int res1 = 0 ;
9688 PyObject *swig_obj[1] ;
9689
9690 if (!args) SWIG_fail;
9691 swig_obj[0] = args;
9692 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9693 if (!SWIG_IsOK(res1)) {
9694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetY" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9695 }
9696 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9697 {
9698 PyThreadState* __tstate = wxPyBeginAllowThreads();
9699 result = (int)(arg1)->GetY();
9700 wxPyEndAllowThreads(__tstate);
9701 if (PyErr_Occurred()) SWIG_fail;
9702 }
9703 resultobj = SWIG_From_int(static_cast< int >(result));
9704 return resultobj;
9705 fail:
9706 return NULL;
9707 }
9708
9709
9710 SWIGINTERN PyObject *_wrap_RegionIterator_GetW(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9711 PyObject *resultobj = 0;
9712 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9713 int result;
9714 void *argp1 = 0 ;
9715 int res1 = 0 ;
9716 PyObject *swig_obj[1] ;
9717
9718 if (!args) SWIG_fail;
9719 swig_obj[0] = args;
9720 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9721 if (!SWIG_IsOK(res1)) {
9722 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetW" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9723 }
9724 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9725 {
9726 PyThreadState* __tstate = wxPyBeginAllowThreads();
9727 result = (int)(arg1)->GetW();
9728 wxPyEndAllowThreads(__tstate);
9729 if (PyErr_Occurred()) SWIG_fail;
9730 }
9731 resultobj = SWIG_From_int(static_cast< int >(result));
9732 return resultobj;
9733 fail:
9734 return NULL;
9735 }
9736
9737
9738 SWIGINTERN PyObject *_wrap_RegionIterator_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9739 PyObject *resultobj = 0;
9740 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9741 int result;
9742 void *argp1 = 0 ;
9743 int res1 = 0 ;
9744 PyObject *swig_obj[1] ;
9745
9746 if (!args) SWIG_fail;
9747 swig_obj[0] = args;
9748 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9749 if (!SWIG_IsOK(res1)) {
9750 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetWidth" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9751 }
9752 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9753 {
9754 PyThreadState* __tstate = wxPyBeginAllowThreads();
9755 result = (int)(arg1)->GetWidth();
9756 wxPyEndAllowThreads(__tstate);
9757 if (PyErr_Occurred()) SWIG_fail;
9758 }
9759 resultobj = SWIG_From_int(static_cast< int >(result));
9760 return resultobj;
9761 fail:
9762 return NULL;
9763 }
9764
9765
9766 SWIGINTERN PyObject *_wrap_RegionIterator_GetH(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9767 PyObject *resultobj = 0;
9768 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9769 int result;
9770 void *argp1 = 0 ;
9771 int res1 = 0 ;
9772 PyObject *swig_obj[1] ;
9773
9774 if (!args) SWIG_fail;
9775 swig_obj[0] = args;
9776 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9777 if (!SWIG_IsOK(res1)) {
9778 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetH" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9779 }
9780 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9781 {
9782 PyThreadState* __tstate = wxPyBeginAllowThreads();
9783 result = (int)(arg1)->GetH();
9784 wxPyEndAllowThreads(__tstate);
9785 if (PyErr_Occurred()) SWIG_fail;
9786 }
9787 resultobj = SWIG_From_int(static_cast< int >(result));
9788 return resultobj;
9789 fail:
9790 return NULL;
9791 }
9792
9793
9794 SWIGINTERN PyObject *_wrap_RegionIterator_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9795 PyObject *resultobj = 0;
9796 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9797 int result;
9798 void *argp1 = 0 ;
9799 int res1 = 0 ;
9800 PyObject *swig_obj[1] ;
9801
9802 if (!args) SWIG_fail;
9803 swig_obj[0] = args;
9804 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9805 if (!SWIG_IsOK(res1)) {
9806 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetHeight" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9807 }
9808 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9809 {
9810 PyThreadState* __tstate = wxPyBeginAllowThreads();
9811 result = (int)(arg1)->GetHeight();
9812 wxPyEndAllowThreads(__tstate);
9813 if (PyErr_Occurred()) SWIG_fail;
9814 }
9815 resultobj = SWIG_From_int(static_cast< int >(result));
9816 return resultobj;
9817 fail:
9818 return NULL;
9819 }
9820
9821
9822 SWIGINTERN PyObject *_wrap_RegionIterator_GetRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9823 PyObject *resultobj = 0;
9824 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9825 wxRect result;
9826 void *argp1 = 0 ;
9827 int res1 = 0 ;
9828 PyObject *swig_obj[1] ;
9829
9830 if (!args) SWIG_fail;
9831 swig_obj[0] = args;
9832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9833 if (!SWIG_IsOK(res1)) {
9834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_GetRect" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9835 }
9836 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9837 {
9838 PyThreadState* __tstate = wxPyBeginAllowThreads();
9839 result = (arg1)->GetRect();
9840 wxPyEndAllowThreads(__tstate);
9841 if (PyErr_Occurred()) SWIG_fail;
9842 }
9843 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
9844 return resultobj;
9845 fail:
9846 return NULL;
9847 }
9848
9849
9850 SWIGINTERN PyObject *_wrap_RegionIterator_HaveRects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9851 PyObject *resultobj = 0;
9852 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9853 bool result;
9854 void *argp1 = 0 ;
9855 int res1 = 0 ;
9856 PyObject *swig_obj[1] ;
9857
9858 if (!args) SWIG_fail;
9859 swig_obj[0] = args;
9860 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9861 if (!SWIG_IsOK(res1)) {
9862 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_HaveRects" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9863 }
9864 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9865 {
9866 PyThreadState* __tstate = wxPyBeginAllowThreads();
9867 result = (bool)(arg1)->HaveRects();
9868 wxPyEndAllowThreads(__tstate);
9869 if (PyErr_Occurred()) SWIG_fail;
9870 }
9871 {
9872 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9873 }
9874 return resultobj;
9875 fail:
9876 return NULL;
9877 }
9878
9879
9880 SWIGINTERN PyObject *_wrap_RegionIterator_Reset(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9881 PyObject *resultobj = 0;
9882 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9883 void *argp1 = 0 ;
9884 int res1 = 0 ;
9885 PyObject *swig_obj[1] ;
9886
9887 if (!args) SWIG_fail;
9888 swig_obj[0] = args;
9889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9890 if (!SWIG_IsOK(res1)) {
9891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Reset" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9892 }
9893 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9894 {
9895 PyThreadState* __tstate = wxPyBeginAllowThreads();
9896 (arg1)->Reset();
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_RegionIterator_Next(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9908 PyObject *resultobj = 0;
9909 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9910 void *argp1 = 0 ;
9911 int res1 = 0 ;
9912 PyObject *swig_obj[1] ;
9913
9914 if (!args) SWIG_fail;
9915 swig_obj[0] = args;
9916 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9917 if (!SWIG_IsOK(res1)) {
9918 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator_Next" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9919 }
9920 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9921 {
9922 PyThreadState* __tstate = wxPyBeginAllowThreads();
9923 wxRegionIterator_Next(arg1);
9924 wxPyEndAllowThreads(__tstate);
9925 if (PyErr_Occurred()) SWIG_fail;
9926 }
9927 resultobj = SWIG_Py_Void();
9928 return resultobj;
9929 fail:
9930 return NULL;
9931 }
9932
9933
9934 SWIGINTERN PyObject *_wrap_RegionIterator___nonzero__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9935 PyObject *resultobj = 0;
9936 wxRegionIterator *arg1 = (wxRegionIterator *) 0 ;
9937 bool result;
9938 void *argp1 = 0 ;
9939 int res1 = 0 ;
9940 PyObject *swig_obj[1] ;
9941
9942 if (!args) SWIG_fail;
9943 swig_obj[0] = args;
9944 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRegionIterator, 0 | 0 );
9945 if (!SWIG_IsOK(res1)) {
9946 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RegionIterator___nonzero__" "', expected argument " "1"" of type '" "wxRegionIterator *""'");
9947 }
9948 arg1 = reinterpret_cast< wxRegionIterator * >(argp1);
9949 {
9950 PyThreadState* __tstate = wxPyBeginAllowThreads();
9951 result = (bool)wxRegionIterator___nonzero__(arg1);
9952 wxPyEndAllowThreads(__tstate);
9953 if (PyErr_Occurred()) SWIG_fail;
9954 }
9955 {
9956 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
9957 }
9958 return resultobj;
9959 fail:
9960 return NULL;
9961 }
9962
9963
9964 SWIGINTERN PyObject *RegionIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9965 PyObject *obj;
9966 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
9967 SWIG_TypeNewClientData(SWIGTYPE_p_wxRegionIterator, SWIG_NewClientData(obj));
9968 return SWIG_Py_Void();
9969 }
9970
9971 SWIGINTERN PyObject *RegionIterator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9972 return SWIG_Python_InitShadowInstance(args);
9973 }
9974
9975 SWIGINTERN PyObject *_wrap_new_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9976 PyObject *resultobj = 0;
9977 wxNativeFontInfo *result = 0 ;
9978
9979 if (!SWIG_Python_UnpackTuple(args,"new_NativeFontInfo",0,0,0)) SWIG_fail;
9980 {
9981 PyThreadState* __tstate = wxPyBeginAllowThreads();
9982 result = (wxNativeFontInfo *)new wxNativeFontInfo();
9983 wxPyEndAllowThreads(__tstate);
9984 if (PyErr_Occurred()) SWIG_fail;
9985 }
9986 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_NEW | 0 );
9987 return resultobj;
9988 fail:
9989 return NULL;
9990 }
9991
9992
9993 SWIGINTERN PyObject *_wrap_delete_NativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
9994 PyObject *resultobj = 0;
9995 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
9996 void *argp1 = 0 ;
9997 int res1 = 0 ;
9998 PyObject *swig_obj[1] ;
9999
10000 if (!args) SWIG_fail;
10001 swig_obj[0] = args;
10002 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, SWIG_POINTER_DISOWN | 0 );
10003 if (!SWIG_IsOK(res1)) {
10004 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeFontInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10005 }
10006 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10007 {
10008 PyThreadState* __tstate = wxPyBeginAllowThreads();
10009 delete arg1;
10010
10011 wxPyEndAllowThreads(__tstate);
10012 if (PyErr_Occurred()) SWIG_fail;
10013 }
10014 resultobj = SWIG_Py_Void();
10015 return resultobj;
10016 fail:
10017 return NULL;
10018 }
10019
10020
10021 SWIGINTERN PyObject *_wrap_NativeFontInfo_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10022 PyObject *resultobj = 0;
10023 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10024 void *argp1 = 0 ;
10025 int res1 = 0 ;
10026 PyObject *swig_obj[1] ;
10027
10028 if (!args) SWIG_fail;
10029 swig_obj[0] = args;
10030 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10031 if (!SWIG_IsOK(res1)) {
10032 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_Init" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10033 }
10034 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10035 {
10036 PyThreadState* __tstate = wxPyBeginAllowThreads();
10037 (arg1)->Init();
10038 wxPyEndAllowThreads(__tstate);
10039 if (PyErr_Occurred()) SWIG_fail;
10040 }
10041 resultobj = SWIG_Py_Void();
10042 return resultobj;
10043 fail:
10044 return NULL;
10045 }
10046
10047
10048 SWIGINTERN PyObject *_wrap_NativeFontInfo_InitFromFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10049 PyObject *resultobj = 0;
10050 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10051 wxFont *arg2 = 0 ;
10052 void *argp1 = 0 ;
10053 int res1 = 0 ;
10054 void *argp2 = 0 ;
10055 int res2 = 0 ;
10056 PyObject * obj0 = 0 ;
10057 PyObject * obj1 = 0 ;
10058 char * kwnames[] = {
10059 (char *) "self",(char *) "font", NULL
10060 };
10061
10062 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_InitFromFont",kwnames,&obj0,&obj1)) SWIG_fail;
10063 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10064 if (!SWIG_IsOK(res1)) {
10065 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10066 }
10067 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10068 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
10069 if (!SWIG_IsOK(res2)) {
10070 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10071 }
10072 if (!argp2) {
10073 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "NativeFontInfo_InitFromFont" "', expected argument " "2"" of type '" "wxFont const &""'");
10074 }
10075 arg2 = reinterpret_cast< wxFont * >(argp2);
10076 {
10077 PyThreadState* __tstate = wxPyBeginAllowThreads();
10078 (arg1)->InitFromFont((wxFont const &)*arg2);
10079 wxPyEndAllowThreads(__tstate);
10080 if (PyErr_Occurred()) SWIG_fail;
10081 }
10082 resultobj = SWIG_Py_Void();
10083 return resultobj;
10084 fail:
10085 return NULL;
10086 }
10087
10088
10089 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10090 PyObject *resultobj = 0;
10091 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10092 int result;
10093 void *argp1 = 0 ;
10094 int res1 = 0 ;
10095 PyObject *swig_obj[1] ;
10096
10097 if (!args) SWIG_fail;
10098 swig_obj[0] = args;
10099 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10100 if (!SWIG_IsOK(res1)) {
10101 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10102 }
10103 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10104 {
10105 PyThreadState* __tstate = wxPyBeginAllowThreads();
10106 result = (int)((wxNativeFontInfo const *)arg1)->GetPointSize();
10107 wxPyEndAllowThreads(__tstate);
10108 if (PyErr_Occurred()) SWIG_fail;
10109 }
10110 resultobj = SWIG_From_int(static_cast< int >(result));
10111 return resultobj;
10112 fail:
10113 return NULL;
10114 }
10115
10116
10117 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10118 PyObject *resultobj = 0;
10119 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10120 wxSize result;
10121 void *argp1 = 0 ;
10122 int res1 = 0 ;
10123 PyObject *swig_obj[1] ;
10124
10125 if (!args) SWIG_fail;
10126 swig_obj[0] = args;
10127 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10128 if (!SWIG_IsOK(res1)) {
10129 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10130 }
10131 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10132 {
10133 PyThreadState* __tstate = wxPyBeginAllowThreads();
10134 result = ((wxNativeFontInfo const *)arg1)->GetPixelSize();
10135 wxPyEndAllowThreads(__tstate);
10136 if (PyErr_Occurred()) SWIG_fail;
10137 }
10138 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
10139 return resultobj;
10140 fail:
10141 return NULL;
10142 }
10143
10144
10145 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10146 PyObject *resultobj = 0;
10147 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10148 wxFontStyle result;
10149 void *argp1 = 0 ;
10150 int res1 = 0 ;
10151 PyObject *swig_obj[1] ;
10152
10153 if (!args) SWIG_fail;
10154 swig_obj[0] = args;
10155 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10156 if (!SWIG_IsOK(res1)) {
10157 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10158 }
10159 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10160 {
10161 PyThreadState* __tstate = wxPyBeginAllowThreads();
10162 result = (wxFontStyle)((wxNativeFontInfo const *)arg1)->GetStyle();
10163 wxPyEndAllowThreads(__tstate);
10164 if (PyErr_Occurred()) SWIG_fail;
10165 }
10166 resultobj = SWIG_From_int(static_cast< int >(result));
10167 return resultobj;
10168 fail:
10169 return NULL;
10170 }
10171
10172
10173 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10174 PyObject *resultobj = 0;
10175 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10176 wxFontWeight result;
10177 void *argp1 = 0 ;
10178 int res1 = 0 ;
10179 PyObject *swig_obj[1] ;
10180
10181 if (!args) SWIG_fail;
10182 swig_obj[0] = args;
10183 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10184 if (!SWIG_IsOK(res1)) {
10185 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10186 }
10187 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10188 {
10189 PyThreadState* __tstate = wxPyBeginAllowThreads();
10190 result = (wxFontWeight)((wxNativeFontInfo const *)arg1)->GetWeight();
10191 wxPyEndAllowThreads(__tstate);
10192 if (PyErr_Occurred()) SWIG_fail;
10193 }
10194 resultobj = SWIG_From_int(static_cast< int >(result));
10195 return resultobj;
10196 fail:
10197 return NULL;
10198 }
10199
10200
10201 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10202 PyObject *resultobj = 0;
10203 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10204 bool result;
10205 void *argp1 = 0 ;
10206 int res1 = 0 ;
10207 PyObject *swig_obj[1] ;
10208
10209 if (!args) SWIG_fail;
10210 swig_obj[0] = args;
10211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10212 if (!SWIG_IsOK(res1)) {
10213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10214 }
10215 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10216 {
10217 PyThreadState* __tstate = wxPyBeginAllowThreads();
10218 result = (bool)((wxNativeFontInfo const *)arg1)->GetUnderlined();
10219 wxPyEndAllowThreads(__tstate);
10220 if (PyErr_Occurred()) SWIG_fail;
10221 }
10222 {
10223 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10224 }
10225 return resultobj;
10226 fail:
10227 return NULL;
10228 }
10229
10230
10231 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10232 PyObject *resultobj = 0;
10233 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10234 wxString result;
10235 void *argp1 = 0 ;
10236 int res1 = 0 ;
10237 PyObject *swig_obj[1] ;
10238
10239 if (!args) SWIG_fail;
10240 swig_obj[0] = args;
10241 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10242 if (!SWIG_IsOK(res1)) {
10243 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10244 }
10245 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10246 {
10247 PyThreadState* __tstate = wxPyBeginAllowThreads();
10248 result = ((wxNativeFontInfo const *)arg1)->GetFaceName();
10249 wxPyEndAllowThreads(__tstate);
10250 if (PyErr_Occurred()) SWIG_fail;
10251 }
10252 {
10253 #if wxUSE_UNICODE
10254 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10255 #else
10256 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10257 #endif
10258 }
10259 return resultobj;
10260 fail:
10261 return NULL;
10262 }
10263
10264
10265 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10266 PyObject *resultobj = 0;
10267 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10268 wxFontFamily result;
10269 void *argp1 = 0 ;
10270 int res1 = 0 ;
10271 PyObject *swig_obj[1] ;
10272
10273 if (!args) SWIG_fail;
10274 swig_obj[0] = args;
10275 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10276 if (!SWIG_IsOK(res1)) {
10277 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10278 }
10279 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10280 {
10281 PyThreadState* __tstate = wxPyBeginAllowThreads();
10282 result = (wxFontFamily)((wxNativeFontInfo const *)arg1)->GetFamily();
10283 wxPyEndAllowThreads(__tstate);
10284 if (PyErr_Occurred()) SWIG_fail;
10285 }
10286 resultobj = SWIG_From_int(static_cast< int >(result));
10287 return resultobj;
10288 fail:
10289 return NULL;
10290 }
10291
10292
10293 SWIGINTERN PyObject *_wrap_NativeFontInfo_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10294 PyObject *resultobj = 0;
10295 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10296 wxFontEncoding result;
10297 void *argp1 = 0 ;
10298 int res1 = 0 ;
10299 PyObject *swig_obj[1] ;
10300
10301 if (!args) SWIG_fail;
10302 swig_obj[0] = args;
10303 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10304 if (!SWIG_IsOK(res1)) {
10305 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_GetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10306 }
10307 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10308 {
10309 PyThreadState* __tstate = wxPyBeginAllowThreads();
10310 result = (wxFontEncoding)((wxNativeFontInfo const *)arg1)->GetEncoding();
10311 wxPyEndAllowThreads(__tstate);
10312 if (PyErr_Occurred()) SWIG_fail;
10313 }
10314 resultobj = SWIG_From_int(static_cast< int >(result));
10315 return resultobj;
10316 fail:
10317 return NULL;
10318 }
10319
10320
10321 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10322 PyObject *resultobj = 0;
10323 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10324 int arg2 ;
10325 void *argp1 = 0 ;
10326 int res1 = 0 ;
10327 int val2 ;
10328 int ecode2 = 0 ;
10329 PyObject * obj0 = 0 ;
10330 PyObject * obj1 = 0 ;
10331 char * kwnames[] = {
10332 (char *) "self",(char *) "pointsize", NULL
10333 };
10334
10335 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
10336 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10337 if (!SWIG_IsOK(res1)) {
10338 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10339 }
10340 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10341 ecode2 = SWIG_AsVal_int(obj1, &val2);
10342 if (!SWIG_IsOK(ecode2)) {
10343 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetPointSize" "', expected argument " "2"" of type '" "int""'");
10344 }
10345 arg2 = static_cast< int >(val2);
10346 {
10347 PyThreadState* __tstate = wxPyBeginAllowThreads();
10348 (arg1)->SetPointSize(arg2);
10349 wxPyEndAllowThreads(__tstate);
10350 if (PyErr_Occurred()) SWIG_fail;
10351 }
10352 resultobj = SWIG_Py_Void();
10353 return resultobj;
10354 fail:
10355 return NULL;
10356 }
10357
10358
10359 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10360 PyObject *resultobj = 0;
10361 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10362 wxSize *arg2 = 0 ;
10363 void *argp1 = 0 ;
10364 int res1 = 0 ;
10365 wxSize temp2 ;
10366 PyObject * obj0 = 0 ;
10367 PyObject * obj1 = 0 ;
10368 char * kwnames[] = {
10369 (char *) "self",(char *) "pixelSize", NULL
10370 };
10371
10372 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
10373 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10374 if (!SWIG_IsOK(res1)) {
10375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetPixelSize" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10376 }
10377 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10378 {
10379 arg2 = &temp2;
10380 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
10381 }
10382 {
10383 PyThreadState* __tstate = wxPyBeginAllowThreads();
10384 (arg1)->SetPixelSize((wxSize const &)*arg2);
10385 wxPyEndAllowThreads(__tstate);
10386 if (PyErr_Occurred()) SWIG_fail;
10387 }
10388 resultobj = SWIG_Py_Void();
10389 return resultobj;
10390 fail:
10391 return NULL;
10392 }
10393
10394
10395 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10396 PyObject *resultobj = 0;
10397 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10398 wxFontStyle arg2 ;
10399 void *argp1 = 0 ;
10400 int res1 = 0 ;
10401 int val2 ;
10402 int ecode2 = 0 ;
10403 PyObject * obj0 = 0 ;
10404 PyObject * obj1 = 0 ;
10405 char * kwnames[] = {
10406 (char *) "self",(char *) "style", NULL
10407 };
10408
10409 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
10410 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10411 if (!SWIG_IsOK(res1)) {
10412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10413 }
10414 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10415 ecode2 = SWIG_AsVal_int(obj1, &val2);
10416 if (!SWIG_IsOK(ecode2)) {
10417 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetStyle" "', expected argument " "2"" of type '" "wxFontStyle""'");
10418 }
10419 arg2 = static_cast< wxFontStyle >(val2);
10420 {
10421 PyThreadState* __tstate = wxPyBeginAllowThreads();
10422 (arg1)->SetStyle(arg2);
10423 wxPyEndAllowThreads(__tstate);
10424 if (PyErr_Occurred()) SWIG_fail;
10425 }
10426 resultobj = SWIG_Py_Void();
10427 return resultobj;
10428 fail:
10429 return NULL;
10430 }
10431
10432
10433 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10434 PyObject *resultobj = 0;
10435 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10436 wxFontWeight arg2 ;
10437 void *argp1 = 0 ;
10438 int res1 = 0 ;
10439 int val2 ;
10440 int ecode2 = 0 ;
10441 PyObject * obj0 = 0 ;
10442 PyObject * obj1 = 0 ;
10443 char * kwnames[] = {
10444 (char *) "self",(char *) "weight", NULL
10445 };
10446
10447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
10448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10449 if (!SWIG_IsOK(res1)) {
10450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10451 }
10452 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10453 ecode2 = SWIG_AsVal_int(obj1, &val2);
10454 if (!SWIG_IsOK(ecode2)) {
10455 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetWeight" "', expected argument " "2"" of type '" "wxFontWeight""'");
10456 }
10457 arg2 = static_cast< wxFontWeight >(val2);
10458 {
10459 PyThreadState* __tstate = wxPyBeginAllowThreads();
10460 (arg1)->SetWeight(arg2);
10461 wxPyEndAllowThreads(__tstate);
10462 if (PyErr_Occurred()) SWIG_fail;
10463 }
10464 resultobj = SWIG_Py_Void();
10465 return resultobj;
10466 fail:
10467 return NULL;
10468 }
10469
10470
10471 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10472 PyObject *resultobj = 0;
10473 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10474 bool arg2 ;
10475 void *argp1 = 0 ;
10476 int res1 = 0 ;
10477 bool val2 ;
10478 int ecode2 = 0 ;
10479 PyObject * obj0 = 0 ;
10480 PyObject * obj1 = 0 ;
10481 char * kwnames[] = {
10482 (char *) "self",(char *) "underlined", NULL
10483 };
10484
10485 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
10486 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10487 if (!SWIG_IsOK(res1)) {
10488 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10489 }
10490 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10491 ecode2 = SWIG_AsVal_bool(obj1, &val2);
10492 if (!SWIG_IsOK(ecode2)) {
10493 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
10494 }
10495 arg2 = static_cast< bool >(val2);
10496 {
10497 PyThreadState* __tstate = wxPyBeginAllowThreads();
10498 (arg1)->SetUnderlined(arg2);
10499 wxPyEndAllowThreads(__tstate);
10500 if (PyErr_Occurred()) SWIG_fail;
10501 }
10502 resultobj = SWIG_Py_Void();
10503 return resultobj;
10504 fail:
10505 return NULL;
10506 }
10507
10508
10509 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10510 PyObject *resultobj = 0;
10511 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10512 wxString arg2 ;
10513 void *argp1 = 0 ;
10514 int res1 = 0 ;
10515 PyObject * obj0 = 0 ;
10516 PyObject * obj1 = 0 ;
10517 char * kwnames[] = {
10518 (char *) "self",(char *) "facename", NULL
10519 };
10520
10521 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
10522 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10523 if (!SWIG_IsOK(res1)) {
10524 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFaceName" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10525 }
10526 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10527 {
10528 wxString* sptr = wxString_in_helper(obj1);
10529 if (sptr == NULL) SWIG_fail;
10530 arg2 = *sptr;
10531 delete sptr;
10532 }
10533 {
10534 PyThreadState* __tstate = wxPyBeginAllowThreads();
10535 (arg1)->SetFaceName(arg2);
10536 wxPyEndAllowThreads(__tstate);
10537 if (PyErr_Occurred()) SWIG_fail;
10538 }
10539 resultobj = SWIG_Py_Void();
10540 return resultobj;
10541 fail:
10542 return NULL;
10543 }
10544
10545
10546 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10547 PyObject *resultobj = 0;
10548 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10549 wxFontFamily arg2 ;
10550 void *argp1 = 0 ;
10551 int res1 = 0 ;
10552 int val2 ;
10553 int ecode2 = 0 ;
10554 PyObject * obj0 = 0 ;
10555 PyObject * obj1 = 0 ;
10556 char * kwnames[] = {
10557 (char *) "self",(char *) "family", NULL
10558 };
10559
10560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
10561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10562 if (!SWIG_IsOK(res1)) {
10563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10564 }
10565 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10566 ecode2 = SWIG_AsVal_int(obj1, &val2);
10567 if (!SWIG_IsOK(ecode2)) {
10568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetFamily" "', expected argument " "2"" of type '" "wxFontFamily""'");
10569 }
10570 arg2 = static_cast< wxFontFamily >(val2);
10571 {
10572 PyThreadState* __tstate = wxPyBeginAllowThreads();
10573 (arg1)->SetFamily(arg2);
10574 wxPyEndAllowThreads(__tstate);
10575 if (PyErr_Occurred()) SWIG_fail;
10576 }
10577 resultobj = SWIG_Py_Void();
10578 return resultobj;
10579 fail:
10580 return NULL;
10581 }
10582
10583
10584 SWIGINTERN PyObject *_wrap_NativeFontInfo_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10585 PyObject *resultobj = 0;
10586 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10587 wxFontEncoding arg2 ;
10588 void *argp1 = 0 ;
10589 int res1 = 0 ;
10590 int val2 ;
10591 int ecode2 = 0 ;
10592 PyObject * obj0 = 0 ;
10593 PyObject * obj1 = 0 ;
10594 char * kwnames[] = {
10595 (char *) "self",(char *) "encoding", NULL
10596 };
10597
10598 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
10599 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10600 if (!SWIG_IsOK(res1)) {
10601 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10602 }
10603 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10604 ecode2 = SWIG_AsVal_int(obj1, &val2);
10605 if (!SWIG_IsOK(ecode2)) {
10606 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeFontInfo_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10607 }
10608 arg2 = static_cast< wxFontEncoding >(val2);
10609 {
10610 PyThreadState* __tstate = wxPyBeginAllowThreads();
10611 (arg1)->SetEncoding(arg2);
10612 wxPyEndAllowThreads(__tstate);
10613 if (PyErr_Occurred()) SWIG_fail;
10614 }
10615 resultobj = SWIG_Py_Void();
10616 return resultobj;
10617 fail:
10618 return NULL;
10619 }
10620
10621
10622 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10623 PyObject *resultobj = 0;
10624 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10625 wxString *arg2 = 0 ;
10626 bool result;
10627 void *argp1 = 0 ;
10628 int res1 = 0 ;
10629 bool temp2 = false ;
10630 PyObject * obj0 = 0 ;
10631 PyObject * obj1 = 0 ;
10632 char * kwnames[] = {
10633 (char *) "self",(char *) "s", NULL
10634 };
10635
10636 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
10637 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10638 if (!SWIG_IsOK(res1)) {
10639 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10640 }
10641 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10642 {
10643 arg2 = wxString_in_helper(obj1);
10644 if (arg2 == NULL) SWIG_fail;
10645 temp2 = true;
10646 }
10647 {
10648 PyThreadState* __tstate = wxPyBeginAllowThreads();
10649 result = (bool)(arg1)->FromString((wxString const &)*arg2);
10650 wxPyEndAllowThreads(__tstate);
10651 if (PyErr_Occurred()) SWIG_fail;
10652 }
10653 {
10654 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10655 }
10656 {
10657 if (temp2)
10658 delete arg2;
10659 }
10660 return resultobj;
10661 fail:
10662 {
10663 if (temp2)
10664 delete arg2;
10665 }
10666 return NULL;
10667 }
10668
10669
10670 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10671 PyObject *resultobj = 0;
10672 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10673 wxString result;
10674 void *argp1 = 0 ;
10675 int res1 = 0 ;
10676 PyObject *swig_obj[1] ;
10677
10678 if (!args) SWIG_fail;
10679 swig_obj[0] = args;
10680 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10681 if (!SWIG_IsOK(res1)) {
10682 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10683 }
10684 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10685 {
10686 PyThreadState* __tstate = wxPyBeginAllowThreads();
10687 result = ((wxNativeFontInfo const *)arg1)->ToString();
10688 wxPyEndAllowThreads(__tstate);
10689 if (PyErr_Occurred()) SWIG_fail;
10690 }
10691 {
10692 #if wxUSE_UNICODE
10693 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10694 #else
10695 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10696 #endif
10697 }
10698 return resultobj;
10699 fail:
10700 return NULL;
10701 }
10702
10703
10704 SWIGINTERN PyObject *_wrap_NativeFontInfo___str__(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10705 PyObject *resultobj = 0;
10706 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10707 wxString result;
10708 void *argp1 = 0 ;
10709 int res1 = 0 ;
10710 PyObject *swig_obj[1] ;
10711
10712 if (!args) SWIG_fail;
10713 swig_obj[0] = args;
10714 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10715 if (!SWIG_IsOK(res1)) {
10716 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo___str__" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10717 }
10718 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10719 {
10720 PyThreadState* __tstate = wxPyBeginAllowThreads();
10721 result = wxNativeFontInfo___str__(arg1);
10722 wxPyEndAllowThreads(__tstate);
10723 if (PyErr_Occurred()) SWIG_fail;
10724 }
10725 {
10726 #if wxUSE_UNICODE
10727 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10728 #else
10729 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10730 #endif
10731 }
10732 return resultobj;
10733 fail:
10734 return NULL;
10735 }
10736
10737
10738 SWIGINTERN PyObject *_wrap_NativeFontInfo_FromUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10739 PyObject *resultobj = 0;
10740 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10741 wxString *arg2 = 0 ;
10742 bool result;
10743 void *argp1 = 0 ;
10744 int res1 = 0 ;
10745 bool temp2 = false ;
10746 PyObject * obj0 = 0 ;
10747 PyObject * obj1 = 0 ;
10748 char * kwnames[] = {
10749 (char *) "self",(char *) "s", NULL
10750 };
10751
10752 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeFontInfo_FromUserString",kwnames,&obj0,&obj1)) SWIG_fail;
10753 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10754 if (!SWIG_IsOK(res1)) {
10755 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_FromUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo *""'");
10756 }
10757 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10758 {
10759 arg2 = wxString_in_helper(obj1);
10760 if (arg2 == NULL) SWIG_fail;
10761 temp2 = true;
10762 }
10763 {
10764 PyThreadState* __tstate = wxPyBeginAllowThreads();
10765 result = (bool)(arg1)->FromUserString((wxString const &)*arg2);
10766 wxPyEndAllowThreads(__tstate);
10767 if (PyErr_Occurred()) SWIG_fail;
10768 }
10769 {
10770 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
10771 }
10772 {
10773 if (temp2)
10774 delete arg2;
10775 }
10776 return resultobj;
10777 fail:
10778 {
10779 if (temp2)
10780 delete arg2;
10781 }
10782 return NULL;
10783 }
10784
10785
10786 SWIGINTERN PyObject *_wrap_NativeFontInfo_ToUserString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10787 PyObject *resultobj = 0;
10788 wxNativeFontInfo *arg1 = (wxNativeFontInfo *) 0 ;
10789 wxString result;
10790 void *argp1 = 0 ;
10791 int res1 = 0 ;
10792 PyObject *swig_obj[1] ;
10793
10794 if (!args) SWIG_fail;
10795 swig_obj[0] = args;
10796 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
10797 if (!SWIG_IsOK(res1)) {
10798 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeFontInfo_ToUserString" "', expected argument " "1"" of type '" "wxNativeFontInfo const *""'");
10799 }
10800 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
10801 {
10802 PyThreadState* __tstate = wxPyBeginAllowThreads();
10803 result = ((wxNativeFontInfo const *)arg1)->ToUserString();
10804 wxPyEndAllowThreads(__tstate);
10805 if (PyErr_Occurred()) SWIG_fail;
10806 }
10807 {
10808 #if wxUSE_UNICODE
10809 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
10810 #else
10811 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
10812 #endif
10813 }
10814 return resultobj;
10815 fail:
10816 return NULL;
10817 }
10818
10819
10820 SWIGINTERN PyObject *NativeFontInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10821 PyObject *obj;
10822 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
10823 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeFontInfo, SWIG_NewClientData(obj));
10824 return SWIG_Py_Void();
10825 }
10826
10827 SWIGINTERN PyObject *NativeFontInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10828 return SWIG_Python_InitShadowInstance(args);
10829 }
10830
10831 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10832 PyObject *resultobj = 0;
10833 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10834 wxString *arg2 = (wxString *) 0 ;
10835 void *argp1 = 0 ;
10836 int res1 = 0 ;
10837 bool temp2 = false ;
10838 PyObject *swig_obj[2] ;
10839
10840 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_facename_set",2,2,swig_obj)) SWIG_fail;
10841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10842 if (!SWIG_IsOK(res1)) {
10843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10844 }
10845 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10846 {
10847 arg2 = wxString_in_helper(swig_obj[1]);
10848 if (arg2 == NULL) SWIG_fail;
10849 temp2 = true;
10850 }
10851 if (arg1) (arg1)->facename = *arg2;
10852
10853 resultobj = SWIG_Py_Void();
10854 {
10855 if (temp2)
10856 delete arg2;
10857 }
10858 return resultobj;
10859 fail:
10860 {
10861 if (temp2)
10862 delete arg2;
10863 }
10864 return NULL;
10865 }
10866
10867
10868 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_facename_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10869 PyObject *resultobj = 0;
10870 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10871 wxString *result = 0 ;
10872 void *argp1 = 0 ;
10873 int res1 = 0 ;
10874 PyObject *swig_obj[1] ;
10875
10876 if (!args) SWIG_fail;
10877 swig_obj[0] = args;
10878 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10879 if (!SWIG_IsOK(res1)) {
10880 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_facename_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10881 }
10882 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10883 result = (wxString *)& ((arg1)->facename);
10884 {
10885 #if wxUSE_UNICODE
10886 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
10887 #else
10888 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
10889 #endif
10890 }
10891 return resultobj;
10892 fail:
10893 return NULL;
10894 }
10895
10896
10897 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10898 PyObject *resultobj = 0;
10899 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10900 wxFontEncoding arg2 ;
10901 void *argp1 = 0 ;
10902 int res1 = 0 ;
10903 int val2 ;
10904 int ecode2 = 0 ;
10905 PyObject *swig_obj[2] ;
10906
10907 if (!SWIG_Python_UnpackTuple(args,"NativeEncodingInfo_encoding_set",2,2,swig_obj)) SWIG_fail;
10908 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10909 if (!SWIG_IsOK(res1)) {
10910 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10911 }
10912 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10913 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
10914 if (!SWIG_IsOK(ecode2)) {
10915 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "NativeEncodingInfo_encoding_set" "', expected argument " "2"" of type '" "wxFontEncoding""'");
10916 }
10917 arg2 = static_cast< wxFontEncoding >(val2);
10918 if (arg1) (arg1)->encoding = arg2;
10919
10920 resultobj = SWIG_Py_Void();
10921 return resultobj;
10922 fail:
10923 return NULL;
10924 }
10925
10926
10927 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_encoding_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10928 PyObject *resultobj = 0;
10929 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10930 wxFontEncoding result;
10931 void *argp1 = 0 ;
10932 int res1 = 0 ;
10933 PyObject *swig_obj[1] ;
10934
10935 if (!args) SWIG_fail;
10936 swig_obj[0] = args;
10937 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
10938 if (!SWIG_IsOK(res1)) {
10939 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_encoding_get" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10940 }
10941 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10942 result = (wxFontEncoding) ((arg1)->encoding);
10943 resultobj = SWIG_From_int(static_cast< int >(result));
10944 return resultobj;
10945 fail:
10946 return NULL;
10947 }
10948
10949
10950 SWIGINTERN PyObject *_wrap_new_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10951 PyObject *resultobj = 0;
10952 wxNativeEncodingInfo *result = 0 ;
10953
10954 if (!SWIG_Python_UnpackTuple(args,"new_NativeEncodingInfo",0,0,0)) SWIG_fail;
10955 {
10956 PyThreadState* __tstate = wxPyBeginAllowThreads();
10957 result = (wxNativeEncodingInfo *)new wxNativeEncodingInfo();
10958 wxPyEndAllowThreads(__tstate);
10959 if (PyErr_Occurred()) SWIG_fail;
10960 }
10961 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_NEW | 0 );
10962 return resultobj;
10963 fail:
10964 return NULL;
10965 }
10966
10967
10968 SWIGINTERN PyObject *_wrap_delete_NativeEncodingInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
10969 PyObject *resultobj = 0;
10970 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10971 void *argp1 = 0 ;
10972 int res1 = 0 ;
10973 PyObject *swig_obj[1] ;
10974
10975 if (!args) SWIG_fail;
10976 swig_obj[0] = args;
10977 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, SWIG_POINTER_DISOWN | 0 );
10978 if (!SWIG_IsOK(res1)) {
10979 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_NativeEncodingInfo" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
10980 }
10981 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
10982 {
10983 PyThreadState* __tstate = wxPyBeginAllowThreads();
10984 delete arg1;
10985
10986 wxPyEndAllowThreads(__tstate);
10987 if (PyErr_Occurred()) SWIG_fail;
10988 }
10989 resultobj = SWIG_Py_Void();
10990 return resultobj;
10991 fail:
10992 return NULL;
10993 }
10994
10995
10996 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_FromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
10997 PyObject *resultobj = 0;
10998 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
10999 wxString *arg2 = 0 ;
11000 bool result;
11001 void *argp1 = 0 ;
11002 int res1 = 0 ;
11003 bool temp2 = false ;
11004 PyObject * obj0 = 0 ;
11005 PyObject * obj1 = 0 ;
11006 char * kwnames[] = {
11007 (char *) "self",(char *) "s", NULL
11008 };
11009
11010 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:NativeEncodingInfo_FromString",kwnames,&obj0,&obj1)) SWIG_fail;
11011 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11012 if (!SWIG_IsOK(res1)) {
11013 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_FromString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo *""'");
11014 }
11015 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11016 {
11017 arg2 = wxString_in_helper(obj1);
11018 if (arg2 == NULL) SWIG_fail;
11019 temp2 = true;
11020 }
11021 {
11022 PyThreadState* __tstate = wxPyBeginAllowThreads();
11023 result = (bool)(arg1)->FromString((wxString const &)*arg2);
11024 wxPyEndAllowThreads(__tstate);
11025 if (PyErr_Occurred()) SWIG_fail;
11026 }
11027 {
11028 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11029 }
11030 {
11031 if (temp2)
11032 delete arg2;
11033 }
11034 return resultobj;
11035 fail:
11036 {
11037 if (temp2)
11038 delete arg2;
11039 }
11040 return NULL;
11041 }
11042
11043
11044 SWIGINTERN PyObject *_wrap_NativeEncodingInfo_ToString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11045 PyObject *resultobj = 0;
11046 wxNativeEncodingInfo *arg1 = (wxNativeEncodingInfo *) 0 ;
11047 wxString result;
11048 void *argp1 = 0 ;
11049 int res1 = 0 ;
11050 PyObject *swig_obj[1] ;
11051
11052 if (!args) SWIG_fail;
11053 swig_obj[0] = args;
11054 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11055 if (!SWIG_IsOK(res1)) {
11056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "NativeEncodingInfo_ToString" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const *""'");
11057 }
11058 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11059 {
11060 PyThreadState* __tstate = wxPyBeginAllowThreads();
11061 result = ((wxNativeEncodingInfo const *)arg1)->ToString();
11062 wxPyEndAllowThreads(__tstate);
11063 if (PyErr_Occurred()) SWIG_fail;
11064 }
11065 {
11066 #if wxUSE_UNICODE
11067 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11068 #else
11069 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11070 #endif
11071 }
11072 return resultobj;
11073 fail:
11074 return NULL;
11075 }
11076
11077
11078 SWIGINTERN PyObject *NativeEncodingInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11079 PyObject *obj;
11080 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11081 SWIG_TypeNewClientData(SWIGTYPE_p_wxNativeEncodingInfo, SWIG_NewClientData(obj));
11082 return SWIG_Py_Void();
11083 }
11084
11085 SWIGINTERN PyObject *NativeEncodingInfo_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11086 return SWIG_Python_InitShadowInstance(args);
11087 }
11088
11089 SWIGINTERN PyObject *_wrap_GetNativeFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11090 PyObject *resultobj = 0;
11091 wxFontEncoding arg1 ;
11092 wxNativeEncodingInfo *result = 0 ;
11093 int val1 ;
11094 int ecode1 = 0 ;
11095 PyObject * obj0 = 0 ;
11096 char * kwnames[] = {
11097 (char *) "encoding", NULL
11098 };
11099
11100 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GetNativeFontEncoding",kwnames,&obj0)) SWIG_fail;
11101 ecode1 = SWIG_AsVal_int(obj0, &val1);
11102 if (!SWIG_IsOK(ecode1)) {
11103 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "GetNativeFontEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11104 }
11105 arg1 = static_cast< wxFontEncoding >(val1);
11106 {
11107 PyThreadState* __tstate = wxPyBeginAllowThreads();
11108 result = (wxNativeEncodingInfo *)wxGetNativeFontEncoding(arg1);
11109 wxPyEndAllowThreads(__tstate);
11110 if (PyErr_Occurred()) SWIG_fail;
11111 }
11112 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0 );
11113 return resultobj;
11114 fail:
11115 return NULL;
11116 }
11117
11118
11119 SWIGINTERN PyObject *_wrap_TestFontEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11120 PyObject *resultobj = 0;
11121 wxNativeEncodingInfo *arg1 = 0 ;
11122 bool result;
11123 void *argp1 = 0 ;
11124 int res1 = 0 ;
11125 PyObject * obj0 = 0 ;
11126 char * kwnames[] = {
11127 (char *) "info", NULL
11128 };
11129
11130 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TestFontEncoding",kwnames,&obj0)) SWIG_fail;
11131 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeEncodingInfo, 0 | 0);
11132 if (!SWIG_IsOK(res1)) {
11133 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11134 }
11135 if (!argp1) {
11136 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "TestFontEncoding" "', expected argument " "1"" of type '" "wxNativeEncodingInfo const &""'");
11137 }
11138 arg1 = reinterpret_cast< wxNativeEncodingInfo * >(argp1);
11139 {
11140 PyThreadState* __tstate = wxPyBeginAllowThreads();
11141 result = (bool)wxTestFontEncoding((wxNativeEncodingInfo const &)*arg1);
11142 wxPyEndAllowThreads(__tstate);
11143 if (PyErr_Occurred()) SWIG_fail;
11144 }
11145 {
11146 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11147 }
11148 return resultobj;
11149 fail:
11150 return NULL;
11151 }
11152
11153
11154 SWIGINTERN PyObject *_wrap_new_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11155 PyObject *resultobj = 0;
11156 wxFontMapper *result = 0 ;
11157
11158 if (!SWIG_Python_UnpackTuple(args,"new_FontMapper",0,0,0)) SWIG_fail;
11159 {
11160 PyThreadState* __tstate = wxPyBeginAllowThreads();
11161 result = (wxFontMapper *)new wxFontMapper();
11162 wxPyEndAllowThreads(__tstate);
11163 if (PyErr_Occurred()) SWIG_fail;
11164 }
11165 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, SWIG_POINTER_NEW | 0 );
11166 return resultobj;
11167 fail:
11168 return NULL;
11169 }
11170
11171
11172 SWIGINTERN PyObject *_wrap_delete_FontMapper(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11173 PyObject *resultobj = 0;
11174 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11175 void *argp1 = 0 ;
11176 int res1 = 0 ;
11177 PyObject *swig_obj[1] ;
11178
11179 if (!args) SWIG_fail;
11180 swig_obj[0] = args;
11181 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFontMapper, SWIG_POINTER_DISOWN | 0 );
11182 if (!SWIG_IsOK(res1)) {
11183 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontMapper" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11184 }
11185 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11186 {
11187 PyThreadState* __tstate = wxPyBeginAllowThreads();
11188 delete arg1;
11189
11190 wxPyEndAllowThreads(__tstate);
11191 if (PyErr_Occurred()) SWIG_fail;
11192 }
11193 resultobj = SWIG_Py_Void();
11194 return resultobj;
11195 fail:
11196 return NULL;
11197 }
11198
11199
11200 SWIGINTERN PyObject *_wrap_FontMapper_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11201 PyObject *resultobj = 0;
11202 wxFontMapper *result = 0 ;
11203
11204 if (!SWIG_Python_UnpackTuple(args,"FontMapper_Get",0,0,0)) SWIG_fail;
11205 {
11206 PyThreadState* __tstate = wxPyBeginAllowThreads();
11207 result = (wxFontMapper *)wxFontMapper::Get();
11208 wxPyEndAllowThreads(__tstate);
11209 if (PyErr_Occurred()) SWIG_fail;
11210 }
11211 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11212 return resultobj;
11213 fail:
11214 return NULL;
11215 }
11216
11217
11218 SWIGINTERN PyObject *_wrap_FontMapper_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11219 PyObject *resultobj = 0;
11220 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11221 wxFontMapper *result = 0 ;
11222 void *argp1 = 0 ;
11223 int res1 = 0 ;
11224 PyObject * obj0 = 0 ;
11225 char * kwnames[] = {
11226 (char *) "mapper", NULL
11227 };
11228
11229 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_Set",kwnames,&obj0)) SWIG_fail;
11230 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11231 if (!SWIG_IsOK(res1)) {
11232 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_Set" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11233 }
11234 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11235 {
11236 PyThreadState* __tstate = wxPyBeginAllowThreads();
11237 result = (wxFontMapper *)wxFontMapper::Set(arg1);
11238 wxPyEndAllowThreads(__tstate);
11239 if (PyErr_Occurred()) SWIG_fail;
11240 }
11241 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontMapper, 0 | 0 );
11242 return resultobj;
11243 fail:
11244 return NULL;
11245 }
11246
11247
11248 SWIGINTERN PyObject *_wrap_FontMapper_CharsetToEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11249 PyObject *resultobj = 0;
11250 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11251 wxString *arg2 = 0 ;
11252 bool arg3 = (bool) true ;
11253 wxFontEncoding result;
11254 void *argp1 = 0 ;
11255 int res1 = 0 ;
11256 bool temp2 = false ;
11257 bool val3 ;
11258 int ecode3 = 0 ;
11259 PyObject * obj0 = 0 ;
11260 PyObject * obj1 = 0 ;
11261 PyObject * obj2 = 0 ;
11262 char * kwnames[] = {
11263 (char *) "self",(char *) "charset",(char *) "interactive", NULL
11264 };
11265
11266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_CharsetToEncoding",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11268 if (!SWIG_IsOK(res1)) {
11269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11270 }
11271 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11272 {
11273 arg2 = wxString_in_helper(obj1);
11274 if (arg2 == NULL) SWIG_fail;
11275 temp2 = true;
11276 }
11277 if (obj2) {
11278 ecode3 = SWIG_AsVal_bool(obj2, &val3);
11279 if (!SWIG_IsOK(ecode3)) {
11280 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontMapper_CharsetToEncoding" "', expected argument " "3"" of type '" "bool""'");
11281 }
11282 arg3 = static_cast< bool >(val3);
11283 }
11284 {
11285 PyThreadState* __tstate = wxPyBeginAllowThreads();
11286 result = (wxFontEncoding)(arg1)->CharsetToEncoding((wxString const &)*arg2,arg3);
11287 wxPyEndAllowThreads(__tstate);
11288 if (PyErr_Occurred()) SWIG_fail;
11289 }
11290 resultobj = SWIG_From_int(static_cast< int >(result));
11291 {
11292 if (temp2)
11293 delete arg2;
11294 }
11295 return resultobj;
11296 fail:
11297 {
11298 if (temp2)
11299 delete arg2;
11300 }
11301 return NULL;
11302 }
11303
11304
11305 SWIGINTERN PyObject *_wrap_FontMapper_GetSupportedEncodingsCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11306 PyObject *resultobj = 0;
11307 size_t result;
11308
11309 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetSupportedEncodingsCount",0,0,0)) SWIG_fail;
11310 {
11311 PyThreadState* __tstate = wxPyBeginAllowThreads();
11312 result = (size_t)wxFontMapper::GetSupportedEncodingsCount();
11313 wxPyEndAllowThreads(__tstate);
11314 if (PyErr_Occurred()) SWIG_fail;
11315 }
11316 resultobj = SWIG_From_size_t(static_cast< size_t >(result));
11317 return resultobj;
11318 fail:
11319 return NULL;
11320 }
11321
11322
11323 SWIGINTERN PyObject *_wrap_FontMapper_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11324 PyObject *resultobj = 0;
11325 size_t arg1 ;
11326 wxFontEncoding result;
11327 size_t val1 ;
11328 int ecode1 = 0 ;
11329 PyObject * obj0 = 0 ;
11330 char * kwnames[] = {
11331 (char *) "n", NULL
11332 };
11333
11334 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncoding",kwnames,&obj0)) SWIG_fail;
11335 ecode1 = SWIG_AsVal_size_t(obj0, &val1);
11336 if (!SWIG_IsOK(ecode1)) {
11337 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncoding" "', expected argument " "1"" of type '" "size_t""'");
11338 }
11339 arg1 = static_cast< size_t >(val1);
11340 {
11341 PyThreadState* __tstate = wxPyBeginAllowThreads();
11342 result = (wxFontEncoding)wxFontMapper::GetEncoding(arg1);
11343 wxPyEndAllowThreads(__tstate);
11344 if (PyErr_Occurred()) SWIG_fail;
11345 }
11346 resultobj = SWIG_From_int(static_cast< int >(result));
11347 return resultobj;
11348 fail:
11349 return NULL;
11350 }
11351
11352
11353 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11354 PyObject *resultobj = 0;
11355 wxFontEncoding arg1 ;
11356 wxString result;
11357 int val1 ;
11358 int ecode1 = 0 ;
11359 PyObject * obj0 = 0 ;
11360 char * kwnames[] = {
11361 (char *) "encoding", NULL
11362 };
11363
11364 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingName",kwnames,&obj0)) SWIG_fail;
11365 ecode1 = SWIG_AsVal_int(obj0, &val1);
11366 if (!SWIG_IsOK(ecode1)) {
11367 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingName" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11368 }
11369 arg1 = static_cast< wxFontEncoding >(val1);
11370 {
11371 PyThreadState* __tstate = wxPyBeginAllowThreads();
11372 result = wxFontMapper::GetEncodingName(arg1);
11373 wxPyEndAllowThreads(__tstate);
11374 if (PyErr_Occurred()) SWIG_fail;
11375 }
11376 {
11377 #if wxUSE_UNICODE
11378 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11379 #else
11380 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11381 #endif
11382 }
11383 return resultobj;
11384 fail:
11385 return NULL;
11386 }
11387
11388
11389 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingDescription(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11390 PyObject *resultobj = 0;
11391 wxFontEncoding arg1 ;
11392 wxString result;
11393 int val1 ;
11394 int ecode1 = 0 ;
11395 PyObject * obj0 = 0 ;
11396 char * kwnames[] = {
11397 (char *) "encoding", NULL
11398 };
11399
11400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingDescription",kwnames,&obj0)) SWIG_fail;
11401 ecode1 = SWIG_AsVal_int(obj0, &val1);
11402 if (!SWIG_IsOK(ecode1)) {
11403 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "FontMapper_GetEncodingDescription" "', expected argument " "1"" of type '" "wxFontEncoding""'");
11404 }
11405 arg1 = static_cast< wxFontEncoding >(val1);
11406 {
11407 PyThreadState* __tstate = wxPyBeginAllowThreads();
11408 result = wxFontMapper::GetEncodingDescription(arg1);
11409 wxPyEndAllowThreads(__tstate);
11410 if (PyErr_Occurred()) SWIG_fail;
11411 }
11412 {
11413 #if wxUSE_UNICODE
11414 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11415 #else
11416 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11417 #endif
11418 }
11419 return resultobj;
11420 fail:
11421 return NULL;
11422 }
11423
11424
11425 SWIGINTERN PyObject *_wrap_FontMapper_GetEncodingFromName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11426 PyObject *resultobj = 0;
11427 wxString *arg1 = 0 ;
11428 wxFontEncoding result;
11429 bool temp1 = false ;
11430 PyObject * obj0 = 0 ;
11431 char * kwnames[] = {
11432 (char *) "name", NULL
11433 };
11434
11435 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:FontMapper_GetEncodingFromName",kwnames,&obj0)) SWIG_fail;
11436 {
11437 arg1 = wxString_in_helper(obj0);
11438 if (arg1 == NULL) SWIG_fail;
11439 temp1 = true;
11440 }
11441 {
11442 PyThreadState* __tstate = wxPyBeginAllowThreads();
11443 result = (wxFontEncoding)wxFontMapper::GetEncodingFromName((wxString const &)*arg1);
11444 wxPyEndAllowThreads(__tstate);
11445 if (PyErr_Occurred()) SWIG_fail;
11446 }
11447 resultobj = SWIG_From_int(static_cast< int >(result));
11448 {
11449 if (temp1)
11450 delete arg1;
11451 }
11452 return resultobj;
11453 fail:
11454 {
11455 if (temp1)
11456 delete arg1;
11457 }
11458 return NULL;
11459 }
11460
11461
11462 SWIGINTERN PyObject *_wrap_FontMapper_SetConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11463 PyObject *resultobj = 0;
11464 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11465 wxString *arg2 = 0 ;
11466 void *argp1 = 0 ;
11467 int res1 = 0 ;
11468 bool temp2 = false ;
11469 PyObject * obj0 = 0 ;
11470 PyObject * obj1 = 0 ;
11471 char * kwnames[] = {
11472 (char *) "self",(char *) "prefix", NULL
11473 };
11474
11475 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetConfigPath",kwnames,&obj0,&obj1)) SWIG_fail;
11476 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11477 if (!SWIG_IsOK(res1)) {
11478 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetConfigPath" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11479 }
11480 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11481 {
11482 arg2 = wxString_in_helper(obj1);
11483 if (arg2 == NULL) SWIG_fail;
11484 temp2 = true;
11485 }
11486 {
11487 PyThreadState* __tstate = wxPyBeginAllowThreads();
11488 (arg1)->SetConfigPath((wxString const &)*arg2);
11489 wxPyEndAllowThreads(__tstate);
11490 if (PyErr_Occurred()) SWIG_fail;
11491 }
11492 resultobj = SWIG_Py_Void();
11493 {
11494 if (temp2)
11495 delete arg2;
11496 }
11497 return resultobj;
11498 fail:
11499 {
11500 if (temp2)
11501 delete arg2;
11502 }
11503 return NULL;
11504 }
11505
11506
11507 SWIGINTERN PyObject *_wrap_FontMapper_GetDefaultConfigPath(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11508 PyObject *resultobj = 0;
11509 wxString result;
11510
11511 if (!SWIG_Python_UnpackTuple(args,"FontMapper_GetDefaultConfigPath",0,0,0)) SWIG_fail;
11512 {
11513 PyThreadState* __tstate = wxPyBeginAllowThreads();
11514 result = wxFontMapper::GetDefaultConfigPath();
11515 wxPyEndAllowThreads(__tstate);
11516 if (PyErr_Occurred()) SWIG_fail;
11517 }
11518 {
11519 #if wxUSE_UNICODE
11520 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
11521 #else
11522 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
11523 #endif
11524 }
11525 return resultobj;
11526 fail:
11527 return NULL;
11528 }
11529
11530
11531 SWIGINTERN PyObject *_wrap_FontMapper_GetAltForEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11532 PyObject *resultobj = 0;
11533 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11534 wxFontEncoding arg2 ;
11535 wxString const &arg3_defvalue = wxPyEmptyString ;
11536 wxString *arg3 = (wxString *) &arg3_defvalue ;
11537 bool arg4 = (bool) true ;
11538 PyObject *result = 0 ;
11539 void *argp1 = 0 ;
11540 int res1 = 0 ;
11541 int val2 ;
11542 int ecode2 = 0 ;
11543 bool temp3 = false ;
11544 bool val4 ;
11545 int ecode4 = 0 ;
11546 PyObject * obj0 = 0 ;
11547 PyObject * obj1 = 0 ;
11548 PyObject * obj2 = 0 ;
11549 PyObject * obj3 = 0 ;
11550 char * kwnames[] = {
11551 (char *) "self",(char *) "encoding",(char *) "facename",(char *) "interactive", NULL
11552 };
11553
11554 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:FontMapper_GetAltForEncoding",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
11555 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11556 if (!SWIG_IsOK(res1)) {
11557 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11558 }
11559 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11560 ecode2 = SWIG_AsVal_int(obj1, &val2);
11561 if (!SWIG_IsOK(ecode2)) {
11562 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11563 }
11564 arg2 = static_cast< wxFontEncoding >(val2);
11565 if (obj2) {
11566 {
11567 arg3 = wxString_in_helper(obj2);
11568 if (arg3 == NULL) SWIG_fail;
11569 temp3 = true;
11570 }
11571 }
11572 if (obj3) {
11573 ecode4 = SWIG_AsVal_bool(obj3, &val4);
11574 if (!SWIG_IsOK(ecode4)) {
11575 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontMapper_GetAltForEncoding" "', expected argument " "4"" of type '" "bool""'");
11576 }
11577 arg4 = static_cast< bool >(val4);
11578 }
11579 {
11580 PyThreadState* __tstate = wxPyBeginAllowThreads();
11581 result = (PyObject *)wxFontMapper_GetAltForEncoding(arg1,arg2,(wxString const &)*arg3,arg4);
11582 wxPyEndAllowThreads(__tstate);
11583 if (PyErr_Occurred()) SWIG_fail;
11584 }
11585 resultobj = result;
11586 {
11587 if (temp3)
11588 delete arg3;
11589 }
11590 return resultobj;
11591 fail:
11592 {
11593 if (temp3)
11594 delete arg3;
11595 }
11596 return NULL;
11597 }
11598
11599
11600 SWIGINTERN PyObject *_wrap_FontMapper_IsEncodingAvailable(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11601 PyObject *resultobj = 0;
11602 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11603 wxFontEncoding arg2 ;
11604 wxString const &arg3_defvalue = wxPyEmptyString ;
11605 wxString *arg3 = (wxString *) &arg3_defvalue ;
11606 bool result;
11607 void *argp1 = 0 ;
11608 int res1 = 0 ;
11609 int val2 ;
11610 int ecode2 = 0 ;
11611 bool temp3 = false ;
11612 PyObject * obj0 = 0 ;
11613 PyObject * obj1 = 0 ;
11614 PyObject * obj2 = 0 ;
11615 char * kwnames[] = {
11616 (char *) "self",(char *) "encoding",(char *) "facename", NULL
11617 };
11618
11619 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:FontMapper_IsEncodingAvailable",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
11620 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11621 if (!SWIG_IsOK(res1)) {
11622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11623 }
11624 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11625 ecode2 = SWIG_AsVal_int(obj1, &val2);
11626 if (!SWIG_IsOK(ecode2)) {
11627 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontMapper_IsEncodingAvailable" "', expected argument " "2"" of type '" "wxFontEncoding""'");
11628 }
11629 arg2 = static_cast< wxFontEncoding >(val2);
11630 if (obj2) {
11631 {
11632 arg3 = wxString_in_helper(obj2);
11633 if (arg3 == NULL) SWIG_fail;
11634 temp3 = true;
11635 }
11636 }
11637 {
11638 PyThreadState* __tstate = wxPyBeginAllowThreads();
11639 result = (bool)(arg1)->IsEncodingAvailable(arg2,(wxString const &)*arg3);
11640 wxPyEndAllowThreads(__tstate);
11641 if (PyErr_Occurred()) SWIG_fail;
11642 }
11643 {
11644 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
11645 }
11646 {
11647 if (temp3)
11648 delete arg3;
11649 }
11650 return resultobj;
11651 fail:
11652 {
11653 if (temp3)
11654 delete arg3;
11655 }
11656 return NULL;
11657 }
11658
11659
11660 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogParent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11661 PyObject *resultobj = 0;
11662 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11663 wxWindow *arg2 = (wxWindow *) 0 ;
11664 void *argp1 = 0 ;
11665 int res1 = 0 ;
11666 void *argp2 = 0 ;
11667 int res2 = 0 ;
11668 PyObject * obj0 = 0 ;
11669 PyObject * obj1 = 0 ;
11670 char * kwnames[] = {
11671 (char *) "self",(char *) "parent", NULL
11672 };
11673
11674 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogParent",kwnames,&obj0,&obj1)) SWIG_fail;
11675 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11676 if (!SWIG_IsOK(res1)) {
11677 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogParent" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11678 }
11679 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11680 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
11681 if (!SWIG_IsOK(res2)) {
11682 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontMapper_SetDialogParent" "', expected argument " "2"" of type '" "wxWindow *""'");
11683 }
11684 arg2 = reinterpret_cast< wxWindow * >(argp2);
11685 {
11686 PyThreadState* __tstate = wxPyBeginAllowThreads();
11687 (arg1)->SetDialogParent(arg2);
11688 wxPyEndAllowThreads(__tstate);
11689 if (PyErr_Occurred()) SWIG_fail;
11690 }
11691 resultobj = SWIG_Py_Void();
11692 return resultobj;
11693 fail:
11694 return NULL;
11695 }
11696
11697
11698 SWIGINTERN PyObject *_wrap_FontMapper_SetDialogTitle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11699 PyObject *resultobj = 0;
11700 wxFontMapper *arg1 = (wxFontMapper *) 0 ;
11701 wxString *arg2 = 0 ;
11702 void *argp1 = 0 ;
11703 int res1 = 0 ;
11704 bool temp2 = false ;
11705 PyObject * obj0 = 0 ;
11706 PyObject * obj1 = 0 ;
11707 char * kwnames[] = {
11708 (char *) "self",(char *) "title", NULL
11709 };
11710
11711 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontMapper_SetDialogTitle",kwnames,&obj0,&obj1)) SWIG_fail;
11712 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontMapper, 0 | 0 );
11713 if (!SWIG_IsOK(res1)) {
11714 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontMapper_SetDialogTitle" "', expected argument " "1"" of type '" "wxFontMapper *""'");
11715 }
11716 arg1 = reinterpret_cast< wxFontMapper * >(argp1);
11717 {
11718 arg2 = wxString_in_helper(obj1);
11719 if (arg2 == NULL) SWIG_fail;
11720 temp2 = true;
11721 }
11722 {
11723 PyThreadState* __tstate = wxPyBeginAllowThreads();
11724 (arg1)->SetDialogTitle((wxString const &)*arg2);
11725 wxPyEndAllowThreads(__tstate);
11726 if (PyErr_Occurred()) SWIG_fail;
11727 }
11728 resultobj = SWIG_Py_Void();
11729 {
11730 if (temp2)
11731 delete arg2;
11732 }
11733 return resultobj;
11734 fail:
11735 {
11736 if (temp2)
11737 delete arg2;
11738 }
11739 return NULL;
11740 }
11741
11742
11743 SWIGINTERN PyObject *FontMapper_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11744 PyObject *obj;
11745 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
11746 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontMapper, SWIG_NewClientData(obj));
11747 return SWIG_Py_Void();
11748 }
11749
11750 SWIGINTERN PyObject *FontMapper_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11751 return SWIG_Python_InitShadowInstance(args);
11752 }
11753
11754 SWIGINTERN PyObject *_wrap_new_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11755 PyObject *resultobj = 0;
11756 int arg1 ;
11757 int arg2 ;
11758 int arg3 ;
11759 int arg4 ;
11760 bool arg5 = (bool) false ;
11761 wxString const &arg6_defvalue = wxPyEmptyString ;
11762 wxString *arg6 = (wxString *) &arg6_defvalue ;
11763 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11764 wxFont *result = 0 ;
11765 int val1 ;
11766 int ecode1 = 0 ;
11767 int val2 ;
11768 int ecode2 = 0 ;
11769 int val3 ;
11770 int ecode3 = 0 ;
11771 int val4 ;
11772 int ecode4 = 0 ;
11773 bool val5 ;
11774 int ecode5 = 0 ;
11775 bool temp6 = false ;
11776 int val7 ;
11777 int ecode7 = 0 ;
11778 PyObject * obj0 = 0 ;
11779 PyObject * obj1 = 0 ;
11780 PyObject * obj2 = 0 ;
11781 PyObject * obj3 = 0 ;
11782 PyObject * obj4 = 0 ;
11783 PyObject * obj5 = 0 ;
11784 PyObject * obj6 = 0 ;
11785 char * kwnames[] = {
11786 (char *) "pointSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "face",(char *) "encoding", NULL
11787 };
11788
11789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_Font",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
11790 ecode1 = SWIG_AsVal_int(obj0, &val1);
11791 if (!SWIG_IsOK(ecode1)) {
11792 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Font" "', expected argument " "1"" of type '" "int""'");
11793 }
11794 arg1 = static_cast< int >(val1);
11795 ecode2 = SWIG_AsVal_int(obj1, &val2);
11796 if (!SWIG_IsOK(ecode2)) {
11797 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Font" "', expected argument " "2"" of type '" "int""'");
11798 }
11799 arg2 = static_cast< int >(val2);
11800 ecode3 = SWIG_AsVal_int(obj2, &val3);
11801 if (!SWIG_IsOK(ecode3)) {
11802 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_Font" "', expected argument " "3"" of type '" "int""'");
11803 }
11804 arg3 = static_cast< int >(val3);
11805 ecode4 = SWIG_AsVal_int(obj3, &val4);
11806 if (!SWIG_IsOK(ecode4)) {
11807 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_Font" "', expected argument " "4"" of type '" "int""'");
11808 }
11809 arg4 = static_cast< int >(val4);
11810 if (obj4) {
11811 ecode5 = SWIG_AsVal_bool(obj4, &val5);
11812 if (!SWIG_IsOK(ecode5)) {
11813 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_Font" "', expected argument " "5"" of type '" "bool""'");
11814 }
11815 arg5 = static_cast< bool >(val5);
11816 }
11817 if (obj5) {
11818 {
11819 arg6 = wxString_in_helper(obj5);
11820 if (arg6 == NULL) SWIG_fail;
11821 temp6 = true;
11822 }
11823 }
11824 if (obj6) {
11825 ecode7 = SWIG_AsVal_int(obj6, &val7);
11826 if (!SWIG_IsOK(ecode7)) {
11827 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_Font" "', expected argument " "7"" of type '" "wxFontEncoding""'");
11828 }
11829 arg7 = static_cast< wxFontEncoding >(val7);
11830 }
11831 {
11832 if (!wxPyCheckForApp()) SWIG_fail;
11833 PyThreadState* __tstate = wxPyBeginAllowThreads();
11834 result = (wxFont *)new wxFont(arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
11835 wxPyEndAllowThreads(__tstate);
11836 if (PyErr_Occurred()) SWIG_fail;
11837 }
11838 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_NEW | 0 );
11839 {
11840 if (temp6)
11841 delete arg6;
11842 }
11843 return resultobj;
11844 fail:
11845 {
11846 if (temp6)
11847 delete arg6;
11848 }
11849 return NULL;
11850 }
11851
11852
11853 SWIGINTERN PyObject *_wrap_delete_Font(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
11854 PyObject *resultobj = 0;
11855 wxFont *arg1 = (wxFont *) 0 ;
11856 void *argp1 = 0 ;
11857 int res1 = 0 ;
11858 PyObject *swig_obj[1] ;
11859
11860 if (!args) SWIG_fail;
11861 swig_obj[0] = args;
11862 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, SWIG_POINTER_DISOWN | 0 );
11863 if (!SWIG_IsOK(res1)) {
11864 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Font" "', expected argument " "1"" of type '" "wxFont *""'");
11865 }
11866 arg1 = reinterpret_cast< wxFont * >(argp1);
11867 {
11868 PyThreadState* __tstate = wxPyBeginAllowThreads();
11869 delete arg1;
11870
11871 wxPyEndAllowThreads(__tstate);
11872 if (PyErr_Occurred()) SWIG_fail;
11873 }
11874 resultobj = SWIG_Py_Void();
11875 return resultobj;
11876 fail:
11877 return NULL;
11878 }
11879
11880
11881 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11882 PyObject *resultobj = 0;
11883 wxNativeFontInfo *arg1 = 0 ;
11884 wxFont *result = 0 ;
11885 void *argp1 = 0 ;
11886 int res1 = 0 ;
11887 PyObject * obj0 = 0 ;
11888 char * kwnames[] = {
11889 (char *) "info", NULL
11890 };
11891
11892 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfo",kwnames,&obj0)) SWIG_fail;
11893 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
11894 if (!SWIG_IsOK(res1)) {
11895 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11896 }
11897 if (!argp1) {
11898 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_FontFromNativeInfo" "', expected argument " "1"" of type '" "wxNativeFontInfo const &""'");
11899 }
11900 arg1 = reinterpret_cast< wxNativeFontInfo * >(argp1);
11901 {
11902 if (!wxPyCheckForApp()) SWIG_fail;
11903 PyThreadState* __tstate = wxPyBeginAllowThreads();
11904 result = (wxFont *)new wxFont((wxNativeFontInfo const &)*arg1);
11905 wxPyEndAllowThreads(__tstate);
11906 if (PyErr_Occurred()) SWIG_fail;
11907 }
11908 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11909 return resultobj;
11910 fail:
11911 return NULL;
11912 }
11913
11914
11915 SWIGINTERN PyObject *_wrap_new_FontFromNativeInfoString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11916 PyObject *resultobj = 0;
11917 wxString *arg1 = 0 ;
11918 wxFont *result = 0 ;
11919 bool temp1 = false ;
11920 PyObject * obj0 = 0 ;
11921 char * kwnames[] = {
11922 (char *) "info", NULL
11923 };
11924
11925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_FontFromNativeInfoString",kwnames,&obj0)) SWIG_fail;
11926 {
11927 arg1 = wxString_in_helper(obj0);
11928 if (arg1 == NULL) SWIG_fail;
11929 temp1 = true;
11930 }
11931 {
11932 if (!wxPyCheckForApp()) SWIG_fail;
11933 PyThreadState* __tstate = wxPyBeginAllowThreads();
11934 result = (wxFont *)new_wxFont((wxString const &)*arg1);
11935 wxPyEndAllowThreads(__tstate);
11936 if (PyErr_Occurred()) SWIG_fail;
11937 }
11938 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
11939 {
11940 if (temp1)
11941 delete arg1;
11942 }
11943 return resultobj;
11944 fail:
11945 {
11946 if (temp1)
11947 delete arg1;
11948 }
11949 return NULL;
11950 }
11951
11952
11953 SWIGINTERN PyObject *_wrap_new_FFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
11954 PyObject *resultobj = 0;
11955 int arg1 ;
11956 wxFontFamily arg2 ;
11957 int arg3 = (int) wxFONTFLAG_DEFAULT ;
11958 wxString const &arg4_defvalue = wxPyEmptyString ;
11959 wxString *arg4 = (wxString *) &arg4_defvalue ;
11960 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
11961 wxFont *result = 0 ;
11962 int val1 ;
11963 int ecode1 = 0 ;
11964 int val2 ;
11965 int ecode2 = 0 ;
11966 int val3 ;
11967 int ecode3 = 0 ;
11968 bool temp4 = false ;
11969 int val5 ;
11970 int ecode5 = 0 ;
11971 PyObject * obj0 = 0 ;
11972 PyObject * obj1 = 0 ;
11973 PyObject * obj2 = 0 ;
11974 PyObject * obj3 = 0 ;
11975 PyObject * obj4 = 0 ;
11976 char * kwnames[] = {
11977 (char *) "pointSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
11978 };
11979
11980 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
11981 ecode1 = SWIG_AsVal_int(obj0, &val1);
11982 if (!SWIG_IsOK(ecode1)) {
11983 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_FFont" "', expected argument " "1"" of type '" "int""'");
11984 }
11985 arg1 = static_cast< int >(val1);
11986 ecode2 = SWIG_AsVal_int(obj1, &val2);
11987 if (!SWIG_IsOK(ecode2)) {
11988 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFont" "', expected argument " "2"" of type '" "wxFontFamily""'");
11989 }
11990 arg2 = static_cast< wxFontFamily >(val2);
11991 if (obj2) {
11992 ecode3 = SWIG_AsVal_int(obj2, &val3);
11993 if (!SWIG_IsOK(ecode3)) {
11994 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFont" "', expected argument " "3"" of type '" "int""'");
11995 }
11996 arg3 = static_cast< int >(val3);
11997 }
11998 if (obj3) {
11999 {
12000 arg4 = wxString_in_helper(obj3);
12001 if (arg4 == NULL) SWIG_fail;
12002 temp4 = true;
12003 }
12004 }
12005 if (obj4) {
12006 ecode5 = SWIG_AsVal_int(obj4, &val5);
12007 if (!SWIG_IsOK(ecode5)) {
12008 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFont" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12009 }
12010 arg5 = static_cast< wxFontEncoding >(val5);
12011 }
12012 {
12013 if (!wxPyCheckForApp()) SWIG_fail;
12014 PyThreadState* __tstate = wxPyBeginAllowThreads();
12015 result = (wxFont *)new_wxFont(arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12016 wxPyEndAllowThreads(__tstate);
12017 if (PyErr_Occurred()) SWIG_fail;
12018 }
12019 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12020 {
12021 if (temp4)
12022 delete arg4;
12023 }
12024 return resultobj;
12025 fail:
12026 {
12027 if (temp4)
12028 delete arg4;
12029 }
12030 return NULL;
12031 }
12032
12033
12034 SWIGINTERN PyObject *_wrap_new_FontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12035 PyObject *resultobj = 0;
12036 wxSize *arg1 = 0 ;
12037 int arg2 ;
12038 int arg3 ;
12039 int arg4 ;
12040 bool arg5 = (bool) false ;
12041 wxString const &arg6_defvalue = wxEmptyString ;
12042 wxString *arg6 = (wxString *) &arg6_defvalue ;
12043 wxFontEncoding arg7 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12044 wxFont *result = 0 ;
12045 wxSize temp1 ;
12046 int val2 ;
12047 int ecode2 = 0 ;
12048 int val3 ;
12049 int ecode3 = 0 ;
12050 int val4 ;
12051 int ecode4 = 0 ;
12052 bool val5 ;
12053 int ecode5 = 0 ;
12054 bool temp6 = false ;
12055 int val7 ;
12056 int ecode7 = 0 ;
12057 PyObject * obj0 = 0 ;
12058 PyObject * obj1 = 0 ;
12059 PyObject * obj2 = 0 ;
12060 PyObject * obj3 = 0 ;
12061 PyObject * obj4 = 0 ;
12062 PyObject * obj5 = 0 ;
12063 PyObject * obj6 = 0 ;
12064 char * kwnames[] = {
12065 (char *) "pixelSize",(char *) "family",(char *) "style",(char *) "weight",(char *) "underlined",(char *) "face",(char *) "encoding", NULL
12066 };
12067
12068 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:new_FontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
12069 {
12070 arg1 = &temp1;
12071 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12072 }
12073 ecode2 = SWIG_AsVal_int(obj1, &val2);
12074 if (!SWIG_IsOK(ecode2)) {
12075 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FontFromPixelSize" "', expected argument " "2"" of type '" "int""'");
12076 }
12077 arg2 = static_cast< int >(val2);
12078 ecode3 = SWIG_AsVal_int(obj2, &val3);
12079 if (!SWIG_IsOK(ecode3)) {
12080 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12081 }
12082 arg3 = static_cast< int >(val3);
12083 ecode4 = SWIG_AsVal_int(obj3, &val4);
12084 if (!SWIG_IsOK(ecode4)) {
12085 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_FontFromPixelSize" "', expected argument " "4"" of type '" "int""'");
12086 }
12087 arg4 = static_cast< int >(val4);
12088 if (obj4) {
12089 ecode5 = SWIG_AsVal_bool(obj4, &val5);
12090 if (!SWIG_IsOK(ecode5)) {
12091 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FontFromPixelSize" "', expected argument " "5"" of type '" "bool""'");
12092 }
12093 arg5 = static_cast< bool >(val5);
12094 }
12095 if (obj5) {
12096 {
12097 arg6 = wxString_in_helper(obj5);
12098 if (arg6 == NULL) SWIG_fail;
12099 temp6 = true;
12100 }
12101 }
12102 if (obj6) {
12103 ecode7 = SWIG_AsVal_int(obj6, &val7);
12104 if (!SWIG_IsOK(ecode7)) {
12105 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "new_FontFromPixelSize" "', expected argument " "7"" of type '" "wxFontEncoding""'");
12106 }
12107 arg7 = static_cast< wxFontEncoding >(val7);
12108 }
12109 {
12110 if (!wxPyCheckForApp()) SWIG_fail;
12111 PyThreadState* __tstate = wxPyBeginAllowThreads();
12112 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,arg4,arg5,(wxString const &)*arg6,arg7);
12113 wxPyEndAllowThreads(__tstate);
12114 if (PyErr_Occurred()) SWIG_fail;
12115 }
12116 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12117 {
12118 if (temp6)
12119 delete arg6;
12120 }
12121 return resultobj;
12122 fail:
12123 {
12124 if (temp6)
12125 delete arg6;
12126 }
12127 return NULL;
12128 }
12129
12130
12131 SWIGINTERN PyObject *_wrap_new_FFontFromPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12132 PyObject *resultobj = 0;
12133 wxSize *arg1 = 0 ;
12134 wxFontFamily arg2 ;
12135 int arg3 = (int) wxFONTFLAG_DEFAULT ;
12136 wxString const &arg4_defvalue = wxEmptyString ;
12137 wxString *arg4 = (wxString *) &arg4_defvalue ;
12138 wxFontEncoding arg5 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
12139 wxFont *result = 0 ;
12140 wxSize temp1 ;
12141 int val2 ;
12142 int ecode2 = 0 ;
12143 int val3 ;
12144 int ecode3 = 0 ;
12145 bool temp4 = false ;
12146 int val5 ;
12147 int ecode5 = 0 ;
12148 PyObject * obj0 = 0 ;
12149 PyObject * obj1 = 0 ;
12150 PyObject * obj2 = 0 ;
12151 PyObject * obj3 = 0 ;
12152 PyObject * obj4 = 0 ;
12153 char * kwnames[] = {
12154 (char *) "pixelSize",(char *) "family",(char *) "flags",(char *) "face",(char *) "encoding", NULL
12155 };
12156
12157 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:new_FFontFromPixelSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
12158 {
12159 arg1 = &temp1;
12160 if ( ! wxSize_helper(obj0, &arg1)) SWIG_fail;
12161 }
12162 ecode2 = SWIG_AsVal_int(obj1, &val2);
12163 if (!SWIG_IsOK(ecode2)) {
12164 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_FFontFromPixelSize" "', expected argument " "2"" of type '" "wxFontFamily""'");
12165 }
12166 arg2 = static_cast< wxFontFamily >(val2);
12167 if (obj2) {
12168 ecode3 = SWIG_AsVal_int(obj2, &val3);
12169 if (!SWIG_IsOK(ecode3)) {
12170 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_FFontFromPixelSize" "', expected argument " "3"" of type '" "int""'");
12171 }
12172 arg3 = static_cast< int >(val3);
12173 }
12174 if (obj3) {
12175 {
12176 arg4 = wxString_in_helper(obj3);
12177 if (arg4 == NULL) SWIG_fail;
12178 temp4 = true;
12179 }
12180 }
12181 if (obj4) {
12182 ecode5 = SWIG_AsVal_int(obj4, &val5);
12183 if (!SWIG_IsOK(ecode5)) {
12184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "new_FFontFromPixelSize" "', expected argument " "5"" of type '" "wxFontEncoding""'");
12185 }
12186 arg5 = static_cast< wxFontEncoding >(val5);
12187 }
12188 {
12189 if (!wxPyCheckForApp()) SWIG_fail;
12190 PyThreadState* __tstate = wxPyBeginAllowThreads();
12191 result = (wxFont *)new_wxFont((wxSize const &)*arg1,arg2,arg3,(wxString const &)*arg4,arg5);
12192 wxPyEndAllowThreads(__tstate);
12193 if (PyErr_Occurred()) SWIG_fail;
12194 }
12195 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, SWIG_POINTER_OWN | 0 );
12196 {
12197 if (temp4)
12198 delete arg4;
12199 }
12200 return resultobj;
12201 fail:
12202 {
12203 if (temp4)
12204 delete arg4;
12205 }
12206 return NULL;
12207 }
12208
12209
12210 SWIGINTERN PyObject *_wrap_Font_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12211 PyObject *resultobj = 0;
12212 wxFont *arg1 = (wxFont *) 0 ;
12213 bool result;
12214 void *argp1 = 0 ;
12215 int res1 = 0 ;
12216 PyObject *swig_obj[1] ;
12217
12218 if (!args) SWIG_fail;
12219 swig_obj[0] = args;
12220 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12221 if (!SWIG_IsOK(res1)) {
12222 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_Ok" "', expected argument " "1"" of type '" "wxFont const *""'");
12223 }
12224 arg1 = reinterpret_cast< wxFont * >(argp1);
12225 {
12226 PyThreadState* __tstate = wxPyBeginAllowThreads();
12227 result = (bool)((wxFont const *)arg1)->Ok();
12228 wxPyEndAllowThreads(__tstate);
12229 if (PyErr_Occurred()) SWIG_fail;
12230 }
12231 {
12232 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12233 }
12234 return resultobj;
12235 fail:
12236 return NULL;
12237 }
12238
12239
12240 SWIGINTERN PyObject *_wrap_Font___eq__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12241 PyObject *resultobj = 0;
12242 wxFont *arg1 = (wxFont *) 0 ;
12243 wxFont *arg2 = (wxFont *) 0 ;
12244 bool result;
12245 void *argp1 = 0 ;
12246 int res1 = 0 ;
12247 void *argp2 = 0 ;
12248 int res2 = 0 ;
12249 PyObject * obj0 = 0 ;
12250 PyObject * obj1 = 0 ;
12251 char * kwnames[] = {
12252 (char *) "self",(char *) "other", NULL
12253 };
12254
12255 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___eq__",kwnames,&obj0,&obj1)) SWIG_fail;
12256 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12257 if (!SWIG_IsOK(res1)) {
12258 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___eq__" "', expected argument " "1"" of type '" "wxFont *""'");
12259 }
12260 arg1 = reinterpret_cast< wxFont * >(argp1);
12261 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12262 if (!SWIG_IsOK(res2)) {
12263 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___eq__" "', expected argument " "2"" of type '" "wxFont const *""'");
12264 }
12265 arg2 = reinterpret_cast< wxFont * >(argp2);
12266 {
12267 PyThreadState* __tstate = wxPyBeginAllowThreads();
12268 result = (bool)wxFont___eq__(arg1,(wxFont const *)arg2);
12269 wxPyEndAllowThreads(__tstate);
12270 if (PyErr_Occurred()) SWIG_fail;
12271 }
12272 {
12273 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12274 }
12275 return resultobj;
12276 fail:
12277 return NULL;
12278 }
12279
12280
12281 SWIGINTERN PyObject *_wrap_Font___ne__(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12282 PyObject *resultobj = 0;
12283 wxFont *arg1 = (wxFont *) 0 ;
12284 wxFont *arg2 = (wxFont *) 0 ;
12285 bool result;
12286 void *argp1 = 0 ;
12287 int res1 = 0 ;
12288 void *argp2 = 0 ;
12289 int res2 = 0 ;
12290 PyObject * obj0 = 0 ;
12291 PyObject * obj1 = 0 ;
12292 char * kwnames[] = {
12293 (char *) "self",(char *) "other", NULL
12294 };
12295
12296 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font___ne__",kwnames,&obj0,&obj1)) SWIG_fail;
12297 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12298 if (!SWIG_IsOK(res1)) {
12299 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font___ne__" "', expected argument " "1"" of type '" "wxFont *""'");
12300 }
12301 arg1 = reinterpret_cast< wxFont * >(argp1);
12302 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
12303 if (!SWIG_IsOK(res2)) {
12304 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font___ne__" "', expected argument " "2"" of type '" "wxFont const *""'");
12305 }
12306 arg2 = reinterpret_cast< wxFont * >(argp2);
12307 {
12308 PyThreadState* __tstate = wxPyBeginAllowThreads();
12309 result = (bool)wxFont___ne__(arg1,(wxFont const *)arg2);
12310 wxPyEndAllowThreads(__tstate);
12311 if (PyErr_Occurred()) SWIG_fail;
12312 }
12313 {
12314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12315 }
12316 return resultobj;
12317 fail:
12318 return NULL;
12319 }
12320
12321
12322 SWIGINTERN PyObject *_wrap_Font_GetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12323 PyObject *resultobj = 0;
12324 wxFont *arg1 = (wxFont *) 0 ;
12325 int result;
12326 void *argp1 = 0 ;
12327 int res1 = 0 ;
12328 PyObject *swig_obj[1] ;
12329
12330 if (!args) SWIG_fail;
12331 swig_obj[0] = args;
12332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12333 if (!SWIG_IsOK(res1)) {
12334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPointSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12335 }
12336 arg1 = reinterpret_cast< wxFont * >(argp1);
12337 {
12338 PyThreadState* __tstate = wxPyBeginAllowThreads();
12339 result = (int)((wxFont const *)arg1)->GetPointSize();
12340 wxPyEndAllowThreads(__tstate);
12341 if (PyErr_Occurred()) SWIG_fail;
12342 }
12343 resultobj = SWIG_From_int(static_cast< int >(result));
12344 return resultobj;
12345 fail:
12346 return NULL;
12347 }
12348
12349
12350 SWIGINTERN PyObject *_wrap_Font_GetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12351 PyObject *resultobj = 0;
12352 wxFont *arg1 = (wxFont *) 0 ;
12353 wxSize result;
12354 void *argp1 = 0 ;
12355 int res1 = 0 ;
12356 PyObject *swig_obj[1] ;
12357
12358 if (!args) SWIG_fail;
12359 swig_obj[0] = args;
12360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12361 if (!SWIG_IsOK(res1)) {
12362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetPixelSize" "', expected argument " "1"" of type '" "wxFont const *""'");
12363 }
12364 arg1 = reinterpret_cast< wxFont * >(argp1);
12365 {
12366 PyThreadState* __tstate = wxPyBeginAllowThreads();
12367 result = ((wxFont const *)arg1)->GetPixelSize();
12368 wxPyEndAllowThreads(__tstate);
12369 if (PyErr_Occurred()) SWIG_fail;
12370 }
12371 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
12372 return resultobj;
12373 fail:
12374 return NULL;
12375 }
12376
12377
12378 SWIGINTERN PyObject *_wrap_Font_IsUsingSizeInPixels(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12379 PyObject *resultobj = 0;
12380 wxFont *arg1 = (wxFont *) 0 ;
12381 bool result;
12382 void *argp1 = 0 ;
12383 int res1 = 0 ;
12384 PyObject *swig_obj[1] ;
12385
12386 if (!args) SWIG_fail;
12387 swig_obj[0] = args;
12388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12389 if (!SWIG_IsOK(res1)) {
12390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsUsingSizeInPixels" "', expected argument " "1"" of type '" "wxFont const *""'");
12391 }
12392 arg1 = reinterpret_cast< wxFont * >(argp1);
12393 {
12394 PyThreadState* __tstate = wxPyBeginAllowThreads();
12395 result = (bool)((wxFont const *)arg1)->IsUsingSizeInPixels();
12396 wxPyEndAllowThreads(__tstate);
12397 if (PyErr_Occurred()) SWIG_fail;
12398 }
12399 {
12400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12401 }
12402 return resultobj;
12403 fail:
12404 return NULL;
12405 }
12406
12407
12408 SWIGINTERN PyObject *_wrap_Font_GetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12409 PyObject *resultobj = 0;
12410 wxFont *arg1 = (wxFont *) 0 ;
12411 int result;
12412 void *argp1 = 0 ;
12413 int res1 = 0 ;
12414 PyObject *swig_obj[1] ;
12415
12416 if (!args) SWIG_fail;
12417 swig_obj[0] = args;
12418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12419 if (!SWIG_IsOK(res1)) {
12420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamily" "', expected argument " "1"" of type '" "wxFont const *""'");
12421 }
12422 arg1 = reinterpret_cast< wxFont * >(argp1);
12423 {
12424 PyThreadState* __tstate = wxPyBeginAllowThreads();
12425 result = (int)((wxFont const *)arg1)->GetFamily();
12426 wxPyEndAllowThreads(__tstate);
12427 if (PyErr_Occurred()) SWIG_fail;
12428 }
12429 resultobj = SWIG_From_int(static_cast< int >(result));
12430 return resultobj;
12431 fail:
12432 return NULL;
12433 }
12434
12435
12436 SWIGINTERN PyObject *_wrap_Font_GetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12437 PyObject *resultobj = 0;
12438 wxFont *arg1 = (wxFont *) 0 ;
12439 int result;
12440 void *argp1 = 0 ;
12441 int res1 = 0 ;
12442 PyObject *swig_obj[1] ;
12443
12444 if (!args) SWIG_fail;
12445 swig_obj[0] = args;
12446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12447 if (!SWIG_IsOK(res1)) {
12448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyle" "', expected argument " "1"" of type '" "wxFont const *""'");
12449 }
12450 arg1 = reinterpret_cast< wxFont * >(argp1);
12451 {
12452 PyThreadState* __tstate = wxPyBeginAllowThreads();
12453 result = (int)((wxFont const *)arg1)->GetStyle();
12454 wxPyEndAllowThreads(__tstate);
12455 if (PyErr_Occurred()) SWIG_fail;
12456 }
12457 resultobj = SWIG_From_int(static_cast< int >(result));
12458 return resultobj;
12459 fail:
12460 return NULL;
12461 }
12462
12463
12464 SWIGINTERN PyObject *_wrap_Font_GetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12465 PyObject *resultobj = 0;
12466 wxFont *arg1 = (wxFont *) 0 ;
12467 int result;
12468 void *argp1 = 0 ;
12469 int res1 = 0 ;
12470 PyObject *swig_obj[1] ;
12471
12472 if (!args) SWIG_fail;
12473 swig_obj[0] = args;
12474 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12475 if (!SWIG_IsOK(res1)) {
12476 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeight" "', expected argument " "1"" of type '" "wxFont const *""'");
12477 }
12478 arg1 = reinterpret_cast< wxFont * >(argp1);
12479 {
12480 PyThreadState* __tstate = wxPyBeginAllowThreads();
12481 result = (int)((wxFont const *)arg1)->GetWeight();
12482 wxPyEndAllowThreads(__tstate);
12483 if (PyErr_Occurred()) SWIG_fail;
12484 }
12485 resultobj = SWIG_From_int(static_cast< int >(result));
12486 return resultobj;
12487 fail:
12488 return NULL;
12489 }
12490
12491
12492 SWIGINTERN PyObject *_wrap_Font_GetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12493 PyObject *resultobj = 0;
12494 wxFont *arg1 = (wxFont *) 0 ;
12495 bool result;
12496 void *argp1 = 0 ;
12497 int res1 = 0 ;
12498 PyObject *swig_obj[1] ;
12499
12500 if (!args) SWIG_fail;
12501 swig_obj[0] = args;
12502 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12503 if (!SWIG_IsOK(res1)) {
12504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetUnderlined" "', expected argument " "1"" of type '" "wxFont const *""'");
12505 }
12506 arg1 = reinterpret_cast< wxFont * >(argp1);
12507 {
12508 PyThreadState* __tstate = wxPyBeginAllowThreads();
12509 result = (bool)((wxFont const *)arg1)->GetUnderlined();
12510 wxPyEndAllowThreads(__tstate);
12511 if (PyErr_Occurred()) SWIG_fail;
12512 }
12513 {
12514 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12515 }
12516 return resultobj;
12517 fail:
12518 return NULL;
12519 }
12520
12521
12522 SWIGINTERN PyObject *_wrap_Font_GetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12523 PyObject *resultobj = 0;
12524 wxFont *arg1 = (wxFont *) 0 ;
12525 wxString result;
12526 void *argp1 = 0 ;
12527 int res1 = 0 ;
12528 PyObject *swig_obj[1] ;
12529
12530 if (!args) SWIG_fail;
12531 swig_obj[0] = args;
12532 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12533 if (!SWIG_IsOK(res1)) {
12534 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFaceName" "', expected argument " "1"" of type '" "wxFont const *""'");
12535 }
12536 arg1 = reinterpret_cast< wxFont * >(argp1);
12537 {
12538 PyThreadState* __tstate = wxPyBeginAllowThreads();
12539 result = ((wxFont const *)arg1)->GetFaceName();
12540 wxPyEndAllowThreads(__tstate);
12541 if (PyErr_Occurred()) SWIG_fail;
12542 }
12543 {
12544 #if wxUSE_UNICODE
12545 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12546 #else
12547 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12548 #endif
12549 }
12550 return resultobj;
12551 fail:
12552 return NULL;
12553 }
12554
12555
12556 SWIGINTERN PyObject *_wrap_Font_GetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12557 PyObject *resultobj = 0;
12558 wxFont *arg1 = (wxFont *) 0 ;
12559 wxFontEncoding result;
12560 void *argp1 = 0 ;
12561 int res1 = 0 ;
12562 PyObject *swig_obj[1] ;
12563
12564 if (!args) SWIG_fail;
12565 swig_obj[0] = args;
12566 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12567 if (!SWIG_IsOK(res1)) {
12568 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetEncoding" "', expected argument " "1"" of type '" "wxFont const *""'");
12569 }
12570 arg1 = reinterpret_cast< wxFont * >(argp1);
12571 {
12572 PyThreadState* __tstate = wxPyBeginAllowThreads();
12573 result = (wxFontEncoding)((wxFont const *)arg1)->GetEncoding();
12574 wxPyEndAllowThreads(__tstate);
12575 if (PyErr_Occurred()) SWIG_fail;
12576 }
12577 resultobj = SWIG_From_int(static_cast< int >(result));
12578 return resultobj;
12579 fail:
12580 return NULL;
12581 }
12582
12583
12584 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12585 PyObject *resultobj = 0;
12586 wxFont *arg1 = (wxFont *) 0 ;
12587 wxNativeFontInfo *result = 0 ;
12588 void *argp1 = 0 ;
12589 int res1 = 0 ;
12590 PyObject *swig_obj[1] ;
12591
12592 if (!args) SWIG_fail;
12593 swig_obj[0] = args;
12594 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12595 if (!SWIG_IsOK(res1)) {
12596 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont const *""'");
12597 }
12598 arg1 = reinterpret_cast< wxFont * >(argp1);
12599 {
12600 PyThreadState* __tstate = wxPyBeginAllowThreads();
12601 result = (wxNativeFontInfo *)((wxFont const *)arg1)->GetNativeFontInfo();
12602 wxPyEndAllowThreads(__tstate);
12603 if (PyErr_Occurred()) SWIG_fail;
12604 }
12605 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxNativeFontInfo, 0 | 0 );
12606 return resultobj;
12607 fail:
12608 return NULL;
12609 }
12610
12611
12612 SWIGINTERN PyObject *_wrap_Font_IsFixedWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12613 PyObject *resultobj = 0;
12614 wxFont *arg1 = (wxFont *) 0 ;
12615 bool result;
12616 void *argp1 = 0 ;
12617 int res1 = 0 ;
12618 PyObject *swig_obj[1] ;
12619
12620 if (!args) SWIG_fail;
12621 swig_obj[0] = args;
12622 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12623 if (!SWIG_IsOK(res1)) {
12624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_IsFixedWidth" "', expected argument " "1"" of type '" "wxFont const *""'");
12625 }
12626 arg1 = reinterpret_cast< wxFont * >(argp1);
12627 {
12628 PyThreadState* __tstate = wxPyBeginAllowThreads();
12629 result = (bool)((wxFont const *)arg1)->IsFixedWidth();
12630 wxPyEndAllowThreads(__tstate);
12631 if (PyErr_Occurred()) SWIG_fail;
12632 }
12633 {
12634 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
12635 }
12636 return resultobj;
12637 fail:
12638 return NULL;
12639 }
12640
12641
12642 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12643 PyObject *resultobj = 0;
12644 wxFont *arg1 = (wxFont *) 0 ;
12645 wxString result;
12646 void *argp1 = 0 ;
12647 int res1 = 0 ;
12648 PyObject *swig_obj[1] ;
12649
12650 if (!args) SWIG_fail;
12651 swig_obj[0] = args;
12652 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12653 if (!SWIG_IsOK(res1)) {
12654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12655 }
12656 arg1 = reinterpret_cast< wxFont * >(argp1);
12657 {
12658 PyThreadState* __tstate = wxPyBeginAllowThreads();
12659 result = ((wxFont const *)arg1)->GetNativeFontInfoDesc();
12660 wxPyEndAllowThreads(__tstate);
12661 if (PyErr_Occurred()) SWIG_fail;
12662 }
12663 {
12664 #if wxUSE_UNICODE
12665 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12666 #else
12667 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12668 #endif
12669 }
12670 return resultobj;
12671 fail:
12672 return NULL;
12673 }
12674
12675
12676 SWIGINTERN PyObject *_wrap_Font_GetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
12677 PyObject *resultobj = 0;
12678 wxFont *arg1 = (wxFont *) 0 ;
12679 wxString result;
12680 void *argp1 = 0 ;
12681 int res1 = 0 ;
12682 PyObject *swig_obj[1] ;
12683
12684 if (!args) SWIG_fail;
12685 swig_obj[0] = args;
12686 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12687 if (!SWIG_IsOK(res1)) {
12688 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont const *""'");
12689 }
12690 arg1 = reinterpret_cast< wxFont * >(argp1);
12691 {
12692 PyThreadState* __tstate = wxPyBeginAllowThreads();
12693 result = ((wxFont const *)arg1)->GetNativeFontInfoUserDesc();
12694 wxPyEndAllowThreads(__tstate);
12695 if (PyErr_Occurred()) SWIG_fail;
12696 }
12697 {
12698 #if wxUSE_UNICODE
12699 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
12700 #else
12701 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
12702 #endif
12703 }
12704 return resultobj;
12705 fail:
12706 return NULL;
12707 }
12708
12709
12710 SWIGINTERN PyObject *_wrap_Font_SetPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12711 PyObject *resultobj = 0;
12712 wxFont *arg1 = (wxFont *) 0 ;
12713 int arg2 ;
12714 void *argp1 = 0 ;
12715 int res1 = 0 ;
12716 int val2 ;
12717 int ecode2 = 0 ;
12718 PyObject * obj0 = 0 ;
12719 PyObject * obj1 = 0 ;
12720 char * kwnames[] = {
12721 (char *) "self",(char *) "pointSize", NULL
12722 };
12723
12724 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPointSize",kwnames,&obj0,&obj1)) SWIG_fail;
12725 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12726 if (!SWIG_IsOK(res1)) {
12727 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPointSize" "', expected argument " "1"" of type '" "wxFont *""'");
12728 }
12729 arg1 = reinterpret_cast< wxFont * >(argp1);
12730 ecode2 = SWIG_AsVal_int(obj1, &val2);
12731 if (!SWIG_IsOK(ecode2)) {
12732 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetPointSize" "', expected argument " "2"" of type '" "int""'");
12733 }
12734 arg2 = static_cast< int >(val2);
12735 {
12736 PyThreadState* __tstate = wxPyBeginAllowThreads();
12737 (arg1)->SetPointSize(arg2);
12738 wxPyEndAllowThreads(__tstate);
12739 if (PyErr_Occurred()) SWIG_fail;
12740 }
12741 resultobj = SWIG_Py_Void();
12742 return resultobj;
12743 fail:
12744 return NULL;
12745 }
12746
12747
12748 SWIGINTERN PyObject *_wrap_Font_SetPixelSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12749 PyObject *resultobj = 0;
12750 wxFont *arg1 = (wxFont *) 0 ;
12751 wxSize *arg2 = 0 ;
12752 void *argp1 = 0 ;
12753 int res1 = 0 ;
12754 wxSize temp2 ;
12755 PyObject * obj0 = 0 ;
12756 PyObject * obj1 = 0 ;
12757 char * kwnames[] = {
12758 (char *) "self",(char *) "pixelSize", NULL
12759 };
12760
12761 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetPixelSize",kwnames,&obj0,&obj1)) SWIG_fail;
12762 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12763 if (!SWIG_IsOK(res1)) {
12764 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetPixelSize" "', expected argument " "1"" of type '" "wxFont *""'");
12765 }
12766 arg1 = reinterpret_cast< wxFont * >(argp1);
12767 {
12768 arg2 = &temp2;
12769 if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail;
12770 }
12771 {
12772 PyThreadState* __tstate = wxPyBeginAllowThreads();
12773 (arg1)->SetPixelSize((wxSize const &)*arg2);
12774 wxPyEndAllowThreads(__tstate);
12775 if (PyErr_Occurred()) SWIG_fail;
12776 }
12777 resultobj = SWIG_Py_Void();
12778 return resultobj;
12779 fail:
12780 return NULL;
12781 }
12782
12783
12784 SWIGINTERN PyObject *_wrap_Font_SetFamily(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12785 PyObject *resultobj = 0;
12786 wxFont *arg1 = (wxFont *) 0 ;
12787 int arg2 ;
12788 void *argp1 = 0 ;
12789 int res1 = 0 ;
12790 int val2 ;
12791 int ecode2 = 0 ;
12792 PyObject * obj0 = 0 ;
12793 PyObject * obj1 = 0 ;
12794 char * kwnames[] = {
12795 (char *) "self",(char *) "family", NULL
12796 };
12797
12798 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFamily",kwnames,&obj0,&obj1)) SWIG_fail;
12799 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12800 if (!SWIG_IsOK(res1)) {
12801 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFamily" "', expected argument " "1"" of type '" "wxFont *""'");
12802 }
12803 arg1 = reinterpret_cast< wxFont * >(argp1);
12804 ecode2 = SWIG_AsVal_int(obj1, &val2);
12805 if (!SWIG_IsOK(ecode2)) {
12806 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetFamily" "', expected argument " "2"" of type '" "int""'");
12807 }
12808 arg2 = static_cast< int >(val2);
12809 {
12810 PyThreadState* __tstate = wxPyBeginAllowThreads();
12811 (arg1)->SetFamily(arg2);
12812 wxPyEndAllowThreads(__tstate);
12813 if (PyErr_Occurred()) SWIG_fail;
12814 }
12815 resultobj = SWIG_Py_Void();
12816 return resultobj;
12817 fail:
12818 return NULL;
12819 }
12820
12821
12822 SWIGINTERN PyObject *_wrap_Font_SetStyle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12823 PyObject *resultobj = 0;
12824 wxFont *arg1 = (wxFont *) 0 ;
12825 int arg2 ;
12826 void *argp1 = 0 ;
12827 int res1 = 0 ;
12828 int val2 ;
12829 int ecode2 = 0 ;
12830 PyObject * obj0 = 0 ;
12831 PyObject * obj1 = 0 ;
12832 char * kwnames[] = {
12833 (char *) "self",(char *) "style", NULL
12834 };
12835
12836 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetStyle",kwnames,&obj0,&obj1)) SWIG_fail;
12837 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12838 if (!SWIG_IsOK(res1)) {
12839 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetStyle" "', expected argument " "1"" of type '" "wxFont *""'");
12840 }
12841 arg1 = reinterpret_cast< wxFont * >(argp1);
12842 ecode2 = SWIG_AsVal_int(obj1, &val2);
12843 if (!SWIG_IsOK(ecode2)) {
12844 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetStyle" "', expected argument " "2"" of type '" "int""'");
12845 }
12846 arg2 = static_cast< int >(val2);
12847 {
12848 PyThreadState* __tstate = wxPyBeginAllowThreads();
12849 (arg1)->SetStyle(arg2);
12850 wxPyEndAllowThreads(__tstate);
12851 if (PyErr_Occurred()) SWIG_fail;
12852 }
12853 resultobj = SWIG_Py_Void();
12854 return resultobj;
12855 fail:
12856 return NULL;
12857 }
12858
12859
12860 SWIGINTERN PyObject *_wrap_Font_SetWeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12861 PyObject *resultobj = 0;
12862 wxFont *arg1 = (wxFont *) 0 ;
12863 int arg2 ;
12864 void *argp1 = 0 ;
12865 int res1 = 0 ;
12866 int val2 ;
12867 int ecode2 = 0 ;
12868 PyObject * obj0 = 0 ;
12869 PyObject * obj1 = 0 ;
12870 char * kwnames[] = {
12871 (char *) "self",(char *) "weight", NULL
12872 };
12873
12874 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetWeight",kwnames,&obj0,&obj1)) SWIG_fail;
12875 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12876 if (!SWIG_IsOK(res1)) {
12877 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetWeight" "', expected argument " "1"" of type '" "wxFont *""'");
12878 }
12879 arg1 = reinterpret_cast< wxFont * >(argp1);
12880 ecode2 = SWIG_AsVal_int(obj1, &val2);
12881 if (!SWIG_IsOK(ecode2)) {
12882 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetWeight" "', expected argument " "2"" of type '" "int""'");
12883 }
12884 arg2 = static_cast< int >(val2);
12885 {
12886 PyThreadState* __tstate = wxPyBeginAllowThreads();
12887 (arg1)->SetWeight(arg2);
12888 wxPyEndAllowThreads(__tstate);
12889 if (PyErr_Occurred()) SWIG_fail;
12890 }
12891 resultobj = SWIG_Py_Void();
12892 return resultobj;
12893 fail:
12894 return NULL;
12895 }
12896
12897
12898 SWIGINTERN PyObject *_wrap_Font_SetFaceName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12899 PyObject *resultobj = 0;
12900 wxFont *arg1 = (wxFont *) 0 ;
12901 wxString *arg2 = 0 ;
12902 void *argp1 = 0 ;
12903 int res1 = 0 ;
12904 bool temp2 = false ;
12905 PyObject * obj0 = 0 ;
12906 PyObject * obj1 = 0 ;
12907 char * kwnames[] = {
12908 (char *) "self",(char *) "faceName", NULL
12909 };
12910
12911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetFaceName",kwnames,&obj0,&obj1)) SWIG_fail;
12912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12913 if (!SWIG_IsOK(res1)) {
12914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetFaceName" "', expected argument " "1"" of type '" "wxFont *""'");
12915 }
12916 arg1 = reinterpret_cast< wxFont * >(argp1);
12917 {
12918 arg2 = wxString_in_helper(obj1);
12919 if (arg2 == NULL) SWIG_fail;
12920 temp2 = true;
12921 }
12922 {
12923 PyThreadState* __tstate = wxPyBeginAllowThreads();
12924 (arg1)->SetFaceName((wxString const &)*arg2);
12925 wxPyEndAllowThreads(__tstate);
12926 if (PyErr_Occurred()) SWIG_fail;
12927 }
12928 resultobj = SWIG_Py_Void();
12929 {
12930 if (temp2)
12931 delete arg2;
12932 }
12933 return resultobj;
12934 fail:
12935 {
12936 if (temp2)
12937 delete arg2;
12938 }
12939 return NULL;
12940 }
12941
12942
12943 SWIGINTERN PyObject *_wrap_Font_SetUnderlined(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12944 PyObject *resultobj = 0;
12945 wxFont *arg1 = (wxFont *) 0 ;
12946 bool arg2 ;
12947 void *argp1 = 0 ;
12948 int res1 = 0 ;
12949 bool val2 ;
12950 int ecode2 = 0 ;
12951 PyObject * obj0 = 0 ;
12952 PyObject * obj1 = 0 ;
12953 char * kwnames[] = {
12954 (char *) "self",(char *) "underlined", NULL
12955 };
12956
12957 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetUnderlined",kwnames,&obj0,&obj1)) SWIG_fail;
12958 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12959 if (!SWIG_IsOK(res1)) {
12960 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetUnderlined" "', expected argument " "1"" of type '" "wxFont *""'");
12961 }
12962 arg1 = reinterpret_cast< wxFont * >(argp1);
12963 ecode2 = SWIG_AsVal_bool(obj1, &val2);
12964 if (!SWIG_IsOK(ecode2)) {
12965 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetUnderlined" "', expected argument " "2"" of type '" "bool""'");
12966 }
12967 arg2 = static_cast< bool >(val2);
12968 {
12969 PyThreadState* __tstate = wxPyBeginAllowThreads();
12970 (arg1)->SetUnderlined(arg2);
12971 wxPyEndAllowThreads(__tstate);
12972 if (PyErr_Occurred()) SWIG_fail;
12973 }
12974 resultobj = SWIG_Py_Void();
12975 return resultobj;
12976 fail:
12977 return NULL;
12978 }
12979
12980
12981 SWIGINTERN PyObject *_wrap_Font_SetEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
12982 PyObject *resultobj = 0;
12983 wxFont *arg1 = (wxFont *) 0 ;
12984 wxFontEncoding arg2 ;
12985 void *argp1 = 0 ;
12986 int res1 = 0 ;
12987 int val2 ;
12988 int ecode2 = 0 ;
12989 PyObject * obj0 = 0 ;
12990 PyObject * obj1 = 0 ;
12991 char * kwnames[] = {
12992 (char *) "self",(char *) "encoding", NULL
12993 };
12994
12995 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetEncoding",kwnames,&obj0,&obj1)) SWIG_fail;
12996 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
12997 if (!SWIG_IsOK(res1)) {
12998 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetEncoding" "', expected argument " "1"" of type '" "wxFont *""'");
12999 }
13000 arg1 = reinterpret_cast< wxFont * >(argp1);
13001 ecode2 = SWIG_AsVal_int(obj1, &val2);
13002 if (!SWIG_IsOK(ecode2)) {
13003 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetEncoding" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13004 }
13005 arg2 = static_cast< wxFontEncoding >(val2);
13006 {
13007 PyThreadState* __tstate = wxPyBeginAllowThreads();
13008 (arg1)->SetEncoding(arg2);
13009 wxPyEndAllowThreads(__tstate);
13010 if (PyErr_Occurred()) SWIG_fail;
13011 }
13012 resultobj = SWIG_Py_Void();
13013 return resultobj;
13014 fail:
13015 return NULL;
13016 }
13017
13018
13019 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13020 PyObject *resultobj = 0;
13021 wxFont *arg1 = (wxFont *) 0 ;
13022 wxNativeFontInfo *arg2 = 0 ;
13023 void *argp1 = 0 ;
13024 int res1 = 0 ;
13025 void *argp2 = 0 ;
13026 int res2 = 0 ;
13027 PyObject * obj0 = 0 ;
13028 PyObject * obj1 = 0 ;
13029 char * kwnames[] = {
13030 (char *) "self",(char *) "info", NULL
13031 };
13032
13033 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfo",kwnames,&obj0,&obj1)) SWIG_fail;
13034 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13035 if (!SWIG_IsOK(res1)) {
13036 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfo" "', expected argument " "1"" of type '" "wxFont *""'");
13037 }
13038 arg1 = reinterpret_cast< wxFont * >(argp1);
13039 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxNativeFontInfo, 0 | 0);
13040 if (!SWIG_IsOK(res2)) {
13041 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13042 }
13043 if (!argp2) {
13044 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Font_SetNativeFontInfo" "', expected argument " "2"" of type '" "wxNativeFontInfo const &""'");
13045 }
13046 arg2 = reinterpret_cast< wxNativeFontInfo * >(argp2);
13047 {
13048 PyThreadState* __tstate = wxPyBeginAllowThreads();
13049 (arg1)->SetNativeFontInfo((wxNativeFontInfo const &)*arg2);
13050 wxPyEndAllowThreads(__tstate);
13051 if (PyErr_Occurred()) SWIG_fail;
13052 }
13053 resultobj = SWIG_Py_Void();
13054 return resultobj;
13055 fail:
13056 return NULL;
13057 }
13058
13059
13060 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoFromString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13061 PyObject *resultobj = 0;
13062 wxFont *arg1 = (wxFont *) 0 ;
13063 wxString *arg2 = 0 ;
13064 void *argp1 = 0 ;
13065 int res1 = 0 ;
13066 bool temp2 = false ;
13067 PyObject * obj0 = 0 ;
13068 PyObject * obj1 = 0 ;
13069 char * kwnames[] = {
13070 (char *) "self",(char *) "info", NULL
13071 };
13072
13073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoFromString",kwnames,&obj0,&obj1)) SWIG_fail;
13074 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13075 if (!SWIG_IsOK(res1)) {
13076 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoFromString" "', expected argument " "1"" of type '" "wxFont *""'");
13077 }
13078 arg1 = reinterpret_cast< wxFont * >(argp1);
13079 {
13080 arg2 = wxString_in_helper(obj1);
13081 if (arg2 == NULL) SWIG_fail;
13082 temp2 = true;
13083 }
13084 {
13085 PyThreadState* __tstate = wxPyBeginAllowThreads();
13086 (arg1)->SetNativeFontInfo((wxString const &)*arg2);
13087 wxPyEndAllowThreads(__tstate);
13088 if (PyErr_Occurred()) SWIG_fail;
13089 }
13090 resultobj = SWIG_Py_Void();
13091 {
13092 if (temp2)
13093 delete arg2;
13094 }
13095 return resultobj;
13096 fail:
13097 {
13098 if (temp2)
13099 delete arg2;
13100 }
13101 return NULL;
13102 }
13103
13104
13105 SWIGINTERN PyObject *_wrap_Font_SetNativeFontInfoUserDesc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13106 PyObject *resultobj = 0;
13107 wxFont *arg1 = (wxFont *) 0 ;
13108 wxString *arg2 = 0 ;
13109 void *argp1 = 0 ;
13110 int res1 = 0 ;
13111 bool temp2 = false ;
13112 PyObject * obj0 = 0 ;
13113 PyObject * obj1 = 0 ;
13114 char * kwnames[] = {
13115 (char *) "self",(char *) "info", NULL
13116 };
13117
13118 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Font_SetNativeFontInfoUserDesc",kwnames,&obj0,&obj1)) SWIG_fail;
13119 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13120 if (!SWIG_IsOK(res1)) {
13121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNativeFontInfoUserDesc" "', expected argument " "1"" of type '" "wxFont *""'");
13122 }
13123 arg1 = reinterpret_cast< wxFont * >(argp1);
13124 {
13125 arg2 = wxString_in_helper(obj1);
13126 if (arg2 == NULL) SWIG_fail;
13127 temp2 = true;
13128 }
13129 {
13130 PyThreadState* __tstate = wxPyBeginAllowThreads();
13131 (arg1)->SetNativeFontInfoUserDesc((wxString const &)*arg2);
13132 wxPyEndAllowThreads(__tstate);
13133 if (PyErr_Occurred()) SWIG_fail;
13134 }
13135 resultobj = SWIG_Py_Void();
13136 {
13137 if (temp2)
13138 delete arg2;
13139 }
13140 return resultobj;
13141 fail:
13142 {
13143 if (temp2)
13144 delete arg2;
13145 }
13146 return NULL;
13147 }
13148
13149
13150 SWIGINTERN PyObject *_wrap_Font_GetFamilyString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13151 PyObject *resultobj = 0;
13152 wxFont *arg1 = (wxFont *) 0 ;
13153 wxString result;
13154 void *argp1 = 0 ;
13155 int res1 = 0 ;
13156 PyObject *swig_obj[1] ;
13157
13158 if (!args) SWIG_fail;
13159 swig_obj[0] = args;
13160 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13161 if (!SWIG_IsOK(res1)) {
13162 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetFamilyString" "', expected argument " "1"" of type '" "wxFont const *""'");
13163 }
13164 arg1 = reinterpret_cast< wxFont * >(argp1);
13165 {
13166 PyThreadState* __tstate = wxPyBeginAllowThreads();
13167 result = ((wxFont const *)arg1)->GetFamilyString();
13168 wxPyEndAllowThreads(__tstate);
13169 if (PyErr_Occurred()) SWIG_fail;
13170 }
13171 {
13172 #if wxUSE_UNICODE
13173 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13174 #else
13175 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13176 #endif
13177 }
13178 return resultobj;
13179 fail:
13180 return NULL;
13181 }
13182
13183
13184 SWIGINTERN PyObject *_wrap_Font_GetStyleString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13185 PyObject *resultobj = 0;
13186 wxFont *arg1 = (wxFont *) 0 ;
13187 wxString result;
13188 void *argp1 = 0 ;
13189 int res1 = 0 ;
13190 PyObject *swig_obj[1] ;
13191
13192 if (!args) SWIG_fail;
13193 swig_obj[0] = args;
13194 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13195 if (!SWIG_IsOK(res1)) {
13196 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetStyleString" "', expected argument " "1"" of type '" "wxFont const *""'");
13197 }
13198 arg1 = reinterpret_cast< wxFont * >(argp1);
13199 {
13200 PyThreadState* __tstate = wxPyBeginAllowThreads();
13201 result = ((wxFont const *)arg1)->GetStyleString();
13202 wxPyEndAllowThreads(__tstate);
13203 if (PyErr_Occurred()) SWIG_fail;
13204 }
13205 {
13206 #if wxUSE_UNICODE
13207 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13208 #else
13209 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13210 #endif
13211 }
13212 return resultobj;
13213 fail:
13214 return NULL;
13215 }
13216
13217
13218 SWIGINTERN PyObject *_wrap_Font_GetWeightString(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13219 PyObject *resultobj = 0;
13220 wxFont *arg1 = (wxFont *) 0 ;
13221 wxString result;
13222 void *argp1 = 0 ;
13223 int res1 = 0 ;
13224 PyObject *swig_obj[1] ;
13225
13226 if (!args) SWIG_fail;
13227 swig_obj[0] = args;
13228 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13229 if (!SWIG_IsOK(res1)) {
13230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetWeightString" "', expected argument " "1"" of type '" "wxFont const *""'");
13231 }
13232 arg1 = reinterpret_cast< wxFont * >(argp1);
13233 {
13234 PyThreadState* __tstate = wxPyBeginAllowThreads();
13235 result = ((wxFont const *)arg1)->GetWeightString();
13236 wxPyEndAllowThreads(__tstate);
13237 if (PyErr_Occurred()) SWIG_fail;
13238 }
13239 {
13240 #if wxUSE_UNICODE
13241 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
13242 #else
13243 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
13244 #endif
13245 }
13246 return resultobj;
13247 fail:
13248 return NULL;
13249 }
13250
13251
13252 SWIGINTERN PyObject *_wrap_Font_SetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13253 PyObject *resultobj = 0;
13254 wxFont *arg1 = (wxFont *) 0 ;
13255 bool arg2 = (bool) true ;
13256 void *argp1 = 0 ;
13257 int res1 = 0 ;
13258 bool val2 ;
13259 int ecode2 = 0 ;
13260 PyObject * obj0 = 0 ;
13261 PyObject * obj1 = 0 ;
13262 char * kwnames[] = {
13263 (char *) "self",(char *) "no", NULL
13264 };
13265
13266 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:Font_SetNoAntiAliasing",kwnames,&obj0,&obj1)) SWIG_fail;
13267 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13268 if (!SWIG_IsOK(res1)) {
13269 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont *""'");
13270 }
13271 arg1 = reinterpret_cast< wxFont * >(argp1);
13272 if (obj1) {
13273 ecode2 = SWIG_AsVal_bool(obj1, &val2);
13274 if (!SWIG_IsOK(ecode2)) {
13275 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Font_SetNoAntiAliasing" "', expected argument " "2"" of type '" "bool""'");
13276 }
13277 arg2 = static_cast< bool >(val2);
13278 }
13279 {
13280 PyThreadState* __tstate = wxPyBeginAllowThreads();
13281 (arg1)->SetNoAntiAliasing(arg2);
13282 wxPyEndAllowThreads(__tstate);
13283 if (PyErr_Occurred()) SWIG_fail;
13284 }
13285 resultobj = SWIG_Py_Void();
13286 return resultobj;
13287 fail:
13288 return NULL;
13289 }
13290
13291
13292 SWIGINTERN PyObject *_wrap_Font_GetNoAntiAliasing(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13293 PyObject *resultobj = 0;
13294 wxFont *arg1 = (wxFont *) 0 ;
13295 bool result;
13296 void *argp1 = 0 ;
13297 int res1 = 0 ;
13298 PyObject *swig_obj[1] ;
13299
13300 if (!args) SWIG_fail;
13301 swig_obj[0] = args;
13302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxFont, 0 | 0 );
13303 if (!SWIG_IsOK(res1)) {
13304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Font_GetNoAntiAliasing" "', expected argument " "1"" of type '" "wxFont const *""'");
13305 }
13306 arg1 = reinterpret_cast< wxFont * >(argp1);
13307 {
13308 PyThreadState* __tstate = wxPyBeginAllowThreads();
13309 result = (bool)((wxFont const *)arg1)->GetNoAntiAliasing();
13310 wxPyEndAllowThreads(__tstate);
13311 if (PyErr_Occurred()) SWIG_fail;
13312 }
13313 {
13314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13315 }
13316 return resultobj;
13317 fail:
13318 return NULL;
13319 }
13320
13321
13322 SWIGINTERN PyObject *_wrap_Font_GetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13323 PyObject *resultobj = 0;
13324 wxFontEncoding result;
13325
13326 if (!SWIG_Python_UnpackTuple(args,"Font_GetDefaultEncoding",0,0,0)) SWIG_fail;
13327 {
13328 if (!wxPyCheckForApp()) SWIG_fail;
13329 PyThreadState* __tstate = wxPyBeginAllowThreads();
13330 result = (wxFontEncoding)wxFont::GetDefaultEncoding();
13331 wxPyEndAllowThreads(__tstate);
13332 if (PyErr_Occurred()) SWIG_fail;
13333 }
13334 resultobj = SWIG_From_int(static_cast< int >(result));
13335 return resultobj;
13336 fail:
13337 return NULL;
13338 }
13339
13340
13341 SWIGINTERN PyObject *_wrap_Font_SetDefaultEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13342 PyObject *resultobj = 0;
13343 wxFontEncoding arg1 ;
13344 int val1 ;
13345 int ecode1 = 0 ;
13346 PyObject * obj0 = 0 ;
13347 char * kwnames[] = {
13348 (char *) "encoding", NULL
13349 };
13350
13351 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Font_SetDefaultEncoding",kwnames,&obj0)) SWIG_fail;
13352 ecode1 = SWIG_AsVal_int(obj0, &val1);
13353 if (!SWIG_IsOK(ecode1)) {
13354 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Font_SetDefaultEncoding" "', expected argument " "1"" of type '" "wxFontEncoding""'");
13355 }
13356 arg1 = static_cast< wxFontEncoding >(val1);
13357 {
13358 if (!wxPyCheckForApp()) SWIG_fail;
13359 PyThreadState* __tstate = wxPyBeginAllowThreads();
13360 wxFont::SetDefaultEncoding(arg1);
13361 wxPyEndAllowThreads(__tstate);
13362 if (PyErr_Occurred()) SWIG_fail;
13363 }
13364 resultobj = SWIG_Py_Void();
13365 return resultobj;
13366 fail:
13367 return NULL;
13368 }
13369
13370
13371 SWIGINTERN PyObject *Font_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13372 PyObject *obj;
13373 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13374 SWIG_TypeNewClientData(SWIGTYPE_p_wxFont, SWIG_NewClientData(obj));
13375 return SWIG_Py_Void();
13376 }
13377
13378 SWIGINTERN PyObject *Font_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13379 return SWIG_Python_InitShadowInstance(args);
13380 }
13381
13382 SWIGINTERN PyObject *_wrap_new_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13383 PyObject *resultobj = 0;
13384 wxPyFontEnumerator *result = 0 ;
13385
13386 if (!SWIG_Python_UnpackTuple(args,"new_FontEnumerator",0,0,0)) SWIG_fail;
13387 {
13388 if (!wxPyCheckForApp()) SWIG_fail;
13389 PyThreadState* __tstate = wxPyBeginAllowThreads();
13390 result = (wxPyFontEnumerator *)new wxPyFontEnumerator();
13391 wxPyEndAllowThreads(__tstate);
13392 if (PyErr_Occurred()) SWIG_fail;
13393 }
13394 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_NEW | 0 );
13395 return resultobj;
13396 fail:
13397 return NULL;
13398 }
13399
13400
13401 SWIGINTERN PyObject *_wrap_delete_FontEnumerator(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13402 PyObject *resultobj = 0;
13403 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13404 void *argp1 = 0 ;
13405 int res1 = 0 ;
13406 PyObject *swig_obj[1] ;
13407
13408 if (!args) SWIG_fail;
13409 swig_obj[0] = args;
13410 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, SWIG_POINTER_DISOWN | 0 );
13411 if (!SWIG_IsOK(res1)) {
13412 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_FontEnumerator" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13413 }
13414 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13415 {
13416 PyThreadState* __tstate = wxPyBeginAllowThreads();
13417 delete arg1;
13418
13419 wxPyEndAllowThreads(__tstate);
13420 if (PyErr_Occurred()) SWIG_fail;
13421 }
13422 resultobj = SWIG_Py_Void();
13423 return resultobj;
13424 fail:
13425 return NULL;
13426 }
13427
13428
13429 SWIGINTERN PyObject *_wrap_FontEnumerator__setCallbackInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13430 PyObject *resultobj = 0;
13431 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13432 PyObject *arg2 = (PyObject *) 0 ;
13433 PyObject *arg3 = (PyObject *) 0 ;
13434 bool arg4 ;
13435 void *argp1 = 0 ;
13436 int res1 = 0 ;
13437 bool val4 ;
13438 int ecode4 = 0 ;
13439 PyObject * obj0 = 0 ;
13440 PyObject * obj1 = 0 ;
13441 PyObject * obj2 = 0 ;
13442 PyObject * obj3 = 0 ;
13443 char * kwnames[] = {
13444 (char *) "self",(char *) "self",(char *) "_class",(char *) "incref", NULL
13445 };
13446
13447 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:FontEnumerator__setCallbackInfo",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
13448 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13449 if (!SWIG_IsOK(res1)) {
13450 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13451 }
13452 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13453 arg2 = obj1;
13454 arg3 = obj2;
13455 ecode4 = SWIG_AsVal_bool(obj3, &val4);
13456 if (!SWIG_IsOK(ecode4)) {
13457 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontEnumerator__setCallbackInfo" "', expected argument " "4"" of type '" "bool""'");
13458 }
13459 arg4 = static_cast< bool >(val4);
13460 {
13461 PyThreadState* __tstate = wxPyBeginAllowThreads();
13462 (arg1)->_setCallbackInfo(arg2,arg3,arg4);
13463 wxPyEndAllowThreads(__tstate);
13464 if (PyErr_Occurred()) SWIG_fail;
13465 }
13466 resultobj = SWIG_Py_Void();
13467 return resultobj;
13468 fail:
13469 return NULL;
13470 }
13471
13472
13473 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13474 PyObject *resultobj = 0;
13475 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13476 wxFontEncoding arg2 = (wxFontEncoding) wxFONTENCODING_SYSTEM ;
13477 bool arg3 = (bool) false ;
13478 bool result;
13479 void *argp1 = 0 ;
13480 int res1 = 0 ;
13481 int val2 ;
13482 int ecode2 = 0 ;
13483 bool val3 ;
13484 int ecode3 = 0 ;
13485 PyObject * obj0 = 0 ;
13486 PyObject * obj1 = 0 ;
13487 PyObject * obj2 = 0 ;
13488 char * kwnames[] = {
13489 (char *) "self",(char *) "encoding",(char *) "fixedWidthOnly", NULL
13490 };
13491
13492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:FontEnumerator_EnumerateFacenames",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
13493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13494 if (!SWIG_IsOK(res1)) {
13495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13496 }
13497 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13498 if (obj1) {
13499 ecode2 = SWIG_AsVal_int(obj1, &val2);
13500 if (!SWIG_IsOK(ecode2)) {
13501 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "2"" of type '" "wxFontEncoding""'");
13502 }
13503 arg2 = static_cast< wxFontEncoding >(val2);
13504 }
13505 if (obj2) {
13506 ecode3 = SWIG_AsVal_bool(obj2, &val3);
13507 if (!SWIG_IsOK(ecode3)) {
13508 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontEnumerator_EnumerateFacenames" "', expected argument " "3"" of type '" "bool""'");
13509 }
13510 arg3 = static_cast< bool >(val3);
13511 }
13512 {
13513 PyThreadState* __tstate = wxPyBeginAllowThreads();
13514 result = (bool)(arg1)->EnumerateFacenames(arg2,arg3);
13515 wxPyEndAllowThreads(__tstate);
13516 if (PyErr_Occurred()) SWIG_fail;
13517 }
13518 {
13519 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13520 }
13521 return resultobj;
13522 fail:
13523 return NULL;
13524 }
13525
13526
13527 SWIGINTERN PyObject *_wrap_FontEnumerator_EnumerateEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13528 PyObject *resultobj = 0;
13529 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13530 wxString const &arg2_defvalue = wxPyEmptyString ;
13531 wxString *arg2 = (wxString *) &arg2_defvalue ;
13532 bool result;
13533 void *argp1 = 0 ;
13534 int res1 = 0 ;
13535 bool temp2 = false ;
13536 PyObject * obj0 = 0 ;
13537 PyObject * obj1 = 0 ;
13538 char * kwnames[] = {
13539 (char *) "self",(char *) "facename", NULL
13540 };
13541
13542 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:FontEnumerator_EnumerateEncodings",kwnames,&obj0,&obj1)) SWIG_fail;
13543 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13544 if (!SWIG_IsOK(res1)) {
13545 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_EnumerateEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13546 }
13547 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13548 if (obj1) {
13549 {
13550 arg2 = wxString_in_helper(obj1);
13551 if (arg2 == NULL) SWIG_fail;
13552 temp2 = true;
13553 }
13554 }
13555 {
13556 PyThreadState* __tstate = wxPyBeginAllowThreads();
13557 result = (bool)(arg1)->EnumerateEncodings((wxString const &)*arg2);
13558 wxPyEndAllowThreads(__tstate);
13559 if (PyErr_Occurred()) SWIG_fail;
13560 }
13561 {
13562 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13563 }
13564 {
13565 if (temp2)
13566 delete arg2;
13567 }
13568 return resultobj;
13569 fail:
13570 {
13571 if (temp2)
13572 delete arg2;
13573 }
13574 return NULL;
13575 }
13576
13577
13578 SWIGINTERN PyObject *_wrap_FontEnumerator_GetEncodings(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13579 PyObject *resultobj = 0;
13580 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13581 PyObject *result = 0 ;
13582 void *argp1 = 0 ;
13583 int res1 = 0 ;
13584 PyObject *swig_obj[1] ;
13585
13586 if (!args) SWIG_fail;
13587 swig_obj[0] = args;
13588 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13589 if (!SWIG_IsOK(res1)) {
13590 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetEncodings" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13591 }
13592 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13593 {
13594 PyThreadState* __tstate = wxPyBeginAllowThreads();
13595 result = (PyObject *)wxPyFontEnumerator_GetEncodings(arg1);
13596 wxPyEndAllowThreads(__tstate);
13597 if (PyErr_Occurred()) SWIG_fail;
13598 }
13599 resultobj = result;
13600 return resultobj;
13601 fail:
13602 return NULL;
13603 }
13604
13605
13606 SWIGINTERN PyObject *_wrap_FontEnumerator_GetFacenames(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13607 PyObject *resultobj = 0;
13608 wxPyFontEnumerator *arg1 = (wxPyFontEnumerator *) 0 ;
13609 PyObject *result = 0 ;
13610 void *argp1 = 0 ;
13611 int res1 = 0 ;
13612 PyObject *swig_obj[1] ;
13613
13614 if (!args) SWIG_fail;
13615 swig_obj[0] = args;
13616 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPyFontEnumerator, 0 | 0 );
13617 if (!SWIG_IsOK(res1)) {
13618 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontEnumerator_GetFacenames" "', expected argument " "1"" of type '" "wxPyFontEnumerator *""'");
13619 }
13620 arg1 = reinterpret_cast< wxPyFontEnumerator * >(argp1);
13621 {
13622 PyThreadState* __tstate = wxPyBeginAllowThreads();
13623 result = (PyObject *)wxPyFontEnumerator_GetFacenames(arg1);
13624 wxPyEndAllowThreads(__tstate);
13625 if (PyErr_Occurred()) SWIG_fail;
13626 }
13627 resultobj = result;
13628 return resultobj;
13629 fail:
13630 return NULL;
13631 }
13632
13633
13634 SWIGINTERN PyObject *FontEnumerator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13635 PyObject *obj;
13636 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13637 SWIG_TypeNewClientData(SWIGTYPE_p_wxPyFontEnumerator, SWIG_NewClientData(obj));
13638 return SWIG_Py_Void();
13639 }
13640
13641 SWIGINTERN PyObject *FontEnumerator_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13642 return SWIG_Python_InitShadowInstance(args);
13643 }
13644
13645 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13646 PyObject *resultobj = 0;
13647 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13648 int arg2 ;
13649 void *argp1 = 0 ;
13650 int res1 = 0 ;
13651 int val2 ;
13652 int ecode2 = 0 ;
13653 PyObject *swig_obj[2] ;
13654
13655 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Language_set",2,2,swig_obj)) SWIG_fail;
13656 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13657 if (!SWIG_IsOK(res1)) {
13658 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13659 }
13660 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13661 ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
13662 if (!SWIG_IsOK(ecode2)) {
13663 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "LanguageInfo_Language_set" "', expected argument " "2"" of type '" "int""'");
13664 }
13665 arg2 = static_cast< int >(val2);
13666 if (arg1) (arg1)->Language = arg2;
13667
13668 resultobj = SWIG_Py_Void();
13669 return resultobj;
13670 fail:
13671 return NULL;
13672 }
13673
13674
13675 SWIGINTERN PyObject *_wrap_LanguageInfo_Language_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13676 PyObject *resultobj = 0;
13677 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13678 int result;
13679 void *argp1 = 0 ;
13680 int res1 = 0 ;
13681 PyObject *swig_obj[1] ;
13682
13683 if (!args) SWIG_fail;
13684 swig_obj[0] = args;
13685 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13686 if (!SWIG_IsOK(res1)) {
13687 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Language_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13688 }
13689 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13690 result = (int) ((arg1)->Language);
13691 resultobj = SWIG_From_int(static_cast< int >(result));
13692 return resultobj;
13693 fail:
13694 return NULL;
13695 }
13696
13697
13698 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13699 PyObject *resultobj = 0;
13700 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13701 wxString *arg2 = (wxString *) 0 ;
13702 void *argp1 = 0 ;
13703 int res1 = 0 ;
13704 bool temp2 = false ;
13705 PyObject *swig_obj[2] ;
13706
13707 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_CanonicalName_set",2,2,swig_obj)) SWIG_fail;
13708 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13709 if (!SWIG_IsOK(res1)) {
13710 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13711 }
13712 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13713 {
13714 arg2 = wxString_in_helper(swig_obj[1]);
13715 if (arg2 == NULL) SWIG_fail;
13716 temp2 = true;
13717 }
13718 if (arg1) (arg1)->CanonicalName = *arg2;
13719
13720 resultobj = SWIG_Py_Void();
13721 {
13722 if (temp2)
13723 delete arg2;
13724 }
13725 return resultobj;
13726 fail:
13727 {
13728 if (temp2)
13729 delete arg2;
13730 }
13731 return NULL;
13732 }
13733
13734
13735 SWIGINTERN PyObject *_wrap_LanguageInfo_CanonicalName_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13736 PyObject *resultobj = 0;
13737 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13738 wxString *result = 0 ;
13739 void *argp1 = 0 ;
13740 int res1 = 0 ;
13741 PyObject *swig_obj[1] ;
13742
13743 if (!args) SWIG_fail;
13744 swig_obj[0] = args;
13745 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13746 if (!SWIG_IsOK(res1)) {
13747 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_CanonicalName_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13748 }
13749 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13750 result = (wxString *)& ((arg1)->CanonicalName);
13751 {
13752 #if wxUSE_UNICODE
13753 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13754 #else
13755 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13756 #endif
13757 }
13758 return resultobj;
13759 fail:
13760 return NULL;
13761 }
13762
13763
13764 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_set(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13765 PyObject *resultobj = 0;
13766 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13767 wxString *arg2 = (wxString *) 0 ;
13768 void *argp1 = 0 ;
13769 int res1 = 0 ;
13770 bool temp2 = false ;
13771 PyObject *swig_obj[2] ;
13772
13773 if (!SWIG_Python_UnpackTuple(args,"LanguageInfo_Description_set",2,2,swig_obj)) SWIG_fail;
13774 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13775 if (!SWIG_IsOK(res1)) {
13776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_set" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13777 }
13778 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13779 {
13780 arg2 = wxString_in_helper(swig_obj[1]);
13781 if (arg2 == NULL) SWIG_fail;
13782 temp2 = true;
13783 }
13784 if (arg1) (arg1)->Description = *arg2;
13785
13786 resultobj = SWIG_Py_Void();
13787 {
13788 if (temp2)
13789 delete arg2;
13790 }
13791 return resultobj;
13792 fail:
13793 {
13794 if (temp2)
13795 delete arg2;
13796 }
13797 return NULL;
13798 }
13799
13800
13801 SWIGINTERN PyObject *_wrap_LanguageInfo_Description_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13802 PyObject *resultobj = 0;
13803 wxLanguageInfo *arg1 = (wxLanguageInfo *) 0 ;
13804 wxString *result = 0 ;
13805 void *argp1 = 0 ;
13806 int res1 = 0 ;
13807 PyObject *swig_obj[1] ;
13808
13809 if (!args) SWIG_fail;
13810 swig_obj[0] = args;
13811 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
13812 if (!SWIG_IsOK(res1)) {
13813 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "LanguageInfo_Description_get" "', expected argument " "1"" of type '" "wxLanguageInfo *""'");
13814 }
13815 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
13816 result = (wxString *)& ((arg1)->Description);
13817 {
13818 #if wxUSE_UNICODE
13819 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
13820 #else
13821 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
13822 #endif
13823 }
13824 return resultobj;
13825 fail:
13826 return NULL;
13827 }
13828
13829
13830 SWIGINTERN PyObject *LanguageInfo_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13831 PyObject *obj;
13832 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
13833 SWIG_TypeNewClientData(SWIGTYPE_p_wxLanguageInfo, SWIG_NewClientData(obj));
13834 return SWIG_Py_Void();
13835 }
13836
13837 SWIGINTERN PyObject *_wrap_new_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13838 PyObject *resultobj = 0;
13839 int arg1 = (int) -1 ;
13840 int arg2 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
13841 wxLocale *result = 0 ;
13842 int val1 ;
13843 int ecode1 = 0 ;
13844 int val2 ;
13845 int ecode2 = 0 ;
13846 PyObject * obj0 = 0 ;
13847 PyObject * obj1 = 0 ;
13848 char * kwnames[] = {
13849 (char *) "language",(char *) "flags", NULL
13850 };
13851
13852 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_Locale",kwnames,&obj0,&obj1)) SWIG_fail;
13853 if (obj0) {
13854 ecode1 = SWIG_AsVal_int(obj0, &val1);
13855 if (!SWIG_IsOK(ecode1)) {
13856 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Locale" "', expected argument " "1"" of type '" "int""'");
13857 }
13858 arg1 = static_cast< int >(val1);
13859 }
13860 if (obj1) {
13861 ecode2 = SWIG_AsVal_int(obj1, &val2);
13862 if (!SWIG_IsOK(ecode2)) {
13863 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_Locale" "', expected argument " "2"" of type '" "int""'");
13864 }
13865 arg2 = static_cast< int >(val2);
13866 }
13867 {
13868 PyThreadState* __tstate = wxPyBeginAllowThreads();
13869 result = (wxLocale *)new_wxLocale(arg1,arg2);
13870 wxPyEndAllowThreads(__tstate);
13871 if (PyErr_Occurred()) SWIG_fail;
13872 }
13873 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, SWIG_POINTER_NEW | 0 );
13874 return resultobj;
13875 fail:
13876 return NULL;
13877 }
13878
13879
13880 SWIGINTERN PyObject *_wrap_delete_Locale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
13881 PyObject *resultobj = 0;
13882 wxLocale *arg1 = (wxLocale *) 0 ;
13883 void *argp1 = 0 ;
13884 int res1 = 0 ;
13885 PyObject *swig_obj[1] ;
13886
13887 if (!args) SWIG_fail;
13888 swig_obj[0] = args;
13889 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, SWIG_POINTER_DISOWN | 0 );
13890 if (!SWIG_IsOK(res1)) {
13891 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Locale" "', expected argument " "1"" of type '" "wxLocale *""'");
13892 }
13893 arg1 = reinterpret_cast< wxLocale * >(argp1);
13894 {
13895 PyThreadState* __tstate = wxPyBeginAllowThreads();
13896 delete arg1;
13897
13898 wxPyEndAllowThreads(__tstate);
13899 if (PyErr_Occurred()) SWIG_fail;
13900 }
13901 resultobj = SWIG_Py_Void();
13902 return resultobj;
13903 fail:
13904 return NULL;
13905 }
13906
13907
13908 SWIGINTERN PyObject *_wrap_Locale_Init1(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
13909 PyObject *resultobj = 0;
13910 wxLocale *arg1 = (wxLocale *) 0 ;
13911 wxString *arg2 = 0 ;
13912 wxString const &arg3_defvalue = wxPyEmptyString ;
13913 wxString *arg3 = (wxString *) &arg3_defvalue ;
13914 wxString const &arg4_defvalue = wxPyEmptyString ;
13915 wxString *arg4 = (wxString *) &arg4_defvalue ;
13916 bool arg5 = (bool) true ;
13917 bool arg6 = (bool) false ;
13918 bool result;
13919 void *argp1 = 0 ;
13920 int res1 = 0 ;
13921 bool temp2 = false ;
13922 bool temp3 = false ;
13923 bool temp4 = false ;
13924 bool val5 ;
13925 int ecode5 = 0 ;
13926 bool val6 ;
13927 int ecode6 = 0 ;
13928 PyObject * obj0 = 0 ;
13929 PyObject * obj1 = 0 ;
13930 PyObject * obj2 = 0 ;
13931 PyObject * obj3 = 0 ;
13932 PyObject * obj4 = 0 ;
13933 PyObject * obj5 = 0 ;
13934 char * kwnames[] = {
13935 (char *) "self",(char *) "szName",(char *) "szShort",(char *) "szLocale",(char *) "bLoadDefault",(char *) "bConvertEncoding", NULL
13936 };
13937
13938 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:Locale_Init1",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
13939 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
13940 if (!SWIG_IsOK(res1)) {
13941 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init1" "', expected argument " "1"" of type '" "wxLocale *""'");
13942 }
13943 arg1 = reinterpret_cast< wxLocale * >(argp1);
13944 {
13945 arg2 = wxString_in_helper(obj1);
13946 if (arg2 == NULL) SWIG_fail;
13947 temp2 = true;
13948 }
13949 if (obj2) {
13950 {
13951 arg3 = wxString_in_helper(obj2);
13952 if (arg3 == NULL) SWIG_fail;
13953 temp3 = true;
13954 }
13955 }
13956 if (obj3) {
13957 {
13958 arg4 = wxString_in_helper(obj3);
13959 if (arg4 == NULL) SWIG_fail;
13960 temp4 = true;
13961 }
13962 }
13963 if (obj4) {
13964 ecode5 = SWIG_AsVal_bool(obj4, &val5);
13965 if (!SWIG_IsOK(ecode5)) {
13966 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "Locale_Init1" "', expected argument " "5"" of type '" "bool""'");
13967 }
13968 arg5 = static_cast< bool >(val5);
13969 }
13970 if (obj5) {
13971 ecode6 = SWIG_AsVal_bool(obj5, &val6);
13972 if (!SWIG_IsOK(ecode6)) {
13973 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "Locale_Init1" "', expected argument " "6"" of type '" "bool""'");
13974 }
13975 arg6 = static_cast< bool >(val6);
13976 }
13977 {
13978 PyThreadState* __tstate = wxPyBeginAllowThreads();
13979 result = (bool)wxLocale_Init1(arg1,(wxString const &)*arg2,(wxString const &)*arg3,(wxString const &)*arg4,arg5,arg6);
13980 wxPyEndAllowThreads(__tstate);
13981 if (PyErr_Occurred()) SWIG_fail;
13982 }
13983 {
13984 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
13985 }
13986 {
13987 if (temp2)
13988 delete arg2;
13989 }
13990 {
13991 if (temp3)
13992 delete arg3;
13993 }
13994 {
13995 if (temp4)
13996 delete arg4;
13997 }
13998 return resultobj;
13999 fail:
14000 {
14001 if (temp2)
14002 delete arg2;
14003 }
14004 {
14005 if (temp3)
14006 delete arg3;
14007 }
14008 {
14009 if (temp4)
14010 delete arg4;
14011 }
14012 return NULL;
14013 }
14014
14015
14016 SWIGINTERN PyObject *_wrap_Locale_Init2(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14017 PyObject *resultobj = 0;
14018 wxLocale *arg1 = (wxLocale *) 0 ;
14019 int arg2 = (int) wxLANGUAGE_DEFAULT ;
14020 int arg3 = (int) wxLOCALE_LOAD_DEFAULT|wxLOCALE_CONV_ENCODING ;
14021 bool result;
14022 void *argp1 = 0 ;
14023 int res1 = 0 ;
14024 int val2 ;
14025 int ecode2 = 0 ;
14026 int val3 ;
14027 int ecode3 = 0 ;
14028 PyObject * obj0 = 0 ;
14029 PyObject * obj1 = 0 ;
14030 PyObject * obj2 = 0 ;
14031 char * kwnames[] = {
14032 (char *) "self",(char *) "language",(char *) "flags", NULL
14033 };
14034
14035 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:Locale_Init2",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14036 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14037 if (!SWIG_IsOK(res1)) {
14038 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_Init2" "', expected argument " "1"" of type '" "wxLocale *""'");
14039 }
14040 arg1 = reinterpret_cast< wxLocale * >(argp1);
14041 if (obj1) {
14042 ecode2 = SWIG_AsVal_int(obj1, &val2);
14043 if (!SWIG_IsOK(ecode2)) {
14044 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Locale_Init2" "', expected argument " "2"" of type '" "int""'");
14045 }
14046 arg2 = static_cast< int >(val2);
14047 }
14048 if (obj2) {
14049 ecode3 = SWIG_AsVal_int(obj2, &val3);
14050 if (!SWIG_IsOK(ecode3)) {
14051 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Locale_Init2" "', expected argument " "3"" of type '" "int""'");
14052 }
14053 arg3 = static_cast< int >(val3);
14054 }
14055 {
14056 PyThreadState* __tstate = wxPyBeginAllowThreads();
14057 result = (bool)wxLocale_Init2(arg1,arg2,arg3);
14058 wxPyEndAllowThreads(__tstate);
14059 if (PyErr_Occurred()) SWIG_fail;
14060 }
14061 {
14062 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14063 }
14064 return resultobj;
14065 fail:
14066 return NULL;
14067 }
14068
14069
14070 SWIGINTERN PyObject *_wrap_Locale_GetSystemLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14071 PyObject *resultobj = 0;
14072 int result;
14073
14074 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemLanguage",0,0,0)) SWIG_fail;
14075 {
14076 PyThreadState* __tstate = wxPyBeginAllowThreads();
14077 result = (int)wxLocale::GetSystemLanguage();
14078 wxPyEndAllowThreads(__tstate);
14079 if (PyErr_Occurred()) SWIG_fail;
14080 }
14081 resultobj = SWIG_From_int(static_cast< int >(result));
14082 return resultobj;
14083 fail:
14084 return NULL;
14085 }
14086
14087
14088 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncoding(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14089 PyObject *resultobj = 0;
14090 wxFontEncoding result;
14091
14092 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncoding",0,0,0)) SWIG_fail;
14093 {
14094 PyThreadState* __tstate = wxPyBeginAllowThreads();
14095 result = (wxFontEncoding)wxLocale::GetSystemEncoding();
14096 wxPyEndAllowThreads(__tstate);
14097 if (PyErr_Occurred()) SWIG_fail;
14098 }
14099 resultobj = SWIG_From_int(static_cast< int >(result));
14100 return resultobj;
14101 fail:
14102 return NULL;
14103 }
14104
14105
14106 SWIGINTERN PyObject *_wrap_Locale_GetSystemEncodingName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14107 PyObject *resultobj = 0;
14108 wxString result;
14109
14110 if (!SWIG_Python_UnpackTuple(args,"Locale_GetSystemEncodingName",0,0,0)) SWIG_fail;
14111 {
14112 PyThreadState* __tstate = wxPyBeginAllowThreads();
14113 result = wxLocale::GetSystemEncodingName();
14114 wxPyEndAllowThreads(__tstate);
14115 if (PyErr_Occurred()) SWIG_fail;
14116 }
14117 {
14118 #if wxUSE_UNICODE
14119 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14120 #else
14121 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14122 #endif
14123 }
14124 return resultobj;
14125 fail:
14126 return NULL;
14127 }
14128
14129
14130 SWIGINTERN PyObject *_wrap_Locale_IsOk(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14131 PyObject *resultobj = 0;
14132 wxLocale *arg1 = (wxLocale *) 0 ;
14133 bool result;
14134 void *argp1 = 0 ;
14135 int res1 = 0 ;
14136 PyObject *swig_obj[1] ;
14137
14138 if (!args) SWIG_fail;
14139 swig_obj[0] = args;
14140 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14141 if (!SWIG_IsOK(res1)) {
14142 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsOk" "', expected argument " "1"" of type '" "wxLocale const *""'");
14143 }
14144 arg1 = reinterpret_cast< wxLocale * >(argp1);
14145 {
14146 PyThreadState* __tstate = wxPyBeginAllowThreads();
14147 result = (bool)((wxLocale const *)arg1)->IsOk();
14148 wxPyEndAllowThreads(__tstate);
14149 if (PyErr_Occurred()) SWIG_fail;
14150 }
14151 {
14152 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14153 }
14154 return resultobj;
14155 fail:
14156 return NULL;
14157 }
14158
14159
14160 SWIGINTERN PyObject *_wrap_Locale_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14161 PyObject *resultobj = 0;
14162 wxLocale *arg1 = (wxLocale *) 0 ;
14163 wxString result;
14164 void *argp1 = 0 ;
14165 int res1 = 0 ;
14166 PyObject *swig_obj[1] ;
14167
14168 if (!args) SWIG_fail;
14169 swig_obj[0] = args;
14170 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14171 if (!SWIG_IsOK(res1)) {
14172 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLocale" "', expected argument " "1"" of type '" "wxLocale const *""'");
14173 }
14174 arg1 = reinterpret_cast< wxLocale * >(argp1);
14175 {
14176 PyThreadState* __tstate = wxPyBeginAllowThreads();
14177 result = ((wxLocale const *)arg1)->GetLocale();
14178 wxPyEndAllowThreads(__tstate);
14179 if (PyErr_Occurred()) SWIG_fail;
14180 }
14181 {
14182 #if wxUSE_UNICODE
14183 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14184 #else
14185 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14186 #endif
14187 }
14188 return resultobj;
14189 fail:
14190 return NULL;
14191 }
14192
14193
14194 SWIGINTERN PyObject *_wrap_Locale_GetLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14195 PyObject *resultobj = 0;
14196 wxLocale *arg1 = (wxLocale *) 0 ;
14197 int result;
14198 void *argp1 = 0 ;
14199 int res1 = 0 ;
14200 PyObject *swig_obj[1] ;
14201
14202 if (!args) SWIG_fail;
14203 swig_obj[0] = args;
14204 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14205 if (!SWIG_IsOK(res1)) {
14206 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetLanguage" "', expected argument " "1"" of type '" "wxLocale const *""'");
14207 }
14208 arg1 = reinterpret_cast< wxLocale * >(argp1);
14209 {
14210 PyThreadState* __tstate = wxPyBeginAllowThreads();
14211 result = (int)((wxLocale const *)arg1)->GetLanguage();
14212 wxPyEndAllowThreads(__tstate);
14213 if (PyErr_Occurred()) SWIG_fail;
14214 }
14215 resultobj = SWIG_From_int(static_cast< int >(result));
14216 return resultobj;
14217 fail:
14218 return NULL;
14219 }
14220
14221
14222 SWIGINTERN PyObject *_wrap_Locale_GetSysName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14223 PyObject *resultobj = 0;
14224 wxLocale *arg1 = (wxLocale *) 0 ;
14225 wxString result;
14226 void *argp1 = 0 ;
14227 int res1 = 0 ;
14228 PyObject *swig_obj[1] ;
14229
14230 if (!args) SWIG_fail;
14231 swig_obj[0] = args;
14232 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14233 if (!SWIG_IsOK(res1)) {
14234 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetSysName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14235 }
14236 arg1 = reinterpret_cast< wxLocale * >(argp1);
14237 {
14238 PyThreadState* __tstate = wxPyBeginAllowThreads();
14239 result = ((wxLocale const *)arg1)->GetSysName();
14240 wxPyEndAllowThreads(__tstate);
14241 if (PyErr_Occurred()) SWIG_fail;
14242 }
14243 {
14244 #if wxUSE_UNICODE
14245 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14246 #else
14247 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14248 #endif
14249 }
14250 return resultobj;
14251 fail:
14252 return NULL;
14253 }
14254
14255
14256 SWIGINTERN PyObject *_wrap_Locale_GetCanonicalName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14257 PyObject *resultobj = 0;
14258 wxLocale *arg1 = (wxLocale *) 0 ;
14259 wxString result;
14260 void *argp1 = 0 ;
14261 int res1 = 0 ;
14262 PyObject *swig_obj[1] ;
14263
14264 if (!args) SWIG_fail;
14265 swig_obj[0] = args;
14266 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14267 if (!SWIG_IsOK(res1)) {
14268 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetCanonicalName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14269 }
14270 arg1 = reinterpret_cast< wxLocale * >(argp1);
14271 {
14272 PyThreadState* __tstate = wxPyBeginAllowThreads();
14273 result = ((wxLocale const *)arg1)->GetCanonicalName();
14274 wxPyEndAllowThreads(__tstate);
14275 if (PyErr_Occurred()) SWIG_fail;
14276 }
14277 {
14278 #if wxUSE_UNICODE
14279 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14280 #else
14281 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14282 #endif
14283 }
14284 return resultobj;
14285 fail:
14286 return NULL;
14287 }
14288
14289
14290 SWIGINTERN PyObject *_wrap_Locale_AddCatalogLookupPathPrefix(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14291 PyObject *resultobj = 0;
14292 wxString *arg1 = 0 ;
14293 bool temp1 = false ;
14294 PyObject * obj0 = 0 ;
14295 char * kwnames[] = {
14296 (char *) "prefix", NULL
14297 };
14298
14299 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddCatalogLookupPathPrefix",kwnames,&obj0)) SWIG_fail;
14300 {
14301 arg1 = wxString_in_helper(obj0);
14302 if (arg1 == NULL) SWIG_fail;
14303 temp1 = true;
14304 }
14305 {
14306 PyThreadState* __tstate = wxPyBeginAllowThreads();
14307 wxLocale::AddCatalogLookupPathPrefix((wxString const &)*arg1);
14308 wxPyEndAllowThreads(__tstate);
14309 if (PyErr_Occurred()) SWIG_fail;
14310 }
14311 resultobj = SWIG_Py_Void();
14312 {
14313 if (temp1)
14314 delete arg1;
14315 }
14316 return resultobj;
14317 fail:
14318 {
14319 if (temp1)
14320 delete arg1;
14321 }
14322 return NULL;
14323 }
14324
14325
14326 SWIGINTERN PyObject *_wrap_Locale_AddCatalog(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14327 PyObject *resultobj = 0;
14328 wxLocale *arg1 = (wxLocale *) 0 ;
14329 wxString *arg2 = 0 ;
14330 bool result;
14331 void *argp1 = 0 ;
14332 int res1 = 0 ;
14333 bool temp2 = false ;
14334 PyObject * obj0 = 0 ;
14335 PyObject * obj1 = 0 ;
14336 char * kwnames[] = {
14337 (char *) "self",(char *) "szDomain", NULL
14338 };
14339
14340 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_AddCatalog",kwnames,&obj0,&obj1)) SWIG_fail;
14341 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14342 if (!SWIG_IsOK(res1)) {
14343 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddCatalog" "', expected argument " "1"" of type '" "wxLocale *""'");
14344 }
14345 arg1 = reinterpret_cast< wxLocale * >(argp1);
14346 {
14347 arg2 = wxString_in_helper(obj1);
14348 if (arg2 == NULL) SWIG_fail;
14349 temp2 = true;
14350 }
14351 {
14352 PyThreadState* __tstate = wxPyBeginAllowThreads();
14353 result = (bool)(arg1)->AddCatalog((wxString const &)*arg2);
14354 wxPyEndAllowThreads(__tstate);
14355 if (PyErr_Occurred()) SWIG_fail;
14356 }
14357 {
14358 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14359 }
14360 {
14361 if (temp2)
14362 delete arg2;
14363 }
14364 return resultobj;
14365 fail:
14366 {
14367 if (temp2)
14368 delete arg2;
14369 }
14370 return NULL;
14371 }
14372
14373
14374 SWIGINTERN PyObject *_wrap_Locale_IsLoaded(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14375 PyObject *resultobj = 0;
14376 wxLocale *arg1 = (wxLocale *) 0 ;
14377 wxString *arg2 = 0 ;
14378 bool result;
14379 void *argp1 = 0 ;
14380 int res1 = 0 ;
14381 bool temp2 = false ;
14382 PyObject * obj0 = 0 ;
14383 PyObject * obj1 = 0 ;
14384 char * kwnames[] = {
14385 (char *) "self",(char *) "szDomain", NULL
14386 };
14387
14388 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Locale_IsLoaded",kwnames,&obj0,&obj1)) SWIG_fail;
14389 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14390 if (!SWIG_IsOK(res1)) {
14391 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_IsLoaded" "', expected argument " "1"" of type '" "wxLocale const *""'");
14392 }
14393 arg1 = reinterpret_cast< wxLocale * >(argp1);
14394 {
14395 arg2 = wxString_in_helper(obj1);
14396 if (arg2 == NULL) SWIG_fail;
14397 temp2 = true;
14398 }
14399 {
14400 PyThreadState* __tstate = wxPyBeginAllowThreads();
14401 result = (bool)((wxLocale const *)arg1)->IsLoaded((wxString const &)*arg2);
14402 wxPyEndAllowThreads(__tstate);
14403 if (PyErr_Occurred()) SWIG_fail;
14404 }
14405 {
14406 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14407 }
14408 {
14409 if (temp2)
14410 delete arg2;
14411 }
14412 return resultobj;
14413 fail:
14414 {
14415 if (temp2)
14416 delete arg2;
14417 }
14418 return NULL;
14419 }
14420
14421
14422 SWIGINTERN PyObject *_wrap_Locale_GetLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14423 PyObject *resultobj = 0;
14424 int arg1 ;
14425 wxLanguageInfo *result = 0 ;
14426 int val1 ;
14427 int ecode1 = 0 ;
14428 PyObject * obj0 = 0 ;
14429 char * kwnames[] = {
14430 (char *) "lang", NULL
14431 };
14432
14433 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageInfo",kwnames,&obj0)) SWIG_fail;
14434 ecode1 = SWIG_AsVal_int(obj0, &val1);
14435 if (!SWIG_IsOK(ecode1)) {
14436 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageInfo" "', expected argument " "1"" of type '" "int""'");
14437 }
14438 arg1 = static_cast< int >(val1);
14439 {
14440 PyThreadState* __tstate = wxPyBeginAllowThreads();
14441 result = (wxLanguageInfo *)wxLocale::GetLanguageInfo(arg1);
14442 wxPyEndAllowThreads(__tstate);
14443 if (PyErr_Occurred()) SWIG_fail;
14444 }
14445 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14446 return resultobj;
14447 fail:
14448 return NULL;
14449 }
14450
14451
14452 SWIGINTERN PyObject *_wrap_Locale_GetLanguageName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14453 PyObject *resultobj = 0;
14454 int arg1 ;
14455 wxString result;
14456 int val1 ;
14457 int ecode1 = 0 ;
14458 PyObject * obj0 = 0 ;
14459 char * kwnames[] = {
14460 (char *) "lang", NULL
14461 };
14462
14463 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_GetLanguageName",kwnames,&obj0)) SWIG_fail;
14464 ecode1 = SWIG_AsVal_int(obj0, &val1);
14465 if (!SWIG_IsOK(ecode1)) {
14466 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "Locale_GetLanguageName" "', expected argument " "1"" of type '" "int""'");
14467 }
14468 arg1 = static_cast< int >(val1);
14469 {
14470 PyThreadState* __tstate = wxPyBeginAllowThreads();
14471 result = wxLocale::GetLanguageName(arg1);
14472 wxPyEndAllowThreads(__tstate);
14473 if (PyErr_Occurred()) SWIG_fail;
14474 }
14475 {
14476 #if wxUSE_UNICODE
14477 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14478 #else
14479 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14480 #endif
14481 }
14482 return resultobj;
14483 fail:
14484 return NULL;
14485 }
14486
14487
14488 SWIGINTERN PyObject *_wrap_Locale_FindLanguageInfo(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14489 PyObject *resultobj = 0;
14490 wxString *arg1 = 0 ;
14491 wxLanguageInfo *result = 0 ;
14492 bool temp1 = false ;
14493 PyObject * obj0 = 0 ;
14494 char * kwnames[] = {
14495 (char *) "locale", NULL
14496 };
14497
14498 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_FindLanguageInfo",kwnames,&obj0)) SWIG_fail;
14499 {
14500 arg1 = wxString_in_helper(obj0);
14501 if (arg1 == NULL) SWIG_fail;
14502 temp1 = true;
14503 }
14504 {
14505 PyThreadState* __tstate = wxPyBeginAllowThreads();
14506 result = (wxLanguageInfo *)wxLocale::FindLanguageInfo((wxString const &)*arg1);
14507 wxPyEndAllowThreads(__tstate);
14508 if (PyErr_Occurred()) SWIG_fail;
14509 }
14510 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLanguageInfo, 0 | 0 );
14511 {
14512 if (temp1)
14513 delete arg1;
14514 }
14515 return resultobj;
14516 fail:
14517 {
14518 if (temp1)
14519 delete arg1;
14520 }
14521 return NULL;
14522 }
14523
14524
14525 SWIGINTERN PyObject *_wrap_Locale_AddLanguage(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14526 PyObject *resultobj = 0;
14527 wxLanguageInfo *arg1 = 0 ;
14528 void *argp1 = 0 ;
14529 int res1 = 0 ;
14530 PyObject * obj0 = 0 ;
14531 char * kwnames[] = {
14532 (char *) "info", NULL
14533 };
14534
14535 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Locale_AddLanguage",kwnames,&obj0)) SWIG_fail;
14536 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxLanguageInfo, 0 | 0);
14537 if (!SWIG_IsOK(res1)) {
14538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14539 }
14540 if (!argp1) {
14541 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Locale_AddLanguage" "', expected argument " "1"" of type '" "wxLanguageInfo const &""'");
14542 }
14543 arg1 = reinterpret_cast< wxLanguageInfo * >(argp1);
14544 {
14545 PyThreadState* __tstate = wxPyBeginAllowThreads();
14546 wxLocale::AddLanguage((wxLanguageInfo const &)*arg1);
14547 wxPyEndAllowThreads(__tstate);
14548 if (PyErr_Occurred()) SWIG_fail;
14549 }
14550 resultobj = SWIG_Py_Void();
14551 return resultobj;
14552 fail:
14553 return NULL;
14554 }
14555
14556
14557 SWIGINTERN PyObject *_wrap_Locale_GetString(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14558 PyObject *resultobj = 0;
14559 wxLocale *arg1 = (wxLocale *) 0 ;
14560 wxString *arg2 = 0 ;
14561 wxString const &arg3_defvalue = wxPyEmptyString ;
14562 wxString *arg3 = (wxString *) &arg3_defvalue ;
14563 wxString result;
14564 void *argp1 = 0 ;
14565 int res1 = 0 ;
14566 bool temp2 = false ;
14567 bool temp3 = false ;
14568 PyObject * obj0 = 0 ;
14569 PyObject * obj1 = 0 ;
14570 PyObject * obj2 = 0 ;
14571 char * kwnames[] = {
14572 (char *) "self",(char *) "szOrigString",(char *) "szDomain", NULL
14573 };
14574
14575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Locale_GetString",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
14576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14577 if (!SWIG_IsOK(res1)) {
14578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetString" "', expected argument " "1"" of type '" "wxLocale const *""'");
14579 }
14580 arg1 = reinterpret_cast< wxLocale * >(argp1);
14581 {
14582 arg2 = wxString_in_helper(obj1);
14583 if (arg2 == NULL) SWIG_fail;
14584 temp2 = true;
14585 }
14586 if (obj2) {
14587 {
14588 arg3 = wxString_in_helper(obj2);
14589 if (arg3 == NULL) SWIG_fail;
14590 temp3 = true;
14591 }
14592 }
14593 {
14594 PyThreadState* __tstate = wxPyBeginAllowThreads();
14595 result = ((wxLocale const *)arg1)->GetString((wxString const &)*arg2,(wxString const &)*arg3);
14596 wxPyEndAllowThreads(__tstate);
14597 if (PyErr_Occurred()) SWIG_fail;
14598 }
14599 {
14600 #if wxUSE_UNICODE
14601 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14602 #else
14603 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14604 #endif
14605 }
14606 {
14607 if (temp2)
14608 delete arg2;
14609 }
14610 {
14611 if (temp3)
14612 delete arg3;
14613 }
14614 return resultobj;
14615 fail:
14616 {
14617 if (temp2)
14618 delete arg2;
14619 }
14620 {
14621 if (temp3)
14622 delete arg3;
14623 }
14624 return NULL;
14625 }
14626
14627
14628 SWIGINTERN PyObject *_wrap_Locale_GetName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14629 PyObject *resultobj = 0;
14630 wxLocale *arg1 = (wxLocale *) 0 ;
14631 wxString *result = 0 ;
14632 void *argp1 = 0 ;
14633 int res1 = 0 ;
14634 PyObject *swig_obj[1] ;
14635
14636 if (!args) SWIG_fail;
14637 swig_obj[0] = args;
14638 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxLocale, 0 | 0 );
14639 if (!SWIG_IsOK(res1)) {
14640 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Locale_GetName" "', expected argument " "1"" of type '" "wxLocale const *""'");
14641 }
14642 arg1 = reinterpret_cast< wxLocale * >(argp1);
14643 {
14644 PyThreadState* __tstate = wxPyBeginAllowThreads();
14645 {
14646 wxString const &_result_ref = ((wxLocale const *)arg1)->GetName();
14647 result = (wxString *) &_result_ref;
14648 }
14649 wxPyEndAllowThreads(__tstate);
14650 if (PyErr_Occurred()) SWIG_fail;
14651 }
14652 {
14653 #if wxUSE_UNICODE
14654 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
14655 #else
14656 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
14657 #endif
14658 }
14659 return resultobj;
14660 fail:
14661 return NULL;
14662 }
14663
14664
14665 SWIGINTERN PyObject *Locale_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14666 PyObject *obj;
14667 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
14668 SWIG_TypeNewClientData(SWIGTYPE_p_wxLocale, SWIG_NewClientData(obj));
14669 return SWIG_Py_Void();
14670 }
14671
14672 SWIGINTERN PyObject *Locale_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14673 return SWIG_Python_InitShadowInstance(args);
14674 }
14675
14676 SWIGINTERN PyObject *_wrap_GetLocale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14677 PyObject *resultobj = 0;
14678 wxLocale *result = 0 ;
14679
14680 if (!SWIG_Python_UnpackTuple(args,"GetLocale",0,0,0)) SWIG_fail;
14681 {
14682 PyThreadState* __tstate = wxPyBeginAllowThreads();
14683 result = (wxLocale *)wxGetLocale();
14684 wxPyEndAllowThreads(__tstate);
14685 if (PyErr_Occurred()) SWIG_fail;
14686 }
14687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxLocale, 0 | 0 );
14688 return resultobj;
14689 fail:
14690 return NULL;
14691 }
14692
14693
14694 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14695 PyObject *resultobj = 0;
14696 wxString *arg1 = 0 ;
14697 wxString result;
14698 bool temp1 = false ;
14699
14700 if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
14701 {
14702 arg1 = wxString_in_helper(swig_obj[0]);
14703 if (arg1 == NULL) SWIG_fail;
14704 temp1 = true;
14705 }
14706 {
14707 PyThreadState* __tstate = wxPyBeginAllowThreads();
14708 result = wxGetTranslation((wxString const &)*arg1);
14709 wxPyEndAllowThreads(__tstate);
14710 if (PyErr_Occurred()) SWIG_fail;
14711 }
14712 {
14713 #if wxUSE_UNICODE
14714 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14715 #else
14716 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14717 #endif
14718 }
14719 {
14720 if (temp1)
14721 delete arg1;
14722 }
14723 return resultobj;
14724 fail:
14725 {
14726 if (temp1)
14727 delete arg1;
14728 }
14729 return NULL;
14730 }
14731
14732
14733 SWIGINTERN PyObject *_wrap_GetTranslation__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
14734 PyObject *resultobj = 0;
14735 wxString *arg1 = 0 ;
14736 wxString *arg2 = 0 ;
14737 size_t arg3 ;
14738 wxString result;
14739 bool temp1 = false ;
14740 bool temp2 = false ;
14741 size_t val3 ;
14742 int ecode3 = 0 ;
14743
14744 if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
14745 {
14746 arg1 = wxString_in_helper(swig_obj[0]);
14747 if (arg1 == NULL) SWIG_fail;
14748 temp1 = true;
14749 }
14750 {
14751 arg2 = wxString_in_helper(swig_obj[1]);
14752 if (arg2 == NULL) SWIG_fail;
14753 temp2 = true;
14754 }
14755 ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
14756 if (!SWIG_IsOK(ecode3)) {
14757 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "GetTranslation" "', expected argument " "3"" of type '" "size_t""'");
14758 }
14759 arg3 = static_cast< size_t >(val3);
14760 {
14761 PyThreadState* __tstate = wxPyBeginAllowThreads();
14762 result = wxGetTranslation((wxString const &)*arg1,(wxString const &)*arg2,arg3);
14763 wxPyEndAllowThreads(__tstate);
14764 if (PyErr_Occurred()) SWIG_fail;
14765 }
14766 {
14767 #if wxUSE_UNICODE
14768 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14769 #else
14770 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14771 #endif
14772 }
14773 {
14774 if (temp1)
14775 delete arg1;
14776 }
14777 {
14778 if (temp2)
14779 delete arg2;
14780 }
14781 return resultobj;
14782 fail:
14783 {
14784 if (temp1)
14785 delete arg1;
14786 }
14787 {
14788 if (temp2)
14789 delete arg2;
14790 }
14791 return NULL;
14792 }
14793
14794
14795 SWIGINTERN PyObject *_wrap_GetTranslation(PyObject *self, PyObject *args) {
14796 int argc;
14797 PyObject *argv[4];
14798
14799 if (!(argc = SWIG_Python_UnpackTuple(args,"GetTranslation",0,3,argv))) SWIG_fail;
14800 --argc;
14801 if (argc == 1) {
14802 return _wrap_GetTranslation__SWIG_0(self, argc, argv);
14803 }
14804 if (argc == 3) {
14805 return _wrap_GetTranslation__SWIG_1(self, argc, argv);
14806 }
14807
14808 fail:
14809 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'GetTranslation'");
14810 return NULL;
14811 }
14812
14813
14814 SWIGINTERN PyObject *_wrap_new_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14815 PyObject *resultobj = 0;
14816 wxEncodingConverter *result = 0 ;
14817
14818 if (!SWIG_Python_UnpackTuple(args,"new_EncodingConverter",0,0,0)) SWIG_fail;
14819 {
14820 PyThreadState* __tstate = wxPyBeginAllowThreads();
14821 result = (wxEncodingConverter *)new wxEncodingConverter();
14822 wxPyEndAllowThreads(__tstate);
14823 if (PyErr_Occurred()) SWIG_fail;
14824 }
14825 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_NEW | 0 );
14826 return resultobj;
14827 fail:
14828 return NULL;
14829 }
14830
14831
14832 SWIGINTERN PyObject *_wrap_delete_EncodingConverter(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
14833 PyObject *resultobj = 0;
14834 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14835 void *argp1 = 0 ;
14836 int res1 = 0 ;
14837 PyObject *swig_obj[1] ;
14838
14839 if (!args) SWIG_fail;
14840 swig_obj[0] = args;
14841 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEncodingConverter, SWIG_POINTER_DISOWN | 0 );
14842 if (!SWIG_IsOK(res1)) {
14843 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_EncodingConverter" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14844 }
14845 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14846 {
14847 PyThreadState* __tstate = wxPyBeginAllowThreads();
14848 delete arg1;
14849
14850 wxPyEndAllowThreads(__tstate);
14851 if (PyErr_Occurred()) SWIG_fail;
14852 }
14853 resultobj = SWIG_Py_Void();
14854 return resultobj;
14855 fail:
14856 return NULL;
14857 }
14858
14859
14860 SWIGINTERN PyObject *_wrap_EncodingConverter_Init(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14861 PyObject *resultobj = 0;
14862 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14863 wxFontEncoding arg2 ;
14864 wxFontEncoding arg3 ;
14865 int arg4 = (int) wxCONVERT_STRICT ;
14866 bool result;
14867 void *argp1 = 0 ;
14868 int res1 = 0 ;
14869 int val2 ;
14870 int ecode2 = 0 ;
14871 int val3 ;
14872 int ecode3 = 0 ;
14873 int val4 ;
14874 int ecode4 = 0 ;
14875 PyObject * obj0 = 0 ;
14876 PyObject * obj1 = 0 ;
14877 PyObject * obj2 = 0 ;
14878 PyObject * obj3 = 0 ;
14879 char * kwnames[] = {
14880 (char *) "self",(char *) "input_enc",(char *) "output_enc",(char *) "method", NULL
14881 };
14882
14883 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:EncodingConverter_Init",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
14884 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14885 if (!SWIG_IsOK(res1)) {
14886 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Init" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14887 }
14888 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14889 ecode2 = SWIG_AsVal_int(obj1, &val2);
14890 if (!SWIG_IsOK(ecode2)) {
14891 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_Init" "', expected argument " "2"" of type '" "wxFontEncoding""'");
14892 }
14893 arg2 = static_cast< wxFontEncoding >(val2);
14894 ecode3 = SWIG_AsVal_int(obj2, &val3);
14895 if (!SWIG_IsOK(ecode3)) {
14896 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "EncodingConverter_Init" "', expected argument " "3"" of type '" "wxFontEncoding""'");
14897 }
14898 arg3 = static_cast< wxFontEncoding >(val3);
14899 if (obj3) {
14900 ecode4 = SWIG_AsVal_int(obj3, &val4);
14901 if (!SWIG_IsOK(ecode4)) {
14902 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "EncodingConverter_Init" "', expected argument " "4"" of type '" "int""'");
14903 }
14904 arg4 = static_cast< int >(val4);
14905 }
14906 {
14907 PyThreadState* __tstate = wxPyBeginAllowThreads();
14908 result = (bool)(arg1)->Init(arg2,arg3,arg4);
14909 wxPyEndAllowThreads(__tstate);
14910 if (PyErr_Occurred()) SWIG_fail;
14911 }
14912 {
14913 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
14914 }
14915 return resultobj;
14916 fail:
14917 return NULL;
14918 }
14919
14920
14921 SWIGINTERN PyObject *_wrap_EncodingConverter_Convert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14922 PyObject *resultobj = 0;
14923 wxEncodingConverter *arg1 = (wxEncodingConverter *) 0 ;
14924 wxString *arg2 = 0 ;
14925 wxString result;
14926 void *argp1 = 0 ;
14927 int res1 = 0 ;
14928 bool temp2 = false ;
14929 PyObject * obj0 = 0 ;
14930 PyObject * obj1 = 0 ;
14931 char * kwnames[] = {
14932 (char *) "self",(char *) "input", NULL
14933 };
14934
14935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_Convert",kwnames,&obj0,&obj1)) SWIG_fail;
14936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEncodingConverter, 0 | 0 );
14937 if (!SWIG_IsOK(res1)) {
14938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "EncodingConverter_Convert" "', expected argument " "1"" of type '" "wxEncodingConverter *""'");
14939 }
14940 arg1 = reinterpret_cast< wxEncodingConverter * >(argp1);
14941 {
14942 arg2 = wxString_in_helper(obj1);
14943 if (arg2 == NULL) SWIG_fail;
14944 temp2 = true;
14945 }
14946 {
14947 PyThreadState* __tstate = wxPyBeginAllowThreads();
14948 result = (arg1)->Convert((wxString const &)*arg2);
14949 wxPyEndAllowThreads(__tstate);
14950 if (PyErr_Occurred()) SWIG_fail;
14951 }
14952 {
14953 #if wxUSE_UNICODE
14954 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
14955 #else
14956 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
14957 #endif
14958 }
14959 {
14960 if (temp2)
14961 delete arg2;
14962 }
14963 return resultobj;
14964 fail:
14965 {
14966 if (temp2)
14967 delete arg2;
14968 }
14969 return NULL;
14970 }
14971
14972
14973 SWIGINTERN PyObject *_wrap_EncodingConverter_GetPlatformEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
14974 PyObject *resultobj = 0;
14975 wxFontEncoding arg1 ;
14976 int arg2 = (int) wxPLATFORM_CURRENT ;
14977 wxFontEncodingArray result;
14978 int val1 ;
14979 int ecode1 = 0 ;
14980 int val2 ;
14981 int ecode2 = 0 ;
14982 PyObject * obj0 = 0 ;
14983 PyObject * obj1 = 0 ;
14984 char * kwnames[] = {
14985 (char *) "enc",(char *) "platform", NULL
14986 };
14987
14988 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:EncodingConverter_GetPlatformEquivalents",kwnames,&obj0,&obj1)) SWIG_fail;
14989 ecode1 = SWIG_AsVal_int(obj0, &val1);
14990 if (!SWIG_IsOK(ecode1)) {
14991 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
14992 }
14993 arg1 = static_cast< wxFontEncoding >(val1);
14994 if (obj1) {
14995 ecode2 = SWIG_AsVal_int(obj1, &val2);
14996 if (!SWIG_IsOK(ecode2)) {
14997 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_GetPlatformEquivalents" "', expected argument " "2"" of type '" "int""'");
14998 }
14999 arg2 = static_cast< int >(val2);
15000 }
15001 {
15002 PyThreadState* __tstate = wxPyBeginAllowThreads();
15003 result = wxEncodingConverter::GetPlatformEquivalents(arg1,arg2);
15004 wxPyEndAllowThreads(__tstate);
15005 if (PyErr_Occurred()) SWIG_fail;
15006 }
15007 {
15008 resultobj = PyList_New(0);
15009 for (size_t i=0; i < (&result)->GetCount(); i++) {
15010 PyObject* number = PyInt_FromLong((&result)->Item(i));
15011 PyList_Append(resultobj, number);
15012 Py_DECREF(number);
15013 }
15014 }
15015 return resultobj;
15016 fail:
15017 return NULL;
15018 }
15019
15020
15021 SWIGINTERN PyObject *_wrap_EncodingConverter_GetAllEquivalents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15022 PyObject *resultobj = 0;
15023 wxFontEncoding arg1 ;
15024 wxFontEncodingArray result;
15025 int val1 ;
15026 int ecode1 = 0 ;
15027 PyObject * obj0 = 0 ;
15028 char * kwnames[] = {
15029 (char *) "enc", NULL
15030 };
15031
15032 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:EncodingConverter_GetAllEquivalents",kwnames,&obj0)) SWIG_fail;
15033 ecode1 = SWIG_AsVal_int(obj0, &val1);
15034 if (!SWIG_IsOK(ecode1)) {
15035 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_GetAllEquivalents" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15036 }
15037 arg1 = static_cast< wxFontEncoding >(val1);
15038 {
15039 PyThreadState* __tstate = wxPyBeginAllowThreads();
15040 result = wxEncodingConverter::GetAllEquivalents(arg1);
15041 wxPyEndAllowThreads(__tstate);
15042 if (PyErr_Occurred()) SWIG_fail;
15043 }
15044 {
15045 resultobj = PyList_New(0);
15046 for (size_t i=0; i < (&result)->GetCount(); i++) {
15047 PyObject* number = PyInt_FromLong((&result)->Item(i));
15048 PyList_Append(resultobj, number);
15049 Py_DECREF(number);
15050 }
15051 }
15052 return resultobj;
15053 fail:
15054 return NULL;
15055 }
15056
15057
15058 SWIGINTERN PyObject *_wrap_EncodingConverter_CanConvert(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15059 PyObject *resultobj = 0;
15060 wxFontEncoding arg1 ;
15061 wxFontEncoding arg2 ;
15062 bool result;
15063 int val1 ;
15064 int ecode1 = 0 ;
15065 int val2 ;
15066 int ecode2 = 0 ;
15067 PyObject * obj0 = 0 ;
15068 PyObject * obj1 = 0 ;
15069 char * kwnames[] = {
15070 (char *) "encIn",(char *) "encOut", NULL
15071 };
15072
15073 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:EncodingConverter_CanConvert",kwnames,&obj0,&obj1)) SWIG_fail;
15074 ecode1 = SWIG_AsVal_int(obj0, &val1);
15075 if (!SWIG_IsOK(ecode1)) {
15076 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "EncodingConverter_CanConvert" "', expected argument " "1"" of type '" "wxFontEncoding""'");
15077 }
15078 arg1 = static_cast< wxFontEncoding >(val1);
15079 ecode2 = SWIG_AsVal_int(obj1, &val2);
15080 if (!SWIG_IsOK(ecode2)) {
15081 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "EncodingConverter_CanConvert" "', expected argument " "2"" of type '" "wxFontEncoding""'");
15082 }
15083 arg2 = static_cast< wxFontEncoding >(val2);
15084 {
15085 PyThreadState* __tstate = wxPyBeginAllowThreads();
15086 result = (bool)wxEncodingConverter::CanConvert(arg1,arg2);
15087 wxPyEndAllowThreads(__tstate);
15088 if (PyErr_Occurred()) SWIG_fail;
15089 }
15090 {
15091 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15092 }
15093 return resultobj;
15094 fail:
15095 return NULL;
15096 }
15097
15098
15099 SWIGINTERN PyObject *EncodingConverter_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15100 PyObject *obj;
15101 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
15102 SWIG_TypeNewClientData(SWIGTYPE_p_wxEncodingConverter, SWIG_NewClientData(obj));
15103 return SWIG_Py_Void();
15104 }
15105
15106 SWIGINTERN PyObject *EncodingConverter_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15107 return SWIG_Python_InitShadowInstance(args);
15108 }
15109
15110 SWIGINTERN PyObject *_wrap_delete_DC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
15111 PyObject *resultobj = 0;
15112 wxDC *arg1 = (wxDC *) 0 ;
15113 void *argp1 = 0 ;
15114 int res1 = 0 ;
15115 PyObject *swig_obj[1] ;
15116
15117 if (!args) SWIG_fail;
15118 swig_obj[0] = args;
15119 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, SWIG_POINTER_DISOWN | 0 );
15120 if (!SWIG_IsOK(res1)) {
15121 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DC" "', expected argument " "1"" of type '" "wxDC *""'");
15122 }
15123 arg1 = reinterpret_cast< wxDC * >(argp1);
15124 {
15125 PyThreadState* __tstate = wxPyBeginAllowThreads();
15126 delete arg1;
15127
15128 wxPyEndAllowThreads(__tstate);
15129 if (PyErr_Occurred()) SWIG_fail;
15130 }
15131 resultobj = SWIG_Py_Void();
15132 return resultobj;
15133 fail:
15134 return NULL;
15135 }
15136
15137
15138 SWIGINTERN PyObject *_wrap_DC_FloodFill(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15139 PyObject *resultobj = 0;
15140 wxDC *arg1 = (wxDC *) 0 ;
15141 int arg2 ;
15142 int arg3 ;
15143 wxColour *arg4 = 0 ;
15144 int arg5 = (int) wxFLOOD_SURFACE ;
15145 bool result;
15146 void *argp1 = 0 ;
15147 int res1 = 0 ;
15148 int val2 ;
15149 int ecode2 = 0 ;
15150 int val3 ;
15151 int ecode3 = 0 ;
15152 wxColour temp4 ;
15153 int val5 ;
15154 int ecode5 = 0 ;
15155 PyObject * obj0 = 0 ;
15156 PyObject * obj1 = 0 ;
15157 PyObject * obj2 = 0 ;
15158 PyObject * obj3 = 0 ;
15159 PyObject * obj4 = 0 ;
15160 char * kwnames[] = {
15161 (char *) "self",(char *) "x",(char *) "y",(char *) "col",(char *) "style", NULL
15162 };
15163
15164 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_FloodFill",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15165 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15166 if (!SWIG_IsOK(res1)) {
15167 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFill" "', expected argument " "1"" of type '" "wxDC *""'");
15168 }
15169 arg1 = reinterpret_cast< wxDC * >(argp1);
15170 ecode2 = SWIG_AsVal_int(obj1, &val2);
15171 if (!SWIG_IsOK(ecode2)) {
15172 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_FloodFill" "', expected argument " "2"" of type '" "int""'");
15173 }
15174 arg2 = static_cast< int >(val2);
15175 ecode3 = SWIG_AsVal_int(obj2, &val3);
15176 if (!SWIG_IsOK(ecode3)) {
15177 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_FloodFill" "', expected argument " "3"" of type '" "int""'");
15178 }
15179 arg3 = static_cast< int >(val3);
15180 {
15181 arg4 = &temp4;
15182 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15183 }
15184 if (obj4) {
15185 ecode5 = SWIG_AsVal_int(obj4, &val5);
15186 if (!SWIG_IsOK(ecode5)) {
15187 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_FloodFill" "', expected argument " "5"" of type '" "int""'");
15188 }
15189 arg5 = static_cast< int >(val5);
15190 }
15191 {
15192 PyThreadState* __tstate = wxPyBeginAllowThreads();
15193 result = (bool)(arg1)->FloodFill(arg2,arg3,(wxColour const &)*arg4,arg5);
15194 wxPyEndAllowThreads(__tstate);
15195 if (PyErr_Occurred()) SWIG_fail;
15196 }
15197 {
15198 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15199 }
15200 return resultobj;
15201 fail:
15202 return NULL;
15203 }
15204
15205
15206 SWIGINTERN PyObject *_wrap_DC_FloodFillPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15207 PyObject *resultobj = 0;
15208 wxDC *arg1 = (wxDC *) 0 ;
15209 wxPoint *arg2 = 0 ;
15210 wxColour *arg3 = 0 ;
15211 int arg4 = (int) wxFLOOD_SURFACE ;
15212 bool result;
15213 void *argp1 = 0 ;
15214 int res1 = 0 ;
15215 wxPoint temp2 ;
15216 wxColour temp3 ;
15217 int val4 ;
15218 int ecode4 = 0 ;
15219 PyObject * obj0 = 0 ;
15220 PyObject * obj1 = 0 ;
15221 PyObject * obj2 = 0 ;
15222 PyObject * obj3 = 0 ;
15223 char * kwnames[] = {
15224 (char *) "self",(char *) "pt",(char *) "col",(char *) "style", NULL
15225 };
15226
15227 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_FloodFillPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15228 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15229 if (!SWIG_IsOK(res1)) {
15230 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_FloodFillPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15231 }
15232 arg1 = reinterpret_cast< wxDC * >(argp1);
15233 {
15234 arg2 = &temp2;
15235 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15236 }
15237 {
15238 arg3 = &temp3;
15239 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15240 }
15241 if (obj3) {
15242 ecode4 = SWIG_AsVal_int(obj3, &val4);
15243 if (!SWIG_IsOK(ecode4)) {
15244 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_FloodFillPoint" "', expected argument " "4"" of type '" "int""'");
15245 }
15246 arg4 = static_cast< int >(val4);
15247 }
15248 {
15249 PyThreadState* __tstate = wxPyBeginAllowThreads();
15250 result = (bool)(arg1)->FloodFill((wxPoint const &)*arg2,(wxColour const &)*arg3,arg4);
15251 wxPyEndAllowThreads(__tstate);
15252 if (PyErr_Occurred()) SWIG_fail;
15253 }
15254 {
15255 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
15256 }
15257 return resultobj;
15258 fail:
15259 return NULL;
15260 }
15261
15262
15263 SWIGINTERN PyObject *_wrap_DC_GradientFillConcentric(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15264 PyObject *resultobj = 0;
15265 wxDC *arg1 = (wxDC *) 0 ;
15266 wxRect *arg2 = 0 ;
15267 wxColour *arg3 = 0 ;
15268 wxColour *arg4 = 0 ;
15269 wxPoint *arg5 = 0 ;
15270 void *argp1 = 0 ;
15271 int res1 = 0 ;
15272 wxRect temp2 ;
15273 wxColour temp3 ;
15274 wxColour temp4 ;
15275 wxPoint temp5 ;
15276 PyObject * obj0 = 0 ;
15277 PyObject * obj1 = 0 ;
15278 PyObject * obj2 = 0 ;
15279 PyObject * obj3 = 0 ;
15280 PyObject * obj4 = 0 ;
15281 char * kwnames[] = {
15282 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "circleCenter", NULL
15283 };
15284
15285 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_GradientFillConcentric",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15286 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15287 if (!SWIG_IsOK(res1)) {
15288 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillConcentric" "', expected argument " "1"" of type '" "wxDC *""'");
15289 }
15290 arg1 = reinterpret_cast< wxDC * >(argp1);
15291 {
15292 arg2 = &temp2;
15293 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15294 }
15295 {
15296 arg3 = &temp3;
15297 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15298 }
15299 {
15300 arg4 = &temp4;
15301 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15302 }
15303 {
15304 arg5 = &temp5;
15305 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
15306 }
15307 {
15308 PyThreadState* __tstate = wxPyBeginAllowThreads();
15309 (arg1)->GradientFillConcentric((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxPoint const &)*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_GradientFillLinear(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15321 PyObject *resultobj = 0;
15322 wxDC *arg1 = (wxDC *) 0 ;
15323 wxRect *arg2 = 0 ;
15324 wxColour *arg3 = 0 ;
15325 wxColour *arg4 = 0 ;
15326 wxDirection arg5 = (wxDirection) wxEAST ;
15327 void *argp1 = 0 ;
15328 int res1 = 0 ;
15329 wxRect temp2 ;
15330 wxColour temp3 ;
15331 wxColour temp4 ;
15332 int val5 ;
15333 int ecode5 = 0 ;
15334 PyObject * obj0 = 0 ;
15335 PyObject * obj1 = 0 ;
15336 PyObject * obj2 = 0 ;
15337 PyObject * obj3 = 0 ;
15338 PyObject * obj4 = 0 ;
15339 char * kwnames[] = {
15340 (char *) "self",(char *) "rect",(char *) "initialColour",(char *) "destColour",(char *) "nDirection", NULL
15341 };
15342
15343 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_GradientFillLinear",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15344 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15345 if (!SWIG_IsOK(res1)) {
15346 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GradientFillLinear" "', expected argument " "1"" of type '" "wxDC *""'");
15347 }
15348 arg1 = reinterpret_cast< wxDC * >(argp1);
15349 {
15350 arg2 = &temp2;
15351 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15352 }
15353 {
15354 arg3 = &temp3;
15355 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
15356 }
15357 {
15358 arg4 = &temp4;
15359 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
15360 }
15361 if (obj4) {
15362 ecode5 = SWIG_AsVal_int(obj4, &val5);
15363 if (!SWIG_IsOK(ecode5)) {
15364 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_GradientFillLinear" "', expected argument " "5"" of type '" "wxDirection""'");
15365 }
15366 arg5 = static_cast< wxDirection >(val5);
15367 }
15368 {
15369 PyThreadState* __tstate = wxPyBeginAllowThreads();
15370 (arg1)->GradientFillLinear((wxRect const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,arg5);
15371 wxPyEndAllowThreads(__tstate);
15372 if (PyErr_Occurred()) SWIG_fail;
15373 }
15374 resultobj = SWIG_Py_Void();
15375 return resultobj;
15376 fail:
15377 return NULL;
15378 }
15379
15380
15381 SWIGINTERN PyObject *_wrap_DC_GetPixel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15382 PyObject *resultobj = 0;
15383 wxDC *arg1 = (wxDC *) 0 ;
15384 int arg2 ;
15385 int arg3 ;
15386 wxColour result;
15387 void *argp1 = 0 ;
15388 int res1 = 0 ;
15389 int val2 ;
15390 int ecode2 = 0 ;
15391 int val3 ;
15392 int ecode3 = 0 ;
15393 PyObject * obj0 = 0 ;
15394 PyObject * obj1 = 0 ;
15395 PyObject * obj2 = 0 ;
15396 char * kwnames[] = {
15397 (char *) "self",(char *) "x",(char *) "y", NULL
15398 };
15399
15400 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_GetPixel",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15401 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15402 if (!SWIG_IsOK(res1)) {
15403 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixel" "', expected argument " "1"" of type '" "wxDC *""'");
15404 }
15405 arg1 = reinterpret_cast< wxDC * >(argp1);
15406 ecode2 = SWIG_AsVal_int(obj1, &val2);
15407 if (!SWIG_IsOK(ecode2)) {
15408 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_GetPixel" "', expected argument " "2"" of type '" "int""'");
15409 }
15410 arg2 = static_cast< int >(val2);
15411 ecode3 = SWIG_AsVal_int(obj2, &val3);
15412 if (!SWIG_IsOK(ecode3)) {
15413 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_GetPixel" "', expected argument " "3"" of type '" "int""'");
15414 }
15415 arg3 = static_cast< int >(val3);
15416 {
15417 PyThreadState* __tstate = wxPyBeginAllowThreads();
15418 result = wxDC_GetPixel(arg1,arg2,arg3);
15419 wxPyEndAllowThreads(__tstate);
15420 if (PyErr_Occurred()) SWIG_fail;
15421 }
15422 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15423 return resultobj;
15424 fail:
15425 return NULL;
15426 }
15427
15428
15429 SWIGINTERN PyObject *_wrap_DC_GetPixelPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15430 PyObject *resultobj = 0;
15431 wxDC *arg1 = (wxDC *) 0 ;
15432 wxPoint *arg2 = 0 ;
15433 wxColour result;
15434 void *argp1 = 0 ;
15435 int res1 = 0 ;
15436 wxPoint temp2 ;
15437 PyObject * obj0 = 0 ;
15438 PyObject * obj1 = 0 ;
15439 char * kwnames[] = {
15440 (char *) "self",(char *) "pt", NULL
15441 };
15442
15443 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPixelPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15444 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15445 if (!SWIG_IsOK(res1)) {
15446 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPixelPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15447 }
15448 arg1 = reinterpret_cast< wxDC * >(argp1);
15449 {
15450 arg2 = &temp2;
15451 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15452 }
15453 {
15454 PyThreadState* __tstate = wxPyBeginAllowThreads();
15455 result = wxDC_GetPixelPoint(arg1,(wxPoint const &)*arg2);
15456 wxPyEndAllowThreads(__tstate);
15457 if (PyErr_Occurred()) SWIG_fail;
15458 }
15459 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
15460 return resultobj;
15461 fail:
15462 return NULL;
15463 }
15464
15465
15466 SWIGINTERN PyObject *_wrap_DC_DrawLine(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15467 PyObject *resultobj = 0;
15468 wxDC *arg1 = (wxDC *) 0 ;
15469 int arg2 ;
15470 int arg3 ;
15471 int arg4 ;
15472 int arg5 ;
15473 void *argp1 = 0 ;
15474 int res1 = 0 ;
15475 int val2 ;
15476 int ecode2 = 0 ;
15477 int val3 ;
15478 int ecode3 = 0 ;
15479 int val4 ;
15480 int ecode4 = 0 ;
15481 int val5 ;
15482 int ecode5 = 0 ;
15483 PyObject * obj0 = 0 ;
15484 PyObject * obj1 = 0 ;
15485 PyObject * obj2 = 0 ;
15486 PyObject * obj3 = 0 ;
15487 PyObject * obj4 = 0 ;
15488 char * kwnames[] = {
15489 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2", NULL
15490 };
15491
15492 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15493 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15494 if (!SWIG_IsOK(res1)) {
15495 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLine" "', expected argument " "1"" of type '" "wxDC *""'");
15496 }
15497 arg1 = reinterpret_cast< wxDC * >(argp1);
15498 ecode2 = SWIG_AsVal_int(obj1, &val2);
15499 if (!SWIG_IsOK(ecode2)) {
15500 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawLine" "', expected argument " "2"" of type '" "int""'");
15501 }
15502 arg2 = static_cast< int >(val2);
15503 ecode3 = SWIG_AsVal_int(obj2, &val3);
15504 if (!SWIG_IsOK(ecode3)) {
15505 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawLine" "', expected argument " "3"" of type '" "int""'");
15506 }
15507 arg3 = static_cast< int >(val3);
15508 ecode4 = SWIG_AsVal_int(obj3, &val4);
15509 if (!SWIG_IsOK(ecode4)) {
15510 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLine" "', expected argument " "4"" of type '" "int""'");
15511 }
15512 arg4 = static_cast< int >(val4);
15513 ecode5 = SWIG_AsVal_int(obj4, &val5);
15514 if (!SWIG_IsOK(ecode5)) {
15515 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLine" "', expected argument " "5"" of type '" "int""'");
15516 }
15517 arg5 = static_cast< int >(val5);
15518 {
15519 PyThreadState* __tstate = wxPyBeginAllowThreads();
15520 (arg1)->DrawLine(arg2,arg3,arg4,arg5);
15521 wxPyEndAllowThreads(__tstate);
15522 if (PyErr_Occurred()) SWIG_fail;
15523 }
15524 resultobj = SWIG_Py_Void();
15525 return resultobj;
15526 fail:
15527 return NULL;
15528 }
15529
15530
15531 SWIGINTERN PyObject *_wrap_DC_DrawLinePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15532 PyObject *resultobj = 0;
15533 wxDC *arg1 = (wxDC *) 0 ;
15534 wxPoint *arg2 = 0 ;
15535 wxPoint *arg3 = 0 ;
15536 void *argp1 = 0 ;
15537 int res1 = 0 ;
15538 wxPoint temp2 ;
15539 wxPoint temp3 ;
15540 PyObject * obj0 = 0 ;
15541 PyObject * obj1 = 0 ;
15542 PyObject * obj2 = 0 ;
15543 char * kwnames[] = {
15544 (char *) "self",(char *) "pt1",(char *) "pt2", NULL
15545 };
15546
15547 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawLinePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15548 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15549 if (!SWIG_IsOK(res1)) {
15550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLinePoint" "', expected argument " "1"" of type '" "wxDC *""'");
15551 }
15552 arg1 = reinterpret_cast< wxDC * >(argp1);
15553 {
15554 arg2 = &temp2;
15555 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15556 }
15557 {
15558 arg3 = &temp3;
15559 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15560 }
15561 {
15562 PyThreadState* __tstate = wxPyBeginAllowThreads();
15563 (arg1)->DrawLine((wxPoint const &)*arg2,(wxPoint const &)*arg3);
15564 wxPyEndAllowThreads(__tstate);
15565 if (PyErr_Occurred()) SWIG_fail;
15566 }
15567 resultobj = SWIG_Py_Void();
15568 return resultobj;
15569 fail:
15570 return NULL;
15571 }
15572
15573
15574 SWIGINTERN PyObject *_wrap_DC_CrossHair(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15575 PyObject *resultobj = 0;
15576 wxDC *arg1 = (wxDC *) 0 ;
15577 int arg2 ;
15578 int arg3 ;
15579 void *argp1 = 0 ;
15580 int res1 = 0 ;
15581 int val2 ;
15582 int ecode2 = 0 ;
15583 int val3 ;
15584 int ecode3 = 0 ;
15585 PyObject * obj0 = 0 ;
15586 PyObject * obj1 = 0 ;
15587 PyObject * obj2 = 0 ;
15588 char * kwnames[] = {
15589 (char *) "self",(char *) "x",(char *) "y", NULL
15590 };
15591
15592 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CrossHair",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
15593 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15594 if (!SWIG_IsOK(res1)) {
15595 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHair" "', expected argument " "1"" of type '" "wxDC *""'");
15596 }
15597 arg1 = reinterpret_cast< wxDC * >(argp1);
15598 ecode2 = SWIG_AsVal_int(obj1, &val2);
15599 if (!SWIG_IsOK(ecode2)) {
15600 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CrossHair" "', expected argument " "2"" of type '" "int""'");
15601 }
15602 arg2 = static_cast< int >(val2);
15603 ecode3 = SWIG_AsVal_int(obj2, &val3);
15604 if (!SWIG_IsOK(ecode3)) {
15605 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CrossHair" "', expected argument " "3"" of type '" "int""'");
15606 }
15607 arg3 = static_cast< int >(val3);
15608 {
15609 PyThreadState* __tstate = wxPyBeginAllowThreads();
15610 (arg1)->CrossHair(arg2,arg3);
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_CrossHairPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15622 PyObject *resultobj = 0;
15623 wxDC *arg1 = (wxDC *) 0 ;
15624 wxPoint *arg2 = 0 ;
15625 void *argp1 = 0 ;
15626 int res1 = 0 ;
15627 wxPoint temp2 ;
15628 PyObject * obj0 = 0 ;
15629 PyObject * obj1 = 0 ;
15630 char * kwnames[] = {
15631 (char *) "self",(char *) "pt", NULL
15632 };
15633
15634 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CrossHairPoint",kwnames,&obj0,&obj1)) SWIG_fail;
15635 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15636 if (!SWIG_IsOK(res1)) {
15637 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CrossHairPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15638 }
15639 arg1 = reinterpret_cast< wxDC * >(argp1);
15640 {
15641 arg2 = &temp2;
15642 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15643 }
15644 {
15645 PyThreadState* __tstate = wxPyBeginAllowThreads();
15646 (arg1)->CrossHair((wxPoint const &)*arg2);
15647 wxPyEndAllowThreads(__tstate);
15648 if (PyErr_Occurred()) SWIG_fail;
15649 }
15650 resultobj = SWIG_Py_Void();
15651 return resultobj;
15652 fail:
15653 return NULL;
15654 }
15655
15656
15657 SWIGINTERN PyObject *_wrap_DC_DrawArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15658 PyObject *resultobj = 0;
15659 wxDC *arg1 = (wxDC *) 0 ;
15660 int arg2 ;
15661 int arg3 ;
15662 int arg4 ;
15663 int arg5 ;
15664 int arg6 ;
15665 int arg7 ;
15666 void *argp1 = 0 ;
15667 int res1 = 0 ;
15668 int val2 ;
15669 int ecode2 = 0 ;
15670 int val3 ;
15671 int ecode3 = 0 ;
15672 int val4 ;
15673 int ecode4 = 0 ;
15674 int val5 ;
15675 int ecode5 = 0 ;
15676 int val6 ;
15677 int ecode6 = 0 ;
15678 int val7 ;
15679 int ecode7 = 0 ;
15680 PyObject * obj0 = 0 ;
15681 PyObject * obj1 = 0 ;
15682 PyObject * obj2 = 0 ;
15683 PyObject * obj3 = 0 ;
15684 PyObject * obj4 = 0 ;
15685 PyObject * obj5 = 0 ;
15686 PyObject * obj6 = 0 ;
15687 char * kwnames[] = {
15688 (char *) "self",(char *) "x1",(char *) "y1",(char *) "x2",(char *) "y2",(char *) "xc",(char *) "yc", NULL
15689 };
15690
15691 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15692 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15693 if (!SWIG_IsOK(res1)) {
15694 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArc" "', expected argument " "1"" of type '" "wxDC *""'");
15695 }
15696 arg1 = reinterpret_cast< wxDC * >(argp1);
15697 ecode2 = SWIG_AsVal_int(obj1, &val2);
15698 if (!SWIG_IsOK(ecode2)) {
15699 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawArc" "', expected argument " "2"" of type '" "int""'");
15700 }
15701 arg2 = static_cast< int >(val2);
15702 ecode3 = SWIG_AsVal_int(obj2, &val3);
15703 if (!SWIG_IsOK(ecode3)) {
15704 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawArc" "', expected argument " "3"" of type '" "int""'");
15705 }
15706 arg3 = static_cast< int >(val3);
15707 ecode4 = SWIG_AsVal_int(obj3, &val4);
15708 if (!SWIG_IsOK(ecode4)) {
15709 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawArc" "', expected argument " "4"" of type '" "int""'");
15710 }
15711 arg4 = static_cast< int >(val4);
15712 ecode5 = SWIG_AsVal_int(obj4, &val5);
15713 if (!SWIG_IsOK(ecode5)) {
15714 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawArc" "', expected argument " "5"" of type '" "int""'");
15715 }
15716 arg5 = static_cast< int >(val5);
15717 ecode6 = SWIG_AsVal_int(obj5, &val6);
15718 if (!SWIG_IsOK(ecode6)) {
15719 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawArc" "', expected argument " "6"" of type '" "int""'");
15720 }
15721 arg6 = static_cast< int >(val6);
15722 ecode7 = SWIG_AsVal_int(obj6, &val7);
15723 if (!SWIG_IsOK(ecode7)) {
15724 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawArc" "', expected argument " "7"" of type '" "int""'");
15725 }
15726 arg7 = static_cast< int >(val7);
15727 {
15728 PyThreadState* __tstate = wxPyBeginAllowThreads();
15729 (arg1)->DrawArc(arg2,arg3,arg4,arg5,arg6,arg7);
15730 wxPyEndAllowThreads(__tstate);
15731 if (PyErr_Occurred()) SWIG_fail;
15732 }
15733 resultobj = SWIG_Py_Void();
15734 return resultobj;
15735 fail:
15736 return NULL;
15737 }
15738
15739
15740 SWIGINTERN PyObject *_wrap_DC_DrawArcPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15741 PyObject *resultobj = 0;
15742 wxDC *arg1 = (wxDC *) 0 ;
15743 wxPoint *arg2 = 0 ;
15744 wxPoint *arg3 = 0 ;
15745 wxPoint *arg4 = 0 ;
15746 void *argp1 = 0 ;
15747 int res1 = 0 ;
15748 wxPoint temp2 ;
15749 wxPoint temp3 ;
15750 wxPoint temp4 ;
15751 PyObject * obj0 = 0 ;
15752 PyObject * obj1 = 0 ;
15753 PyObject * obj2 = 0 ;
15754 PyObject * obj3 = 0 ;
15755 char * kwnames[] = {
15756 (char *) "self",(char *) "pt1",(char *) "pt2",(char *) "center", NULL
15757 };
15758
15759 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawArcPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
15760 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15761 if (!SWIG_IsOK(res1)) {
15762 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawArcPoint" "', expected argument " "1"" of type '" "wxDC *""'");
15763 }
15764 arg1 = reinterpret_cast< wxDC * >(argp1);
15765 {
15766 arg2 = &temp2;
15767 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
15768 }
15769 {
15770 arg3 = &temp3;
15771 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
15772 }
15773 {
15774 arg4 = &temp4;
15775 if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail;
15776 }
15777 {
15778 PyThreadState* __tstate = wxPyBeginAllowThreads();
15779 (arg1)->DrawArc((wxPoint const &)*arg2,(wxPoint const &)*arg3,(wxPoint const &)*arg4);
15780 wxPyEndAllowThreads(__tstate);
15781 if (PyErr_Occurred()) SWIG_fail;
15782 }
15783 resultobj = SWIG_Py_Void();
15784 return resultobj;
15785 fail:
15786 return NULL;
15787 }
15788
15789
15790 SWIGINTERN PyObject *_wrap_DC_DrawCheckMark(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15791 PyObject *resultobj = 0;
15792 wxDC *arg1 = (wxDC *) 0 ;
15793 int arg2 ;
15794 int arg3 ;
15795 int arg4 ;
15796 int arg5 ;
15797 void *argp1 = 0 ;
15798 int res1 = 0 ;
15799 int val2 ;
15800 int ecode2 = 0 ;
15801 int val3 ;
15802 int ecode3 = 0 ;
15803 int val4 ;
15804 int ecode4 = 0 ;
15805 int val5 ;
15806 int ecode5 = 0 ;
15807 PyObject * obj0 = 0 ;
15808 PyObject * obj1 = 0 ;
15809 PyObject * obj2 = 0 ;
15810 PyObject * obj3 = 0 ;
15811 PyObject * obj4 = 0 ;
15812 char * kwnames[] = {
15813 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
15814 };
15815
15816 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawCheckMark",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15817 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15818 if (!SWIG_IsOK(res1)) {
15819 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMark" "', expected argument " "1"" of type '" "wxDC *""'");
15820 }
15821 arg1 = reinterpret_cast< wxDC * >(argp1);
15822 ecode2 = SWIG_AsVal_int(obj1, &val2);
15823 if (!SWIG_IsOK(ecode2)) {
15824 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCheckMark" "', expected argument " "2"" of type '" "int""'");
15825 }
15826 arg2 = static_cast< int >(val2);
15827 ecode3 = SWIG_AsVal_int(obj2, &val3);
15828 if (!SWIG_IsOK(ecode3)) {
15829 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCheckMark" "', expected argument " "3"" of type '" "int""'");
15830 }
15831 arg3 = static_cast< int >(val3);
15832 ecode4 = SWIG_AsVal_int(obj3, &val4);
15833 if (!SWIG_IsOK(ecode4)) {
15834 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCheckMark" "', expected argument " "4"" of type '" "int""'");
15835 }
15836 arg4 = static_cast< int >(val4);
15837 ecode5 = SWIG_AsVal_int(obj4, &val5);
15838 if (!SWIG_IsOK(ecode5)) {
15839 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawCheckMark" "', expected argument " "5"" of type '" "int""'");
15840 }
15841 arg5 = static_cast< int >(val5);
15842 {
15843 PyThreadState* __tstate = wxPyBeginAllowThreads();
15844 (arg1)->DrawCheckMark(arg2,arg3,arg4,arg5);
15845 wxPyEndAllowThreads(__tstate);
15846 if (PyErr_Occurred()) SWIG_fail;
15847 }
15848 resultobj = SWIG_Py_Void();
15849 return resultobj;
15850 fail:
15851 return NULL;
15852 }
15853
15854
15855 SWIGINTERN PyObject *_wrap_DC_DrawCheckMarkRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15856 PyObject *resultobj = 0;
15857 wxDC *arg1 = (wxDC *) 0 ;
15858 wxRect *arg2 = 0 ;
15859 void *argp1 = 0 ;
15860 int res1 = 0 ;
15861 wxRect temp2 ;
15862 PyObject * obj0 = 0 ;
15863 PyObject * obj1 = 0 ;
15864 char * kwnames[] = {
15865 (char *) "self",(char *) "rect", NULL
15866 };
15867
15868 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawCheckMarkRect",kwnames,&obj0,&obj1)) SWIG_fail;
15869 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15870 if (!SWIG_IsOK(res1)) {
15871 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCheckMarkRect" "', expected argument " "1"" of type '" "wxDC *""'");
15872 }
15873 arg1 = reinterpret_cast< wxDC * >(argp1);
15874 {
15875 arg2 = &temp2;
15876 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
15877 }
15878 {
15879 PyThreadState* __tstate = wxPyBeginAllowThreads();
15880 (arg1)->DrawCheckMark((wxRect const &)*arg2);
15881 wxPyEndAllowThreads(__tstate);
15882 if (PyErr_Occurred()) SWIG_fail;
15883 }
15884 resultobj = SWIG_Py_Void();
15885 return resultobj;
15886 fail:
15887 return NULL;
15888 }
15889
15890
15891 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15892 PyObject *resultobj = 0;
15893 wxDC *arg1 = (wxDC *) 0 ;
15894 int arg2 ;
15895 int arg3 ;
15896 int arg4 ;
15897 int arg5 ;
15898 double arg6 ;
15899 double arg7 ;
15900 void *argp1 = 0 ;
15901 int res1 = 0 ;
15902 int val2 ;
15903 int ecode2 = 0 ;
15904 int val3 ;
15905 int ecode3 = 0 ;
15906 int val4 ;
15907 int ecode4 = 0 ;
15908 int val5 ;
15909 int ecode5 = 0 ;
15910 double val6 ;
15911 int ecode6 = 0 ;
15912 double val7 ;
15913 int ecode7 = 0 ;
15914 PyObject * obj0 = 0 ;
15915 PyObject * obj1 = 0 ;
15916 PyObject * obj2 = 0 ;
15917 PyObject * obj3 = 0 ;
15918 PyObject * obj4 = 0 ;
15919 PyObject * obj5 = 0 ;
15920 PyObject * obj6 = 0 ;
15921 char * kwnames[] = {
15922 (char *) "self",(char *) "x",(char *) "y",(char *) "w",(char *) "h",(char *) "start",(char *) "end", NULL
15923 };
15924
15925 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOOO:DC_DrawEllipticArc",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
15926 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
15927 if (!SWIG_IsOK(res1)) {
15928 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArc" "', expected argument " "1"" of type '" "wxDC *""'");
15929 }
15930 arg1 = reinterpret_cast< wxDC * >(argp1);
15931 ecode2 = SWIG_AsVal_int(obj1, &val2);
15932 if (!SWIG_IsOK(ecode2)) {
15933 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipticArc" "', expected argument " "2"" of type '" "int""'");
15934 }
15935 arg2 = static_cast< int >(val2);
15936 ecode3 = SWIG_AsVal_int(obj2, &val3);
15937 if (!SWIG_IsOK(ecode3)) {
15938 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipticArc" "', expected argument " "3"" of type '" "int""'");
15939 }
15940 arg3 = static_cast< int >(val3);
15941 ecode4 = SWIG_AsVal_int(obj3, &val4);
15942 if (!SWIG_IsOK(ecode4)) {
15943 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArc" "', expected argument " "4"" of type '" "int""'");
15944 }
15945 arg4 = static_cast< int >(val4);
15946 ecode5 = SWIG_AsVal_int(obj4, &val5);
15947 if (!SWIG_IsOK(ecode5)) {
15948 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArc" "', expected argument " "5"" of type '" "int""'");
15949 }
15950 arg5 = static_cast< int >(val5);
15951 ecode6 = SWIG_AsVal_double(obj5, &val6);
15952 if (!SWIG_IsOK(ecode6)) {
15953 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawEllipticArc" "', expected argument " "6"" of type '" "double""'");
15954 }
15955 arg6 = static_cast< double >(val6);
15956 ecode7 = SWIG_AsVal_double(obj6, &val7);
15957 if (!SWIG_IsOK(ecode7)) {
15958 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_DrawEllipticArc" "', expected argument " "7"" of type '" "double""'");
15959 }
15960 arg7 = static_cast< double >(val7);
15961 {
15962 PyThreadState* __tstate = wxPyBeginAllowThreads();
15963 (arg1)->DrawEllipticArc(arg2,arg3,arg4,arg5,arg6,arg7);
15964 wxPyEndAllowThreads(__tstate);
15965 if (PyErr_Occurred()) SWIG_fail;
15966 }
15967 resultobj = SWIG_Py_Void();
15968 return resultobj;
15969 fail:
15970 return NULL;
15971 }
15972
15973
15974 SWIGINTERN PyObject *_wrap_DC_DrawEllipticArcPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
15975 PyObject *resultobj = 0;
15976 wxDC *arg1 = (wxDC *) 0 ;
15977 wxPoint *arg2 = 0 ;
15978 wxSize *arg3 = 0 ;
15979 double arg4 ;
15980 double arg5 ;
15981 void *argp1 = 0 ;
15982 int res1 = 0 ;
15983 wxPoint temp2 ;
15984 wxSize temp3 ;
15985 double val4 ;
15986 int ecode4 = 0 ;
15987 double val5 ;
15988 int ecode5 = 0 ;
15989 PyObject * obj0 = 0 ;
15990 PyObject * obj1 = 0 ;
15991 PyObject * obj2 = 0 ;
15992 PyObject * obj3 = 0 ;
15993 PyObject * obj4 = 0 ;
15994 char * kwnames[] = {
15995 (char *) "self",(char *) "pt",(char *) "sz",(char *) "start",(char *) "end", NULL
15996 };
15997
15998 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipticArcPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
15999 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16000 if (!SWIG_IsOK(res1)) {
16001 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16002 }
16003 arg1 = reinterpret_cast< wxDC * >(argp1);
16004 {
16005 arg2 = &temp2;
16006 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16007 }
16008 {
16009 arg3 = &temp3;
16010 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16011 }
16012 ecode4 = SWIG_AsVal_double(obj3, &val4);
16013 if (!SWIG_IsOK(ecode4)) {
16014 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "4"" of type '" "double""'");
16015 }
16016 arg4 = static_cast< double >(val4);
16017 ecode5 = SWIG_AsVal_double(obj4, &val5);
16018 if (!SWIG_IsOK(ecode5)) {
16019 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipticArcPointSize" "', expected argument " "5"" of type '" "double""'");
16020 }
16021 arg5 = static_cast< double >(val5);
16022 {
16023 PyThreadState* __tstate = wxPyBeginAllowThreads();
16024 (arg1)->DrawEllipticArc((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,arg5);
16025 wxPyEndAllowThreads(__tstate);
16026 if (PyErr_Occurred()) SWIG_fail;
16027 }
16028 resultobj = SWIG_Py_Void();
16029 return resultobj;
16030 fail:
16031 return NULL;
16032 }
16033
16034
16035 SWIGINTERN PyObject *_wrap_DC_DrawPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16036 PyObject *resultobj = 0;
16037 wxDC *arg1 = (wxDC *) 0 ;
16038 int arg2 ;
16039 int arg3 ;
16040 void *argp1 = 0 ;
16041 int res1 = 0 ;
16042 int val2 ;
16043 int ecode2 = 0 ;
16044 int val3 ;
16045 int ecode3 = 0 ;
16046 PyObject * obj0 = 0 ;
16047 PyObject * obj1 = 0 ;
16048 PyObject * obj2 = 0 ;
16049 char * kwnames[] = {
16050 (char *) "self",(char *) "x",(char *) "y", NULL
16051 };
16052
16053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16055 if (!SWIG_IsOK(res1)) {
16056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16057 }
16058 arg1 = reinterpret_cast< wxDC * >(argp1);
16059 ecode2 = SWIG_AsVal_int(obj1, &val2);
16060 if (!SWIG_IsOK(ecode2)) {
16061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawPoint" "', expected argument " "2"" of type '" "int""'");
16062 }
16063 arg2 = static_cast< int >(val2);
16064 ecode3 = SWIG_AsVal_int(obj2, &val3);
16065 if (!SWIG_IsOK(ecode3)) {
16066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawPoint" "', expected argument " "3"" of type '" "int""'");
16067 }
16068 arg3 = static_cast< int >(val3);
16069 {
16070 PyThreadState* __tstate = wxPyBeginAllowThreads();
16071 (arg1)->DrawPoint(arg2,arg3);
16072 wxPyEndAllowThreads(__tstate);
16073 if (PyErr_Occurred()) SWIG_fail;
16074 }
16075 resultobj = SWIG_Py_Void();
16076 return resultobj;
16077 fail:
16078 return NULL;
16079 }
16080
16081
16082 SWIGINTERN PyObject *_wrap_DC_DrawPointPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16083 PyObject *resultobj = 0;
16084 wxDC *arg1 = (wxDC *) 0 ;
16085 wxPoint *arg2 = 0 ;
16086 void *argp1 = 0 ;
16087 int res1 = 0 ;
16088 wxPoint temp2 ;
16089 PyObject * obj0 = 0 ;
16090 PyObject * obj1 = 0 ;
16091 char * kwnames[] = {
16092 (char *) "self",(char *) "pt", NULL
16093 };
16094
16095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawPointPoint",kwnames,&obj0,&obj1)) SWIG_fail;
16096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16097 if (!SWIG_IsOK(res1)) {
16098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPointPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16099 }
16100 arg1 = reinterpret_cast< wxDC * >(argp1);
16101 {
16102 arg2 = &temp2;
16103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16104 }
16105 {
16106 PyThreadState* __tstate = wxPyBeginAllowThreads();
16107 (arg1)->DrawPoint((wxPoint const &)*arg2);
16108 wxPyEndAllowThreads(__tstate);
16109 if (PyErr_Occurred()) SWIG_fail;
16110 }
16111 resultobj = SWIG_Py_Void();
16112 return resultobj;
16113 fail:
16114 return NULL;
16115 }
16116
16117
16118 SWIGINTERN PyObject *_wrap_DC_DrawRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16119 PyObject *resultobj = 0;
16120 wxDC *arg1 = (wxDC *) 0 ;
16121 int arg2 ;
16122 int arg3 ;
16123 int arg4 ;
16124 int arg5 ;
16125 void *argp1 = 0 ;
16126 int res1 = 0 ;
16127 int val2 ;
16128 int ecode2 = 0 ;
16129 int val3 ;
16130 int ecode3 = 0 ;
16131 int val4 ;
16132 int ecode4 = 0 ;
16133 int val5 ;
16134 int ecode5 = 0 ;
16135 PyObject * obj0 = 0 ;
16136 PyObject * obj1 = 0 ;
16137 PyObject * obj2 = 0 ;
16138 PyObject * obj3 = 0 ;
16139 PyObject * obj4 = 0 ;
16140 char * kwnames[] = {
16141 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16142 };
16143
16144 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16145 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16146 if (!SWIG_IsOK(res1)) {
16147 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16148 }
16149 arg1 = reinterpret_cast< wxDC * >(argp1);
16150 ecode2 = SWIG_AsVal_int(obj1, &val2);
16151 if (!SWIG_IsOK(ecode2)) {
16152 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRectangle" "', expected argument " "2"" of type '" "int""'");
16153 }
16154 arg2 = static_cast< int >(val2);
16155 ecode3 = SWIG_AsVal_int(obj2, &val3);
16156 if (!SWIG_IsOK(ecode3)) {
16157 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRectangle" "', expected argument " "3"" of type '" "int""'");
16158 }
16159 arg3 = static_cast< int >(val3);
16160 ecode4 = SWIG_AsVal_int(obj3, &val4);
16161 if (!SWIG_IsOK(ecode4)) {
16162 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRectangle" "', expected argument " "4"" of type '" "int""'");
16163 }
16164 arg4 = static_cast< int >(val4);
16165 ecode5 = SWIG_AsVal_int(obj4, &val5);
16166 if (!SWIG_IsOK(ecode5)) {
16167 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRectangle" "', expected argument " "5"" of type '" "int""'");
16168 }
16169 arg5 = static_cast< int >(val5);
16170 {
16171 PyThreadState* __tstate = wxPyBeginAllowThreads();
16172 (arg1)->DrawRectangle(arg2,arg3,arg4,arg5);
16173 wxPyEndAllowThreads(__tstate);
16174 if (PyErr_Occurred()) SWIG_fail;
16175 }
16176 resultobj = SWIG_Py_Void();
16177 return resultobj;
16178 fail:
16179 return NULL;
16180 }
16181
16182
16183 SWIGINTERN PyObject *_wrap_DC_DrawRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16184 PyObject *resultobj = 0;
16185 wxDC *arg1 = (wxDC *) 0 ;
16186 wxRect *arg2 = 0 ;
16187 void *argp1 = 0 ;
16188 int res1 = 0 ;
16189 wxRect temp2 ;
16190 PyObject * obj0 = 0 ;
16191 PyObject * obj1 = 0 ;
16192 char * kwnames[] = {
16193 (char *) "self",(char *) "rect", NULL
16194 };
16195
16196 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawRectangleRect",kwnames,&obj0,&obj1)) SWIG_fail;
16197 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16198 if (!SWIG_IsOK(res1)) {
16199 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16200 }
16201 arg1 = reinterpret_cast< wxDC * >(argp1);
16202 {
16203 arg2 = &temp2;
16204 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16205 }
16206 {
16207 PyThreadState* __tstate = wxPyBeginAllowThreads();
16208 (arg1)->DrawRectangle((wxRect const &)*arg2);
16209 wxPyEndAllowThreads(__tstate);
16210 if (PyErr_Occurred()) SWIG_fail;
16211 }
16212 resultobj = SWIG_Py_Void();
16213 return resultobj;
16214 fail:
16215 return NULL;
16216 }
16217
16218
16219 SWIGINTERN PyObject *_wrap_DC_DrawRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16220 PyObject *resultobj = 0;
16221 wxDC *arg1 = (wxDC *) 0 ;
16222 wxPoint *arg2 = 0 ;
16223 wxSize *arg3 = 0 ;
16224 void *argp1 = 0 ;
16225 int res1 = 0 ;
16226 wxPoint temp2 ;
16227 wxSize temp3 ;
16228 PyObject * obj0 = 0 ;
16229 PyObject * obj1 = 0 ;
16230 PyObject * obj2 = 0 ;
16231 char * kwnames[] = {
16232 (char *) "self",(char *) "pt",(char *) "sz", NULL
16233 };
16234
16235 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRectanglePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16236 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16237 if (!SWIG_IsOK(res1)) {
16238 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16239 }
16240 arg1 = reinterpret_cast< wxDC * >(argp1);
16241 {
16242 arg2 = &temp2;
16243 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16244 }
16245 {
16246 arg3 = &temp3;
16247 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16248 }
16249 {
16250 PyThreadState* __tstate = wxPyBeginAllowThreads();
16251 (arg1)->DrawRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3);
16252 wxPyEndAllowThreads(__tstate);
16253 if (PyErr_Occurred()) SWIG_fail;
16254 }
16255 resultobj = SWIG_Py_Void();
16256 return resultobj;
16257 fail:
16258 return NULL;
16259 }
16260
16261
16262 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16263 PyObject *resultobj = 0;
16264 wxDC *arg1 = (wxDC *) 0 ;
16265 int arg2 ;
16266 int arg3 ;
16267 int arg4 ;
16268 int arg5 ;
16269 double arg6 ;
16270 void *argp1 = 0 ;
16271 int res1 = 0 ;
16272 int val2 ;
16273 int ecode2 = 0 ;
16274 int val3 ;
16275 int ecode3 = 0 ;
16276 int val4 ;
16277 int ecode4 = 0 ;
16278 int val5 ;
16279 int ecode5 = 0 ;
16280 double val6 ;
16281 int ecode6 = 0 ;
16282 PyObject * obj0 = 0 ;
16283 PyObject * obj1 = 0 ;
16284 PyObject * obj2 = 0 ;
16285 PyObject * obj3 = 0 ;
16286 PyObject * obj4 = 0 ;
16287 PyObject * obj5 = 0 ;
16288 char * kwnames[] = {
16289 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "radius", NULL
16290 };
16291
16292 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:DC_DrawRoundedRectangle",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
16293 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16294 if (!SWIG_IsOK(res1)) {
16295 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "1"" of type '" "wxDC *""'");
16296 }
16297 arg1 = reinterpret_cast< wxDC * >(argp1);
16298 ecode2 = SWIG_AsVal_int(obj1, &val2);
16299 if (!SWIG_IsOK(ecode2)) {
16300 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "2"" of type '" "int""'");
16301 }
16302 arg2 = static_cast< int >(val2);
16303 ecode3 = SWIG_AsVal_int(obj2, &val3);
16304 if (!SWIG_IsOK(ecode3)) {
16305 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "3"" of type '" "int""'");
16306 }
16307 arg3 = static_cast< int >(val3);
16308 ecode4 = SWIG_AsVal_int(obj3, &val4);
16309 if (!SWIG_IsOK(ecode4)) {
16310 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "4"" of type '" "int""'");
16311 }
16312 arg4 = static_cast< int >(val4);
16313 ecode5 = SWIG_AsVal_int(obj4, &val5);
16314 if (!SWIG_IsOK(ecode5)) {
16315 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "5"" of type '" "int""'");
16316 }
16317 arg5 = static_cast< int >(val5);
16318 ecode6 = SWIG_AsVal_double(obj5, &val6);
16319 if (!SWIG_IsOK(ecode6)) {
16320 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawRoundedRectangle" "', expected argument " "6"" of type '" "double""'");
16321 }
16322 arg6 = static_cast< double >(val6);
16323 {
16324 PyThreadState* __tstate = wxPyBeginAllowThreads();
16325 (arg1)->DrawRoundedRectangle(arg2,arg3,arg4,arg5,arg6);
16326 wxPyEndAllowThreads(__tstate);
16327 if (PyErr_Occurred()) SWIG_fail;
16328 }
16329 resultobj = SWIG_Py_Void();
16330 return resultobj;
16331 fail:
16332 return NULL;
16333 }
16334
16335
16336 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectangleRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16337 PyObject *resultobj = 0;
16338 wxDC *arg1 = (wxDC *) 0 ;
16339 wxRect *arg2 = 0 ;
16340 double arg3 ;
16341 void *argp1 = 0 ;
16342 int res1 = 0 ;
16343 wxRect temp2 ;
16344 double val3 ;
16345 int ecode3 = 0 ;
16346 PyObject * obj0 = 0 ;
16347 PyObject * obj1 = 0 ;
16348 PyObject * obj2 = 0 ;
16349 char * kwnames[] = {
16350 (char *) "self",(char *) "r",(char *) "radius", NULL
16351 };
16352
16353 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawRoundedRectangleRect",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16354 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16355 if (!SWIG_IsOK(res1)) {
16356 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "1"" of type '" "wxDC *""'");
16357 }
16358 arg1 = reinterpret_cast< wxDC * >(argp1);
16359 {
16360 arg2 = &temp2;
16361 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16362 }
16363 ecode3 = SWIG_AsVal_double(obj2, &val3);
16364 if (!SWIG_IsOK(ecode3)) {
16365 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRoundedRectangleRect" "', expected argument " "3"" of type '" "double""'");
16366 }
16367 arg3 = static_cast< double >(val3);
16368 {
16369 PyThreadState* __tstate = wxPyBeginAllowThreads();
16370 (arg1)->DrawRoundedRectangle((wxRect const &)*arg2,arg3);
16371 wxPyEndAllowThreads(__tstate);
16372 if (PyErr_Occurred()) SWIG_fail;
16373 }
16374 resultobj = SWIG_Py_Void();
16375 return resultobj;
16376 fail:
16377 return NULL;
16378 }
16379
16380
16381 SWIGINTERN PyObject *_wrap_DC_DrawRoundedRectanglePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16382 PyObject *resultobj = 0;
16383 wxDC *arg1 = (wxDC *) 0 ;
16384 wxPoint *arg2 = 0 ;
16385 wxSize *arg3 = 0 ;
16386 double arg4 ;
16387 void *argp1 = 0 ;
16388 int res1 = 0 ;
16389 wxPoint temp2 ;
16390 wxSize temp3 ;
16391 double val4 ;
16392 int ecode4 = 0 ;
16393 PyObject * obj0 = 0 ;
16394 PyObject * obj1 = 0 ;
16395 PyObject * obj2 = 0 ;
16396 PyObject * obj3 = 0 ;
16397 char * kwnames[] = {
16398 (char *) "self",(char *) "pt",(char *) "sz",(char *) "radius", NULL
16399 };
16400
16401 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRoundedRectanglePointSize",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16402 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16403 if (!SWIG_IsOK(res1)) {
16404 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16405 }
16406 arg1 = reinterpret_cast< wxDC * >(argp1);
16407 {
16408 arg2 = &temp2;
16409 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16410 }
16411 {
16412 arg3 = &temp3;
16413 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16414 }
16415 ecode4 = SWIG_AsVal_double(obj3, &val4);
16416 if (!SWIG_IsOK(ecode4)) {
16417 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRoundedRectanglePointSize" "', expected argument " "4"" of type '" "double""'");
16418 }
16419 arg4 = static_cast< double >(val4);
16420 {
16421 PyThreadState* __tstate = wxPyBeginAllowThreads();
16422 (arg1)->DrawRoundedRectangle((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4);
16423 wxPyEndAllowThreads(__tstate);
16424 if (PyErr_Occurred()) SWIG_fail;
16425 }
16426 resultobj = SWIG_Py_Void();
16427 return resultobj;
16428 fail:
16429 return NULL;
16430 }
16431
16432
16433 SWIGINTERN PyObject *_wrap_DC_DrawCircle(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16434 PyObject *resultobj = 0;
16435 wxDC *arg1 = (wxDC *) 0 ;
16436 int arg2 ;
16437 int arg3 ;
16438 int arg4 ;
16439 void *argp1 = 0 ;
16440 int res1 = 0 ;
16441 int val2 ;
16442 int ecode2 = 0 ;
16443 int val3 ;
16444 int ecode3 = 0 ;
16445 int val4 ;
16446 int ecode4 = 0 ;
16447 PyObject * obj0 = 0 ;
16448 PyObject * obj1 = 0 ;
16449 PyObject * obj2 = 0 ;
16450 PyObject * obj3 = 0 ;
16451 char * kwnames[] = {
16452 (char *) "self",(char *) "x",(char *) "y",(char *) "radius", NULL
16453 };
16454
16455 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawCircle",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16456 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16457 if (!SWIG_IsOK(res1)) {
16458 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCircle" "', expected argument " "1"" of type '" "wxDC *""'");
16459 }
16460 arg1 = reinterpret_cast< wxDC * >(argp1);
16461 ecode2 = SWIG_AsVal_int(obj1, &val2);
16462 if (!SWIG_IsOK(ecode2)) {
16463 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawCircle" "', expected argument " "2"" of type '" "int""'");
16464 }
16465 arg2 = static_cast< int >(val2);
16466 ecode3 = SWIG_AsVal_int(obj2, &val3);
16467 if (!SWIG_IsOK(ecode3)) {
16468 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCircle" "', expected argument " "3"" of type '" "int""'");
16469 }
16470 arg3 = static_cast< int >(val3);
16471 ecode4 = SWIG_AsVal_int(obj3, &val4);
16472 if (!SWIG_IsOK(ecode4)) {
16473 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawCircle" "', expected argument " "4"" of type '" "int""'");
16474 }
16475 arg4 = static_cast< int >(val4);
16476 {
16477 PyThreadState* __tstate = wxPyBeginAllowThreads();
16478 (arg1)->DrawCircle(arg2,arg3,arg4);
16479 wxPyEndAllowThreads(__tstate);
16480 if (PyErr_Occurred()) SWIG_fail;
16481 }
16482 resultobj = SWIG_Py_Void();
16483 return resultobj;
16484 fail:
16485 return NULL;
16486 }
16487
16488
16489 SWIGINTERN PyObject *_wrap_DC_DrawCirclePoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16490 PyObject *resultobj = 0;
16491 wxDC *arg1 = (wxDC *) 0 ;
16492 wxPoint *arg2 = 0 ;
16493 int arg3 ;
16494 void *argp1 = 0 ;
16495 int res1 = 0 ;
16496 wxPoint temp2 ;
16497 int val3 ;
16498 int ecode3 = 0 ;
16499 PyObject * obj0 = 0 ;
16500 PyObject * obj1 = 0 ;
16501 PyObject * obj2 = 0 ;
16502 char * kwnames[] = {
16503 (char *) "self",(char *) "pt",(char *) "radius", NULL
16504 };
16505
16506 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawCirclePoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16507 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16508 if (!SWIG_IsOK(res1)) {
16509 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawCirclePoint" "', expected argument " "1"" of type '" "wxDC *""'");
16510 }
16511 arg1 = reinterpret_cast< wxDC * >(argp1);
16512 {
16513 arg2 = &temp2;
16514 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16515 }
16516 ecode3 = SWIG_AsVal_int(obj2, &val3);
16517 if (!SWIG_IsOK(ecode3)) {
16518 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawCirclePoint" "', expected argument " "3"" of type '" "int""'");
16519 }
16520 arg3 = static_cast< int >(val3);
16521 {
16522 PyThreadState* __tstate = wxPyBeginAllowThreads();
16523 (arg1)->DrawCircle((wxPoint const &)*arg2,arg3);
16524 wxPyEndAllowThreads(__tstate);
16525 if (PyErr_Occurred()) SWIG_fail;
16526 }
16527 resultobj = SWIG_Py_Void();
16528 return resultobj;
16529 fail:
16530 return NULL;
16531 }
16532
16533
16534 SWIGINTERN PyObject *_wrap_DC_DrawEllipse(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16535 PyObject *resultobj = 0;
16536 wxDC *arg1 = (wxDC *) 0 ;
16537 int arg2 ;
16538 int arg3 ;
16539 int arg4 ;
16540 int arg5 ;
16541 void *argp1 = 0 ;
16542 int res1 = 0 ;
16543 int val2 ;
16544 int ecode2 = 0 ;
16545 int val3 ;
16546 int ecode3 = 0 ;
16547 int val4 ;
16548 int ecode4 = 0 ;
16549 int val5 ;
16550 int ecode5 = 0 ;
16551 PyObject * obj0 = 0 ;
16552 PyObject * obj1 = 0 ;
16553 PyObject * obj2 = 0 ;
16554 PyObject * obj3 = 0 ;
16555 PyObject * obj4 = 0 ;
16556 char * kwnames[] = {
16557 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
16558 };
16559
16560 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawEllipse",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16561 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16562 if (!SWIG_IsOK(res1)) {
16563 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipse" "', expected argument " "1"" of type '" "wxDC *""'");
16564 }
16565 arg1 = reinterpret_cast< wxDC * >(argp1);
16566 ecode2 = SWIG_AsVal_int(obj1, &val2);
16567 if (!SWIG_IsOK(ecode2)) {
16568 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DrawEllipse" "', expected argument " "2"" of type '" "int""'");
16569 }
16570 arg2 = static_cast< int >(val2);
16571 ecode3 = SWIG_AsVal_int(obj2, &val3);
16572 if (!SWIG_IsOK(ecode3)) {
16573 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawEllipse" "', expected argument " "3"" of type '" "int""'");
16574 }
16575 arg3 = static_cast< int >(val3);
16576 ecode4 = SWIG_AsVal_int(obj3, &val4);
16577 if (!SWIG_IsOK(ecode4)) {
16578 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawEllipse" "', expected argument " "4"" of type '" "int""'");
16579 }
16580 arg4 = static_cast< int >(val4);
16581 ecode5 = SWIG_AsVal_int(obj4, &val5);
16582 if (!SWIG_IsOK(ecode5)) {
16583 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawEllipse" "', expected argument " "5"" of type '" "int""'");
16584 }
16585 arg5 = static_cast< int >(val5);
16586 {
16587 PyThreadState* __tstate = wxPyBeginAllowThreads();
16588 (arg1)->DrawEllipse(arg2,arg3,arg4,arg5);
16589 wxPyEndAllowThreads(__tstate);
16590 if (PyErr_Occurred()) SWIG_fail;
16591 }
16592 resultobj = SWIG_Py_Void();
16593 return resultobj;
16594 fail:
16595 return NULL;
16596 }
16597
16598
16599 SWIGINTERN PyObject *_wrap_DC_DrawEllipseRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16600 PyObject *resultobj = 0;
16601 wxDC *arg1 = (wxDC *) 0 ;
16602 wxRect *arg2 = 0 ;
16603 void *argp1 = 0 ;
16604 int res1 = 0 ;
16605 wxRect temp2 ;
16606 PyObject * obj0 = 0 ;
16607 PyObject * obj1 = 0 ;
16608 char * kwnames[] = {
16609 (char *) "self",(char *) "rect", NULL
16610 };
16611
16612 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawEllipseRect",kwnames,&obj0,&obj1)) SWIG_fail;
16613 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16614 if (!SWIG_IsOK(res1)) {
16615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipseRect" "', expected argument " "1"" of type '" "wxDC *""'");
16616 }
16617 arg1 = reinterpret_cast< wxDC * >(argp1);
16618 {
16619 arg2 = &temp2;
16620 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
16621 }
16622 {
16623 PyThreadState* __tstate = wxPyBeginAllowThreads();
16624 (arg1)->DrawEllipse((wxRect const &)*arg2);
16625 wxPyEndAllowThreads(__tstate);
16626 if (PyErr_Occurred()) SWIG_fail;
16627 }
16628 resultobj = SWIG_Py_Void();
16629 return resultobj;
16630 fail:
16631 return NULL;
16632 }
16633
16634
16635 SWIGINTERN PyObject *_wrap_DC_DrawEllipsePointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16636 PyObject *resultobj = 0;
16637 wxDC *arg1 = (wxDC *) 0 ;
16638 wxPoint *arg2 = 0 ;
16639 wxSize *arg3 = 0 ;
16640 void *argp1 = 0 ;
16641 int res1 = 0 ;
16642 wxPoint temp2 ;
16643 wxSize temp3 ;
16644 PyObject * obj0 = 0 ;
16645 PyObject * obj1 = 0 ;
16646 PyObject * obj2 = 0 ;
16647 char * kwnames[] = {
16648 (char *) "self",(char *) "pt",(char *) "sz", NULL
16649 };
16650
16651 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawEllipsePointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16652 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16653 if (!SWIG_IsOK(res1)) {
16654 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawEllipsePointSize" "', expected argument " "1"" of type '" "wxDC *""'");
16655 }
16656 arg1 = reinterpret_cast< wxDC * >(argp1);
16657 {
16658 arg2 = &temp2;
16659 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
16660 }
16661 {
16662 arg3 = &temp3;
16663 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
16664 }
16665 {
16666 PyThreadState* __tstate = wxPyBeginAllowThreads();
16667 (arg1)->DrawEllipse((wxPoint const &)*arg2,(wxSize const &)*arg3);
16668 wxPyEndAllowThreads(__tstate);
16669 if (PyErr_Occurred()) SWIG_fail;
16670 }
16671 resultobj = SWIG_Py_Void();
16672 return resultobj;
16673 fail:
16674 return NULL;
16675 }
16676
16677
16678 SWIGINTERN PyObject *_wrap_DC_DrawIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16679 PyObject *resultobj = 0;
16680 wxDC *arg1 = (wxDC *) 0 ;
16681 wxIcon *arg2 = 0 ;
16682 int arg3 ;
16683 int arg4 ;
16684 void *argp1 = 0 ;
16685 int res1 = 0 ;
16686 void *argp2 = 0 ;
16687 int res2 = 0 ;
16688 int val3 ;
16689 int ecode3 = 0 ;
16690 int val4 ;
16691 int ecode4 = 0 ;
16692 PyObject * obj0 = 0 ;
16693 PyObject * obj1 = 0 ;
16694 PyObject * obj2 = 0 ;
16695 PyObject * obj3 = 0 ;
16696 char * kwnames[] = {
16697 (char *) "self",(char *) "icon",(char *) "x",(char *) "y", NULL
16698 };
16699
16700 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawIcon",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16701 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16702 if (!SWIG_IsOK(res1)) {
16703 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIcon" "', expected argument " "1"" of type '" "wxDC *""'");
16704 }
16705 arg1 = reinterpret_cast< wxDC * >(argp1);
16706 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16707 if (!SWIG_IsOK(res2)) {
16708 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16709 }
16710 if (!argp2) {
16711 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
16712 }
16713 arg2 = reinterpret_cast< wxIcon * >(argp2);
16714 ecode3 = SWIG_AsVal_int(obj2, &val3);
16715 if (!SWIG_IsOK(ecode3)) {
16716 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawIcon" "', expected argument " "3"" of type '" "int""'");
16717 }
16718 arg3 = static_cast< int >(val3);
16719 ecode4 = SWIG_AsVal_int(obj3, &val4);
16720 if (!SWIG_IsOK(ecode4)) {
16721 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawIcon" "', expected argument " "4"" of type '" "int""'");
16722 }
16723 arg4 = static_cast< int >(val4);
16724 {
16725 PyThreadState* __tstate = wxPyBeginAllowThreads();
16726 (arg1)->DrawIcon((wxIcon const &)*arg2,arg3,arg4);
16727 wxPyEndAllowThreads(__tstate);
16728 if (PyErr_Occurred()) SWIG_fail;
16729 }
16730 resultobj = SWIG_Py_Void();
16731 return resultobj;
16732 fail:
16733 return NULL;
16734 }
16735
16736
16737 SWIGINTERN PyObject *_wrap_DC_DrawIconPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16738 PyObject *resultobj = 0;
16739 wxDC *arg1 = (wxDC *) 0 ;
16740 wxIcon *arg2 = 0 ;
16741 wxPoint *arg3 = 0 ;
16742 void *argp1 = 0 ;
16743 int res1 = 0 ;
16744 void *argp2 = 0 ;
16745 int res2 = 0 ;
16746 wxPoint temp3 ;
16747 PyObject * obj0 = 0 ;
16748 PyObject * obj1 = 0 ;
16749 PyObject * obj2 = 0 ;
16750 char * kwnames[] = {
16751 (char *) "self",(char *) "icon",(char *) "pt", NULL
16752 };
16753
16754 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawIconPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16755 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16756 if (!SWIG_IsOK(res1)) {
16757 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawIconPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16758 }
16759 arg1 = reinterpret_cast< wxDC * >(argp1);
16760 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
16761 if (!SWIG_IsOK(res2)) {
16762 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16763 }
16764 if (!argp2) {
16765 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawIconPoint" "', expected argument " "2"" of type '" "wxIcon const &""'");
16766 }
16767 arg2 = reinterpret_cast< wxIcon * >(argp2);
16768 {
16769 arg3 = &temp3;
16770 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16771 }
16772 {
16773 PyThreadState* __tstate = wxPyBeginAllowThreads();
16774 (arg1)->DrawIcon((wxIcon const &)*arg2,(wxPoint const &)*arg3);
16775 wxPyEndAllowThreads(__tstate);
16776 if (PyErr_Occurred()) SWIG_fail;
16777 }
16778 resultobj = SWIG_Py_Void();
16779 return resultobj;
16780 fail:
16781 return NULL;
16782 }
16783
16784
16785 SWIGINTERN PyObject *_wrap_DC_DrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16786 PyObject *resultobj = 0;
16787 wxDC *arg1 = (wxDC *) 0 ;
16788 wxBitmap *arg2 = 0 ;
16789 int arg3 ;
16790 int arg4 ;
16791 bool arg5 = (bool) false ;
16792 void *argp1 = 0 ;
16793 int res1 = 0 ;
16794 void *argp2 = 0 ;
16795 int res2 = 0 ;
16796 int val3 ;
16797 int ecode3 = 0 ;
16798 int val4 ;
16799 int ecode4 = 0 ;
16800 bool val5 ;
16801 int ecode5 = 0 ;
16802 PyObject * obj0 = 0 ;
16803 PyObject * obj1 = 0 ;
16804 PyObject * obj2 = 0 ;
16805 PyObject * obj3 = 0 ;
16806 PyObject * obj4 = 0 ;
16807 char * kwnames[] = {
16808 (char *) "self",(char *) "bmp",(char *) "x",(char *) "y",(char *) "useMask", NULL
16809 };
16810
16811 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:DC_DrawBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
16812 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16813 if (!SWIG_IsOK(res1)) {
16814 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmap" "', expected argument " "1"" of type '" "wxDC *""'");
16815 }
16816 arg1 = reinterpret_cast< wxDC * >(argp1);
16817 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16818 if (!SWIG_IsOK(res2)) {
16819 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16820 }
16821 if (!argp2) {
16822 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmap" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16823 }
16824 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16825 ecode3 = SWIG_AsVal_int(obj2, &val3);
16826 if (!SWIG_IsOK(ecode3)) {
16827 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawBitmap" "', expected argument " "3"" of type '" "int""'");
16828 }
16829 arg3 = static_cast< int >(val3);
16830 ecode4 = SWIG_AsVal_int(obj3, &val4);
16831 if (!SWIG_IsOK(ecode4)) {
16832 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmap" "', expected argument " "4"" of type '" "int""'");
16833 }
16834 arg4 = static_cast< int >(val4);
16835 if (obj4) {
16836 ecode5 = SWIG_AsVal_bool(obj4, &val5);
16837 if (!SWIG_IsOK(ecode5)) {
16838 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawBitmap" "', expected argument " "5"" of type '" "bool""'");
16839 }
16840 arg5 = static_cast< bool >(val5);
16841 }
16842 {
16843 PyThreadState* __tstate = wxPyBeginAllowThreads();
16844 (arg1)->DrawBitmap((wxBitmap const &)*arg2,arg3,arg4,arg5);
16845 wxPyEndAllowThreads(__tstate);
16846 if (PyErr_Occurred()) SWIG_fail;
16847 }
16848 resultobj = SWIG_Py_Void();
16849 return resultobj;
16850 fail:
16851 return NULL;
16852 }
16853
16854
16855 SWIGINTERN PyObject *_wrap_DC_DrawBitmapPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16856 PyObject *resultobj = 0;
16857 wxDC *arg1 = (wxDC *) 0 ;
16858 wxBitmap *arg2 = 0 ;
16859 wxPoint *arg3 = 0 ;
16860 bool arg4 = (bool) false ;
16861 void *argp1 = 0 ;
16862 int res1 = 0 ;
16863 void *argp2 = 0 ;
16864 int res2 = 0 ;
16865 wxPoint temp3 ;
16866 bool val4 ;
16867 int ecode4 = 0 ;
16868 PyObject * obj0 = 0 ;
16869 PyObject * obj1 = 0 ;
16870 PyObject * obj2 = 0 ;
16871 PyObject * obj3 = 0 ;
16872 char * kwnames[] = {
16873 (char *) "self",(char *) "bmp",(char *) "pt",(char *) "useMask", NULL
16874 };
16875
16876 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:DC_DrawBitmapPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16877 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16878 if (!SWIG_IsOK(res1)) {
16879 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawBitmapPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16880 }
16881 arg1 = reinterpret_cast< wxDC * >(argp1);
16882 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
16883 if (!SWIG_IsOK(res2)) {
16884 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16885 }
16886 if (!argp2) {
16887 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawBitmapPoint" "', expected argument " "2"" of type '" "wxBitmap const &""'");
16888 }
16889 arg2 = reinterpret_cast< wxBitmap * >(argp2);
16890 {
16891 arg3 = &temp3;
16892 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
16893 }
16894 if (obj3) {
16895 ecode4 = SWIG_AsVal_bool(obj3, &val4);
16896 if (!SWIG_IsOK(ecode4)) {
16897 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawBitmapPoint" "', expected argument " "4"" of type '" "bool""'");
16898 }
16899 arg4 = static_cast< bool >(val4);
16900 }
16901 {
16902 PyThreadState* __tstate = wxPyBeginAllowThreads();
16903 (arg1)->DrawBitmap((wxBitmap const &)*arg2,(wxPoint const &)*arg3,arg4);
16904 wxPyEndAllowThreads(__tstate);
16905 if (PyErr_Occurred()) SWIG_fail;
16906 }
16907 resultobj = SWIG_Py_Void();
16908 return resultobj;
16909 fail:
16910 return NULL;
16911 }
16912
16913
16914 SWIGINTERN PyObject *_wrap_DC_DrawText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16915 PyObject *resultobj = 0;
16916 wxDC *arg1 = (wxDC *) 0 ;
16917 wxString *arg2 = 0 ;
16918 int arg3 ;
16919 int arg4 ;
16920 void *argp1 = 0 ;
16921 int res1 = 0 ;
16922 bool temp2 = false ;
16923 int val3 ;
16924 int ecode3 = 0 ;
16925 int val4 ;
16926 int ecode4 = 0 ;
16927 PyObject * obj0 = 0 ;
16928 PyObject * obj1 = 0 ;
16929 PyObject * obj2 = 0 ;
16930 PyObject * obj3 = 0 ;
16931 char * kwnames[] = {
16932 (char *) "self",(char *) "text",(char *) "x",(char *) "y", NULL
16933 };
16934
16935 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawText",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
16936 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16937 if (!SWIG_IsOK(res1)) {
16938 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawText" "', expected argument " "1"" of type '" "wxDC *""'");
16939 }
16940 arg1 = reinterpret_cast< wxDC * >(argp1);
16941 {
16942 arg2 = wxString_in_helper(obj1);
16943 if (arg2 == NULL) SWIG_fail;
16944 temp2 = true;
16945 }
16946 ecode3 = SWIG_AsVal_int(obj2, &val3);
16947 if (!SWIG_IsOK(ecode3)) {
16948 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawText" "', expected argument " "3"" of type '" "int""'");
16949 }
16950 arg3 = static_cast< int >(val3);
16951 ecode4 = SWIG_AsVal_int(obj3, &val4);
16952 if (!SWIG_IsOK(ecode4)) {
16953 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawText" "', expected argument " "4"" of type '" "int""'");
16954 }
16955 arg4 = static_cast< int >(val4);
16956 {
16957 PyThreadState* __tstate = wxPyBeginAllowThreads();
16958 (arg1)->DrawText((wxString const &)*arg2,arg3,arg4);
16959 wxPyEndAllowThreads(__tstate);
16960 if (PyErr_Occurred()) SWIG_fail;
16961 }
16962 resultobj = SWIG_Py_Void();
16963 {
16964 if (temp2)
16965 delete arg2;
16966 }
16967 return resultobj;
16968 fail:
16969 {
16970 if (temp2)
16971 delete arg2;
16972 }
16973 return NULL;
16974 }
16975
16976
16977 SWIGINTERN PyObject *_wrap_DC_DrawTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
16978 PyObject *resultobj = 0;
16979 wxDC *arg1 = (wxDC *) 0 ;
16980 wxString *arg2 = 0 ;
16981 wxPoint *arg3 = 0 ;
16982 void *argp1 = 0 ;
16983 int res1 = 0 ;
16984 bool temp2 = false ;
16985 wxPoint temp3 ;
16986 PyObject * obj0 = 0 ;
16987 PyObject * obj1 = 0 ;
16988 PyObject * obj2 = 0 ;
16989 char * kwnames[] = {
16990 (char *) "self",(char *) "text",(char *) "pt", NULL
16991 };
16992
16993 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_DrawTextPoint",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
16994 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
16995 if (!SWIG_IsOK(res1)) {
16996 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
16997 }
16998 arg1 = reinterpret_cast< wxDC * >(argp1);
16999 {
17000 arg2 = wxString_in_helper(obj1);
17001 if (arg2 == NULL) SWIG_fail;
17002 temp2 = true;
17003 }
17004 {
17005 arg3 = &temp3;
17006 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17007 }
17008 {
17009 PyThreadState* __tstate = wxPyBeginAllowThreads();
17010 (arg1)->DrawText((wxString const &)*arg2,(wxPoint const &)*arg3);
17011 wxPyEndAllowThreads(__tstate);
17012 if (PyErr_Occurred()) SWIG_fail;
17013 }
17014 resultobj = SWIG_Py_Void();
17015 {
17016 if (temp2)
17017 delete arg2;
17018 }
17019 return resultobj;
17020 fail:
17021 {
17022 if (temp2)
17023 delete arg2;
17024 }
17025 return NULL;
17026 }
17027
17028
17029 SWIGINTERN PyObject *_wrap_DC_DrawRotatedText(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17030 PyObject *resultobj = 0;
17031 wxDC *arg1 = (wxDC *) 0 ;
17032 wxString *arg2 = 0 ;
17033 int arg3 ;
17034 int arg4 ;
17035 double arg5 ;
17036 void *argp1 = 0 ;
17037 int res1 = 0 ;
17038 bool temp2 = false ;
17039 int val3 ;
17040 int ecode3 = 0 ;
17041 int val4 ;
17042 int ecode4 = 0 ;
17043 double val5 ;
17044 int ecode5 = 0 ;
17045 PyObject * obj0 = 0 ;
17046 PyObject * obj1 = 0 ;
17047 PyObject * obj2 = 0 ;
17048 PyObject * obj3 = 0 ;
17049 PyObject * obj4 = 0 ;
17050 char * kwnames[] = {
17051 (char *) "self",(char *) "text",(char *) "x",(char *) "y",(char *) "angle", NULL
17052 };
17053
17054 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_DrawRotatedText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17055 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17056 if (!SWIG_IsOK(res1)) {
17057 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedText" "', expected argument " "1"" of type '" "wxDC *""'");
17058 }
17059 arg1 = reinterpret_cast< wxDC * >(argp1);
17060 {
17061 arg2 = wxString_in_helper(obj1);
17062 if (arg2 == NULL) SWIG_fail;
17063 temp2 = true;
17064 }
17065 ecode3 = SWIG_AsVal_int(obj2, &val3);
17066 if (!SWIG_IsOK(ecode3)) {
17067 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_DrawRotatedText" "', expected argument " "3"" of type '" "int""'");
17068 }
17069 arg3 = static_cast< int >(val3);
17070 ecode4 = SWIG_AsVal_int(obj3, &val4);
17071 if (!SWIG_IsOK(ecode4)) {
17072 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedText" "', expected argument " "4"" of type '" "int""'");
17073 }
17074 arg4 = static_cast< int >(val4);
17075 ecode5 = SWIG_AsVal_double(obj4, &val5);
17076 if (!SWIG_IsOK(ecode5)) {
17077 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawRotatedText" "', expected argument " "5"" of type '" "double""'");
17078 }
17079 arg5 = static_cast< double >(val5);
17080 {
17081 PyThreadState* __tstate = wxPyBeginAllowThreads();
17082 (arg1)->DrawRotatedText((wxString const &)*arg2,arg3,arg4,arg5);
17083 wxPyEndAllowThreads(__tstate);
17084 if (PyErr_Occurred()) SWIG_fail;
17085 }
17086 resultobj = SWIG_Py_Void();
17087 {
17088 if (temp2)
17089 delete arg2;
17090 }
17091 return resultobj;
17092 fail:
17093 {
17094 if (temp2)
17095 delete arg2;
17096 }
17097 return NULL;
17098 }
17099
17100
17101 SWIGINTERN PyObject *_wrap_DC_DrawRotatedTextPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17102 PyObject *resultobj = 0;
17103 wxDC *arg1 = (wxDC *) 0 ;
17104 wxString *arg2 = 0 ;
17105 wxPoint *arg3 = 0 ;
17106 double arg4 ;
17107 void *argp1 = 0 ;
17108 int res1 = 0 ;
17109 bool temp2 = false ;
17110 wxPoint temp3 ;
17111 double val4 ;
17112 int ecode4 = 0 ;
17113 PyObject * obj0 = 0 ;
17114 PyObject * obj1 = 0 ;
17115 PyObject * obj2 = 0 ;
17116 PyObject * obj3 = 0 ;
17117 char * kwnames[] = {
17118 (char *) "self",(char *) "text",(char *) "pt",(char *) "angle", NULL
17119 };
17120
17121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC_DrawRotatedTextPoint",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17123 if (!SWIG_IsOK(res1)) {
17124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "1"" of type '" "wxDC *""'");
17125 }
17126 arg1 = reinterpret_cast< wxDC * >(argp1);
17127 {
17128 arg2 = wxString_in_helper(obj1);
17129 if (arg2 == NULL) SWIG_fail;
17130 temp2 = true;
17131 }
17132 {
17133 arg3 = &temp3;
17134 if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail;
17135 }
17136 ecode4 = SWIG_AsVal_double(obj3, &val4);
17137 if (!SWIG_IsOK(ecode4)) {
17138 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawRotatedTextPoint" "', expected argument " "4"" of type '" "double""'");
17139 }
17140 arg4 = static_cast< double >(val4);
17141 {
17142 PyThreadState* __tstate = wxPyBeginAllowThreads();
17143 (arg1)->DrawRotatedText((wxString const &)*arg2,(wxPoint const &)*arg3,arg4);
17144 wxPyEndAllowThreads(__tstate);
17145 if (PyErr_Occurred()) SWIG_fail;
17146 }
17147 resultobj = SWIG_Py_Void();
17148 {
17149 if (temp2)
17150 delete arg2;
17151 }
17152 return resultobj;
17153 fail:
17154 {
17155 if (temp2)
17156 delete arg2;
17157 }
17158 return NULL;
17159 }
17160
17161
17162 SWIGINTERN PyObject *_wrap_DC_Blit(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17163 PyObject *resultobj = 0;
17164 wxDC *arg1 = (wxDC *) 0 ;
17165 int arg2 ;
17166 int arg3 ;
17167 int arg4 ;
17168 int arg5 ;
17169 wxDC *arg6 = (wxDC *) 0 ;
17170 int arg7 ;
17171 int arg8 ;
17172 int arg9 = (int) wxCOPY ;
17173 bool arg10 = (bool) false ;
17174 int arg11 = (int) -1 ;
17175 int arg12 = (int) -1 ;
17176 bool result;
17177 void *argp1 = 0 ;
17178 int res1 = 0 ;
17179 int val2 ;
17180 int ecode2 = 0 ;
17181 int val3 ;
17182 int ecode3 = 0 ;
17183 int val4 ;
17184 int ecode4 = 0 ;
17185 int val5 ;
17186 int ecode5 = 0 ;
17187 void *argp6 = 0 ;
17188 int res6 = 0 ;
17189 int val7 ;
17190 int ecode7 = 0 ;
17191 int val8 ;
17192 int ecode8 = 0 ;
17193 int val9 ;
17194 int ecode9 = 0 ;
17195 bool val10 ;
17196 int ecode10 = 0 ;
17197 int val11 ;
17198 int ecode11 = 0 ;
17199 int val12 ;
17200 int ecode12 = 0 ;
17201 PyObject * obj0 = 0 ;
17202 PyObject * obj1 = 0 ;
17203 PyObject * obj2 = 0 ;
17204 PyObject * obj3 = 0 ;
17205 PyObject * obj4 = 0 ;
17206 PyObject * obj5 = 0 ;
17207 PyObject * obj6 = 0 ;
17208 PyObject * obj7 = 0 ;
17209 PyObject * obj8 = 0 ;
17210 PyObject * obj9 = 0 ;
17211 PyObject * obj10 = 0 ;
17212 PyObject * obj11 = 0 ;
17213 char * kwnames[] = {
17214 (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
17215 };
17216
17217 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;
17218 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17219 if (!SWIG_IsOK(res1)) {
17220 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Blit" "', expected argument " "1"" of type '" "wxDC *""'");
17221 }
17222 arg1 = reinterpret_cast< wxDC * >(argp1);
17223 ecode2 = SWIG_AsVal_int(obj1, &val2);
17224 if (!SWIG_IsOK(ecode2)) {
17225 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_Blit" "', expected argument " "2"" of type '" "int""'");
17226 }
17227 arg2 = static_cast< int >(val2);
17228 ecode3 = SWIG_AsVal_int(obj2, &val3);
17229 if (!SWIG_IsOK(ecode3)) {
17230 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_Blit" "', expected argument " "3"" of type '" "int""'");
17231 }
17232 arg3 = static_cast< int >(val3);
17233 ecode4 = SWIG_AsVal_int(obj3, &val4);
17234 if (!SWIG_IsOK(ecode4)) {
17235 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_Blit" "', expected argument " "4"" of type '" "int""'");
17236 }
17237 arg4 = static_cast< int >(val4);
17238 ecode5 = SWIG_AsVal_int(obj4, &val5);
17239 if (!SWIG_IsOK(ecode5)) {
17240 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_Blit" "', expected argument " "5"" of type '" "int""'");
17241 }
17242 arg5 = static_cast< int >(val5);
17243 res6 = SWIG_ConvertPtr(obj5, &argp6,SWIGTYPE_p_wxDC, 0 | 0 );
17244 if (!SWIG_IsOK(res6)) {
17245 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_Blit" "', expected argument " "6"" of type '" "wxDC *""'");
17246 }
17247 arg6 = reinterpret_cast< wxDC * >(argp6);
17248 ecode7 = SWIG_AsVal_int(obj6, &val7);
17249 if (!SWIG_IsOK(ecode7)) {
17250 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_Blit" "', expected argument " "7"" of type '" "int""'");
17251 }
17252 arg7 = static_cast< int >(val7);
17253 ecode8 = SWIG_AsVal_int(obj7, &val8);
17254 if (!SWIG_IsOK(ecode8)) {
17255 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "DC_Blit" "', expected argument " "8"" of type '" "int""'");
17256 }
17257 arg8 = static_cast< int >(val8);
17258 if (obj8) {
17259 ecode9 = SWIG_AsVal_int(obj8, &val9);
17260 if (!SWIG_IsOK(ecode9)) {
17261 SWIG_exception_fail(SWIG_ArgError(ecode9), "in method '" "DC_Blit" "', expected argument " "9"" of type '" "int""'");
17262 }
17263 arg9 = static_cast< int >(val9);
17264 }
17265 if (obj9) {
17266 ecode10 = SWIG_AsVal_bool(obj9, &val10);
17267 if (!SWIG_IsOK(ecode10)) {
17268 SWIG_exception_fail(SWIG_ArgError(ecode10), "in method '" "DC_Blit" "', expected argument " "10"" of type '" "bool""'");
17269 }
17270 arg10 = static_cast< bool >(val10);
17271 }
17272 if (obj10) {
17273 ecode11 = SWIG_AsVal_int(obj10, &val11);
17274 if (!SWIG_IsOK(ecode11)) {
17275 SWIG_exception_fail(SWIG_ArgError(ecode11), "in method '" "DC_Blit" "', expected argument " "11"" of type '" "int""'");
17276 }
17277 arg11 = static_cast< int >(val11);
17278 }
17279 if (obj11) {
17280 ecode12 = SWIG_AsVal_int(obj11, &val12);
17281 if (!SWIG_IsOK(ecode12)) {
17282 SWIG_exception_fail(SWIG_ArgError(ecode12), "in method '" "DC_Blit" "', expected argument " "12"" of type '" "int""'");
17283 }
17284 arg12 = static_cast< int >(val12);
17285 }
17286 {
17287 PyThreadState* __tstate = wxPyBeginAllowThreads();
17288 result = (bool)(arg1)->Blit(arg2,arg3,arg4,arg5,arg6,arg7,arg8,arg9,arg10,arg11,arg12);
17289 wxPyEndAllowThreads(__tstate);
17290 if (PyErr_Occurred()) SWIG_fail;
17291 }
17292 {
17293 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17294 }
17295 return resultobj;
17296 fail:
17297 return NULL;
17298 }
17299
17300
17301 SWIGINTERN PyObject *_wrap_DC_BlitPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17302 PyObject *resultobj = 0;
17303 wxDC *arg1 = (wxDC *) 0 ;
17304 wxPoint *arg2 = 0 ;
17305 wxSize *arg3 = 0 ;
17306 wxDC *arg4 = (wxDC *) 0 ;
17307 wxPoint *arg5 = 0 ;
17308 int arg6 = (int) wxCOPY ;
17309 bool arg7 = (bool) false ;
17310 wxPoint const &arg8_defvalue = wxDefaultPosition ;
17311 wxPoint *arg8 = (wxPoint *) &arg8_defvalue ;
17312 bool result;
17313 void *argp1 = 0 ;
17314 int res1 = 0 ;
17315 wxPoint temp2 ;
17316 wxSize temp3 ;
17317 void *argp4 = 0 ;
17318 int res4 = 0 ;
17319 wxPoint temp5 ;
17320 int val6 ;
17321 int ecode6 = 0 ;
17322 bool val7 ;
17323 int ecode7 = 0 ;
17324 wxPoint temp8 ;
17325 PyObject * obj0 = 0 ;
17326 PyObject * obj1 = 0 ;
17327 PyObject * obj2 = 0 ;
17328 PyObject * obj3 = 0 ;
17329 PyObject * obj4 = 0 ;
17330 PyObject * obj5 = 0 ;
17331 PyObject * obj6 = 0 ;
17332 PyObject * obj7 = 0 ;
17333 char * kwnames[] = {
17334 (char *) "self",(char *) "destPt",(char *) "sz",(char *) "source",(char *) "srcPt",(char *) "rop",(char *) "useMask",(char *) "srcPtMask", NULL
17335 };
17336
17337 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:DC_BlitPointSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
17338 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17339 if (!SWIG_IsOK(res1)) {
17340 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_BlitPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17341 }
17342 arg1 = reinterpret_cast< wxDC * >(argp1);
17343 {
17344 arg2 = &temp2;
17345 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17346 }
17347 {
17348 arg3 = &temp3;
17349 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17350 }
17351 res4 = SWIG_ConvertPtr(obj3, &argp4,SWIGTYPE_p_wxDC, 0 | 0 );
17352 if (!SWIG_IsOK(res4)) {
17353 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DC_BlitPointSize" "', expected argument " "4"" of type '" "wxDC *""'");
17354 }
17355 arg4 = reinterpret_cast< wxDC * >(argp4);
17356 {
17357 arg5 = &temp5;
17358 if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail;
17359 }
17360 if (obj5) {
17361 ecode6 = SWIG_AsVal_int(obj5, &val6);
17362 if (!SWIG_IsOK(ecode6)) {
17363 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_BlitPointSize" "', expected argument " "6"" of type '" "int""'");
17364 }
17365 arg6 = static_cast< int >(val6);
17366 }
17367 if (obj6) {
17368 ecode7 = SWIG_AsVal_bool(obj6, &val7);
17369 if (!SWIG_IsOK(ecode7)) {
17370 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "DC_BlitPointSize" "', expected argument " "7"" of type '" "bool""'");
17371 }
17372 arg7 = static_cast< bool >(val7);
17373 }
17374 if (obj7) {
17375 {
17376 arg8 = &temp8;
17377 if ( ! wxPoint_helper(obj7, &arg8)) SWIG_fail;
17378 }
17379 }
17380 {
17381 PyThreadState* __tstate = wxPyBeginAllowThreads();
17382 result = (bool)(arg1)->Blit((wxPoint const &)*arg2,(wxSize const &)*arg3,arg4,(wxPoint const &)*arg5,arg6,arg7,(wxPoint const &)*arg8);
17383 wxPyEndAllowThreads(__tstate);
17384 if (PyErr_Occurred()) SWIG_fail;
17385 }
17386 {
17387 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17388 }
17389 return resultobj;
17390 fail:
17391 return NULL;
17392 }
17393
17394
17395 SWIGINTERN PyObject *_wrap_DC_SetClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17396 PyObject *resultobj = 0;
17397 wxDC *arg1 = (wxDC *) 0 ;
17398 int arg2 ;
17399 int arg3 ;
17400 int arg4 ;
17401 int arg5 ;
17402 void *argp1 = 0 ;
17403 int res1 = 0 ;
17404 int val2 ;
17405 int ecode2 = 0 ;
17406 int val3 ;
17407 int ecode3 = 0 ;
17408 int val4 ;
17409 int ecode4 = 0 ;
17410 int val5 ;
17411 int ecode5 = 0 ;
17412 PyObject * obj0 = 0 ;
17413 PyObject * obj1 = 0 ;
17414 PyObject * obj2 = 0 ;
17415 PyObject * obj3 = 0 ;
17416 PyObject * obj4 = 0 ;
17417 char * kwnames[] = {
17418 (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL
17419 };
17420
17421 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC_SetClippingRegion",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17422 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17423 if (!SWIG_IsOK(res1)) {
17424 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17425 }
17426 arg1 = reinterpret_cast< wxDC * >(argp1);
17427 ecode2 = SWIG_AsVal_int(obj1, &val2);
17428 if (!SWIG_IsOK(ecode2)) {
17429 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetClippingRegion" "', expected argument " "2"" of type '" "int""'");
17430 }
17431 arg2 = static_cast< int >(val2);
17432 ecode3 = SWIG_AsVal_int(obj2, &val3);
17433 if (!SWIG_IsOK(ecode3)) {
17434 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetClippingRegion" "', expected argument " "3"" of type '" "int""'");
17435 }
17436 arg3 = static_cast< int >(val3);
17437 ecode4 = SWIG_AsVal_int(obj3, &val4);
17438 if (!SWIG_IsOK(ecode4)) {
17439 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_SetClippingRegion" "', expected argument " "4"" of type '" "int""'");
17440 }
17441 arg4 = static_cast< int >(val4);
17442 ecode5 = SWIG_AsVal_int(obj4, &val5);
17443 if (!SWIG_IsOK(ecode5)) {
17444 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_SetClippingRegion" "', expected argument " "5"" of type '" "int""'");
17445 }
17446 arg5 = static_cast< int >(val5);
17447 {
17448 PyThreadState* __tstate = wxPyBeginAllowThreads();
17449 (arg1)->SetClippingRegion(arg2,arg3,arg4,arg5);
17450 wxPyEndAllowThreads(__tstate);
17451 if (PyErr_Occurred()) SWIG_fail;
17452 }
17453 resultobj = SWIG_Py_Void();
17454 return resultobj;
17455 fail:
17456 return NULL;
17457 }
17458
17459
17460 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionPointSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17461 PyObject *resultobj = 0;
17462 wxDC *arg1 = (wxDC *) 0 ;
17463 wxPoint *arg2 = 0 ;
17464 wxSize *arg3 = 0 ;
17465 void *argp1 = 0 ;
17466 int res1 = 0 ;
17467 wxPoint temp2 ;
17468 wxSize temp3 ;
17469 PyObject * obj0 = 0 ;
17470 PyObject * obj1 = 0 ;
17471 PyObject * obj2 = 0 ;
17472 char * kwnames[] = {
17473 (char *) "self",(char *) "pt",(char *) "sz", NULL
17474 };
17475
17476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetClippingRegionPointSize",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
17477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17478 if (!SWIG_IsOK(res1)) {
17479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionPointSize" "', expected argument " "1"" of type '" "wxDC *""'");
17480 }
17481 arg1 = reinterpret_cast< wxDC * >(argp1);
17482 {
17483 arg2 = &temp2;
17484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
17485 }
17486 {
17487 arg3 = &temp3;
17488 if ( ! wxSize_helper(obj2, &arg3)) SWIG_fail;
17489 }
17490 {
17491 PyThreadState* __tstate = wxPyBeginAllowThreads();
17492 (arg1)->SetClippingRegion((wxPoint const &)*arg2,(wxSize const &)*arg3);
17493 wxPyEndAllowThreads(__tstate);
17494 if (PyErr_Occurred()) SWIG_fail;
17495 }
17496 resultobj = SWIG_Py_Void();
17497 return resultobj;
17498 fail:
17499 return NULL;
17500 }
17501
17502
17503 SWIGINTERN PyObject *_wrap_DC_SetClippingRegionAsRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17504 PyObject *resultobj = 0;
17505 wxDC *arg1 = (wxDC *) 0 ;
17506 wxRegion *arg2 = 0 ;
17507 void *argp1 = 0 ;
17508 int res1 = 0 ;
17509 void *argp2 = 0 ;
17510 int res2 = 0 ;
17511 PyObject * obj0 = 0 ;
17512 PyObject * obj1 = 0 ;
17513 char * kwnames[] = {
17514 (char *) "self",(char *) "region", NULL
17515 };
17516
17517 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRegionAsRegion",kwnames,&obj0,&obj1)) SWIG_fail;
17518 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17519 if (!SWIG_IsOK(res1)) {
17520 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "1"" of type '" "wxDC *""'");
17521 }
17522 arg1 = reinterpret_cast< wxDC * >(argp1);
17523 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxRegion, 0 | 0);
17524 if (!SWIG_IsOK(res2)) {
17525 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17526 }
17527 if (!argp2) {
17528 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetClippingRegionAsRegion" "', expected argument " "2"" of type '" "wxRegion const &""'");
17529 }
17530 arg2 = reinterpret_cast< wxRegion * >(argp2);
17531 {
17532 PyThreadState* __tstate = wxPyBeginAllowThreads();
17533 (arg1)->SetClippingRegion((wxRegion const &)*arg2);
17534 wxPyEndAllowThreads(__tstate);
17535 if (PyErr_Occurred()) SWIG_fail;
17536 }
17537 resultobj = SWIG_Py_Void();
17538 return resultobj;
17539 fail:
17540 return NULL;
17541 }
17542
17543
17544 SWIGINTERN PyObject *_wrap_DC_SetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17545 PyObject *resultobj = 0;
17546 wxDC *arg1 = (wxDC *) 0 ;
17547 wxRect *arg2 = 0 ;
17548 void *argp1 = 0 ;
17549 int res1 = 0 ;
17550 wxRect temp2 ;
17551 PyObject * obj0 = 0 ;
17552 PyObject * obj1 = 0 ;
17553 char * kwnames[] = {
17554 (char *) "self",(char *) "rect", NULL
17555 };
17556
17557 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetClippingRect",kwnames,&obj0,&obj1)) SWIG_fail;
17558 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17559 if (!SWIG_IsOK(res1)) {
17560 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
17561 }
17562 arg1 = reinterpret_cast< wxDC * >(argp1);
17563 {
17564 arg2 = &temp2;
17565 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
17566 }
17567 {
17568 PyThreadState* __tstate = wxPyBeginAllowThreads();
17569 (arg1)->SetClippingRegion((wxRect const &)*arg2);
17570 wxPyEndAllowThreads(__tstate);
17571 if (PyErr_Occurred()) SWIG_fail;
17572 }
17573 resultobj = SWIG_Py_Void();
17574 return resultobj;
17575 fail:
17576 return NULL;
17577 }
17578
17579
17580 SWIGINTERN PyObject *_wrap_DC_DrawLines(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17581 PyObject *resultobj = 0;
17582 wxDC *arg1 = (wxDC *) 0 ;
17583 int arg2 ;
17584 wxPoint *arg3 = (wxPoint *) 0 ;
17585 int arg4 = (int) 0 ;
17586 int arg5 = (int) 0 ;
17587 void *argp1 = 0 ;
17588 int res1 = 0 ;
17589 int val4 ;
17590 int ecode4 = 0 ;
17591 int val5 ;
17592 int ecode5 = 0 ;
17593 PyObject * obj0 = 0 ;
17594 PyObject * obj1 = 0 ;
17595 PyObject * obj2 = 0 ;
17596 PyObject * obj3 = 0 ;
17597 char * kwnames[] = {
17598 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset", NULL
17599 };
17600
17601 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:DC_DrawLines",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
17602 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17603 if (!SWIG_IsOK(res1)) {
17604 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLines" "', expected argument " "1"" of type '" "wxDC *""'");
17605 }
17606 arg1 = reinterpret_cast< wxDC * >(argp1);
17607 {
17608 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17609 if (arg3 == NULL) SWIG_fail;
17610 }
17611 if (obj2) {
17612 ecode4 = SWIG_AsVal_int(obj2, &val4);
17613 if (!SWIG_IsOK(ecode4)) {
17614 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLines" "', expected argument " "4"" of type '" "int""'");
17615 }
17616 arg4 = static_cast< int >(val4);
17617 }
17618 if (obj3) {
17619 ecode5 = SWIG_AsVal_int(obj3, &val5);
17620 if (!SWIG_IsOK(ecode5)) {
17621 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLines" "', expected argument " "5"" of type '" "int""'");
17622 }
17623 arg5 = static_cast< int >(val5);
17624 }
17625 {
17626 PyThreadState* __tstate = wxPyBeginAllowThreads();
17627 (arg1)->DrawLines(arg2,arg3,arg4,arg5);
17628 wxPyEndAllowThreads(__tstate);
17629 if (PyErr_Occurred()) SWIG_fail;
17630 }
17631 resultobj = SWIG_Py_Void();
17632 {
17633 if (arg3) delete [] arg3;
17634 }
17635 return resultobj;
17636 fail:
17637 {
17638 if (arg3) delete [] arg3;
17639 }
17640 return NULL;
17641 }
17642
17643
17644 SWIGINTERN PyObject *_wrap_DC_DrawPolygon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17645 PyObject *resultobj = 0;
17646 wxDC *arg1 = (wxDC *) 0 ;
17647 int arg2 ;
17648 wxPoint *arg3 = (wxPoint *) 0 ;
17649 int arg4 = (int) 0 ;
17650 int arg5 = (int) 0 ;
17651 int arg6 = (int) wxODDEVEN_RULE ;
17652 void *argp1 = 0 ;
17653 int res1 = 0 ;
17654 int val4 ;
17655 int ecode4 = 0 ;
17656 int val5 ;
17657 int ecode5 = 0 ;
17658 int val6 ;
17659 int ecode6 = 0 ;
17660 PyObject * obj0 = 0 ;
17661 PyObject * obj1 = 0 ;
17662 PyObject * obj2 = 0 ;
17663 PyObject * obj3 = 0 ;
17664 PyObject * obj4 = 0 ;
17665 char * kwnames[] = {
17666 (char *) "self",(char *) "points",(char *) "xoffset",(char *) "yoffset",(char *) "fillStyle", NULL
17667 };
17668
17669 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:DC_DrawPolygon",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17670 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17671 if (!SWIG_IsOK(res1)) {
17672 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawPolygon" "', expected argument " "1"" of type '" "wxDC *""'");
17673 }
17674 arg1 = reinterpret_cast< wxDC * >(argp1);
17675 {
17676 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17677 if (arg3 == NULL) SWIG_fail;
17678 }
17679 if (obj2) {
17680 ecode4 = SWIG_AsVal_int(obj2, &val4);
17681 if (!SWIG_IsOK(ecode4)) {
17682 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawPolygon" "', expected argument " "4"" of type '" "int""'");
17683 }
17684 arg4 = static_cast< int >(val4);
17685 }
17686 if (obj3) {
17687 ecode5 = SWIG_AsVal_int(obj3, &val5);
17688 if (!SWIG_IsOK(ecode5)) {
17689 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawPolygon" "', expected argument " "5"" of type '" "int""'");
17690 }
17691 arg5 = static_cast< int >(val5);
17692 }
17693 if (obj4) {
17694 ecode6 = SWIG_AsVal_int(obj4, &val6);
17695 if (!SWIG_IsOK(ecode6)) {
17696 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawPolygon" "', expected argument " "6"" of type '" "int""'");
17697 }
17698 arg6 = static_cast< int >(val6);
17699 }
17700 {
17701 PyThreadState* __tstate = wxPyBeginAllowThreads();
17702 (arg1)->DrawPolygon(arg2,arg3,arg4,arg5,arg6);
17703 wxPyEndAllowThreads(__tstate);
17704 if (PyErr_Occurred()) SWIG_fail;
17705 }
17706 resultobj = SWIG_Py_Void();
17707 {
17708 if (arg3) delete [] arg3;
17709 }
17710 return resultobj;
17711 fail:
17712 {
17713 if (arg3) delete [] arg3;
17714 }
17715 return NULL;
17716 }
17717
17718
17719 SWIGINTERN PyObject *_wrap_DC_DrawLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17720 PyObject *resultobj = 0;
17721 wxDC *arg1 = (wxDC *) 0 ;
17722 wxString *arg2 = 0 ;
17723 wxRect *arg3 = 0 ;
17724 int arg4 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17725 int arg5 = (int) -1 ;
17726 void *argp1 = 0 ;
17727 int res1 = 0 ;
17728 bool temp2 = false ;
17729 wxRect temp3 ;
17730 int val4 ;
17731 int ecode4 = 0 ;
17732 int val5 ;
17733 int ecode5 = 0 ;
17734 PyObject * obj0 = 0 ;
17735 PyObject * obj1 = 0 ;
17736 PyObject * obj2 = 0 ;
17737 PyObject * obj3 = 0 ;
17738 PyObject * obj4 = 0 ;
17739 char * kwnames[] = {
17740 (char *) "self",(char *) "text",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17741 };
17742
17743 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DC_DrawLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
17744 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17745 if (!SWIG_IsOK(res1)) {
17746 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17747 }
17748 arg1 = reinterpret_cast< wxDC * >(argp1);
17749 {
17750 arg2 = wxString_in_helper(obj1);
17751 if (arg2 == NULL) SWIG_fail;
17752 temp2 = true;
17753 }
17754 {
17755 arg3 = &temp3;
17756 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
17757 }
17758 if (obj3) {
17759 ecode4 = SWIG_AsVal_int(obj3, &val4);
17760 if (!SWIG_IsOK(ecode4)) {
17761 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "DC_DrawLabel" "', expected argument " "4"" of type '" "int""'");
17762 }
17763 arg4 = static_cast< int >(val4);
17764 }
17765 if (obj4) {
17766 ecode5 = SWIG_AsVal_int(obj4, &val5);
17767 if (!SWIG_IsOK(ecode5)) {
17768 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawLabel" "', expected argument " "5"" of type '" "int""'");
17769 }
17770 arg5 = static_cast< int >(val5);
17771 }
17772 {
17773 PyThreadState* __tstate = wxPyBeginAllowThreads();
17774 (arg1)->DrawLabel((wxString const &)*arg2,(wxRect const &)*arg3,arg4,arg5);
17775 wxPyEndAllowThreads(__tstate);
17776 if (PyErr_Occurred()) SWIG_fail;
17777 }
17778 resultobj = SWIG_Py_Void();
17779 {
17780 if (temp2)
17781 delete arg2;
17782 }
17783 return resultobj;
17784 fail:
17785 {
17786 if (temp2)
17787 delete arg2;
17788 }
17789 return NULL;
17790 }
17791
17792
17793 SWIGINTERN PyObject *_wrap_DC_DrawImageLabel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17794 PyObject *resultobj = 0;
17795 wxDC *arg1 = (wxDC *) 0 ;
17796 wxString *arg2 = 0 ;
17797 wxBitmap *arg3 = 0 ;
17798 wxRect *arg4 = 0 ;
17799 int arg5 = (int) wxALIGN_LEFT|wxALIGN_TOP ;
17800 int arg6 = (int) -1 ;
17801 wxRect result;
17802 void *argp1 = 0 ;
17803 int res1 = 0 ;
17804 bool temp2 = false ;
17805 void *argp3 = 0 ;
17806 int res3 = 0 ;
17807 wxRect temp4 ;
17808 int val5 ;
17809 int ecode5 = 0 ;
17810 int val6 ;
17811 int ecode6 = 0 ;
17812 PyObject * obj0 = 0 ;
17813 PyObject * obj1 = 0 ;
17814 PyObject * obj2 = 0 ;
17815 PyObject * obj3 = 0 ;
17816 PyObject * obj4 = 0 ;
17817 PyObject * obj5 = 0 ;
17818 char * kwnames[] = {
17819 (char *) "self",(char *) "text",(char *) "image",(char *) "rect",(char *) "alignment",(char *) "indexAccel", NULL
17820 };
17821
17822 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:DC_DrawImageLabel",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
17823 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17824 if (!SWIG_IsOK(res1)) {
17825 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawImageLabel" "', expected argument " "1"" of type '" "wxDC *""'");
17826 }
17827 arg1 = reinterpret_cast< wxDC * >(argp1);
17828 {
17829 arg2 = wxString_in_helper(obj1);
17830 if (arg2 == NULL) SWIG_fail;
17831 temp2 = true;
17832 }
17833 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
17834 if (!SWIG_IsOK(res3)) {
17835 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17836 }
17837 if (!argp3) {
17838 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_DrawImageLabel" "', expected argument " "3"" of type '" "wxBitmap const &""'");
17839 }
17840 arg3 = reinterpret_cast< wxBitmap * >(argp3);
17841 {
17842 arg4 = &temp4;
17843 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
17844 }
17845 if (obj4) {
17846 ecode5 = SWIG_AsVal_int(obj4, &val5);
17847 if (!SWIG_IsOK(ecode5)) {
17848 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "DC_DrawImageLabel" "', expected argument " "5"" of type '" "int""'");
17849 }
17850 arg5 = static_cast< int >(val5);
17851 }
17852 if (obj5) {
17853 ecode6 = SWIG_AsVal_int(obj5, &val6);
17854 if (!SWIG_IsOK(ecode6)) {
17855 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "DC_DrawImageLabel" "', expected argument " "6"" of type '" "int""'");
17856 }
17857 arg6 = static_cast< int >(val6);
17858 }
17859 {
17860 PyThreadState* __tstate = wxPyBeginAllowThreads();
17861 result = wxDC_DrawImageLabel(arg1,(wxString const &)*arg2,(wxBitmap const &)*arg3,(wxRect const &)*arg4,arg5,arg6);
17862 wxPyEndAllowThreads(__tstate);
17863 if (PyErr_Occurred()) SWIG_fail;
17864 }
17865 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
17866 {
17867 if (temp2)
17868 delete arg2;
17869 }
17870 return resultobj;
17871 fail:
17872 {
17873 if (temp2)
17874 delete arg2;
17875 }
17876 return NULL;
17877 }
17878
17879
17880 SWIGINTERN PyObject *_wrap_DC_DrawSpline(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17881 PyObject *resultobj = 0;
17882 wxDC *arg1 = (wxDC *) 0 ;
17883 int arg2 ;
17884 wxPoint *arg3 = (wxPoint *) 0 ;
17885 void *argp1 = 0 ;
17886 int res1 = 0 ;
17887 PyObject * obj0 = 0 ;
17888 PyObject * obj1 = 0 ;
17889 char * kwnames[] = {
17890 (char *) "self",(char *) "points", NULL
17891 };
17892
17893 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DrawSpline",kwnames,&obj0,&obj1)) SWIG_fail;
17894 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17895 if (!SWIG_IsOK(res1)) {
17896 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DrawSpline" "', expected argument " "1"" of type '" "wxDC *""'");
17897 }
17898 arg1 = reinterpret_cast< wxDC * >(argp1);
17899 {
17900 arg3 = wxPoint_LIST_helper(obj1, &arg2);
17901 if (arg3 == NULL) SWIG_fail;
17902 }
17903 {
17904 PyThreadState* __tstate = wxPyBeginAllowThreads();
17905 (arg1)->DrawSpline(arg2,arg3);
17906 wxPyEndAllowThreads(__tstate);
17907 if (PyErr_Occurred()) SWIG_fail;
17908 }
17909 resultobj = SWIG_Py_Void();
17910 {
17911 if (arg3) delete [] arg3;
17912 }
17913 return resultobj;
17914 fail:
17915 {
17916 if (arg3) delete [] arg3;
17917 }
17918 return NULL;
17919 }
17920
17921
17922 SWIGINTERN PyObject *_wrap_DC_Clear(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17923 PyObject *resultobj = 0;
17924 wxDC *arg1 = (wxDC *) 0 ;
17925 void *argp1 = 0 ;
17926 int res1 = 0 ;
17927 PyObject *swig_obj[1] ;
17928
17929 if (!args) SWIG_fail;
17930 swig_obj[0] = args;
17931 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17932 if (!SWIG_IsOK(res1)) {
17933 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Clear" "', expected argument " "1"" of type '" "wxDC *""'");
17934 }
17935 arg1 = reinterpret_cast< wxDC * >(argp1);
17936 {
17937 PyThreadState* __tstate = wxPyBeginAllowThreads();
17938 (arg1)->Clear();
17939 wxPyEndAllowThreads(__tstate);
17940 if (PyErr_Occurred()) SWIG_fail;
17941 }
17942 resultobj = SWIG_Py_Void();
17943 return resultobj;
17944 fail:
17945 return NULL;
17946 }
17947
17948
17949 SWIGINTERN PyObject *_wrap_DC_StartDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
17950 PyObject *resultobj = 0;
17951 wxDC *arg1 = (wxDC *) 0 ;
17952 wxString *arg2 = 0 ;
17953 bool result;
17954 void *argp1 = 0 ;
17955 int res1 = 0 ;
17956 bool temp2 = false ;
17957 PyObject * obj0 = 0 ;
17958 PyObject * obj1 = 0 ;
17959 char * kwnames[] = {
17960 (char *) "self",(char *) "message", NULL
17961 };
17962
17963 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_StartDoc",kwnames,&obj0,&obj1)) SWIG_fail;
17964 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
17965 if (!SWIG_IsOK(res1)) {
17966 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartDoc" "', expected argument " "1"" of type '" "wxDC *""'");
17967 }
17968 arg1 = reinterpret_cast< wxDC * >(argp1);
17969 {
17970 arg2 = wxString_in_helper(obj1);
17971 if (arg2 == NULL) SWIG_fail;
17972 temp2 = true;
17973 }
17974 {
17975 PyThreadState* __tstate = wxPyBeginAllowThreads();
17976 result = (bool)(arg1)->StartDoc((wxString const &)*arg2);
17977 wxPyEndAllowThreads(__tstate);
17978 if (PyErr_Occurred()) SWIG_fail;
17979 }
17980 {
17981 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
17982 }
17983 {
17984 if (temp2)
17985 delete arg2;
17986 }
17987 return resultobj;
17988 fail:
17989 {
17990 if (temp2)
17991 delete arg2;
17992 }
17993 return NULL;
17994 }
17995
17996
17997 SWIGINTERN PyObject *_wrap_DC_EndDoc(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
17998 PyObject *resultobj = 0;
17999 wxDC *arg1 = (wxDC *) 0 ;
18000 void *argp1 = 0 ;
18001 int res1 = 0 ;
18002 PyObject *swig_obj[1] ;
18003
18004 if (!args) SWIG_fail;
18005 swig_obj[0] = args;
18006 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18007 if (!SWIG_IsOK(res1)) {
18008 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndDoc" "', expected argument " "1"" of type '" "wxDC *""'");
18009 }
18010 arg1 = reinterpret_cast< wxDC * >(argp1);
18011 {
18012 PyThreadState* __tstate = wxPyBeginAllowThreads();
18013 (arg1)->EndDoc();
18014 wxPyEndAllowThreads(__tstate);
18015 if (PyErr_Occurred()) SWIG_fail;
18016 }
18017 resultobj = SWIG_Py_Void();
18018 return resultobj;
18019 fail:
18020 return NULL;
18021 }
18022
18023
18024 SWIGINTERN PyObject *_wrap_DC_StartPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18025 PyObject *resultobj = 0;
18026 wxDC *arg1 = (wxDC *) 0 ;
18027 void *argp1 = 0 ;
18028 int res1 = 0 ;
18029 PyObject *swig_obj[1] ;
18030
18031 if (!args) SWIG_fail;
18032 swig_obj[0] = args;
18033 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18034 if (!SWIG_IsOK(res1)) {
18035 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_StartPage" "', expected argument " "1"" of type '" "wxDC *""'");
18036 }
18037 arg1 = reinterpret_cast< wxDC * >(argp1);
18038 {
18039 PyThreadState* __tstate = wxPyBeginAllowThreads();
18040 (arg1)->StartPage();
18041 wxPyEndAllowThreads(__tstate);
18042 if (PyErr_Occurred()) SWIG_fail;
18043 }
18044 resultobj = SWIG_Py_Void();
18045 return resultobj;
18046 fail:
18047 return NULL;
18048 }
18049
18050
18051 SWIGINTERN PyObject *_wrap_DC_EndPage(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18052 PyObject *resultobj = 0;
18053 wxDC *arg1 = (wxDC *) 0 ;
18054 void *argp1 = 0 ;
18055 int res1 = 0 ;
18056 PyObject *swig_obj[1] ;
18057
18058 if (!args) SWIG_fail;
18059 swig_obj[0] = args;
18060 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18061 if (!SWIG_IsOK(res1)) {
18062 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_EndPage" "', expected argument " "1"" of type '" "wxDC *""'");
18063 }
18064 arg1 = reinterpret_cast< wxDC * >(argp1);
18065 {
18066 PyThreadState* __tstate = wxPyBeginAllowThreads();
18067 (arg1)->EndPage();
18068 wxPyEndAllowThreads(__tstate);
18069 if (PyErr_Occurred()) SWIG_fail;
18070 }
18071 resultobj = SWIG_Py_Void();
18072 return resultobj;
18073 fail:
18074 return NULL;
18075 }
18076
18077
18078 SWIGINTERN PyObject *_wrap_DC_SetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18079 PyObject *resultobj = 0;
18080 wxDC *arg1 = (wxDC *) 0 ;
18081 wxFont *arg2 = 0 ;
18082 void *argp1 = 0 ;
18083 int res1 = 0 ;
18084 void *argp2 = 0 ;
18085 int res2 = 0 ;
18086 PyObject * obj0 = 0 ;
18087 PyObject * obj1 = 0 ;
18088 char * kwnames[] = {
18089 (char *) "self",(char *) "font", NULL
18090 };
18091
18092 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetFont",kwnames,&obj0,&obj1)) SWIG_fail;
18093 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18094 if (!SWIG_IsOK(res1)) {
18095 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetFont" "', expected argument " "1"" of type '" "wxDC *""'");
18096 }
18097 arg1 = reinterpret_cast< wxDC * >(argp1);
18098 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxFont, 0 | 0);
18099 if (!SWIG_IsOK(res2)) {
18100 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18101 }
18102 if (!argp2) {
18103 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetFont" "', expected argument " "2"" of type '" "wxFont const &""'");
18104 }
18105 arg2 = reinterpret_cast< wxFont * >(argp2);
18106 {
18107 PyThreadState* __tstate = wxPyBeginAllowThreads();
18108 (arg1)->SetFont((wxFont const &)*arg2);
18109 wxPyEndAllowThreads(__tstate);
18110 if (PyErr_Occurred()) SWIG_fail;
18111 }
18112 resultobj = SWIG_Py_Void();
18113 return resultobj;
18114 fail:
18115 return NULL;
18116 }
18117
18118
18119 SWIGINTERN PyObject *_wrap_DC_SetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18120 PyObject *resultobj = 0;
18121 wxDC *arg1 = (wxDC *) 0 ;
18122 wxPen *arg2 = 0 ;
18123 void *argp1 = 0 ;
18124 int res1 = 0 ;
18125 void *argp2 = 0 ;
18126 int res2 = 0 ;
18127 PyObject * obj0 = 0 ;
18128 PyObject * obj1 = 0 ;
18129 char * kwnames[] = {
18130 (char *) "self",(char *) "pen", NULL
18131 };
18132
18133 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPen",kwnames,&obj0,&obj1)) SWIG_fail;
18134 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18135 if (!SWIG_IsOK(res1)) {
18136 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPen" "', expected argument " "1"" of type '" "wxDC *""'");
18137 }
18138 arg1 = reinterpret_cast< wxDC * >(argp1);
18139 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPen, 0 | 0);
18140 if (!SWIG_IsOK(res2)) {
18141 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18142 }
18143 if (!argp2) {
18144 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPen" "', expected argument " "2"" of type '" "wxPen const &""'");
18145 }
18146 arg2 = reinterpret_cast< wxPen * >(argp2);
18147 {
18148 PyThreadState* __tstate = wxPyBeginAllowThreads();
18149 (arg1)->SetPen((wxPen const &)*arg2);
18150 wxPyEndAllowThreads(__tstate);
18151 if (PyErr_Occurred()) SWIG_fail;
18152 }
18153 resultobj = SWIG_Py_Void();
18154 return resultobj;
18155 fail:
18156 return NULL;
18157 }
18158
18159
18160 SWIGINTERN PyObject *_wrap_DC_SetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18161 PyObject *resultobj = 0;
18162 wxDC *arg1 = (wxDC *) 0 ;
18163 wxBrush *arg2 = 0 ;
18164 void *argp1 = 0 ;
18165 int res1 = 0 ;
18166 void *argp2 = 0 ;
18167 int res2 = 0 ;
18168 PyObject * obj0 = 0 ;
18169 PyObject * obj1 = 0 ;
18170 char * kwnames[] = {
18171 (char *) "self",(char *) "brush", NULL
18172 };
18173
18174 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBrush",kwnames,&obj0,&obj1)) SWIG_fail;
18175 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18176 if (!SWIG_IsOK(res1)) {
18177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBrush" "', expected argument " "1"" of type '" "wxDC *""'");
18178 }
18179 arg1 = reinterpret_cast< wxDC * >(argp1);
18180 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18181 if (!SWIG_IsOK(res2)) {
18182 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18183 }
18184 if (!argp2) {
18185 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBrush" "', expected argument " "2"" of type '" "wxBrush const &""'");
18186 }
18187 arg2 = reinterpret_cast< wxBrush * >(argp2);
18188 {
18189 PyThreadState* __tstate = wxPyBeginAllowThreads();
18190 (arg1)->SetBrush((wxBrush const &)*arg2);
18191 wxPyEndAllowThreads(__tstate);
18192 if (PyErr_Occurred()) SWIG_fail;
18193 }
18194 resultobj = SWIG_Py_Void();
18195 return resultobj;
18196 fail:
18197 return NULL;
18198 }
18199
18200
18201 SWIGINTERN PyObject *_wrap_DC_SetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18202 PyObject *resultobj = 0;
18203 wxDC *arg1 = (wxDC *) 0 ;
18204 wxBrush *arg2 = 0 ;
18205 void *argp1 = 0 ;
18206 int res1 = 0 ;
18207 void *argp2 = 0 ;
18208 int res2 = 0 ;
18209 PyObject * obj0 = 0 ;
18210 PyObject * obj1 = 0 ;
18211 char * kwnames[] = {
18212 (char *) "self",(char *) "brush", NULL
18213 };
18214
18215 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackground",kwnames,&obj0,&obj1)) SWIG_fail;
18216 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18217 if (!SWIG_IsOK(res1)) {
18218 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackground" "', expected argument " "1"" of type '" "wxDC *""'");
18219 }
18220 arg1 = reinterpret_cast< wxDC * >(argp1);
18221 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBrush, 0 | 0);
18222 if (!SWIG_IsOK(res2)) {
18223 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18224 }
18225 if (!argp2) {
18226 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetBackground" "', expected argument " "2"" of type '" "wxBrush const &""'");
18227 }
18228 arg2 = reinterpret_cast< wxBrush * >(argp2);
18229 {
18230 PyThreadState* __tstate = wxPyBeginAllowThreads();
18231 (arg1)->SetBackground((wxBrush const &)*arg2);
18232 wxPyEndAllowThreads(__tstate);
18233 if (PyErr_Occurred()) SWIG_fail;
18234 }
18235 resultobj = SWIG_Py_Void();
18236 return resultobj;
18237 fail:
18238 return NULL;
18239 }
18240
18241
18242 SWIGINTERN PyObject *_wrap_DC_SetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18243 PyObject *resultobj = 0;
18244 wxDC *arg1 = (wxDC *) 0 ;
18245 int arg2 ;
18246 void *argp1 = 0 ;
18247 int res1 = 0 ;
18248 int val2 ;
18249 int ecode2 = 0 ;
18250 PyObject * obj0 = 0 ;
18251 PyObject * obj1 = 0 ;
18252 char * kwnames[] = {
18253 (char *) "self",(char *) "mode", NULL
18254 };
18255
18256 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetBackgroundMode",kwnames,&obj0,&obj1)) SWIG_fail;
18257 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18258 if (!SWIG_IsOK(res1)) {
18259 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetBackgroundMode" "', expected argument " "1"" of type '" "wxDC *""'");
18260 }
18261 arg1 = reinterpret_cast< wxDC * >(argp1);
18262 ecode2 = SWIG_AsVal_int(obj1, &val2);
18263 if (!SWIG_IsOK(ecode2)) {
18264 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetBackgroundMode" "', expected argument " "2"" of type '" "int""'");
18265 }
18266 arg2 = static_cast< int >(val2);
18267 {
18268 PyThreadState* __tstate = wxPyBeginAllowThreads();
18269 (arg1)->SetBackgroundMode(arg2);
18270 wxPyEndAllowThreads(__tstate);
18271 if (PyErr_Occurred()) SWIG_fail;
18272 }
18273 resultobj = SWIG_Py_Void();
18274 return resultobj;
18275 fail:
18276 return NULL;
18277 }
18278
18279
18280 SWIGINTERN PyObject *_wrap_DC_SetPalette(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18281 PyObject *resultobj = 0;
18282 wxDC *arg1 = (wxDC *) 0 ;
18283 wxPalette *arg2 = 0 ;
18284 void *argp1 = 0 ;
18285 int res1 = 0 ;
18286 void *argp2 = 0 ;
18287 int res2 = 0 ;
18288 PyObject * obj0 = 0 ;
18289 PyObject * obj1 = 0 ;
18290 char * kwnames[] = {
18291 (char *) "self",(char *) "palette", NULL
18292 };
18293
18294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetPalette",kwnames,&obj0,&obj1)) SWIG_fail;
18295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18296 if (!SWIG_IsOK(res1)) {
18297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetPalette" "', expected argument " "1"" of type '" "wxDC *""'");
18298 }
18299 arg1 = reinterpret_cast< wxDC * >(argp1);
18300 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPalette, 0 | 0);
18301 if (!SWIG_IsOK(res2)) {
18302 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18303 }
18304 if (!argp2) {
18305 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "DC_SetPalette" "', expected argument " "2"" of type '" "wxPalette const &""'");
18306 }
18307 arg2 = reinterpret_cast< wxPalette * >(argp2);
18308 {
18309 PyThreadState* __tstate = wxPyBeginAllowThreads();
18310 (arg1)->SetPalette((wxPalette const &)*arg2);
18311 wxPyEndAllowThreads(__tstate);
18312 if (PyErr_Occurred()) SWIG_fail;
18313 }
18314 resultobj = SWIG_Py_Void();
18315 return resultobj;
18316 fail:
18317 return NULL;
18318 }
18319
18320
18321 SWIGINTERN PyObject *_wrap_DC_DestroyClippingRegion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18322 PyObject *resultobj = 0;
18323 wxDC *arg1 = (wxDC *) 0 ;
18324 void *argp1 = 0 ;
18325 int res1 = 0 ;
18326 PyObject *swig_obj[1] ;
18327
18328 if (!args) SWIG_fail;
18329 swig_obj[0] = args;
18330 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18331 if (!SWIG_IsOK(res1)) {
18332 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DestroyClippingRegion" "', expected argument " "1"" of type '" "wxDC *""'");
18333 }
18334 arg1 = reinterpret_cast< wxDC * >(argp1);
18335 {
18336 PyThreadState* __tstate = wxPyBeginAllowThreads();
18337 (arg1)->DestroyClippingRegion();
18338 wxPyEndAllowThreads(__tstate);
18339 if (PyErr_Occurred()) SWIG_fail;
18340 }
18341 resultobj = SWIG_Py_Void();
18342 return resultobj;
18343 fail:
18344 return NULL;
18345 }
18346
18347
18348 SWIGINTERN PyObject *_wrap_DC_GetClippingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18349 PyObject *resultobj = 0;
18350 wxDC *arg1 = (wxDC *) 0 ;
18351 int *arg2 = (int *) 0 ;
18352 int *arg3 = (int *) 0 ;
18353 int *arg4 = (int *) 0 ;
18354 int *arg5 = (int *) 0 ;
18355 void *argp1 = 0 ;
18356 int res1 = 0 ;
18357 int temp2 ;
18358 int res2 = SWIG_TMPOBJ ;
18359 int temp3 ;
18360 int res3 = SWIG_TMPOBJ ;
18361 int temp4 ;
18362 int res4 = SWIG_TMPOBJ ;
18363 int temp5 ;
18364 int res5 = SWIG_TMPOBJ ;
18365 PyObject *swig_obj[1] ;
18366
18367 arg2 = &temp2;
18368 arg3 = &temp3;
18369 arg4 = &temp4;
18370 arg5 = &temp5;
18371 if (!args) SWIG_fail;
18372 swig_obj[0] = args;
18373 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18374 if (!SWIG_IsOK(res1)) {
18375 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingBox" "', expected argument " "1"" of type '" "wxDC const *""'");
18376 }
18377 arg1 = reinterpret_cast< wxDC * >(argp1);
18378 {
18379 PyThreadState* __tstate = wxPyBeginAllowThreads();
18380 ((wxDC const *)arg1)->GetClippingBox(arg2,arg3,arg4,arg5);
18381 wxPyEndAllowThreads(__tstate);
18382 if (PyErr_Occurred()) SWIG_fail;
18383 }
18384 resultobj = SWIG_Py_Void();
18385 if (SWIG_IsTmpObj(res2)) {
18386 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18387 } else {
18388 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18389 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18390 }
18391 if (SWIG_IsTmpObj(res3)) {
18392 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18393 } else {
18394 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18395 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18396 }
18397 if (SWIG_IsTmpObj(res4)) {
18398 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18399 } else {
18400 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18401 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18402 }
18403 if (SWIG_IsTmpObj(res5)) {
18404 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18405 } else {
18406 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18407 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18408 }
18409 return resultobj;
18410 fail:
18411 return NULL;
18412 }
18413
18414
18415 SWIGINTERN PyObject *_wrap_DC_GetClippingRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18416 PyObject *resultobj = 0;
18417 wxDC *arg1 = (wxDC *) 0 ;
18418 wxRect result;
18419 void *argp1 = 0 ;
18420 int res1 = 0 ;
18421 PyObject *swig_obj[1] ;
18422
18423 if (!args) SWIG_fail;
18424 swig_obj[0] = args;
18425 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18426 if (!SWIG_IsOK(res1)) {
18427 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetClippingRect" "', expected argument " "1"" of type '" "wxDC *""'");
18428 }
18429 arg1 = reinterpret_cast< wxDC * >(argp1);
18430 {
18431 PyThreadState* __tstate = wxPyBeginAllowThreads();
18432 result = wxDC_GetClippingRect(arg1);
18433 wxPyEndAllowThreads(__tstate);
18434 if (PyErr_Occurred()) SWIG_fail;
18435 }
18436 resultobj = SWIG_NewPointerObj((new wxRect(static_cast< const wxRect& >(result))), SWIGTYPE_p_wxRect, SWIG_POINTER_OWN | 0 );
18437 return resultobj;
18438 fail:
18439 return NULL;
18440 }
18441
18442
18443 SWIGINTERN PyObject *_wrap_DC_GetCharHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18444 PyObject *resultobj = 0;
18445 wxDC *arg1 = (wxDC *) 0 ;
18446 int result;
18447 void *argp1 = 0 ;
18448 int res1 = 0 ;
18449 PyObject *swig_obj[1] ;
18450
18451 if (!args) SWIG_fail;
18452 swig_obj[0] = args;
18453 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18454 if (!SWIG_IsOK(res1)) {
18455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharHeight" "', expected argument " "1"" of type '" "wxDC const *""'");
18456 }
18457 arg1 = reinterpret_cast< wxDC * >(argp1);
18458 {
18459 PyThreadState* __tstate = wxPyBeginAllowThreads();
18460 result = (int)((wxDC const *)arg1)->GetCharHeight();
18461 wxPyEndAllowThreads(__tstate);
18462 if (PyErr_Occurred()) SWIG_fail;
18463 }
18464 resultobj = SWIG_From_int(static_cast< int >(result));
18465 return resultobj;
18466 fail:
18467 return NULL;
18468 }
18469
18470
18471 SWIGINTERN PyObject *_wrap_DC_GetCharWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18472 PyObject *resultobj = 0;
18473 wxDC *arg1 = (wxDC *) 0 ;
18474 int result;
18475 void *argp1 = 0 ;
18476 int res1 = 0 ;
18477 PyObject *swig_obj[1] ;
18478
18479 if (!args) SWIG_fail;
18480 swig_obj[0] = args;
18481 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18482 if (!SWIG_IsOK(res1)) {
18483 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetCharWidth" "', expected argument " "1"" of type '" "wxDC const *""'");
18484 }
18485 arg1 = reinterpret_cast< wxDC * >(argp1);
18486 {
18487 PyThreadState* __tstate = wxPyBeginAllowThreads();
18488 result = (int)((wxDC const *)arg1)->GetCharWidth();
18489 wxPyEndAllowThreads(__tstate);
18490 if (PyErr_Occurred()) SWIG_fail;
18491 }
18492 resultobj = SWIG_From_int(static_cast< int >(result));
18493 return resultobj;
18494 fail:
18495 return NULL;
18496 }
18497
18498
18499 SWIGINTERN PyObject *_wrap_DC_GetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18500 PyObject *resultobj = 0;
18501 wxDC *arg1 = (wxDC *) 0 ;
18502 wxString *arg2 = 0 ;
18503 int *arg3 = (int *) 0 ;
18504 int *arg4 = (int *) 0 ;
18505 void *argp1 = 0 ;
18506 int res1 = 0 ;
18507 bool temp2 = false ;
18508 int temp3 ;
18509 int res3 = SWIG_TMPOBJ ;
18510 int temp4 ;
18511 int res4 = SWIG_TMPOBJ ;
18512 PyObject * obj0 = 0 ;
18513 PyObject * obj1 = 0 ;
18514 char * kwnames[] = {
18515 (char *) "self",(char *) "string", NULL
18516 };
18517
18518 arg3 = &temp3;
18519 arg4 = &temp4;
18520 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetTextExtent",kwnames,&obj0,&obj1)) SWIG_fail;
18521 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18522 if (!SWIG_IsOK(res1)) {
18523 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18524 }
18525 arg1 = reinterpret_cast< wxDC * >(argp1);
18526 {
18527 arg2 = wxString_in_helper(obj1);
18528 if (arg2 == NULL) SWIG_fail;
18529 temp2 = true;
18530 }
18531 {
18532 PyThreadState* __tstate = wxPyBeginAllowThreads();
18533 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4);
18534 wxPyEndAllowThreads(__tstate);
18535 if (PyErr_Occurred()) SWIG_fail;
18536 }
18537 resultobj = SWIG_Py_Void();
18538 if (SWIG_IsTmpObj(res3)) {
18539 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18540 } else {
18541 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18542 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18543 }
18544 if (SWIG_IsTmpObj(res4)) {
18545 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18546 } else {
18547 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18548 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18549 }
18550 {
18551 if (temp2)
18552 delete arg2;
18553 }
18554 return resultobj;
18555 fail:
18556 {
18557 if (temp2)
18558 delete arg2;
18559 }
18560 return NULL;
18561 }
18562
18563
18564 SWIGINTERN PyObject *_wrap_DC_GetFullTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18565 PyObject *resultobj = 0;
18566 wxDC *arg1 = (wxDC *) 0 ;
18567 wxString *arg2 = 0 ;
18568 int *arg3 = (int *) 0 ;
18569 int *arg4 = (int *) 0 ;
18570 int *arg5 = (int *) 0 ;
18571 int *arg6 = (int *) 0 ;
18572 wxFont *arg7 = (wxFont *) NULL ;
18573 void *argp1 = 0 ;
18574 int res1 = 0 ;
18575 bool temp2 = false ;
18576 int temp3 ;
18577 int res3 = SWIG_TMPOBJ ;
18578 int temp4 ;
18579 int res4 = SWIG_TMPOBJ ;
18580 int temp5 ;
18581 int res5 = SWIG_TMPOBJ ;
18582 int temp6 ;
18583 int res6 = SWIG_TMPOBJ ;
18584 void *argp7 = 0 ;
18585 int res7 = 0 ;
18586 PyObject * obj0 = 0 ;
18587 PyObject * obj1 = 0 ;
18588 PyObject * obj2 = 0 ;
18589 char * kwnames[] = {
18590 (char *) "self",(char *) "string",(char *) "font", NULL
18591 };
18592
18593 arg3 = &temp3;
18594 arg4 = &temp4;
18595 arg5 = &temp5;
18596 arg6 = &temp6;
18597 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetFullTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18598 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18599 if (!SWIG_IsOK(res1)) {
18600 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFullTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18601 }
18602 arg1 = reinterpret_cast< wxDC * >(argp1);
18603 {
18604 arg2 = wxString_in_helper(obj1);
18605 if (arg2 == NULL) SWIG_fail;
18606 temp2 = true;
18607 }
18608 if (obj2) {
18609 res7 = SWIG_ConvertPtr(obj2, &argp7,SWIGTYPE_p_wxFont, 0 | 0 );
18610 if (!SWIG_IsOK(res7)) {
18611 SWIG_exception_fail(SWIG_ArgError(res7), "in method '" "DC_GetFullTextExtent" "', expected argument " "7"" of type '" "wxFont *""'");
18612 }
18613 arg7 = reinterpret_cast< wxFont * >(argp7);
18614 }
18615 {
18616 PyThreadState* __tstate = wxPyBeginAllowThreads();
18617 (arg1)->GetTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6,arg7);
18618 wxPyEndAllowThreads(__tstate);
18619 if (PyErr_Occurred()) SWIG_fail;
18620 }
18621 resultobj = SWIG_Py_Void();
18622 if (SWIG_IsTmpObj(res3)) {
18623 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18624 } else {
18625 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18626 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18627 }
18628 if (SWIG_IsTmpObj(res4)) {
18629 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18630 } else {
18631 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18632 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18633 }
18634 if (SWIG_IsTmpObj(res5)) {
18635 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18636 } else {
18637 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18638 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18639 }
18640 if (SWIG_IsTmpObj(res6)) {
18641 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg6)));
18642 } else {
18643 int new_flags = SWIG_IsNewObj(res6) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18644 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg6), SWIGTYPE_p_int, new_flags));
18645 }
18646 {
18647 if (temp2)
18648 delete arg2;
18649 }
18650 return resultobj;
18651 fail:
18652 {
18653 if (temp2)
18654 delete arg2;
18655 }
18656 return NULL;
18657 }
18658
18659
18660 SWIGINTERN PyObject *_wrap_DC_GetMultiLineTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18661 PyObject *resultobj = 0;
18662 wxDC *arg1 = (wxDC *) 0 ;
18663 wxString *arg2 = 0 ;
18664 int *arg3 = (int *) 0 ;
18665 int *arg4 = (int *) 0 ;
18666 int *arg5 = (int *) 0 ;
18667 wxFont *arg6 = (wxFont *) NULL ;
18668 void *argp1 = 0 ;
18669 int res1 = 0 ;
18670 bool temp2 = false ;
18671 int temp3 ;
18672 int res3 = SWIG_TMPOBJ ;
18673 int temp4 ;
18674 int res4 = SWIG_TMPOBJ ;
18675 int temp5 ;
18676 int res5 = SWIG_TMPOBJ ;
18677 void *argp6 = 0 ;
18678 int res6 = 0 ;
18679 PyObject * obj0 = 0 ;
18680 PyObject * obj1 = 0 ;
18681 PyObject * obj2 = 0 ;
18682 char * kwnames[] = {
18683 (char *) "self",(char *) "text",(char *) "font", NULL
18684 };
18685
18686 arg3 = &temp3;
18687 arg4 = &temp4;
18688 arg5 = &temp5;
18689 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:DC_GetMultiLineTextExtent",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
18690 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18691 if (!SWIG_IsOK(res1)) {
18692 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "1"" of type '" "wxDC *""'");
18693 }
18694 arg1 = reinterpret_cast< wxDC * >(argp1);
18695 {
18696 arg2 = wxString_in_helper(obj1);
18697 if (arg2 == NULL) SWIG_fail;
18698 temp2 = true;
18699 }
18700 if (obj2) {
18701 res6 = SWIG_ConvertPtr(obj2, &argp6,SWIGTYPE_p_wxFont, 0 | 0 );
18702 if (!SWIG_IsOK(res6)) {
18703 SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "DC_GetMultiLineTextExtent" "', expected argument " "6"" of type '" "wxFont *""'");
18704 }
18705 arg6 = reinterpret_cast< wxFont * >(argp6);
18706 }
18707 {
18708 PyThreadState* __tstate = wxPyBeginAllowThreads();
18709 (arg1)->GetMultiLineTextExtent((wxString const &)*arg2,arg3,arg4,arg5,arg6);
18710 wxPyEndAllowThreads(__tstate);
18711 if (PyErr_Occurred()) SWIG_fail;
18712 }
18713 resultobj = SWIG_Py_Void();
18714 if (SWIG_IsTmpObj(res3)) {
18715 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18716 } else {
18717 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18718 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18719 }
18720 if (SWIG_IsTmpObj(res4)) {
18721 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
18722 } else {
18723 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18724 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
18725 }
18726 if (SWIG_IsTmpObj(res5)) {
18727 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
18728 } else {
18729 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18730 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
18731 }
18732 {
18733 if (temp2)
18734 delete arg2;
18735 }
18736 return resultobj;
18737 fail:
18738 {
18739 if (temp2)
18740 delete arg2;
18741 }
18742 return NULL;
18743 }
18744
18745
18746 SWIGINTERN PyObject *_wrap_DC_GetPartialTextExtents(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18747 PyObject *resultobj = 0;
18748 wxDC *arg1 = (wxDC *) 0 ;
18749 wxString *arg2 = 0 ;
18750 wxArrayInt result;
18751 void *argp1 = 0 ;
18752 int res1 = 0 ;
18753 bool temp2 = false ;
18754 PyObject * obj0 = 0 ;
18755 PyObject * obj1 = 0 ;
18756 char * kwnames[] = {
18757 (char *) "self",(char *) "text", NULL
18758 };
18759
18760 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_GetPartialTextExtents",kwnames,&obj0,&obj1)) SWIG_fail;
18761 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18762 if (!SWIG_IsOK(res1)) {
18763 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPartialTextExtents" "', expected argument " "1"" of type '" "wxDC *""'");
18764 }
18765 arg1 = reinterpret_cast< wxDC * >(argp1);
18766 {
18767 arg2 = wxString_in_helper(obj1);
18768 if (arg2 == NULL) SWIG_fail;
18769 temp2 = true;
18770 }
18771 {
18772 PyThreadState* __tstate = wxPyBeginAllowThreads();
18773 result = wxDC_GetPartialTextExtents(arg1,(wxString const &)*arg2);
18774 wxPyEndAllowThreads(__tstate);
18775 if (PyErr_Occurred()) SWIG_fail;
18776 }
18777 {
18778 resultobj = PyList_New(0);
18779 size_t idx;
18780 for (idx = 0; idx < (&result)->GetCount(); idx += 1) {
18781 PyObject* val = PyInt_FromLong( (&result)->Item(idx) );
18782 PyList_Append(resultobj, val);
18783 Py_DECREF(val);
18784 }
18785 }
18786 {
18787 if (temp2)
18788 delete arg2;
18789 }
18790 return resultobj;
18791 fail:
18792 {
18793 if (temp2)
18794 delete arg2;
18795 }
18796 return NULL;
18797 }
18798
18799
18800 SWIGINTERN PyObject *_wrap_DC_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18801 PyObject *resultobj = 0;
18802 wxDC *arg1 = (wxDC *) 0 ;
18803 wxSize result;
18804 void *argp1 = 0 ;
18805 int res1 = 0 ;
18806 PyObject *swig_obj[1] ;
18807
18808 if (!args) SWIG_fail;
18809 swig_obj[0] = args;
18810 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18811 if (!SWIG_IsOK(res1)) {
18812 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSize" "', expected argument " "1"" of type '" "wxDC *""'");
18813 }
18814 arg1 = reinterpret_cast< wxDC * >(argp1);
18815 {
18816 PyThreadState* __tstate = wxPyBeginAllowThreads();
18817 result = (arg1)->GetSize();
18818 wxPyEndAllowThreads(__tstate);
18819 if (PyErr_Occurred()) SWIG_fail;
18820 }
18821 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18822 return resultobj;
18823 fail:
18824 return NULL;
18825 }
18826
18827
18828 SWIGINTERN PyObject *_wrap_DC_GetSizeTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18829 PyObject *resultobj = 0;
18830 wxDC *arg1 = (wxDC *) 0 ;
18831 int *arg2 = (int *) 0 ;
18832 int *arg3 = (int *) 0 ;
18833 void *argp1 = 0 ;
18834 int res1 = 0 ;
18835 int temp2 ;
18836 int res2 = SWIG_TMPOBJ ;
18837 int temp3 ;
18838 int res3 = SWIG_TMPOBJ ;
18839 PyObject *swig_obj[1] ;
18840
18841 arg2 = &temp2;
18842 arg3 = &temp3;
18843 if (!args) SWIG_fail;
18844 swig_obj[0] = args;
18845 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18846 if (!SWIG_IsOK(res1)) {
18847 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeTuple" "', expected argument " "1"" of type '" "wxDC *""'");
18848 }
18849 arg1 = reinterpret_cast< wxDC * >(argp1);
18850 {
18851 PyThreadState* __tstate = wxPyBeginAllowThreads();
18852 (arg1)->GetSize(arg2,arg3);
18853 wxPyEndAllowThreads(__tstate);
18854 if (PyErr_Occurred()) SWIG_fail;
18855 }
18856 resultobj = SWIG_Py_Void();
18857 if (SWIG_IsTmpObj(res2)) {
18858 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18859 } else {
18860 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18861 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18862 }
18863 if (SWIG_IsTmpObj(res3)) {
18864 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18865 } else {
18866 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18867 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18868 }
18869 return resultobj;
18870 fail:
18871 return NULL;
18872 }
18873
18874
18875 SWIGINTERN PyObject *_wrap_DC_GetSizeMM(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18876 PyObject *resultobj = 0;
18877 wxDC *arg1 = (wxDC *) 0 ;
18878 wxSize result;
18879 void *argp1 = 0 ;
18880 int res1 = 0 ;
18881 PyObject *swig_obj[1] ;
18882
18883 if (!args) SWIG_fail;
18884 swig_obj[0] = args;
18885 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18886 if (!SWIG_IsOK(res1)) {
18887 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMM" "', expected argument " "1"" of type '" "wxDC const *""'");
18888 }
18889 arg1 = reinterpret_cast< wxDC * >(argp1);
18890 {
18891 PyThreadState* __tstate = wxPyBeginAllowThreads();
18892 result = ((wxDC const *)arg1)->GetSizeMM();
18893 wxPyEndAllowThreads(__tstate);
18894 if (PyErr_Occurred()) SWIG_fail;
18895 }
18896 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
18897 return resultobj;
18898 fail:
18899 return NULL;
18900 }
18901
18902
18903 SWIGINTERN PyObject *_wrap_DC_GetSizeMMTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
18904 PyObject *resultobj = 0;
18905 wxDC *arg1 = (wxDC *) 0 ;
18906 int *arg2 = (int *) 0 ;
18907 int *arg3 = (int *) 0 ;
18908 void *argp1 = 0 ;
18909 int res1 = 0 ;
18910 int temp2 ;
18911 int res2 = SWIG_TMPOBJ ;
18912 int temp3 ;
18913 int res3 = SWIG_TMPOBJ ;
18914 PyObject *swig_obj[1] ;
18915
18916 arg2 = &temp2;
18917 arg3 = &temp3;
18918 if (!args) SWIG_fail;
18919 swig_obj[0] = args;
18920 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18921 if (!SWIG_IsOK(res1)) {
18922 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetSizeMMTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
18923 }
18924 arg1 = reinterpret_cast< wxDC * >(argp1);
18925 {
18926 PyThreadState* __tstate = wxPyBeginAllowThreads();
18927 ((wxDC const *)arg1)->GetSizeMM(arg2,arg3);
18928 wxPyEndAllowThreads(__tstate);
18929 if (PyErr_Occurred()) SWIG_fail;
18930 }
18931 resultobj = SWIG_Py_Void();
18932 if (SWIG_IsTmpObj(res2)) {
18933 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
18934 } else {
18935 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18936 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
18937 }
18938 if (SWIG_IsTmpObj(res3)) {
18939 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
18940 } else {
18941 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
18942 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
18943 }
18944 return resultobj;
18945 fail:
18946 return NULL;
18947 }
18948
18949
18950 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18951 PyObject *resultobj = 0;
18952 wxDC *arg1 = (wxDC *) 0 ;
18953 int arg2 ;
18954 int result;
18955 void *argp1 = 0 ;
18956 int res1 = 0 ;
18957 int val2 ;
18958 int ecode2 = 0 ;
18959 PyObject * obj0 = 0 ;
18960 PyObject * obj1 = 0 ;
18961 char * kwnames[] = {
18962 (char *) "self",(char *) "x", NULL
18963 };
18964
18965 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalX",kwnames,&obj0,&obj1)) SWIG_fail;
18966 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
18967 if (!SWIG_IsOK(res1)) {
18968 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalX" "', expected argument " "1"" of type '" "wxDC const *""'");
18969 }
18970 arg1 = reinterpret_cast< wxDC * >(argp1);
18971 ecode2 = SWIG_AsVal_int(obj1, &val2);
18972 if (!SWIG_IsOK(ecode2)) {
18973 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalX" "', expected argument " "2"" of type '" "int""'");
18974 }
18975 arg2 = static_cast< int >(val2);
18976 {
18977 PyThreadState* __tstate = wxPyBeginAllowThreads();
18978 result = (int)((wxDC const *)arg1)->DeviceToLogicalX(arg2);
18979 wxPyEndAllowThreads(__tstate);
18980 if (PyErr_Occurred()) SWIG_fail;
18981 }
18982 resultobj = SWIG_From_int(static_cast< int >(result));
18983 return resultobj;
18984 fail:
18985 return NULL;
18986 }
18987
18988
18989 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
18990 PyObject *resultobj = 0;
18991 wxDC *arg1 = (wxDC *) 0 ;
18992 int arg2 ;
18993 int result;
18994 void *argp1 = 0 ;
18995 int res1 = 0 ;
18996 int val2 ;
18997 int ecode2 = 0 ;
18998 PyObject * obj0 = 0 ;
18999 PyObject * obj1 = 0 ;
19000 char * kwnames[] = {
19001 (char *) "self",(char *) "y", NULL
19002 };
19003
19004 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalY",kwnames,&obj0,&obj1)) SWIG_fail;
19005 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19006 if (!SWIG_IsOK(res1)) {
19007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalY" "', expected argument " "1"" of type '" "wxDC const *""'");
19008 }
19009 arg1 = reinterpret_cast< wxDC * >(argp1);
19010 ecode2 = SWIG_AsVal_int(obj1, &val2);
19011 if (!SWIG_IsOK(ecode2)) {
19012 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalY" "', expected argument " "2"" of type '" "int""'");
19013 }
19014 arg2 = static_cast< int >(val2);
19015 {
19016 PyThreadState* __tstate = wxPyBeginAllowThreads();
19017 result = (int)((wxDC const *)arg1)->DeviceToLogicalY(arg2);
19018 wxPyEndAllowThreads(__tstate);
19019 if (PyErr_Occurred()) SWIG_fail;
19020 }
19021 resultobj = SWIG_From_int(static_cast< int >(result));
19022 return resultobj;
19023 fail:
19024 return NULL;
19025 }
19026
19027
19028 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19029 PyObject *resultobj = 0;
19030 wxDC *arg1 = (wxDC *) 0 ;
19031 int arg2 ;
19032 int result;
19033 void *argp1 = 0 ;
19034 int res1 = 0 ;
19035 int val2 ;
19036 int ecode2 = 0 ;
19037 PyObject * obj0 = 0 ;
19038 PyObject * obj1 = 0 ;
19039 char * kwnames[] = {
19040 (char *) "self",(char *) "x", NULL
19041 };
19042
19043 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19044 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19045 if (!SWIG_IsOK(res1)) {
19046 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19047 }
19048 arg1 = reinterpret_cast< wxDC * >(argp1);
19049 ecode2 = SWIG_AsVal_int(obj1, &val2);
19050 if (!SWIG_IsOK(ecode2)) {
19051 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalXRel" "', expected argument " "2"" of type '" "int""'");
19052 }
19053 arg2 = static_cast< int >(val2);
19054 {
19055 PyThreadState* __tstate = wxPyBeginAllowThreads();
19056 result = (int)((wxDC const *)arg1)->DeviceToLogicalXRel(arg2);
19057 wxPyEndAllowThreads(__tstate);
19058 if (PyErr_Occurred()) SWIG_fail;
19059 }
19060 resultobj = SWIG_From_int(static_cast< int >(result));
19061 return resultobj;
19062 fail:
19063 return NULL;
19064 }
19065
19066
19067 SWIGINTERN PyObject *_wrap_DC_DeviceToLogicalYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19068 PyObject *resultobj = 0;
19069 wxDC *arg1 = (wxDC *) 0 ;
19070 int arg2 ;
19071 int result;
19072 void *argp1 = 0 ;
19073 int res1 = 0 ;
19074 int val2 ;
19075 int ecode2 = 0 ;
19076 PyObject * obj0 = 0 ;
19077 PyObject * obj1 = 0 ;
19078 char * kwnames[] = {
19079 (char *) "self",(char *) "y", NULL
19080 };
19081
19082 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_DeviceToLogicalYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19083 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19084 if (!SWIG_IsOK(res1)) {
19085 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19086 }
19087 arg1 = reinterpret_cast< wxDC * >(argp1);
19088 ecode2 = SWIG_AsVal_int(obj1, &val2);
19089 if (!SWIG_IsOK(ecode2)) {
19090 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_DeviceToLogicalYRel" "', expected argument " "2"" of type '" "int""'");
19091 }
19092 arg2 = static_cast< int >(val2);
19093 {
19094 PyThreadState* __tstate = wxPyBeginAllowThreads();
19095 result = (int)((wxDC const *)arg1)->DeviceToLogicalYRel(arg2);
19096 wxPyEndAllowThreads(__tstate);
19097 if (PyErr_Occurred()) SWIG_fail;
19098 }
19099 resultobj = SWIG_From_int(static_cast< int >(result));
19100 return resultobj;
19101 fail:
19102 return NULL;
19103 }
19104
19105
19106 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceX(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19107 PyObject *resultobj = 0;
19108 wxDC *arg1 = (wxDC *) 0 ;
19109 int arg2 ;
19110 int result;
19111 void *argp1 = 0 ;
19112 int res1 = 0 ;
19113 int val2 ;
19114 int ecode2 = 0 ;
19115 PyObject * obj0 = 0 ;
19116 PyObject * obj1 = 0 ;
19117 char * kwnames[] = {
19118 (char *) "self",(char *) "x", NULL
19119 };
19120
19121 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceX",kwnames,&obj0,&obj1)) SWIG_fail;
19122 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19123 if (!SWIG_IsOK(res1)) {
19124 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceX" "', expected argument " "1"" of type '" "wxDC const *""'");
19125 }
19126 arg1 = reinterpret_cast< wxDC * >(argp1);
19127 ecode2 = SWIG_AsVal_int(obj1, &val2);
19128 if (!SWIG_IsOK(ecode2)) {
19129 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceX" "', expected argument " "2"" of type '" "int""'");
19130 }
19131 arg2 = static_cast< int >(val2);
19132 {
19133 PyThreadState* __tstate = wxPyBeginAllowThreads();
19134 result = (int)((wxDC const *)arg1)->LogicalToDeviceX(arg2);
19135 wxPyEndAllowThreads(__tstate);
19136 if (PyErr_Occurred()) SWIG_fail;
19137 }
19138 resultobj = SWIG_From_int(static_cast< int >(result));
19139 return resultobj;
19140 fail:
19141 return NULL;
19142 }
19143
19144
19145 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceY(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19146 PyObject *resultobj = 0;
19147 wxDC *arg1 = (wxDC *) 0 ;
19148 int arg2 ;
19149 int result;
19150 void *argp1 = 0 ;
19151 int res1 = 0 ;
19152 int val2 ;
19153 int ecode2 = 0 ;
19154 PyObject * obj0 = 0 ;
19155 PyObject * obj1 = 0 ;
19156 char * kwnames[] = {
19157 (char *) "self",(char *) "y", NULL
19158 };
19159
19160 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceY",kwnames,&obj0,&obj1)) SWIG_fail;
19161 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19162 if (!SWIG_IsOK(res1)) {
19163 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceY" "', expected argument " "1"" of type '" "wxDC const *""'");
19164 }
19165 arg1 = reinterpret_cast< wxDC * >(argp1);
19166 ecode2 = SWIG_AsVal_int(obj1, &val2);
19167 if (!SWIG_IsOK(ecode2)) {
19168 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceY" "', expected argument " "2"" of type '" "int""'");
19169 }
19170 arg2 = static_cast< int >(val2);
19171 {
19172 PyThreadState* __tstate = wxPyBeginAllowThreads();
19173 result = (int)((wxDC const *)arg1)->LogicalToDeviceY(arg2);
19174 wxPyEndAllowThreads(__tstate);
19175 if (PyErr_Occurred()) SWIG_fail;
19176 }
19177 resultobj = SWIG_From_int(static_cast< int >(result));
19178 return resultobj;
19179 fail:
19180 return NULL;
19181 }
19182
19183
19184 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceXRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19185 PyObject *resultobj = 0;
19186 wxDC *arg1 = (wxDC *) 0 ;
19187 int arg2 ;
19188 int result;
19189 void *argp1 = 0 ;
19190 int res1 = 0 ;
19191 int val2 ;
19192 int ecode2 = 0 ;
19193 PyObject * obj0 = 0 ;
19194 PyObject * obj1 = 0 ;
19195 char * kwnames[] = {
19196 (char *) "self",(char *) "x", NULL
19197 };
19198
19199 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceXRel",kwnames,&obj0,&obj1)) SWIG_fail;
19200 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19201 if (!SWIG_IsOK(res1)) {
19202 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19203 }
19204 arg1 = reinterpret_cast< wxDC * >(argp1);
19205 ecode2 = SWIG_AsVal_int(obj1, &val2);
19206 if (!SWIG_IsOK(ecode2)) {
19207 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceXRel" "', expected argument " "2"" of type '" "int""'");
19208 }
19209 arg2 = static_cast< int >(val2);
19210 {
19211 PyThreadState* __tstate = wxPyBeginAllowThreads();
19212 result = (int)((wxDC const *)arg1)->LogicalToDeviceXRel(arg2);
19213 wxPyEndAllowThreads(__tstate);
19214 if (PyErr_Occurred()) SWIG_fail;
19215 }
19216 resultobj = SWIG_From_int(static_cast< int >(result));
19217 return resultobj;
19218 fail:
19219 return NULL;
19220 }
19221
19222
19223 SWIGINTERN PyObject *_wrap_DC_LogicalToDeviceYRel(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19224 PyObject *resultobj = 0;
19225 wxDC *arg1 = (wxDC *) 0 ;
19226 int arg2 ;
19227 int result;
19228 void *argp1 = 0 ;
19229 int res1 = 0 ;
19230 int val2 ;
19231 int ecode2 = 0 ;
19232 PyObject * obj0 = 0 ;
19233 PyObject * obj1 = 0 ;
19234 char * kwnames[] = {
19235 (char *) "self",(char *) "y", NULL
19236 };
19237
19238 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_LogicalToDeviceYRel",kwnames,&obj0,&obj1)) SWIG_fail;
19239 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19240 if (!SWIG_IsOK(res1)) {
19241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "1"" of type '" "wxDC const *""'");
19242 }
19243 arg1 = reinterpret_cast< wxDC * >(argp1);
19244 ecode2 = SWIG_AsVal_int(obj1, &val2);
19245 if (!SWIG_IsOK(ecode2)) {
19246 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_LogicalToDeviceYRel" "', expected argument " "2"" of type '" "int""'");
19247 }
19248 arg2 = static_cast< int >(val2);
19249 {
19250 PyThreadState* __tstate = wxPyBeginAllowThreads();
19251 result = (int)((wxDC const *)arg1)->LogicalToDeviceYRel(arg2);
19252 wxPyEndAllowThreads(__tstate);
19253 if (PyErr_Occurred()) SWIG_fail;
19254 }
19255 resultobj = SWIG_From_int(static_cast< int >(result));
19256 return resultobj;
19257 fail:
19258 return NULL;
19259 }
19260
19261
19262 SWIGINTERN PyObject *_wrap_DC_CanDrawBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19263 PyObject *resultobj = 0;
19264 wxDC *arg1 = (wxDC *) 0 ;
19265 bool result;
19266 void *argp1 = 0 ;
19267 int res1 = 0 ;
19268 PyObject *swig_obj[1] ;
19269
19270 if (!args) SWIG_fail;
19271 swig_obj[0] = args;
19272 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19273 if (!SWIG_IsOK(res1)) {
19274 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanDrawBitmap" "', expected argument " "1"" of type '" "wxDC const *""'");
19275 }
19276 arg1 = reinterpret_cast< wxDC * >(argp1);
19277 {
19278 PyThreadState* __tstate = wxPyBeginAllowThreads();
19279 result = (bool)((wxDC const *)arg1)->CanDrawBitmap();
19280 wxPyEndAllowThreads(__tstate);
19281 if (PyErr_Occurred()) SWIG_fail;
19282 }
19283 {
19284 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19285 }
19286 return resultobj;
19287 fail:
19288 return NULL;
19289 }
19290
19291
19292 SWIGINTERN PyObject *_wrap_DC_CanGetTextExtent(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19293 PyObject *resultobj = 0;
19294 wxDC *arg1 = (wxDC *) 0 ;
19295 bool result;
19296 void *argp1 = 0 ;
19297 int res1 = 0 ;
19298 PyObject *swig_obj[1] ;
19299
19300 if (!args) SWIG_fail;
19301 swig_obj[0] = args;
19302 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19303 if (!SWIG_IsOK(res1)) {
19304 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CanGetTextExtent" "', expected argument " "1"" of type '" "wxDC const *""'");
19305 }
19306 arg1 = reinterpret_cast< wxDC * >(argp1);
19307 {
19308 PyThreadState* __tstate = wxPyBeginAllowThreads();
19309 result = (bool)((wxDC const *)arg1)->CanGetTextExtent();
19310 wxPyEndAllowThreads(__tstate);
19311 if (PyErr_Occurred()) SWIG_fail;
19312 }
19313 {
19314 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19315 }
19316 return resultobj;
19317 fail:
19318 return NULL;
19319 }
19320
19321
19322 SWIGINTERN PyObject *_wrap_DC_GetDepth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19323 PyObject *resultobj = 0;
19324 wxDC *arg1 = (wxDC *) 0 ;
19325 int result;
19326 void *argp1 = 0 ;
19327 int res1 = 0 ;
19328 PyObject *swig_obj[1] ;
19329
19330 if (!args) SWIG_fail;
19331 swig_obj[0] = args;
19332 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19333 if (!SWIG_IsOK(res1)) {
19334 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDepth" "', expected argument " "1"" of type '" "wxDC const *""'");
19335 }
19336 arg1 = reinterpret_cast< wxDC * >(argp1);
19337 {
19338 PyThreadState* __tstate = wxPyBeginAllowThreads();
19339 result = (int)((wxDC const *)arg1)->GetDepth();
19340 wxPyEndAllowThreads(__tstate);
19341 if (PyErr_Occurred()) SWIG_fail;
19342 }
19343 resultobj = SWIG_From_int(static_cast< int >(result));
19344 return resultobj;
19345 fail:
19346 return NULL;
19347 }
19348
19349
19350 SWIGINTERN PyObject *_wrap_DC_GetPPI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19351 PyObject *resultobj = 0;
19352 wxDC *arg1 = (wxDC *) 0 ;
19353 wxSize result;
19354 void *argp1 = 0 ;
19355 int res1 = 0 ;
19356 PyObject *swig_obj[1] ;
19357
19358 if (!args) SWIG_fail;
19359 swig_obj[0] = args;
19360 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19361 if (!SWIG_IsOK(res1)) {
19362 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPPI" "', expected argument " "1"" of type '" "wxDC const *""'");
19363 }
19364 arg1 = reinterpret_cast< wxDC * >(argp1);
19365 {
19366 PyThreadState* __tstate = wxPyBeginAllowThreads();
19367 result = ((wxDC const *)arg1)->GetPPI();
19368 wxPyEndAllowThreads(__tstate);
19369 if (PyErr_Occurred()) SWIG_fail;
19370 }
19371 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
19372 return resultobj;
19373 fail:
19374 return NULL;
19375 }
19376
19377
19378 SWIGINTERN PyObject *_wrap_DC_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19379 PyObject *resultobj = 0;
19380 wxDC *arg1 = (wxDC *) 0 ;
19381 bool result;
19382 void *argp1 = 0 ;
19383 int res1 = 0 ;
19384 PyObject *swig_obj[1] ;
19385
19386 if (!args) SWIG_fail;
19387 swig_obj[0] = args;
19388 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19389 if (!SWIG_IsOK(res1)) {
19390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_Ok" "', expected argument " "1"" of type '" "wxDC const *""'");
19391 }
19392 arg1 = reinterpret_cast< wxDC * >(argp1);
19393 {
19394 PyThreadState* __tstate = wxPyBeginAllowThreads();
19395 result = (bool)((wxDC const *)arg1)->Ok();
19396 wxPyEndAllowThreads(__tstate);
19397 if (PyErr_Occurred()) SWIG_fail;
19398 }
19399 {
19400 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
19401 }
19402 return resultobj;
19403 fail:
19404 return NULL;
19405 }
19406
19407
19408 SWIGINTERN PyObject *_wrap_DC_GetBackgroundMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19409 PyObject *resultobj = 0;
19410 wxDC *arg1 = (wxDC *) 0 ;
19411 int result;
19412 void *argp1 = 0 ;
19413 int res1 = 0 ;
19414 PyObject *swig_obj[1] ;
19415
19416 if (!args) SWIG_fail;
19417 swig_obj[0] = args;
19418 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19419 if (!SWIG_IsOK(res1)) {
19420 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackgroundMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19421 }
19422 arg1 = reinterpret_cast< wxDC * >(argp1);
19423 {
19424 PyThreadState* __tstate = wxPyBeginAllowThreads();
19425 result = (int)((wxDC const *)arg1)->GetBackgroundMode();
19426 wxPyEndAllowThreads(__tstate);
19427 if (PyErr_Occurred()) SWIG_fail;
19428 }
19429 resultobj = SWIG_From_int(static_cast< int >(result));
19430 return resultobj;
19431 fail:
19432 return NULL;
19433 }
19434
19435
19436 SWIGINTERN PyObject *_wrap_DC_GetBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19437 PyObject *resultobj = 0;
19438 wxDC *arg1 = (wxDC *) 0 ;
19439 wxBrush *result = 0 ;
19440 void *argp1 = 0 ;
19441 int res1 = 0 ;
19442 PyObject *swig_obj[1] ;
19443
19444 if (!args) SWIG_fail;
19445 swig_obj[0] = args;
19446 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19447 if (!SWIG_IsOK(res1)) {
19448 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19449 }
19450 arg1 = reinterpret_cast< wxDC * >(argp1);
19451 {
19452 PyThreadState* __tstate = wxPyBeginAllowThreads();
19453 {
19454 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBackground();
19455 result = (wxBrush *) &_result_ref;
19456 }
19457 wxPyEndAllowThreads(__tstate);
19458 if (PyErr_Occurred()) SWIG_fail;
19459 }
19460 {
19461 wxBrush* resultptr = new wxBrush(*result);
19462 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19463 }
19464 return resultobj;
19465 fail:
19466 return NULL;
19467 }
19468
19469
19470 SWIGINTERN PyObject *_wrap_DC_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19471 PyObject *resultobj = 0;
19472 wxDC *arg1 = (wxDC *) 0 ;
19473 wxBrush *result = 0 ;
19474 void *argp1 = 0 ;
19475 int res1 = 0 ;
19476 PyObject *swig_obj[1] ;
19477
19478 if (!args) SWIG_fail;
19479 swig_obj[0] = args;
19480 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19481 if (!SWIG_IsOK(res1)) {
19482 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBrush" "', expected argument " "1"" of type '" "wxDC const *""'");
19483 }
19484 arg1 = reinterpret_cast< wxDC * >(argp1);
19485 {
19486 PyThreadState* __tstate = wxPyBeginAllowThreads();
19487 {
19488 wxBrush const &_result_ref = ((wxDC const *)arg1)->GetBrush();
19489 result = (wxBrush *) &_result_ref;
19490 }
19491 wxPyEndAllowThreads(__tstate);
19492 if (PyErr_Occurred()) SWIG_fail;
19493 }
19494 {
19495 wxBrush* resultptr = new wxBrush(*result);
19496 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBrush, 1);
19497 }
19498 return resultobj;
19499 fail:
19500 return NULL;
19501 }
19502
19503
19504 SWIGINTERN PyObject *_wrap_DC_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19505 PyObject *resultobj = 0;
19506 wxDC *arg1 = (wxDC *) 0 ;
19507 wxFont *result = 0 ;
19508 void *argp1 = 0 ;
19509 int res1 = 0 ;
19510 PyObject *swig_obj[1] ;
19511
19512 if (!args) SWIG_fail;
19513 swig_obj[0] = args;
19514 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19515 if (!SWIG_IsOK(res1)) {
19516 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetFont" "', expected argument " "1"" of type '" "wxDC const *""'");
19517 }
19518 arg1 = reinterpret_cast< wxDC * >(argp1);
19519 {
19520 PyThreadState* __tstate = wxPyBeginAllowThreads();
19521 {
19522 wxFont const &_result_ref = ((wxDC const *)arg1)->GetFont();
19523 result = (wxFont *) &_result_ref;
19524 }
19525 wxPyEndAllowThreads(__tstate);
19526 if (PyErr_Occurred()) SWIG_fail;
19527 }
19528 {
19529 wxFont* resultptr = new wxFont(*result);
19530 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1);
19531 }
19532 return resultobj;
19533 fail:
19534 return NULL;
19535 }
19536
19537
19538 SWIGINTERN PyObject *_wrap_DC_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19539 PyObject *resultobj = 0;
19540 wxDC *arg1 = (wxDC *) 0 ;
19541 wxPen *result = 0 ;
19542 void *argp1 = 0 ;
19543 int res1 = 0 ;
19544 PyObject *swig_obj[1] ;
19545
19546 if (!args) SWIG_fail;
19547 swig_obj[0] = args;
19548 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19549 if (!SWIG_IsOK(res1)) {
19550 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetPen" "', expected argument " "1"" of type '" "wxDC const *""'");
19551 }
19552 arg1 = reinterpret_cast< wxDC * >(argp1);
19553 {
19554 PyThreadState* __tstate = wxPyBeginAllowThreads();
19555 {
19556 wxPen const &_result_ref = ((wxDC const *)arg1)->GetPen();
19557 result = (wxPen *) &_result_ref;
19558 }
19559 wxPyEndAllowThreads(__tstate);
19560 if (PyErr_Occurred()) SWIG_fail;
19561 }
19562 {
19563 wxPen* resultptr = new wxPen(*result);
19564 resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxPen, 1);
19565 }
19566 return resultobj;
19567 fail:
19568 return NULL;
19569 }
19570
19571
19572 SWIGINTERN PyObject *_wrap_DC_GetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19573 PyObject *resultobj = 0;
19574 wxDC *arg1 = (wxDC *) 0 ;
19575 wxColour *result = 0 ;
19576 void *argp1 = 0 ;
19577 int res1 = 0 ;
19578 PyObject *swig_obj[1] ;
19579
19580 if (!args) SWIG_fail;
19581 swig_obj[0] = args;
19582 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19583 if (!SWIG_IsOK(res1)) {
19584 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextBackground" "', expected argument " "1"" of type '" "wxDC const *""'");
19585 }
19586 arg1 = reinterpret_cast< wxDC * >(argp1);
19587 {
19588 PyThreadState* __tstate = wxPyBeginAllowThreads();
19589 {
19590 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextBackground();
19591 result = (wxColour *) &_result_ref;
19592 }
19593 wxPyEndAllowThreads(__tstate);
19594 if (PyErr_Occurred()) SWIG_fail;
19595 }
19596 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19597 return resultobj;
19598 fail:
19599 return NULL;
19600 }
19601
19602
19603 SWIGINTERN PyObject *_wrap_DC_GetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19604 PyObject *resultobj = 0;
19605 wxDC *arg1 = (wxDC *) 0 ;
19606 wxColour *result = 0 ;
19607 void *argp1 = 0 ;
19608 int res1 = 0 ;
19609 PyObject *swig_obj[1] ;
19610
19611 if (!args) SWIG_fail;
19612 swig_obj[0] = args;
19613 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19614 if (!SWIG_IsOK(res1)) {
19615 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetTextForeground" "', expected argument " "1"" of type '" "wxDC const *""'");
19616 }
19617 arg1 = reinterpret_cast< wxDC * >(argp1);
19618 {
19619 PyThreadState* __tstate = wxPyBeginAllowThreads();
19620 {
19621 wxColour const &_result_ref = ((wxDC const *)arg1)->GetTextForeground();
19622 result = (wxColour *) &_result_ref;
19623 }
19624 wxPyEndAllowThreads(__tstate);
19625 if (PyErr_Occurred()) SWIG_fail;
19626 }
19627 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
19628 return resultobj;
19629 fail:
19630 return NULL;
19631 }
19632
19633
19634 SWIGINTERN PyObject *_wrap_DC_SetTextForeground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19635 PyObject *resultobj = 0;
19636 wxDC *arg1 = (wxDC *) 0 ;
19637 wxColour *arg2 = 0 ;
19638 void *argp1 = 0 ;
19639 int res1 = 0 ;
19640 wxColour temp2 ;
19641 PyObject * obj0 = 0 ;
19642 PyObject * obj1 = 0 ;
19643 char * kwnames[] = {
19644 (char *) "self",(char *) "colour", NULL
19645 };
19646
19647 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextForeground",kwnames,&obj0,&obj1)) SWIG_fail;
19648 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19649 if (!SWIG_IsOK(res1)) {
19650 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextForeground" "', expected argument " "1"" of type '" "wxDC *""'");
19651 }
19652 arg1 = reinterpret_cast< wxDC * >(argp1);
19653 {
19654 arg2 = &temp2;
19655 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19656 }
19657 {
19658 PyThreadState* __tstate = wxPyBeginAllowThreads();
19659 (arg1)->SetTextForeground((wxColour const &)*arg2);
19660 wxPyEndAllowThreads(__tstate);
19661 if (PyErr_Occurred()) SWIG_fail;
19662 }
19663 resultobj = SWIG_Py_Void();
19664 return resultobj;
19665 fail:
19666 return NULL;
19667 }
19668
19669
19670 SWIGINTERN PyObject *_wrap_DC_SetTextBackground(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19671 PyObject *resultobj = 0;
19672 wxDC *arg1 = (wxDC *) 0 ;
19673 wxColour *arg2 = 0 ;
19674 void *argp1 = 0 ;
19675 int res1 = 0 ;
19676 wxColour temp2 ;
19677 PyObject * obj0 = 0 ;
19678 PyObject * obj1 = 0 ;
19679 char * kwnames[] = {
19680 (char *) "self",(char *) "colour", NULL
19681 };
19682
19683 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetTextBackground",kwnames,&obj0,&obj1)) SWIG_fail;
19684 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19685 if (!SWIG_IsOK(res1)) {
19686 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetTextBackground" "', expected argument " "1"" of type '" "wxDC *""'");
19687 }
19688 arg1 = reinterpret_cast< wxDC * >(argp1);
19689 {
19690 arg2 = &temp2;
19691 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
19692 }
19693 {
19694 PyThreadState* __tstate = wxPyBeginAllowThreads();
19695 (arg1)->SetTextBackground((wxColour const &)*arg2);
19696 wxPyEndAllowThreads(__tstate);
19697 if (PyErr_Occurred()) SWIG_fail;
19698 }
19699 resultobj = SWIG_Py_Void();
19700 return resultobj;
19701 fail:
19702 return NULL;
19703 }
19704
19705
19706 SWIGINTERN PyObject *_wrap_DC_GetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19707 PyObject *resultobj = 0;
19708 wxDC *arg1 = (wxDC *) 0 ;
19709 int result;
19710 void *argp1 = 0 ;
19711 int res1 = 0 ;
19712 PyObject *swig_obj[1] ;
19713
19714 if (!args) SWIG_fail;
19715 swig_obj[0] = args;
19716 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19717 if (!SWIG_IsOK(res1)) {
19718 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetMapMode" "', expected argument " "1"" of type '" "wxDC const *""'");
19719 }
19720 arg1 = reinterpret_cast< wxDC * >(argp1);
19721 {
19722 PyThreadState* __tstate = wxPyBeginAllowThreads();
19723 result = (int)((wxDC const *)arg1)->GetMapMode();
19724 wxPyEndAllowThreads(__tstate);
19725 if (PyErr_Occurred()) SWIG_fail;
19726 }
19727 resultobj = SWIG_From_int(static_cast< int >(result));
19728 return resultobj;
19729 fail:
19730 return NULL;
19731 }
19732
19733
19734 SWIGINTERN PyObject *_wrap_DC_SetMapMode(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19735 PyObject *resultobj = 0;
19736 wxDC *arg1 = (wxDC *) 0 ;
19737 int arg2 ;
19738 void *argp1 = 0 ;
19739 int res1 = 0 ;
19740 int val2 ;
19741 int ecode2 = 0 ;
19742 PyObject * obj0 = 0 ;
19743 PyObject * obj1 = 0 ;
19744 char * kwnames[] = {
19745 (char *) "self",(char *) "mode", NULL
19746 };
19747
19748 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetMapMode",kwnames,&obj0,&obj1)) SWIG_fail;
19749 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19750 if (!SWIG_IsOK(res1)) {
19751 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetMapMode" "', expected argument " "1"" of type '" "wxDC *""'");
19752 }
19753 arg1 = reinterpret_cast< wxDC * >(argp1);
19754 ecode2 = SWIG_AsVal_int(obj1, &val2);
19755 if (!SWIG_IsOK(ecode2)) {
19756 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetMapMode" "', expected argument " "2"" of type '" "int""'");
19757 }
19758 arg2 = static_cast< int >(val2);
19759 {
19760 PyThreadState* __tstate = wxPyBeginAllowThreads();
19761 (arg1)->SetMapMode(arg2);
19762 wxPyEndAllowThreads(__tstate);
19763 if (PyErr_Occurred()) SWIG_fail;
19764 }
19765 resultobj = SWIG_Py_Void();
19766 return resultobj;
19767 fail:
19768 return NULL;
19769 }
19770
19771
19772 SWIGINTERN PyObject *_wrap_DC_GetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19773 PyObject *resultobj = 0;
19774 wxDC *arg1 = (wxDC *) 0 ;
19775 double *arg2 = (double *) 0 ;
19776 double *arg3 = (double *) 0 ;
19777 void *argp1 = 0 ;
19778 int res1 = 0 ;
19779 double temp2 ;
19780 int res2 = SWIG_TMPOBJ ;
19781 double temp3 ;
19782 int res3 = SWIG_TMPOBJ ;
19783 PyObject *swig_obj[1] ;
19784
19785 arg2 = &temp2;
19786 arg3 = &temp3;
19787 if (!args) SWIG_fail;
19788 swig_obj[0] = args;
19789 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19790 if (!SWIG_IsOK(res1)) {
19791 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetUserScale" "', expected argument " "1"" of type '" "wxDC const *""'");
19792 }
19793 arg1 = reinterpret_cast< wxDC * >(argp1);
19794 {
19795 PyThreadState* __tstate = wxPyBeginAllowThreads();
19796 ((wxDC const *)arg1)->GetUserScale(arg2,arg3);
19797 wxPyEndAllowThreads(__tstate);
19798 if (PyErr_Occurred()) SWIG_fail;
19799 }
19800 resultobj = SWIG_Py_Void();
19801 if (SWIG_IsTmpObj(res2)) {
19802 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19803 } else {
19804 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19805 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19806 }
19807 if (SWIG_IsTmpObj(res3)) {
19808 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19809 } else {
19810 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19811 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19812 }
19813 return resultobj;
19814 fail:
19815 return NULL;
19816 }
19817
19818
19819 SWIGINTERN PyObject *_wrap_DC_SetUserScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19820 PyObject *resultobj = 0;
19821 wxDC *arg1 = (wxDC *) 0 ;
19822 double arg2 ;
19823 double arg3 ;
19824 void *argp1 = 0 ;
19825 int res1 = 0 ;
19826 double val2 ;
19827 int ecode2 = 0 ;
19828 double val3 ;
19829 int ecode3 = 0 ;
19830 PyObject * obj0 = 0 ;
19831 PyObject * obj1 = 0 ;
19832 PyObject * obj2 = 0 ;
19833 char * kwnames[] = {
19834 (char *) "self",(char *) "x",(char *) "y", NULL
19835 };
19836
19837 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetUserScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19838 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19839 if (!SWIG_IsOK(res1)) {
19840 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetUserScale" "', expected argument " "1"" of type '" "wxDC *""'");
19841 }
19842 arg1 = reinterpret_cast< wxDC * >(argp1);
19843 ecode2 = SWIG_AsVal_double(obj1, &val2);
19844 if (!SWIG_IsOK(ecode2)) {
19845 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetUserScale" "', expected argument " "2"" of type '" "double""'");
19846 }
19847 arg2 = static_cast< double >(val2);
19848 ecode3 = SWIG_AsVal_double(obj2, &val3);
19849 if (!SWIG_IsOK(ecode3)) {
19850 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetUserScale" "', expected argument " "3"" of type '" "double""'");
19851 }
19852 arg3 = static_cast< double >(val3);
19853 {
19854 PyThreadState* __tstate = wxPyBeginAllowThreads();
19855 (arg1)->SetUserScale(arg2,arg3);
19856 wxPyEndAllowThreads(__tstate);
19857 if (PyErr_Occurred()) SWIG_fail;
19858 }
19859 resultobj = SWIG_Py_Void();
19860 return resultobj;
19861 fail:
19862 return NULL;
19863 }
19864
19865
19866 SWIGINTERN PyObject *_wrap_DC_GetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19867 PyObject *resultobj = 0;
19868 wxDC *arg1 = (wxDC *) 0 ;
19869 double *arg2 = (double *) 0 ;
19870 double *arg3 = (double *) 0 ;
19871 void *argp1 = 0 ;
19872 int res1 = 0 ;
19873 double temp2 ;
19874 int res2 = SWIG_TMPOBJ ;
19875 double temp3 ;
19876 int res3 = SWIG_TMPOBJ ;
19877 PyObject *swig_obj[1] ;
19878
19879 arg2 = &temp2;
19880 arg3 = &temp3;
19881 if (!args) SWIG_fail;
19882 swig_obj[0] = args;
19883 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19884 if (!SWIG_IsOK(res1)) {
19885 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19886 }
19887 arg1 = reinterpret_cast< wxDC * >(argp1);
19888 {
19889 PyThreadState* __tstate = wxPyBeginAllowThreads();
19890 (arg1)->GetLogicalScale(arg2,arg3);
19891 wxPyEndAllowThreads(__tstate);
19892 if (PyErr_Occurred()) SWIG_fail;
19893 }
19894 resultobj = SWIG_Py_Void();
19895 if (SWIG_IsTmpObj(res2)) {
19896 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg2)));
19897 } else {
19898 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19899 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_double, new_flags));
19900 }
19901 if (SWIG_IsTmpObj(res3)) {
19902 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_double((*arg3)));
19903 } else {
19904 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
19905 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_double, new_flags));
19906 }
19907 return resultobj;
19908 fail:
19909 return NULL;
19910 }
19911
19912
19913 SWIGINTERN PyObject *_wrap_DC_SetLogicalScale(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
19914 PyObject *resultobj = 0;
19915 wxDC *arg1 = (wxDC *) 0 ;
19916 double arg2 ;
19917 double arg3 ;
19918 void *argp1 = 0 ;
19919 int res1 = 0 ;
19920 double val2 ;
19921 int ecode2 = 0 ;
19922 double val3 ;
19923 int ecode3 = 0 ;
19924 PyObject * obj0 = 0 ;
19925 PyObject * obj1 = 0 ;
19926 PyObject * obj2 = 0 ;
19927 char * kwnames[] = {
19928 (char *) "self",(char *) "x",(char *) "y", NULL
19929 };
19930
19931 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalScale",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
19932 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19933 if (!SWIG_IsOK(res1)) {
19934 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalScale" "', expected argument " "1"" of type '" "wxDC *""'");
19935 }
19936 arg1 = reinterpret_cast< wxDC * >(argp1);
19937 ecode2 = SWIG_AsVal_double(obj1, &val2);
19938 if (!SWIG_IsOK(ecode2)) {
19939 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalScale" "', expected argument " "2"" of type '" "double""'");
19940 }
19941 arg2 = static_cast< double >(val2);
19942 ecode3 = SWIG_AsVal_double(obj2, &val3);
19943 if (!SWIG_IsOK(ecode3)) {
19944 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalScale" "', expected argument " "3"" of type '" "double""'");
19945 }
19946 arg3 = static_cast< double >(val3);
19947 {
19948 PyThreadState* __tstate = wxPyBeginAllowThreads();
19949 (arg1)->SetLogicalScale(arg2,arg3);
19950 wxPyEndAllowThreads(__tstate);
19951 if (PyErr_Occurred()) SWIG_fail;
19952 }
19953 resultobj = SWIG_Py_Void();
19954 return resultobj;
19955 fail:
19956 return NULL;
19957 }
19958
19959
19960 SWIGINTERN PyObject *_wrap_DC_GetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19961 PyObject *resultobj = 0;
19962 wxDC *arg1 = (wxDC *) 0 ;
19963 wxPoint result;
19964 void *argp1 = 0 ;
19965 int res1 = 0 ;
19966 PyObject *swig_obj[1] ;
19967
19968 if (!args) SWIG_fail;
19969 swig_obj[0] = args;
19970 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
19971 if (!SWIG_IsOK(res1)) {
19972 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
19973 }
19974 arg1 = reinterpret_cast< wxDC * >(argp1);
19975 {
19976 PyThreadState* __tstate = wxPyBeginAllowThreads();
19977 result = ((wxDC const *)arg1)->GetLogicalOrigin();
19978 wxPyEndAllowThreads(__tstate);
19979 if (PyErr_Occurred()) SWIG_fail;
19980 }
19981 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
19982 return resultobj;
19983 fail:
19984 return NULL;
19985 }
19986
19987
19988 SWIGINTERN PyObject *_wrap_DC_GetLogicalOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
19989 PyObject *resultobj = 0;
19990 wxDC *arg1 = (wxDC *) 0 ;
19991 int *arg2 = (int *) 0 ;
19992 int *arg3 = (int *) 0 ;
19993 void *argp1 = 0 ;
19994 int res1 = 0 ;
19995 int temp2 ;
19996 int res2 = SWIG_TMPOBJ ;
19997 int temp3 ;
19998 int res3 = SWIG_TMPOBJ ;
19999 PyObject *swig_obj[1] ;
20000
20001 arg2 = &temp2;
20002 arg3 = &temp3;
20003 if (!args) SWIG_fail;
20004 swig_obj[0] = args;
20005 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20006 if (!SWIG_IsOK(res1)) {
20007 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20008 }
20009 arg1 = reinterpret_cast< wxDC * >(argp1);
20010 {
20011 PyThreadState* __tstate = wxPyBeginAllowThreads();
20012 ((wxDC const *)arg1)->GetLogicalOrigin(arg2,arg3);
20013 wxPyEndAllowThreads(__tstate);
20014 if (PyErr_Occurred()) SWIG_fail;
20015 }
20016 resultobj = SWIG_Py_Void();
20017 if (SWIG_IsTmpObj(res2)) {
20018 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20019 } else {
20020 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20021 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20022 }
20023 if (SWIG_IsTmpObj(res3)) {
20024 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20025 } else {
20026 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20027 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20028 }
20029 return resultobj;
20030 fail:
20031 return NULL;
20032 }
20033
20034
20035 SWIGINTERN PyObject *_wrap_DC_SetLogicalOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20036 PyObject *resultobj = 0;
20037 wxDC *arg1 = (wxDC *) 0 ;
20038 int arg2 ;
20039 int arg3 ;
20040 void *argp1 = 0 ;
20041 int res1 = 0 ;
20042 int val2 ;
20043 int ecode2 = 0 ;
20044 int val3 ;
20045 int ecode3 = 0 ;
20046 PyObject * obj0 = 0 ;
20047 PyObject * obj1 = 0 ;
20048 PyObject * obj2 = 0 ;
20049 char * kwnames[] = {
20050 (char *) "self",(char *) "x",(char *) "y", NULL
20051 };
20052
20053 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetLogicalOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20054 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20055 if (!SWIG_IsOK(res1)) {
20056 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20057 }
20058 arg1 = reinterpret_cast< wxDC * >(argp1);
20059 ecode2 = SWIG_AsVal_int(obj1, &val2);
20060 if (!SWIG_IsOK(ecode2)) {
20061 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalOrigin" "', expected argument " "2"" of type '" "int""'");
20062 }
20063 arg2 = static_cast< int >(val2);
20064 ecode3 = SWIG_AsVal_int(obj2, &val3);
20065 if (!SWIG_IsOK(ecode3)) {
20066 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetLogicalOrigin" "', expected argument " "3"" of type '" "int""'");
20067 }
20068 arg3 = static_cast< int >(val3);
20069 {
20070 PyThreadState* __tstate = wxPyBeginAllowThreads();
20071 (arg1)->SetLogicalOrigin(arg2,arg3);
20072 wxPyEndAllowThreads(__tstate);
20073 if (PyErr_Occurred()) SWIG_fail;
20074 }
20075 resultobj = SWIG_Py_Void();
20076 return resultobj;
20077 fail:
20078 return NULL;
20079 }
20080
20081
20082 SWIGINTERN PyObject *_wrap_DC_SetLogicalOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20083 PyObject *resultobj = 0;
20084 wxDC *arg1 = (wxDC *) 0 ;
20085 wxPoint *arg2 = 0 ;
20086 void *argp1 = 0 ;
20087 int res1 = 0 ;
20088 wxPoint temp2 ;
20089 PyObject * obj0 = 0 ;
20090 PyObject * obj1 = 0 ;
20091 char * kwnames[] = {
20092 (char *) "self",(char *) "point", NULL
20093 };
20094
20095 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20096 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20097 if (!SWIG_IsOK(res1)) {
20098 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20099 }
20100 arg1 = reinterpret_cast< wxDC * >(argp1);
20101 {
20102 arg2 = &temp2;
20103 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20104 }
20105 {
20106 PyThreadState* __tstate = wxPyBeginAllowThreads();
20107 wxDC_SetLogicalOriginPoint(arg1,(wxPoint const &)*arg2);
20108 wxPyEndAllowThreads(__tstate);
20109 if (PyErr_Occurred()) SWIG_fail;
20110 }
20111 resultobj = SWIG_Py_Void();
20112 return resultobj;
20113 fail:
20114 return NULL;
20115 }
20116
20117
20118 SWIGINTERN PyObject *_wrap_DC_GetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20119 PyObject *resultobj = 0;
20120 wxDC *arg1 = (wxDC *) 0 ;
20121 wxPoint result;
20122 void *argp1 = 0 ;
20123 int res1 = 0 ;
20124 PyObject *swig_obj[1] ;
20125
20126 if (!args) SWIG_fail;
20127 swig_obj[0] = args;
20128 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20129 if (!SWIG_IsOK(res1)) {
20130 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC const *""'");
20131 }
20132 arg1 = reinterpret_cast< wxDC * >(argp1);
20133 {
20134 PyThreadState* __tstate = wxPyBeginAllowThreads();
20135 result = ((wxDC const *)arg1)->GetDeviceOrigin();
20136 wxPyEndAllowThreads(__tstate);
20137 if (PyErr_Occurred()) SWIG_fail;
20138 }
20139 resultobj = SWIG_NewPointerObj((new wxPoint(static_cast< const wxPoint& >(result))), SWIGTYPE_p_wxPoint, SWIG_POINTER_OWN | 0 );
20140 return resultobj;
20141 fail:
20142 return NULL;
20143 }
20144
20145
20146 SWIGINTERN PyObject *_wrap_DC_GetDeviceOriginTuple(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20147 PyObject *resultobj = 0;
20148 wxDC *arg1 = (wxDC *) 0 ;
20149 int *arg2 = (int *) 0 ;
20150 int *arg3 = (int *) 0 ;
20151 void *argp1 = 0 ;
20152 int res1 = 0 ;
20153 int temp2 ;
20154 int res2 = SWIG_TMPOBJ ;
20155 int temp3 ;
20156 int res3 = SWIG_TMPOBJ ;
20157 PyObject *swig_obj[1] ;
20158
20159 arg2 = &temp2;
20160 arg3 = &temp3;
20161 if (!args) SWIG_fail;
20162 swig_obj[0] = args;
20163 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20164 if (!SWIG_IsOK(res1)) {
20165 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetDeviceOriginTuple" "', expected argument " "1"" of type '" "wxDC const *""'");
20166 }
20167 arg1 = reinterpret_cast< wxDC * >(argp1);
20168 {
20169 PyThreadState* __tstate = wxPyBeginAllowThreads();
20170 ((wxDC const *)arg1)->GetDeviceOrigin(arg2,arg3);
20171 wxPyEndAllowThreads(__tstate);
20172 if (PyErr_Occurred()) SWIG_fail;
20173 }
20174 resultobj = SWIG_Py_Void();
20175 if (SWIG_IsTmpObj(res2)) {
20176 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20177 } else {
20178 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20179 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20180 }
20181 if (SWIG_IsTmpObj(res3)) {
20182 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20183 } else {
20184 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20185 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20186 }
20187 return resultobj;
20188 fail:
20189 return NULL;
20190 }
20191
20192
20193 SWIGINTERN PyObject *_wrap_DC_SetDeviceOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20194 PyObject *resultobj = 0;
20195 wxDC *arg1 = (wxDC *) 0 ;
20196 int arg2 ;
20197 int arg3 ;
20198 void *argp1 = 0 ;
20199 int res1 = 0 ;
20200 int val2 ;
20201 int ecode2 = 0 ;
20202 int val3 ;
20203 int ecode3 = 0 ;
20204 PyObject * obj0 = 0 ;
20205 PyObject * obj1 = 0 ;
20206 PyObject * obj2 = 0 ;
20207 char * kwnames[] = {
20208 (char *) "self",(char *) "x",(char *) "y", NULL
20209 };
20210
20211 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetDeviceOrigin",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20212 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20213 if (!SWIG_IsOK(res1)) {
20214 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20215 }
20216 arg1 = reinterpret_cast< wxDC * >(argp1);
20217 ecode2 = SWIG_AsVal_int(obj1, &val2);
20218 if (!SWIG_IsOK(ecode2)) {
20219 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetDeviceOrigin" "', expected argument " "2"" of type '" "int""'");
20220 }
20221 arg2 = static_cast< int >(val2);
20222 ecode3 = SWIG_AsVal_int(obj2, &val3);
20223 if (!SWIG_IsOK(ecode3)) {
20224 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetDeviceOrigin" "', expected argument " "3"" of type '" "int""'");
20225 }
20226 arg3 = static_cast< int >(val3);
20227 {
20228 PyThreadState* __tstate = wxPyBeginAllowThreads();
20229 (arg1)->SetDeviceOrigin(arg2,arg3);
20230 wxPyEndAllowThreads(__tstate);
20231 if (PyErr_Occurred()) SWIG_fail;
20232 }
20233 resultobj = SWIG_Py_Void();
20234 return resultobj;
20235 fail:
20236 return NULL;
20237 }
20238
20239
20240 SWIGINTERN PyObject *_wrap_DC_SetDeviceOriginPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20241 PyObject *resultobj = 0;
20242 wxDC *arg1 = (wxDC *) 0 ;
20243 wxPoint *arg2 = 0 ;
20244 void *argp1 = 0 ;
20245 int res1 = 0 ;
20246 wxPoint temp2 ;
20247 PyObject * obj0 = 0 ;
20248 PyObject * obj1 = 0 ;
20249 char * kwnames[] = {
20250 (char *) "self",(char *) "point", NULL
20251 };
20252
20253 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetDeviceOriginPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20254 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20255 if (!SWIG_IsOK(res1)) {
20256 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetDeviceOriginPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20257 }
20258 arg1 = reinterpret_cast< wxDC * >(argp1);
20259 {
20260 arg2 = &temp2;
20261 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20262 }
20263 {
20264 PyThreadState* __tstate = wxPyBeginAllowThreads();
20265 wxDC_SetDeviceOriginPoint(arg1,(wxPoint const &)*arg2);
20266 wxPyEndAllowThreads(__tstate);
20267 if (PyErr_Occurred()) SWIG_fail;
20268 }
20269 resultobj = SWIG_Py_Void();
20270 return resultobj;
20271 fail:
20272 return NULL;
20273 }
20274
20275
20276 SWIGINTERN PyObject *_wrap_DC_SetAxisOrientation(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20277 PyObject *resultobj = 0;
20278 wxDC *arg1 = (wxDC *) 0 ;
20279 bool arg2 ;
20280 bool arg3 ;
20281 void *argp1 = 0 ;
20282 int res1 = 0 ;
20283 bool val2 ;
20284 int ecode2 = 0 ;
20285 bool val3 ;
20286 int ecode3 = 0 ;
20287 PyObject * obj0 = 0 ;
20288 PyObject * obj1 = 0 ;
20289 PyObject * obj2 = 0 ;
20290 char * kwnames[] = {
20291 (char *) "self",(char *) "xLeftRight",(char *) "yBottomUp", NULL
20292 };
20293
20294 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_SetAxisOrientation",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20295 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20296 if (!SWIG_IsOK(res1)) {
20297 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetAxisOrientation" "', expected argument " "1"" of type '" "wxDC *""'");
20298 }
20299 arg1 = reinterpret_cast< wxDC * >(argp1);
20300 ecode2 = SWIG_AsVal_bool(obj1, &val2);
20301 if (!SWIG_IsOK(ecode2)) {
20302 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetAxisOrientation" "', expected argument " "2"" of type '" "bool""'");
20303 }
20304 arg2 = static_cast< bool >(val2);
20305 ecode3 = SWIG_AsVal_bool(obj2, &val3);
20306 if (!SWIG_IsOK(ecode3)) {
20307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_SetAxisOrientation" "', expected argument " "3"" of type '" "bool""'");
20308 }
20309 arg3 = static_cast< bool >(val3);
20310 {
20311 PyThreadState* __tstate = wxPyBeginAllowThreads();
20312 (arg1)->SetAxisOrientation(arg2,arg3);
20313 wxPyEndAllowThreads(__tstate);
20314 if (PyErr_Occurred()) SWIG_fail;
20315 }
20316 resultobj = SWIG_Py_Void();
20317 return resultobj;
20318 fail:
20319 return NULL;
20320 }
20321
20322
20323 SWIGINTERN PyObject *_wrap_DC_GetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20324 PyObject *resultobj = 0;
20325 wxDC *arg1 = (wxDC *) 0 ;
20326 int result;
20327 void *argp1 = 0 ;
20328 int res1 = 0 ;
20329 PyObject *swig_obj[1] ;
20330
20331 if (!args) SWIG_fail;
20332 swig_obj[0] = args;
20333 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20334 if (!SWIG_IsOK(res1)) {
20335 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetLogicalFunction" "', expected argument " "1"" of type '" "wxDC const *""'");
20336 }
20337 arg1 = reinterpret_cast< wxDC * >(argp1);
20338 {
20339 PyThreadState* __tstate = wxPyBeginAllowThreads();
20340 result = (int)((wxDC const *)arg1)->GetLogicalFunction();
20341 wxPyEndAllowThreads(__tstate);
20342 if (PyErr_Occurred()) SWIG_fail;
20343 }
20344 resultobj = SWIG_From_int(static_cast< int >(result));
20345 return resultobj;
20346 fail:
20347 return NULL;
20348 }
20349
20350
20351 SWIGINTERN PyObject *_wrap_DC_SetLogicalFunction(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20352 PyObject *resultobj = 0;
20353 wxDC *arg1 = (wxDC *) 0 ;
20354 int arg2 ;
20355 void *argp1 = 0 ;
20356 int res1 = 0 ;
20357 int val2 ;
20358 int ecode2 = 0 ;
20359 PyObject * obj0 = 0 ;
20360 PyObject * obj1 = 0 ;
20361 char * kwnames[] = {
20362 (char *) "self",(char *) "function", NULL
20363 };
20364
20365 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_SetLogicalFunction",kwnames,&obj0,&obj1)) SWIG_fail;
20366 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20367 if (!SWIG_IsOK(res1)) {
20368 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_SetLogicalFunction" "', expected argument " "1"" of type '" "wxDC *""'");
20369 }
20370 arg1 = reinterpret_cast< wxDC * >(argp1);
20371 ecode2 = SWIG_AsVal_int(obj1, &val2);
20372 if (!SWIG_IsOK(ecode2)) {
20373 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_SetLogicalFunction" "', expected argument " "2"" of type '" "int""'");
20374 }
20375 arg2 = static_cast< int >(val2);
20376 {
20377 PyThreadState* __tstate = wxPyBeginAllowThreads();
20378 (arg1)->SetLogicalFunction(arg2);
20379 wxPyEndAllowThreads(__tstate);
20380 if (PyErr_Occurred()) SWIG_fail;
20381 }
20382 resultobj = SWIG_Py_Void();
20383 return resultobj;
20384 fail:
20385 return NULL;
20386 }
20387
20388
20389 SWIGINTERN PyObject *_wrap_DC_ComputeScaleAndOrigin(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20390 PyObject *resultobj = 0;
20391 wxDC *arg1 = (wxDC *) 0 ;
20392 void *argp1 = 0 ;
20393 int res1 = 0 ;
20394 PyObject *swig_obj[1] ;
20395
20396 if (!args) SWIG_fail;
20397 swig_obj[0] = args;
20398 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20399 if (!SWIG_IsOK(res1)) {
20400 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ComputeScaleAndOrigin" "', expected argument " "1"" of type '" "wxDC *""'");
20401 }
20402 arg1 = reinterpret_cast< wxDC * >(argp1);
20403 {
20404 PyThreadState* __tstate = wxPyBeginAllowThreads();
20405 (arg1)->ComputeScaleAndOrigin();
20406 wxPyEndAllowThreads(__tstate);
20407 if (PyErr_Occurred()) SWIG_fail;
20408 }
20409 resultobj = SWIG_Py_Void();
20410 return resultobj;
20411 fail:
20412 return NULL;
20413 }
20414
20415
20416 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20417 PyObject *resultobj = 0;
20418 wxDC *arg1 = (wxDC *) 0 ;
20419 int arg2 ;
20420 int arg3 ;
20421 void *argp1 = 0 ;
20422 int res1 = 0 ;
20423 int val2 ;
20424 int ecode2 = 0 ;
20425 int val3 ;
20426 int ecode3 = 0 ;
20427 PyObject * obj0 = 0 ;
20428 PyObject * obj1 = 0 ;
20429 PyObject * obj2 = 0 ;
20430 char * kwnames[] = {
20431 (char *) "self",(char *) "x",(char *) "y", NULL
20432 };
20433
20434 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DC_CalcBoundingBox",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
20435 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20436 if (!SWIG_IsOK(res1)) {
20437 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20438 }
20439 arg1 = reinterpret_cast< wxDC * >(argp1);
20440 ecode2 = SWIG_AsVal_int(obj1, &val2);
20441 if (!SWIG_IsOK(ecode2)) {
20442 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DC_CalcBoundingBox" "', expected argument " "2"" of type '" "int""'");
20443 }
20444 arg2 = static_cast< int >(val2);
20445 ecode3 = SWIG_AsVal_int(obj2, &val3);
20446 if (!SWIG_IsOK(ecode3)) {
20447 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DC_CalcBoundingBox" "', expected argument " "3"" of type '" "int""'");
20448 }
20449 arg3 = static_cast< int >(val3);
20450 {
20451 PyThreadState* __tstate = wxPyBeginAllowThreads();
20452 (arg1)->CalcBoundingBox(arg2,arg3);
20453 wxPyEndAllowThreads(__tstate);
20454 if (PyErr_Occurred()) SWIG_fail;
20455 }
20456 resultobj = SWIG_Py_Void();
20457 return resultobj;
20458 fail:
20459 return NULL;
20460 }
20461
20462
20463 SWIGINTERN PyObject *_wrap_DC_CalcBoundingBoxPoint(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20464 PyObject *resultobj = 0;
20465 wxDC *arg1 = (wxDC *) 0 ;
20466 wxPoint *arg2 = 0 ;
20467 void *argp1 = 0 ;
20468 int res1 = 0 ;
20469 wxPoint temp2 ;
20470 PyObject * obj0 = 0 ;
20471 PyObject * obj1 = 0 ;
20472 char * kwnames[] = {
20473 (char *) "self",(char *) "point", NULL
20474 };
20475
20476 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DC_CalcBoundingBoxPoint",kwnames,&obj0,&obj1)) SWIG_fail;
20477 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20478 if (!SWIG_IsOK(res1)) {
20479 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_CalcBoundingBoxPoint" "', expected argument " "1"" of type '" "wxDC *""'");
20480 }
20481 arg1 = reinterpret_cast< wxDC * >(argp1);
20482 {
20483 arg2 = &temp2;
20484 if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail;
20485 }
20486 {
20487 PyThreadState* __tstate = wxPyBeginAllowThreads();
20488 wxDC_CalcBoundingBoxPoint(arg1,(wxPoint const &)*arg2);
20489 wxPyEndAllowThreads(__tstate);
20490 if (PyErr_Occurred()) SWIG_fail;
20491 }
20492 resultobj = SWIG_Py_Void();
20493 return resultobj;
20494 fail:
20495 return NULL;
20496 }
20497
20498
20499 SWIGINTERN PyObject *_wrap_DC_ResetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20500 PyObject *resultobj = 0;
20501 wxDC *arg1 = (wxDC *) 0 ;
20502 void *argp1 = 0 ;
20503 int res1 = 0 ;
20504 PyObject *swig_obj[1] ;
20505
20506 if (!args) SWIG_fail;
20507 swig_obj[0] = args;
20508 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20509 if (!SWIG_IsOK(res1)) {
20510 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_ResetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20511 }
20512 arg1 = reinterpret_cast< wxDC * >(argp1);
20513 {
20514 PyThreadState* __tstate = wxPyBeginAllowThreads();
20515 (arg1)->ResetBoundingBox();
20516 wxPyEndAllowThreads(__tstate);
20517 if (PyErr_Occurred()) SWIG_fail;
20518 }
20519 resultobj = SWIG_Py_Void();
20520 return resultobj;
20521 fail:
20522 return NULL;
20523 }
20524
20525
20526 SWIGINTERN PyObject *_wrap_DC_MinX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20527 PyObject *resultobj = 0;
20528 wxDC *arg1 = (wxDC *) 0 ;
20529 int result;
20530 void *argp1 = 0 ;
20531 int res1 = 0 ;
20532 PyObject *swig_obj[1] ;
20533
20534 if (!args) SWIG_fail;
20535 swig_obj[0] = args;
20536 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20537 if (!SWIG_IsOK(res1)) {
20538 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinX" "', expected argument " "1"" of type '" "wxDC const *""'");
20539 }
20540 arg1 = reinterpret_cast< wxDC * >(argp1);
20541 {
20542 PyThreadState* __tstate = wxPyBeginAllowThreads();
20543 result = (int)((wxDC const *)arg1)->MinX();
20544 wxPyEndAllowThreads(__tstate);
20545 if (PyErr_Occurred()) SWIG_fail;
20546 }
20547 resultobj = SWIG_From_int(static_cast< int >(result));
20548 return resultobj;
20549 fail:
20550 return NULL;
20551 }
20552
20553
20554 SWIGINTERN PyObject *_wrap_DC_MaxX(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20555 PyObject *resultobj = 0;
20556 wxDC *arg1 = (wxDC *) 0 ;
20557 int result;
20558 void *argp1 = 0 ;
20559 int res1 = 0 ;
20560 PyObject *swig_obj[1] ;
20561
20562 if (!args) SWIG_fail;
20563 swig_obj[0] = args;
20564 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20565 if (!SWIG_IsOK(res1)) {
20566 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxX" "', expected argument " "1"" of type '" "wxDC const *""'");
20567 }
20568 arg1 = reinterpret_cast< wxDC * >(argp1);
20569 {
20570 PyThreadState* __tstate = wxPyBeginAllowThreads();
20571 result = (int)((wxDC const *)arg1)->MaxX();
20572 wxPyEndAllowThreads(__tstate);
20573 if (PyErr_Occurred()) SWIG_fail;
20574 }
20575 resultobj = SWIG_From_int(static_cast< int >(result));
20576 return resultobj;
20577 fail:
20578 return NULL;
20579 }
20580
20581
20582 SWIGINTERN PyObject *_wrap_DC_MinY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20583 PyObject *resultobj = 0;
20584 wxDC *arg1 = (wxDC *) 0 ;
20585 int result;
20586 void *argp1 = 0 ;
20587 int res1 = 0 ;
20588 PyObject *swig_obj[1] ;
20589
20590 if (!args) SWIG_fail;
20591 swig_obj[0] = args;
20592 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20593 if (!SWIG_IsOK(res1)) {
20594 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MinY" "', expected argument " "1"" of type '" "wxDC const *""'");
20595 }
20596 arg1 = reinterpret_cast< wxDC * >(argp1);
20597 {
20598 PyThreadState* __tstate = wxPyBeginAllowThreads();
20599 result = (int)((wxDC const *)arg1)->MinY();
20600 wxPyEndAllowThreads(__tstate);
20601 if (PyErr_Occurred()) SWIG_fail;
20602 }
20603 resultobj = SWIG_From_int(static_cast< int >(result));
20604 return resultobj;
20605 fail:
20606 return NULL;
20607 }
20608
20609
20610 SWIGINTERN PyObject *_wrap_DC_MaxY(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20611 PyObject *resultobj = 0;
20612 wxDC *arg1 = (wxDC *) 0 ;
20613 int result;
20614 void *argp1 = 0 ;
20615 int res1 = 0 ;
20616 PyObject *swig_obj[1] ;
20617
20618 if (!args) SWIG_fail;
20619 swig_obj[0] = args;
20620 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20621 if (!SWIG_IsOK(res1)) {
20622 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_MaxY" "', expected argument " "1"" of type '" "wxDC const *""'");
20623 }
20624 arg1 = reinterpret_cast< wxDC * >(argp1);
20625 {
20626 PyThreadState* __tstate = wxPyBeginAllowThreads();
20627 result = (int)((wxDC const *)arg1)->MaxY();
20628 wxPyEndAllowThreads(__tstate);
20629 if (PyErr_Occurred()) SWIG_fail;
20630 }
20631 resultobj = SWIG_From_int(static_cast< int >(result));
20632 return resultobj;
20633 fail:
20634 return NULL;
20635 }
20636
20637
20638 SWIGINTERN PyObject *_wrap_DC_GetBoundingBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20639 PyObject *resultobj = 0;
20640 wxDC *arg1 = (wxDC *) 0 ;
20641 int *arg2 = (int *) 0 ;
20642 int *arg3 = (int *) 0 ;
20643 int *arg4 = (int *) 0 ;
20644 int *arg5 = (int *) 0 ;
20645 void *argp1 = 0 ;
20646 int res1 = 0 ;
20647 int temp2 ;
20648 int res2 = SWIG_TMPOBJ ;
20649 int temp3 ;
20650 int res3 = SWIG_TMPOBJ ;
20651 int temp4 ;
20652 int res4 = SWIG_TMPOBJ ;
20653 int temp5 ;
20654 int res5 = SWIG_TMPOBJ ;
20655 PyObject *swig_obj[1] ;
20656
20657 arg2 = &temp2;
20658 arg3 = &temp3;
20659 arg4 = &temp4;
20660 arg5 = &temp5;
20661 if (!args) SWIG_fail;
20662 swig_obj[0] = args;
20663 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20664 if (!SWIG_IsOK(res1)) {
20665 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetBoundingBox" "', expected argument " "1"" of type '" "wxDC *""'");
20666 }
20667 arg1 = reinterpret_cast< wxDC * >(argp1);
20668 {
20669 PyThreadState* __tstate = wxPyBeginAllowThreads();
20670 wxDC_GetBoundingBox(arg1,arg2,arg3,arg4,arg5);
20671 wxPyEndAllowThreads(__tstate);
20672 if (PyErr_Occurred()) SWIG_fail;
20673 }
20674 resultobj = SWIG_Py_Void();
20675 if (SWIG_IsTmpObj(res2)) {
20676 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg2)));
20677 } else {
20678 int new_flags = SWIG_IsNewObj(res2) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20679 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg2), SWIGTYPE_p_int, new_flags));
20680 }
20681 if (SWIG_IsTmpObj(res3)) {
20682 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
20683 } else {
20684 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20685 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
20686 }
20687 if (SWIG_IsTmpObj(res4)) {
20688 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
20689 } else {
20690 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20691 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
20692 }
20693 if (SWIG_IsTmpObj(res5)) {
20694 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg5)));
20695 } else {
20696 int new_flags = SWIG_IsNewObj(res5) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
20697 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg5), SWIGTYPE_p_int, new_flags));
20698 }
20699 return resultobj;
20700 fail:
20701 return NULL;
20702 }
20703
20704
20705 SWIGINTERN PyObject *_wrap_DC_GetHDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20706 PyObject *resultobj = 0;
20707 wxDC *arg1 = (wxDC *) 0 ;
20708 long result;
20709 void *argp1 = 0 ;
20710 int res1 = 0 ;
20711 PyObject *swig_obj[1] ;
20712
20713 if (!args) SWIG_fail;
20714 swig_obj[0] = args;
20715 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20716 if (!SWIG_IsOK(res1)) {
20717 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC_GetHDC" "', expected argument " "1"" of type '" "wxDC *""'");
20718 }
20719 arg1 = reinterpret_cast< wxDC * >(argp1);
20720 {
20721 PyThreadState* __tstate = wxPyBeginAllowThreads();
20722 result = (long)(arg1)->GetHDC();
20723 wxPyEndAllowThreads(__tstate);
20724 if (PyErr_Occurred()) SWIG_fail;
20725 }
20726 resultobj = SWIG_From_long(static_cast< long >(result));
20727 return resultobj;
20728 fail:
20729 return NULL;
20730 }
20731
20732
20733 SWIGINTERN PyObject *_wrap_DC__DrawPointList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20734 PyObject *resultobj = 0;
20735 wxDC *arg1 = (wxDC *) 0 ;
20736 PyObject *arg2 = (PyObject *) 0 ;
20737 PyObject *arg3 = (PyObject *) 0 ;
20738 PyObject *arg4 = (PyObject *) 0 ;
20739 PyObject *result = 0 ;
20740 void *argp1 = 0 ;
20741 int res1 = 0 ;
20742 PyObject * obj0 = 0 ;
20743 PyObject * obj1 = 0 ;
20744 PyObject * obj2 = 0 ;
20745 PyObject * obj3 = 0 ;
20746 char * kwnames[] = {
20747 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20748 };
20749
20750 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPointList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20751 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20752 if (!SWIG_IsOK(res1)) {
20753 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPointList" "', expected argument " "1"" of type '" "wxDC *""'");
20754 }
20755 arg1 = reinterpret_cast< wxDC * >(argp1);
20756 arg2 = obj1;
20757 arg3 = obj2;
20758 arg4 = obj3;
20759 {
20760 PyThreadState* __tstate = wxPyBeginAllowThreads();
20761 result = (PyObject *)wxDC__DrawPointList(arg1,arg2,arg3,arg4);
20762 wxPyEndAllowThreads(__tstate);
20763 if (PyErr_Occurred()) SWIG_fail;
20764 }
20765 resultobj = result;
20766 return resultobj;
20767 fail:
20768 return NULL;
20769 }
20770
20771
20772 SWIGINTERN PyObject *_wrap_DC__DrawLineList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20773 PyObject *resultobj = 0;
20774 wxDC *arg1 = (wxDC *) 0 ;
20775 PyObject *arg2 = (PyObject *) 0 ;
20776 PyObject *arg3 = (PyObject *) 0 ;
20777 PyObject *arg4 = (PyObject *) 0 ;
20778 PyObject *result = 0 ;
20779 void *argp1 = 0 ;
20780 int res1 = 0 ;
20781 PyObject * obj0 = 0 ;
20782 PyObject * obj1 = 0 ;
20783 PyObject * obj2 = 0 ;
20784 PyObject * obj3 = 0 ;
20785 char * kwnames[] = {
20786 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20787 };
20788
20789 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawLineList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20790 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20791 if (!SWIG_IsOK(res1)) {
20792 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawLineList" "', expected argument " "1"" of type '" "wxDC *""'");
20793 }
20794 arg1 = reinterpret_cast< wxDC * >(argp1);
20795 arg2 = obj1;
20796 arg3 = obj2;
20797 arg4 = obj3;
20798 {
20799 PyThreadState* __tstate = wxPyBeginAllowThreads();
20800 result = (PyObject *)wxDC__DrawLineList(arg1,arg2,arg3,arg4);
20801 wxPyEndAllowThreads(__tstate);
20802 if (PyErr_Occurred()) SWIG_fail;
20803 }
20804 resultobj = result;
20805 return resultobj;
20806 fail:
20807 return NULL;
20808 }
20809
20810
20811 SWIGINTERN PyObject *_wrap_DC__DrawRectangleList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20812 PyObject *resultobj = 0;
20813 wxDC *arg1 = (wxDC *) 0 ;
20814 PyObject *arg2 = (PyObject *) 0 ;
20815 PyObject *arg3 = (PyObject *) 0 ;
20816 PyObject *arg4 = (PyObject *) 0 ;
20817 PyObject *result = 0 ;
20818 void *argp1 = 0 ;
20819 int res1 = 0 ;
20820 PyObject * obj0 = 0 ;
20821 PyObject * obj1 = 0 ;
20822 PyObject * obj2 = 0 ;
20823 PyObject * obj3 = 0 ;
20824 char * kwnames[] = {
20825 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20826 };
20827
20828 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawRectangleList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20829 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20830 if (!SWIG_IsOK(res1)) {
20831 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawRectangleList" "', expected argument " "1"" of type '" "wxDC *""'");
20832 }
20833 arg1 = reinterpret_cast< wxDC * >(argp1);
20834 arg2 = obj1;
20835 arg3 = obj2;
20836 arg4 = obj3;
20837 {
20838 PyThreadState* __tstate = wxPyBeginAllowThreads();
20839 result = (PyObject *)wxDC__DrawRectangleList(arg1,arg2,arg3,arg4);
20840 wxPyEndAllowThreads(__tstate);
20841 if (PyErr_Occurred()) SWIG_fail;
20842 }
20843 resultobj = result;
20844 return resultobj;
20845 fail:
20846 return NULL;
20847 }
20848
20849
20850 SWIGINTERN PyObject *_wrap_DC__DrawEllipseList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20851 PyObject *resultobj = 0;
20852 wxDC *arg1 = (wxDC *) 0 ;
20853 PyObject *arg2 = (PyObject *) 0 ;
20854 PyObject *arg3 = (PyObject *) 0 ;
20855 PyObject *arg4 = (PyObject *) 0 ;
20856 PyObject *result = 0 ;
20857 void *argp1 = 0 ;
20858 int res1 = 0 ;
20859 PyObject * obj0 = 0 ;
20860 PyObject * obj1 = 0 ;
20861 PyObject * obj2 = 0 ;
20862 PyObject * obj3 = 0 ;
20863 char * kwnames[] = {
20864 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20865 };
20866
20867 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawEllipseList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20868 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20869 if (!SWIG_IsOK(res1)) {
20870 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawEllipseList" "', expected argument " "1"" of type '" "wxDC *""'");
20871 }
20872 arg1 = reinterpret_cast< wxDC * >(argp1);
20873 arg2 = obj1;
20874 arg3 = obj2;
20875 arg4 = obj3;
20876 {
20877 PyThreadState* __tstate = wxPyBeginAllowThreads();
20878 result = (PyObject *)wxDC__DrawEllipseList(arg1,arg2,arg3,arg4);
20879 wxPyEndAllowThreads(__tstate);
20880 if (PyErr_Occurred()) SWIG_fail;
20881 }
20882 resultobj = result;
20883 return resultobj;
20884 fail:
20885 return NULL;
20886 }
20887
20888
20889 SWIGINTERN PyObject *_wrap_DC__DrawPolygonList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20890 PyObject *resultobj = 0;
20891 wxDC *arg1 = (wxDC *) 0 ;
20892 PyObject *arg2 = (PyObject *) 0 ;
20893 PyObject *arg3 = (PyObject *) 0 ;
20894 PyObject *arg4 = (PyObject *) 0 ;
20895 PyObject *result = 0 ;
20896 void *argp1 = 0 ;
20897 int res1 = 0 ;
20898 PyObject * obj0 = 0 ;
20899 PyObject * obj1 = 0 ;
20900 PyObject * obj2 = 0 ;
20901 PyObject * obj3 = 0 ;
20902 char * kwnames[] = {
20903 (char *) "self",(char *) "pyCoords",(char *) "pyPens",(char *) "pyBrushes", NULL
20904 };
20905
20906 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DC__DrawPolygonList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
20907 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20908 if (!SWIG_IsOK(res1)) {
20909 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawPolygonList" "', expected argument " "1"" of type '" "wxDC *""'");
20910 }
20911 arg1 = reinterpret_cast< wxDC * >(argp1);
20912 arg2 = obj1;
20913 arg3 = obj2;
20914 arg4 = obj3;
20915 {
20916 PyThreadState* __tstate = wxPyBeginAllowThreads();
20917 result = (PyObject *)wxDC__DrawPolygonList(arg1,arg2,arg3,arg4);
20918 wxPyEndAllowThreads(__tstate);
20919 if (PyErr_Occurred()) SWIG_fail;
20920 }
20921 resultobj = result;
20922 return resultobj;
20923 fail:
20924 return NULL;
20925 }
20926
20927
20928 SWIGINTERN PyObject *_wrap_DC__DrawTextList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20929 PyObject *resultobj = 0;
20930 wxDC *arg1 = (wxDC *) 0 ;
20931 PyObject *arg2 = (PyObject *) 0 ;
20932 PyObject *arg3 = (PyObject *) 0 ;
20933 PyObject *arg4 = (PyObject *) 0 ;
20934 PyObject *arg5 = (PyObject *) 0 ;
20935 PyObject *result = 0 ;
20936 void *argp1 = 0 ;
20937 int res1 = 0 ;
20938 PyObject * obj0 = 0 ;
20939 PyObject * obj1 = 0 ;
20940 PyObject * obj2 = 0 ;
20941 PyObject * obj3 = 0 ;
20942 PyObject * obj4 = 0 ;
20943 char * kwnames[] = {
20944 (char *) "self",(char *) "textList",(char *) "pyPoints",(char *) "foregroundList",(char *) "backgroundList", NULL
20945 };
20946
20947 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DC__DrawTextList",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
20948 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
20949 if (!SWIG_IsOK(res1)) {
20950 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DC__DrawTextList" "', expected argument " "1"" of type '" "wxDC *""'");
20951 }
20952 arg1 = reinterpret_cast< wxDC * >(argp1);
20953 arg2 = obj1;
20954 arg3 = obj2;
20955 arg4 = obj3;
20956 arg5 = obj4;
20957 {
20958 PyThreadState* __tstate = wxPyBeginAllowThreads();
20959 result = (PyObject *)wxDC__DrawTextList(arg1,arg2,arg3,arg4,arg5);
20960 wxPyEndAllowThreads(__tstate);
20961 if (PyErr_Occurred()) SWIG_fail;
20962 }
20963 resultobj = result;
20964 return resultobj;
20965 fail:
20966 return NULL;
20967 }
20968
20969
20970 SWIGINTERN PyObject *DC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20971 PyObject *obj;
20972 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
20973 SWIG_TypeNewClientData(SWIGTYPE_p_wxDC, SWIG_NewClientData(obj));
20974 return SWIG_Py_Void();
20975 }
20976
20977 SWIGINTERN PyObject *_wrap_new_MemoryDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
20978 PyObject *resultobj = 0;
20979 wxMemoryDC *result = 0 ;
20980
20981 if (!SWIG_Python_UnpackTuple(args,"new_MemoryDC",0,0,0)) SWIG_fail;
20982 {
20983 if (!wxPyCheckForApp()) SWIG_fail;
20984 PyThreadState* __tstate = wxPyBeginAllowThreads();
20985 result = (wxMemoryDC *)new wxMemoryDC();
20986 wxPyEndAllowThreads(__tstate);
20987 if (PyErr_Occurred()) SWIG_fail;
20988 }
20989 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_NEW | 0 );
20990 return resultobj;
20991 fail:
20992 return NULL;
20993 }
20994
20995
20996 SWIGINTERN PyObject *_wrap_new_MemoryDCFromDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
20997 PyObject *resultobj = 0;
20998 wxDC *arg1 = (wxDC *) 0 ;
20999 wxMemoryDC *result = 0 ;
21000 void *argp1 = 0 ;
21001 int res1 = 0 ;
21002 PyObject * obj0 = 0 ;
21003 char * kwnames[] = {
21004 (char *) "oldDC", NULL
21005 };
21006
21007 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_MemoryDCFromDC",kwnames,&obj0)) SWIG_fail;
21008 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21009 if (!SWIG_IsOK(res1)) {
21010 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MemoryDCFromDC" "', expected argument " "1"" of type '" "wxDC *""'");
21011 }
21012 arg1 = reinterpret_cast< wxDC * >(argp1);
21013 {
21014 if (!wxPyCheckForApp()) SWIG_fail;
21015 PyThreadState* __tstate = wxPyBeginAllowThreads();
21016 result = (wxMemoryDC *)new wxMemoryDC(arg1);
21017 wxPyEndAllowThreads(__tstate);
21018 if (PyErr_Occurred()) SWIG_fail;
21019 }
21020 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMemoryDC, SWIG_POINTER_OWN | 0 );
21021 return resultobj;
21022 fail:
21023 return NULL;
21024 }
21025
21026
21027 SWIGINTERN PyObject *_wrap_MemoryDC_SelectObject(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21028 PyObject *resultobj = 0;
21029 wxMemoryDC *arg1 = (wxMemoryDC *) 0 ;
21030 wxBitmap *arg2 = 0 ;
21031 void *argp1 = 0 ;
21032 int res1 = 0 ;
21033 void *argp2 = 0 ;
21034 int res2 = 0 ;
21035 PyObject * obj0 = 0 ;
21036 PyObject * obj1 = 0 ;
21037 char * kwnames[] = {
21038 (char *) "self",(char *) "bitmap", NULL
21039 };
21040
21041 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:MemoryDC_SelectObject",kwnames,&obj0,&obj1)) SWIG_fail;
21042 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMemoryDC, 0 | 0 );
21043 if (!SWIG_IsOK(res1)) {
21044 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MemoryDC_SelectObject" "', expected argument " "1"" of type '" "wxMemoryDC *""'");
21045 }
21046 arg1 = reinterpret_cast< wxMemoryDC * >(argp1);
21047 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21048 if (!SWIG_IsOK(res2)) {
21049 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21050 }
21051 if (!argp2) {
21052 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "MemoryDC_SelectObject" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21053 }
21054 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21055 {
21056 PyThreadState* __tstate = wxPyBeginAllowThreads();
21057 (arg1)->SelectObject((wxBitmap const &)*arg2);
21058 wxPyEndAllowThreads(__tstate);
21059 if (PyErr_Occurred()) SWIG_fail;
21060 }
21061 resultobj = SWIG_Py_Void();
21062 return resultobj;
21063 fail:
21064 return NULL;
21065 }
21066
21067
21068 SWIGINTERN PyObject *MemoryDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21069 PyObject *obj;
21070 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21071 SWIG_TypeNewClientData(SWIGTYPE_p_wxMemoryDC, SWIG_NewClientData(obj));
21072 return SWIG_Py_Void();
21073 }
21074
21075 SWIGINTERN PyObject *MemoryDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21076 return SWIG_Python_InitShadowInstance(args);
21077 }
21078
21079 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_0(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21080 PyObject *resultobj = 0;
21081 wxDC *arg1 = (wxDC *) 0 ;
21082 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21083 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21084 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21085 wxBufferedDC *result = 0 ;
21086 void *argp1 = 0 ;
21087 int res1 = 0 ;
21088 void *argp2 = 0 ;
21089 int res2 = 0 ;
21090 int val3 ;
21091 int ecode3 = 0 ;
21092
21093 if ((nobjs < 1) || (nobjs > 3)) SWIG_fail;
21094 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21095 if (!SWIG_IsOK(res1)) {
21096 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21097 }
21098 arg1 = reinterpret_cast< wxDC * >(argp1);
21099 if (swig_obj[1]) {
21100 res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21101 if (!SWIG_IsOK(res2)) {
21102 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21103 }
21104 if (!argp2) {
21105 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21106 }
21107 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21108 }
21109 if (swig_obj[2]) {
21110 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21111 if (!SWIG_IsOK(ecode3)) {
21112 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21113 }
21114 arg3 = static_cast< int >(val3);
21115 }
21116 {
21117 if (!wxPyCheckForApp()) SWIG_fail;
21118 PyThreadState* __tstate = wxPyBeginAllowThreads();
21119 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxBitmap const &)*arg2,arg3);
21120 wxPyEndAllowThreads(__tstate);
21121 if (PyErr_Occurred()) SWIG_fail;
21122 }
21123 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21124 return resultobj;
21125 fail:
21126 return NULL;
21127 }
21128
21129
21130 SWIGINTERN PyObject *_wrap_new_BufferedDC__SWIG_1(PyObject *SWIGUNUSEDPARM(self), int nobjs, PyObject **swig_obj) {
21131 PyObject *resultobj = 0;
21132 wxDC *arg1 = (wxDC *) 0 ;
21133 wxSize *arg2 = 0 ;
21134 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21135 wxBufferedDC *result = 0 ;
21136 void *argp1 = 0 ;
21137 int res1 = 0 ;
21138 wxSize temp2 ;
21139 int val3 ;
21140 int ecode3 = 0 ;
21141
21142 if ((nobjs < 2) || (nobjs > 3)) SWIG_fail;
21143 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxDC, 0 | 0 );
21144 if (!SWIG_IsOK(res1)) {
21145 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedDC" "', expected argument " "1"" of type '" "wxDC *""'");
21146 }
21147 arg1 = reinterpret_cast< wxDC * >(argp1);
21148 {
21149 arg2 = &temp2;
21150 if ( ! wxSize_helper(swig_obj[1], &arg2)) SWIG_fail;
21151 }
21152 if (swig_obj[2]) {
21153 ecode3 = SWIG_AsVal_int(swig_obj[2], &val3);
21154 if (!SWIG_IsOK(ecode3)) {
21155 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedDC" "', expected argument " "3"" of type '" "int""'");
21156 }
21157 arg3 = static_cast< int >(val3);
21158 }
21159 {
21160 if (!wxPyCheckForApp()) SWIG_fail;
21161 PyThreadState* __tstate = wxPyBeginAllowThreads();
21162 result = (wxBufferedDC *)new wxBufferedDC(arg1,(wxSize const &)*arg2,arg3);
21163 wxPyEndAllowThreads(__tstate);
21164 if (PyErr_Occurred()) SWIG_fail;
21165 }
21166 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_NEW | 0 );
21167 return resultobj;
21168 fail:
21169 return NULL;
21170 }
21171
21172
21173 SWIGINTERN PyObject *_wrap_new_BufferedDC(PyObject *self, PyObject *args) {
21174 int argc;
21175 PyObject *argv[4];
21176
21177 if (!(argc = SWIG_Python_UnpackTuple(args,"new_BufferedDC",0,3,argv))) SWIG_fail;
21178 --argc;
21179 if ((argc >= 1) && (argc <= 3)) {
21180 int _v = 0;
21181 if (argc > 1) {
21182 {
21183 int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_wxBitmap, 0);
21184 _v = SWIG_CheckState(res);
21185 }
21186 if (!_v) goto check_1;
21187 }
21188 return _wrap_new_BufferedDC__SWIG_0(self, argc, argv);
21189 }
21190 check_1:
21191
21192 if ((argc >= 2) && (argc <= 3)) {
21193 return _wrap_new_BufferedDC__SWIG_1(self, argc, argv);
21194 }
21195
21196 fail:
21197 SWIG_SetErrorMsg(PyExc_NotImplementedError,"No matching function for overloaded 'new_BufferedDC'");
21198 return NULL;
21199 }
21200
21201
21202 SWIGINTERN PyObject *_wrap_delete_BufferedDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21203 PyObject *resultobj = 0;
21204 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21205 void *argp1 = 0 ;
21206 int res1 = 0 ;
21207 PyObject *swig_obj[1] ;
21208
21209 if (!args) SWIG_fail;
21210 swig_obj[0] = args;
21211 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, SWIG_POINTER_DISOWN | 0 );
21212 if (!SWIG_IsOK(res1)) {
21213 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_BufferedDC" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21214 }
21215 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21216 {
21217 PyThreadState* __tstate = wxPyBeginAllowThreads();
21218 delete arg1;
21219
21220 wxPyEndAllowThreads(__tstate);
21221 if (PyErr_Occurred()) SWIG_fail;
21222 }
21223 resultobj = SWIG_Py_Void();
21224 return resultobj;
21225 fail:
21226 return NULL;
21227 }
21228
21229
21230 SWIGINTERN PyObject *_wrap_BufferedDC_UnMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21231 PyObject *resultobj = 0;
21232 wxBufferedDC *arg1 = (wxBufferedDC *) 0 ;
21233 void *argp1 = 0 ;
21234 int res1 = 0 ;
21235 PyObject *swig_obj[1] ;
21236
21237 if (!args) SWIG_fail;
21238 swig_obj[0] = args;
21239 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxBufferedDC, 0 | 0 );
21240 if (!SWIG_IsOK(res1)) {
21241 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BufferedDC_UnMask" "', expected argument " "1"" of type '" "wxBufferedDC *""'");
21242 }
21243 arg1 = reinterpret_cast< wxBufferedDC * >(argp1);
21244 {
21245 PyThreadState* __tstate = wxPyBeginAllowThreads();
21246 (arg1)->UnMask();
21247 wxPyEndAllowThreads(__tstate);
21248 if (PyErr_Occurred()) SWIG_fail;
21249 }
21250 resultobj = SWIG_Py_Void();
21251 return resultobj;
21252 fail:
21253 return NULL;
21254 }
21255
21256
21257 SWIGINTERN PyObject *BufferedDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21258 PyObject *obj;
21259 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21260 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedDC, SWIG_NewClientData(obj));
21261 return SWIG_Py_Void();
21262 }
21263
21264 SWIGINTERN PyObject *BufferedDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21265 return SWIG_Python_InitShadowInstance(args);
21266 }
21267
21268 SWIGINTERN PyObject *_wrap_new_BufferedPaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21269 PyObject *resultobj = 0;
21270 wxWindow *arg1 = (wxWindow *) 0 ;
21271 wxBitmap const &arg2_defvalue = wxNullBitmap ;
21272 wxBitmap *arg2 = (wxBitmap *) &arg2_defvalue ;
21273 int arg3 = (int) wxBUFFER_CLIENT_AREA ;
21274 wxBufferedPaintDC *result = 0 ;
21275 void *argp1 = 0 ;
21276 int res1 = 0 ;
21277 void *argp2 = 0 ;
21278 int res2 = 0 ;
21279 int val3 ;
21280 int ecode3 = 0 ;
21281 PyObject * obj0 = 0 ;
21282 PyObject * obj1 = 0 ;
21283 PyObject * obj2 = 0 ;
21284 char * kwnames[] = {
21285 (char *) "window",(char *) "buffer",(char *) "style", NULL
21286 };
21287
21288 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:new_BufferedPaintDC",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21289 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21290 if (!SWIG_IsOK(res1)) {
21291 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_BufferedPaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21292 }
21293 arg1 = reinterpret_cast< wxWindow * >(argp1);
21294 if (obj1) {
21295 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
21296 if (!SWIG_IsOK(res2)) {
21297 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21298 }
21299 if (!argp2) {
21300 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_BufferedPaintDC" "', expected argument " "2"" of type '" "wxBitmap const &""'");
21301 }
21302 arg2 = reinterpret_cast< wxBitmap * >(argp2);
21303 }
21304 if (obj2) {
21305 ecode3 = SWIG_AsVal_int(obj2, &val3);
21306 if (!SWIG_IsOK(ecode3)) {
21307 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_BufferedPaintDC" "', expected argument " "3"" of type '" "int""'");
21308 }
21309 arg3 = static_cast< int >(val3);
21310 }
21311 {
21312 if (!wxPyCheckForApp()) SWIG_fail;
21313 PyThreadState* __tstate = wxPyBeginAllowThreads();
21314 result = (wxBufferedPaintDC *)new wxBufferedPaintDC(arg1,(wxBitmap const &)*arg2,arg3);
21315 wxPyEndAllowThreads(__tstate);
21316 if (PyErr_Occurred()) SWIG_fail;
21317 }
21318 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBufferedPaintDC, SWIG_POINTER_NEW | 0 );
21319 return resultobj;
21320 fail:
21321 return NULL;
21322 }
21323
21324
21325 SWIGINTERN PyObject *BufferedPaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21326 PyObject *obj;
21327 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21328 SWIG_TypeNewClientData(SWIGTYPE_p_wxBufferedPaintDC, SWIG_NewClientData(obj));
21329 return SWIG_Py_Void();
21330 }
21331
21332 SWIGINTERN PyObject *BufferedPaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21333 return SWIG_Python_InitShadowInstance(args);
21334 }
21335
21336 SWIGINTERN PyObject *_wrap_new_ScreenDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21337 PyObject *resultobj = 0;
21338 wxScreenDC *result = 0 ;
21339
21340 if (!SWIG_Python_UnpackTuple(args,"new_ScreenDC",0,0,0)) SWIG_fail;
21341 {
21342 if (!wxPyCheckForApp()) SWIG_fail;
21343 PyThreadState* __tstate = wxPyBeginAllowThreads();
21344 result = (wxScreenDC *)new wxScreenDC();
21345 wxPyEndAllowThreads(__tstate);
21346 if (PyErr_Occurred()) SWIG_fail;
21347 }
21348 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxScreenDC, SWIG_POINTER_NEW | 0 );
21349 return resultobj;
21350 fail:
21351 return NULL;
21352 }
21353
21354
21355 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTopWin(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21356 PyObject *resultobj = 0;
21357 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21358 wxWindow *arg2 = (wxWindow *) 0 ;
21359 bool result;
21360 void *argp1 = 0 ;
21361 int res1 = 0 ;
21362 void *argp2 = 0 ;
21363 int res2 = 0 ;
21364 PyObject * obj0 = 0 ;
21365 PyObject * obj1 = 0 ;
21366 char * kwnames[] = {
21367 (char *) "self",(char *) "window", NULL
21368 };
21369
21370 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScreenDC_StartDrawingOnTopWin",kwnames,&obj0,&obj1)) SWIG_fail;
21371 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21372 if (!SWIG_IsOK(res1)) {
21373 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21374 }
21375 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21376 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
21377 if (!SWIG_IsOK(res2)) {
21378 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTopWin" "', expected argument " "2"" of type '" "wxWindow *""'");
21379 }
21380 arg2 = reinterpret_cast< wxWindow * >(argp2);
21381 {
21382 PyThreadState* __tstate = wxPyBeginAllowThreads();
21383 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21384 wxPyEndAllowThreads(__tstate);
21385 if (PyErr_Occurred()) SWIG_fail;
21386 }
21387 {
21388 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21389 }
21390 return resultobj;
21391 fail:
21392 return NULL;
21393 }
21394
21395
21396 SWIGINTERN PyObject *_wrap_ScreenDC_StartDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21397 PyObject *resultobj = 0;
21398 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21399 wxRect *arg2 = (wxRect *) NULL ;
21400 bool result;
21401 void *argp1 = 0 ;
21402 int res1 = 0 ;
21403 void *argp2 = 0 ;
21404 int res2 = 0 ;
21405 PyObject * obj0 = 0 ;
21406 PyObject * obj1 = 0 ;
21407 char * kwnames[] = {
21408 (char *) "self",(char *) "rect", NULL
21409 };
21410
21411 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ScreenDC_StartDrawingOnTop",kwnames,&obj0,&obj1)) SWIG_fail;
21412 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21413 if (!SWIG_IsOK(res1)) {
21414 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21415 }
21416 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21417 if (obj1) {
21418 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxRect, 0 | 0 );
21419 if (!SWIG_IsOK(res2)) {
21420 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ScreenDC_StartDrawingOnTop" "', expected argument " "2"" of type '" "wxRect *""'");
21421 }
21422 arg2 = reinterpret_cast< wxRect * >(argp2);
21423 }
21424 {
21425 PyThreadState* __tstate = wxPyBeginAllowThreads();
21426 result = (bool)(arg1)->StartDrawingOnTop(arg2);
21427 wxPyEndAllowThreads(__tstate);
21428 if (PyErr_Occurred()) SWIG_fail;
21429 }
21430 {
21431 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21432 }
21433 return resultobj;
21434 fail:
21435 return NULL;
21436 }
21437
21438
21439 SWIGINTERN PyObject *_wrap_ScreenDC_EndDrawingOnTop(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21440 PyObject *resultobj = 0;
21441 wxScreenDC *arg1 = (wxScreenDC *) 0 ;
21442 bool result;
21443 void *argp1 = 0 ;
21444 int res1 = 0 ;
21445 PyObject *swig_obj[1] ;
21446
21447 if (!args) SWIG_fail;
21448 swig_obj[0] = args;
21449 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxScreenDC, 0 | 0 );
21450 if (!SWIG_IsOK(res1)) {
21451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ScreenDC_EndDrawingOnTop" "', expected argument " "1"" of type '" "wxScreenDC *""'");
21452 }
21453 arg1 = reinterpret_cast< wxScreenDC * >(argp1);
21454 {
21455 PyThreadState* __tstate = wxPyBeginAllowThreads();
21456 result = (bool)(arg1)->EndDrawingOnTop();
21457 wxPyEndAllowThreads(__tstate);
21458 if (PyErr_Occurred()) SWIG_fail;
21459 }
21460 {
21461 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21462 }
21463 return resultobj;
21464 fail:
21465 return NULL;
21466 }
21467
21468
21469 SWIGINTERN PyObject *ScreenDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21470 PyObject *obj;
21471 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21472 SWIG_TypeNewClientData(SWIGTYPE_p_wxScreenDC, SWIG_NewClientData(obj));
21473 return SWIG_Py_Void();
21474 }
21475
21476 SWIGINTERN PyObject *ScreenDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21477 return SWIG_Python_InitShadowInstance(args);
21478 }
21479
21480 SWIGINTERN PyObject *_wrap_new_ClientDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21481 PyObject *resultobj = 0;
21482 wxWindow *arg1 = (wxWindow *) 0 ;
21483 wxClientDC *result = 0 ;
21484 void *argp1 = 0 ;
21485 int res1 = 0 ;
21486 PyObject * obj0 = 0 ;
21487 char * kwnames[] = {
21488 (char *) "win", NULL
21489 };
21490
21491 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_ClientDC",kwnames,&obj0)) SWIG_fail;
21492 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21493 if (!SWIG_IsOK(res1)) {
21494 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ClientDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21495 }
21496 arg1 = reinterpret_cast< wxWindow * >(argp1);
21497 {
21498 if (!wxPyCheckForApp()) SWIG_fail;
21499 PyThreadState* __tstate = wxPyBeginAllowThreads();
21500 result = (wxClientDC *)new wxClientDC(arg1);
21501 wxPyEndAllowThreads(__tstate);
21502 if (PyErr_Occurred()) SWIG_fail;
21503 }
21504 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxClientDC, SWIG_POINTER_NEW | 0 );
21505 return resultobj;
21506 fail:
21507 return NULL;
21508 }
21509
21510
21511 SWIGINTERN PyObject *ClientDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21512 PyObject *obj;
21513 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21514 SWIG_TypeNewClientData(SWIGTYPE_p_wxClientDC, SWIG_NewClientData(obj));
21515 return SWIG_Py_Void();
21516 }
21517
21518 SWIGINTERN PyObject *ClientDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21519 return SWIG_Python_InitShadowInstance(args);
21520 }
21521
21522 SWIGINTERN PyObject *_wrap_new_PaintDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21523 PyObject *resultobj = 0;
21524 wxWindow *arg1 = (wxWindow *) 0 ;
21525 wxPaintDC *result = 0 ;
21526 void *argp1 = 0 ;
21527 int res1 = 0 ;
21528 PyObject * obj0 = 0 ;
21529 char * kwnames[] = {
21530 (char *) "win", NULL
21531 };
21532
21533 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PaintDC",kwnames,&obj0)) SWIG_fail;
21534 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21535 if (!SWIG_IsOK(res1)) {
21536 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PaintDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21537 }
21538 arg1 = reinterpret_cast< wxWindow * >(argp1);
21539 {
21540 if (!wxPyCheckForApp()) SWIG_fail;
21541 PyThreadState* __tstate = wxPyBeginAllowThreads();
21542 result = (wxPaintDC *)new wxPaintDC(arg1);
21543 wxPyEndAllowThreads(__tstate);
21544 if (PyErr_Occurred()) SWIG_fail;
21545 }
21546 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPaintDC, SWIG_POINTER_NEW | 0 );
21547 return resultobj;
21548 fail:
21549 return NULL;
21550 }
21551
21552
21553 SWIGINTERN PyObject *PaintDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21554 PyObject *obj;
21555 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21556 SWIG_TypeNewClientData(SWIGTYPE_p_wxPaintDC, SWIG_NewClientData(obj));
21557 return SWIG_Py_Void();
21558 }
21559
21560 SWIGINTERN PyObject *PaintDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21561 return SWIG_Python_InitShadowInstance(args);
21562 }
21563
21564 SWIGINTERN PyObject *_wrap_new_WindowDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21565 PyObject *resultobj = 0;
21566 wxWindow *arg1 = (wxWindow *) 0 ;
21567 wxWindowDC *result = 0 ;
21568 void *argp1 = 0 ;
21569 int res1 = 0 ;
21570 PyObject * obj0 = 0 ;
21571 char * kwnames[] = {
21572 (char *) "win", NULL
21573 };
21574
21575 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_WindowDC",kwnames,&obj0)) SWIG_fail;
21576 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxWindow, 0 | 0 );
21577 if (!SWIG_IsOK(res1)) {
21578 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_WindowDC" "', expected argument " "1"" of type '" "wxWindow *""'");
21579 }
21580 arg1 = reinterpret_cast< wxWindow * >(argp1);
21581 {
21582 if (!wxPyCheckForApp()) SWIG_fail;
21583 PyThreadState* __tstate = wxPyBeginAllowThreads();
21584 result = (wxWindowDC *)new wxWindowDC(arg1);
21585 wxPyEndAllowThreads(__tstate);
21586 if (PyErr_Occurred()) SWIG_fail;
21587 }
21588 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxWindowDC, SWIG_POINTER_NEW | 0 );
21589 return resultobj;
21590 fail:
21591 return NULL;
21592 }
21593
21594
21595 SWIGINTERN PyObject *WindowDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21596 PyObject *obj;
21597 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21598 SWIG_TypeNewClientData(SWIGTYPE_p_wxWindowDC, SWIG_NewClientData(obj));
21599 return SWIG_Py_Void();
21600 }
21601
21602 SWIGINTERN PyObject *WindowDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21603 return SWIG_Python_InitShadowInstance(args);
21604 }
21605
21606 SWIGINTERN PyObject *_wrap_new_MirrorDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21607 PyObject *resultobj = 0;
21608 wxDC *arg1 = 0 ;
21609 bool arg2 ;
21610 wxMirrorDC *result = 0 ;
21611 void *argp1 = 0 ;
21612 int res1 = 0 ;
21613 bool val2 ;
21614 int ecode2 = 0 ;
21615 PyObject * obj0 = 0 ;
21616 PyObject * obj1 = 0 ;
21617 char * kwnames[] = {
21618 (char *) "dc",(char *) "mirror", NULL
21619 };
21620
21621 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_MirrorDC",kwnames,&obj0,&obj1)) SWIG_fail;
21622 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxDC, 0 );
21623 if (!SWIG_IsOK(res1)) {
21624 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21625 }
21626 if (!argp1) {
21627 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_MirrorDC" "', expected argument " "1"" of type '" "wxDC &""'");
21628 }
21629 arg1 = reinterpret_cast< wxDC * >(argp1);
21630 ecode2 = SWIG_AsVal_bool(obj1, &val2);
21631 if (!SWIG_IsOK(ecode2)) {
21632 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MirrorDC" "', expected argument " "2"" of type '" "bool""'");
21633 }
21634 arg2 = static_cast< bool >(val2);
21635 {
21636 if (!wxPyCheckForApp()) SWIG_fail;
21637 PyThreadState* __tstate = wxPyBeginAllowThreads();
21638 result = (wxMirrorDC *)new wxMirrorDC(*arg1,arg2);
21639 wxPyEndAllowThreads(__tstate);
21640 if (PyErr_Occurred()) SWIG_fail;
21641 }
21642 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMirrorDC, SWIG_POINTER_NEW | 0 );
21643 return resultobj;
21644 fail:
21645 return NULL;
21646 }
21647
21648
21649 SWIGINTERN PyObject *MirrorDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21650 PyObject *obj;
21651 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21652 SWIG_TypeNewClientData(SWIGTYPE_p_wxMirrorDC, SWIG_NewClientData(obj));
21653 return SWIG_Py_Void();
21654 }
21655
21656 SWIGINTERN PyObject *MirrorDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21657 return SWIG_Python_InitShadowInstance(args);
21658 }
21659
21660 SWIGINTERN PyObject *_wrap_new_PostScriptDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21661 PyObject *resultobj = 0;
21662 wxPrintData *arg1 = 0 ;
21663 wxPostScriptDC *result = 0 ;
21664 void *argp1 = 0 ;
21665 int res1 = 0 ;
21666 PyObject * obj0 = 0 ;
21667 char * kwnames[] = {
21668 (char *) "printData", NULL
21669 };
21670
21671 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PostScriptDC",kwnames,&obj0)) SWIG_fail;
21672 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
21673 if (!SWIG_IsOK(res1)) {
21674 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21675 }
21676 if (!argp1) {
21677 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PostScriptDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
21678 }
21679 arg1 = reinterpret_cast< wxPrintData * >(argp1);
21680 {
21681 if (!wxPyCheckForApp()) SWIG_fail;
21682 PyThreadState* __tstate = wxPyBeginAllowThreads();
21683 result = (wxPostScriptDC *)new wxPostScriptDC((wxPrintData const &)*arg1);
21684 wxPyEndAllowThreads(__tstate);
21685 if (PyErr_Occurred()) SWIG_fail;
21686 }
21687 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPostScriptDC, SWIG_POINTER_NEW | 0 );
21688 return resultobj;
21689 fail:
21690 return NULL;
21691 }
21692
21693
21694 SWIGINTERN PyObject *_wrap_PostScriptDC_GetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21695 PyObject *resultobj = 0;
21696 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21697 wxPrintData *result = 0 ;
21698 void *argp1 = 0 ;
21699 int res1 = 0 ;
21700 PyObject *swig_obj[1] ;
21701
21702 if (!args) SWIG_fail;
21703 swig_obj[0] = args;
21704 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21705 if (!SWIG_IsOK(res1)) {
21706 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_GetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21707 }
21708 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21709 {
21710 PyThreadState* __tstate = wxPyBeginAllowThreads();
21711 {
21712 wxPrintData &_result_ref = (arg1)->GetPrintData();
21713 result = (wxPrintData *) &_result_ref;
21714 }
21715 wxPyEndAllowThreads(__tstate);
21716 if (PyErr_Occurred()) SWIG_fail;
21717 }
21718 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrintData, 0 | 0 );
21719 return resultobj;
21720 fail:
21721 return NULL;
21722 }
21723
21724
21725 SWIGINTERN PyObject *_wrap_PostScriptDC_SetPrintData(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21726 PyObject *resultobj = 0;
21727 wxPostScriptDC *arg1 = (wxPostScriptDC *) 0 ;
21728 wxPrintData *arg2 = 0 ;
21729 void *argp1 = 0 ;
21730 int res1 = 0 ;
21731 void *argp2 = 0 ;
21732 int res2 = 0 ;
21733 PyObject * obj0 = 0 ;
21734 PyObject * obj1 = 0 ;
21735 char * kwnames[] = {
21736 (char *) "self",(char *) "data", NULL
21737 };
21738
21739 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PostScriptDC_SetPrintData",kwnames,&obj0,&obj1)) SWIG_fail;
21740 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPostScriptDC, 0 | 0 );
21741 if (!SWIG_IsOK(res1)) {
21742 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "1"" of type '" "wxPostScriptDC *""'");
21743 }
21744 arg1 = reinterpret_cast< wxPostScriptDC * >(argp1);
21745 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxPrintData, 0 | 0);
21746 if (!SWIG_IsOK(res2)) {
21747 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21748 }
21749 if (!argp2) {
21750 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "PostScriptDC_SetPrintData" "', expected argument " "2"" of type '" "wxPrintData const &""'");
21751 }
21752 arg2 = reinterpret_cast< wxPrintData * >(argp2);
21753 {
21754 PyThreadState* __tstate = wxPyBeginAllowThreads();
21755 (arg1)->SetPrintData((wxPrintData const &)*arg2);
21756 wxPyEndAllowThreads(__tstate);
21757 if (PyErr_Occurred()) SWIG_fail;
21758 }
21759 resultobj = SWIG_Py_Void();
21760 return resultobj;
21761 fail:
21762 return NULL;
21763 }
21764
21765
21766 SWIGINTERN PyObject *_wrap_PostScriptDC_SetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21767 PyObject *resultobj = 0;
21768 int arg1 ;
21769 int val1 ;
21770 int ecode1 = 0 ;
21771 PyObject * obj0 = 0 ;
21772 char * kwnames[] = {
21773 (char *) "ppi", NULL
21774 };
21775
21776 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PostScriptDC_SetResolution",kwnames,&obj0)) SWIG_fail;
21777 ecode1 = SWIG_AsVal_int(obj0, &val1);
21778 if (!SWIG_IsOK(ecode1)) {
21779 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "PostScriptDC_SetResolution" "', expected argument " "1"" of type '" "int""'");
21780 }
21781 arg1 = static_cast< int >(val1);
21782 {
21783 PyThreadState* __tstate = wxPyBeginAllowThreads();
21784 wxPostScriptDC::SetResolution(arg1);
21785 wxPyEndAllowThreads(__tstate);
21786 if (PyErr_Occurred()) SWIG_fail;
21787 }
21788 resultobj = SWIG_Py_Void();
21789 return resultobj;
21790 fail:
21791 return NULL;
21792 }
21793
21794
21795 SWIGINTERN PyObject *_wrap_PostScriptDC_GetResolution(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21796 PyObject *resultobj = 0;
21797 int result;
21798
21799 if (!SWIG_Python_UnpackTuple(args,"PostScriptDC_GetResolution",0,0,0)) SWIG_fail;
21800 {
21801 PyThreadState* __tstate = wxPyBeginAllowThreads();
21802 result = (int)wxPostScriptDC::GetResolution();
21803 wxPyEndAllowThreads(__tstate);
21804 if (PyErr_Occurred()) SWIG_fail;
21805 }
21806 resultobj = SWIG_From_int(static_cast< int >(result));
21807 return resultobj;
21808 fail:
21809 return NULL;
21810 }
21811
21812
21813 SWIGINTERN PyObject *PostScriptDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21814 PyObject *obj;
21815 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
21816 SWIG_TypeNewClientData(SWIGTYPE_p_wxPostScriptDC, SWIG_NewClientData(obj));
21817 return SWIG_Py_Void();
21818 }
21819
21820 SWIGINTERN PyObject *PostScriptDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21821 return SWIG_Python_InitShadowInstance(args);
21822 }
21823
21824 SWIGINTERN PyObject *_wrap_new_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21825 PyObject *resultobj = 0;
21826 wxString const &arg1_defvalue = wxPyEmptyString ;
21827 wxString *arg1 = (wxString *) &arg1_defvalue ;
21828 wxMetaFile *result = 0 ;
21829 bool temp1 = false ;
21830 PyObject * obj0 = 0 ;
21831 char * kwnames[] = {
21832 (char *) "filename", NULL
21833 };
21834
21835 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_MetaFile",kwnames,&obj0)) SWIG_fail;
21836 if (obj0) {
21837 {
21838 arg1 = wxString_in_helper(obj0);
21839 if (arg1 == NULL) SWIG_fail;
21840 temp1 = true;
21841 }
21842 }
21843 {
21844 if (!wxPyCheckForApp()) SWIG_fail;
21845 PyThreadState* __tstate = wxPyBeginAllowThreads();
21846 result = (wxMetaFile *)new wxMetaFile((wxString const &)*arg1);
21847 wxPyEndAllowThreads(__tstate);
21848 if (PyErr_Occurred()) SWIG_fail;
21849 }
21850 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, SWIG_POINTER_NEW | 0 );
21851 {
21852 if (temp1)
21853 delete arg1;
21854 }
21855 return resultobj;
21856 fail:
21857 {
21858 if (temp1)
21859 delete arg1;
21860 }
21861 return NULL;
21862 }
21863
21864
21865 SWIGINTERN PyObject *_wrap_delete_MetaFile(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21866 PyObject *resultobj = 0;
21867 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21868 void *argp1 = 0 ;
21869 int res1 = 0 ;
21870 PyObject *swig_obj[1] ;
21871
21872 if (!args) SWIG_fail;
21873 swig_obj[0] = args;
21874 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, SWIG_POINTER_DISOWN | 0 );
21875 if (!SWIG_IsOK(res1)) {
21876 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_MetaFile" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21877 }
21878 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21879 {
21880 PyThreadState* __tstate = wxPyBeginAllowThreads();
21881 delete arg1;
21882
21883 wxPyEndAllowThreads(__tstate);
21884 if (PyErr_Occurred()) SWIG_fail;
21885 }
21886 resultobj = SWIG_Py_Void();
21887 return resultobj;
21888 fail:
21889 return NULL;
21890 }
21891
21892
21893 SWIGINTERN PyObject *_wrap_MetaFile_Ok(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21894 PyObject *resultobj = 0;
21895 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21896 bool result;
21897 void *argp1 = 0 ;
21898 int res1 = 0 ;
21899 PyObject *swig_obj[1] ;
21900
21901 if (!args) SWIG_fail;
21902 swig_obj[0] = args;
21903 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21904 if (!SWIG_IsOK(res1)) {
21905 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_Ok" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21906 }
21907 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21908 {
21909 PyThreadState* __tstate = wxPyBeginAllowThreads();
21910 result = (bool)(arg1)->Ok();
21911 wxPyEndAllowThreads(__tstate);
21912 if (PyErr_Occurred()) SWIG_fail;
21913 }
21914 {
21915 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21916 }
21917 return resultobj;
21918 fail:
21919 return NULL;
21920 }
21921
21922
21923 SWIGINTERN PyObject *_wrap_MetaFile_SetClipboard(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
21924 PyObject *resultobj = 0;
21925 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21926 int arg2 = (int) 0 ;
21927 int arg3 = (int) 0 ;
21928 bool result;
21929 void *argp1 = 0 ;
21930 int res1 = 0 ;
21931 int val2 ;
21932 int ecode2 = 0 ;
21933 int val3 ;
21934 int ecode3 = 0 ;
21935 PyObject * obj0 = 0 ;
21936 PyObject * obj1 = 0 ;
21937 PyObject * obj2 = 0 ;
21938 char * kwnames[] = {
21939 (char *) "self",(char *) "width",(char *) "height", NULL
21940 };
21941
21942 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OO:MetaFile_SetClipboard",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
21943 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21944 if (!SWIG_IsOK(res1)) {
21945 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_SetClipboard" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21946 }
21947 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21948 if (obj1) {
21949 ecode2 = SWIG_AsVal_int(obj1, &val2);
21950 if (!SWIG_IsOK(ecode2)) {
21951 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "MetaFile_SetClipboard" "', expected argument " "2"" of type '" "int""'");
21952 }
21953 arg2 = static_cast< int >(val2);
21954 }
21955 if (obj2) {
21956 ecode3 = SWIG_AsVal_int(obj2, &val3);
21957 if (!SWIG_IsOK(ecode3)) {
21958 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "MetaFile_SetClipboard" "', expected argument " "3"" of type '" "int""'");
21959 }
21960 arg3 = static_cast< int >(val3);
21961 }
21962 {
21963 PyThreadState* __tstate = wxPyBeginAllowThreads();
21964 result = (bool)(arg1)->SetClipboard(arg2,arg3);
21965 wxPyEndAllowThreads(__tstate);
21966 if (PyErr_Occurred()) SWIG_fail;
21967 }
21968 {
21969 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
21970 }
21971 return resultobj;
21972 fail:
21973 return NULL;
21974 }
21975
21976
21977 SWIGINTERN PyObject *_wrap_MetaFile_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
21978 PyObject *resultobj = 0;
21979 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
21980 wxSize result;
21981 void *argp1 = 0 ;
21982 int res1 = 0 ;
21983 PyObject *swig_obj[1] ;
21984
21985 if (!args) SWIG_fail;
21986 swig_obj[0] = args;
21987 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
21988 if (!SWIG_IsOK(res1)) {
21989 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetSize" "', expected argument " "1"" of type '" "wxMetaFile *""'");
21990 }
21991 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
21992 {
21993 PyThreadState* __tstate = wxPyBeginAllowThreads();
21994 result = (arg1)->GetSize();
21995 wxPyEndAllowThreads(__tstate);
21996 if (PyErr_Occurred()) SWIG_fail;
21997 }
21998 resultobj = SWIG_NewPointerObj((new wxSize(static_cast< const wxSize& >(result))), SWIGTYPE_p_wxSize, SWIG_POINTER_OWN | 0 );
21999 return resultobj;
22000 fail:
22001 return NULL;
22002 }
22003
22004
22005 SWIGINTERN PyObject *_wrap_MetaFile_GetWidth(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22006 PyObject *resultobj = 0;
22007 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22008 int result;
22009 void *argp1 = 0 ;
22010 int res1 = 0 ;
22011 PyObject *swig_obj[1] ;
22012
22013 if (!args) SWIG_fail;
22014 swig_obj[0] = args;
22015 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22016 if (!SWIG_IsOK(res1)) {
22017 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetWidth" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22018 }
22019 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22020 {
22021 PyThreadState* __tstate = wxPyBeginAllowThreads();
22022 result = (int)(arg1)->GetWidth();
22023 wxPyEndAllowThreads(__tstate);
22024 if (PyErr_Occurred()) SWIG_fail;
22025 }
22026 resultobj = SWIG_From_int(static_cast< int >(result));
22027 return resultobj;
22028 fail:
22029 return NULL;
22030 }
22031
22032
22033 SWIGINTERN PyObject *_wrap_MetaFile_GetHeight(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22034 PyObject *resultobj = 0;
22035 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22036 int result;
22037 void *argp1 = 0 ;
22038 int res1 = 0 ;
22039 PyObject *swig_obj[1] ;
22040
22041 if (!args) SWIG_fail;
22042 swig_obj[0] = args;
22043 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22044 if (!SWIG_IsOK(res1)) {
22045 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetHeight" "', expected argument " "1"" of type '" "wxMetaFile *""'");
22046 }
22047 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22048 {
22049 PyThreadState* __tstate = wxPyBeginAllowThreads();
22050 result = (int)(arg1)->GetHeight();
22051 wxPyEndAllowThreads(__tstate);
22052 if (PyErr_Occurred()) SWIG_fail;
22053 }
22054 resultobj = SWIG_From_int(static_cast< int >(result));
22055 return resultobj;
22056 fail:
22057 return NULL;
22058 }
22059
22060
22061 SWIGINTERN PyObject *_wrap_MetaFile_GetFileName(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22062 PyObject *resultobj = 0;
22063 wxMetaFile *arg1 = (wxMetaFile *) 0 ;
22064 wxString *result = 0 ;
22065 void *argp1 = 0 ;
22066 int res1 = 0 ;
22067 PyObject *swig_obj[1] ;
22068
22069 if (!args) SWIG_fail;
22070 swig_obj[0] = args;
22071 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFile, 0 | 0 );
22072 if (!SWIG_IsOK(res1)) {
22073 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFile_GetFileName" "', expected argument " "1"" of type '" "wxMetaFile const *""'");
22074 }
22075 arg1 = reinterpret_cast< wxMetaFile * >(argp1);
22076 {
22077 PyThreadState* __tstate = wxPyBeginAllowThreads();
22078 {
22079 wxString const &_result_ref = ((wxMetaFile const *)arg1)->GetFileName();
22080 result = (wxString *) &_result_ref;
22081 }
22082 wxPyEndAllowThreads(__tstate);
22083 if (PyErr_Occurred()) SWIG_fail;
22084 }
22085 {
22086 #if wxUSE_UNICODE
22087 resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len());
22088 #else
22089 resultobj = PyString_FromStringAndSize(result->c_str(), result->Len());
22090 #endif
22091 }
22092 return resultobj;
22093 fail:
22094 return NULL;
22095 }
22096
22097
22098 SWIGINTERN PyObject *MetaFile_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22099 PyObject *obj;
22100 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22101 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFile, SWIG_NewClientData(obj));
22102 return SWIG_Py_Void();
22103 }
22104
22105 SWIGINTERN PyObject *MetaFile_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22106 return SWIG_Python_InitShadowInstance(args);
22107 }
22108
22109 SWIGINTERN PyObject *_wrap_new_MetaFileDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22110 PyObject *resultobj = 0;
22111 wxString const &arg1_defvalue = wxPyEmptyString ;
22112 wxString *arg1 = (wxString *) &arg1_defvalue ;
22113 int arg2 = (int) 0 ;
22114 int arg3 = (int) 0 ;
22115 wxString const &arg4_defvalue = wxPyEmptyString ;
22116 wxString *arg4 = (wxString *) &arg4_defvalue ;
22117 wxMetaFileDC *result = 0 ;
22118 bool temp1 = false ;
22119 int val2 ;
22120 int ecode2 = 0 ;
22121 int val3 ;
22122 int ecode3 = 0 ;
22123 bool temp4 = false ;
22124 PyObject * obj0 = 0 ;
22125 PyObject * obj1 = 0 ;
22126 PyObject * obj2 = 0 ;
22127 PyObject * obj3 = 0 ;
22128 char * kwnames[] = {
22129 (char *) "filename",(char *) "width",(char *) "height",(char *) "description", NULL
22130 };
22131
22132 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_MetaFileDC",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22133 if (obj0) {
22134 {
22135 arg1 = wxString_in_helper(obj0);
22136 if (arg1 == NULL) SWIG_fail;
22137 temp1 = true;
22138 }
22139 }
22140 if (obj1) {
22141 ecode2 = SWIG_AsVal_int(obj1, &val2);
22142 if (!SWIG_IsOK(ecode2)) {
22143 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_MetaFileDC" "', expected argument " "2"" of type '" "int""'");
22144 }
22145 arg2 = static_cast< int >(val2);
22146 }
22147 if (obj2) {
22148 ecode3 = SWIG_AsVal_int(obj2, &val3);
22149 if (!SWIG_IsOK(ecode3)) {
22150 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_MetaFileDC" "', expected argument " "3"" of type '" "int""'");
22151 }
22152 arg3 = static_cast< int >(val3);
22153 }
22154 if (obj3) {
22155 {
22156 arg4 = wxString_in_helper(obj3);
22157 if (arg4 == NULL) SWIG_fail;
22158 temp4 = true;
22159 }
22160 }
22161 {
22162 if (!wxPyCheckForApp()) SWIG_fail;
22163 PyThreadState* __tstate = wxPyBeginAllowThreads();
22164 result = (wxMetaFileDC *)new wxMetaFileDC((wxString const &)*arg1,arg2,arg3,(wxString const &)*arg4);
22165 wxPyEndAllowThreads(__tstate);
22166 if (PyErr_Occurred()) SWIG_fail;
22167 }
22168 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFileDC, SWIG_POINTER_NEW | 0 );
22169 {
22170 if (temp1)
22171 delete arg1;
22172 }
22173 {
22174 if (temp4)
22175 delete arg4;
22176 }
22177 return resultobj;
22178 fail:
22179 {
22180 if (temp1)
22181 delete arg1;
22182 }
22183 {
22184 if (temp4)
22185 delete arg4;
22186 }
22187 return NULL;
22188 }
22189
22190
22191 SWIGINTERN PyObject *_wrap_MetaFileDC_Close(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22192 PyObject *resultobj = 0;
22193 wxMetaFileDC *arg1 = (wxMetaFileDC *) 0 ;
22194 wxMetaFile *result = 0 ;
22195 void *argp1 = 0 ;
22196 int res1 = 0 ;
22197 PyObject *swig_obj[1] ;
22198
22199 if (!args) SWIG_fail;
22200 swig_obj[0] = args;
22201 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxMetaFileDC, 0 | 0 );
22202 if (!SWIG_IsOK(res1)) {
22203 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "MetaFileDC_Close" "', expected argument " "1"" of type '" "wxMetaFileDC *""'");
22204 }
22205 arg1 = reinterpret_cast< wxMetaFileDC * >(argp1);
22206 {
22207 PyThreadState* __tstate = wxPyBeginAllowThreads();
22208 result = (wxMetaFile *)(arg1)->Close();
22209 wxPyEndAllowThreads(__tstate);
22210 if (PyErr_Occurred()) SWIG_fail;
22211 }
22212 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxMetaFile, 0 | 0 );
22213 return resultobj;
22214 fail:
22215 return NULL;
22216 }
22217
22218
22219 SWIGINTERN PyObject *MetaFileDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22220 PyObject *obj;
22221 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22222 SWIG_TypeNewClientData(SWIGTYPE_p_wxMetaFileDC, SWIG_NewClientData(obj));
22223 return SWIG_Py_Void();
22224 }
22225
22226 SWIGINTERN PyObject *MetaFileDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22227 return SWIG_Python_InitShadowInstance(args);
22228 }
22229
22230 SWIGINTERN PyObject *_wrap_new_PrinterDC(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22231 PyObject *resultobj = 0;
22232 wxPrintData *arg1 = 0 ;
22233 wxPrinterDC *result = 0 ;
22234 void *argp1 = 0 ;
22235 int res1 = 0 ;
22236 PyObject * obj0 = 0 ;
22237 char * kwnames[] = {
22238 (char *) "printData", NULL
22239 };
22240
22241 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_PrinterDC",kwnames,&obj0)) SWIG_fail;
22242 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxPrintData, 0 | 0);
22243 if (!SWIG_IsOK(res1)) {
22244 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22245 }
22246 if (!argp1) {
22247 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "new_PrinterDC" "', expected argument " "1"" of type '" "wxPrintData const &""'");
22248 }
22249 arg1 = reinterpret_cast< wxPrintData * >(argp1);
22250 {
22251 if (!wxPyCheckForApp()) SWIG_fail;
22252 PyThreadState* __tstate = wxPyBeginAllowThreads();
22253 result = (wxPrinterDC *)new wxPrinterDC((wxPrintData const &)*arg1);
22254 wxPyEndAllowThreads(__tstate);
22255 if (PyErr_Occurred()) SWIG_fail;
22256 }
22257 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPrinterDC, SWIG_POINTER_NEW | 0 );
22258 return resultobj;
22259 fail:
22260 return NULL;
22261 }
22262
22263
22264 SWIGINTERN PyObject *PrinterDC_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22265 PyObject *obj;
22266 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22267 SWIG_TypeNewClientData(SWIGTYPE_p_wxPrinterDC, SWIG_NewClientData(obj));
22268 return SWIG_Py_Void();
22269 }
22270
22271 SWIGINTERN PyObject *PrinterDC_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22272 return SWIG_Python_InitShadowInstance(args);
22273 }
22274
22275 SWIGINTERN PyObject *_wrap_new_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22276 PyObject *resultobj = 0;
22277 int arg1 ;
22278 int arg2 ;
22279 int arg3 = (int) true ;
22280 int arg4 = (int) 1 ;
22281 wxImageList *result = 0 ;
22282 int val1 ;
22283 int ecode1 = 0 ;
22284 int val2 ;
22285 int ecode2 = 0 ;
22286 int val3 ;
22287 int ecode3 = 0 ;
22288 int val4 ;
22289 int ecode4 = 0 ;
22290 PyObject * obj0 = 0 ;
22291 PyObject * obj1 = 0 ;
22292 PyObject * obj2 = 0 ;
22293 PyObject * obj3 = 0 ;
22294 char * kwnames[] = {
22295 (char *) "width",(char *) "height",(char *) "mask",(char *) "initialCount", NULL
22296 };
22297
22298 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:new_ImageList",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22299 ecode1 = SWIG_AsVal_int(obj0, &val1);
22300 if (!SWIG_IsOK(ecode1)) {
22301 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ImageList" "', expected argument " "1"" of type '" "int""'");
22302 }
22303 arg1 = static_cast< int >(val1);
22304 ecode2 = SWIG_AsVal_int(obj1, &val2);
22305 if (!SWIG_IsOK(ecode2)) {
22306 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_ImageList" "', expected argument " "2"" of type '" "int""'");
22307 }
22308 arg2 = static_cast< int >(val2);
22309 if (obj2) {
22310 ecode3 = SWIG_AsVal_int(obj2, &val3);
22311 if (!SWIG_IsOK(ecode3)) {
22312 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_ImageList" "', expected argument " "3"" of type '" "int""'");
22313 }
22314 arg3 = static_cast< int >(val3);
22315 }
22316 if (obj3) {
22317 ecode4 = SWIG_AsVal_int(obj3, &val4);
22318 if (!SWIG_IsOK(ecode4)) {
22319 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "new_ImageList" "', expected argument " "4"" of type '" "int""'");
22320 }
22321 arg4 = static_cast< int >(val4);
22322 }
22323 {
22324 if (!wxPyCheckForApp()) SWIG_fail;
22325 PyThreadState* __tstate = wxPyBeginAllowThreads();
22326 result = (wxImageList *)new wxImageList(arg1,arg2,arg3,arg4);
22327 wxPyEndAllowThreads(__tstate);
22328 if (PyErr_Occurred()) SWIG_fail;
22329 }
22330 {
22331 resultobj = wxPyMake_wxObject(result, (bool)SWIG_POINTER_NEW);
22332 }
22333 return resultobj;
22334 fail:
22335 return NULL;
22336 }
22337
22338
22339 SWIGINTERN PyObject *_wrap_delete_ImageList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22340 PyObject *resultobj = 0;
22341 wxImageList *arg1 = (wxImageList *) 0 ;
22342 void *argp1 = 0 ;
22343 int res1 = 0 ;
22344 PyObject *swig_obj[1] ;
22345
22346 if (!args) SWIG_fail;
22347 swig_obj[0] = args;
22348 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, SWIG_POINTER_DISOWN | 0 );
22349 if (!SWIG_IsOK(res1)) {
22350 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImageList" "', expected argument " "1"" of type '" "wxImageList *""'");
22351 }
22352 arg1 = reinterpret_cast< wxImageList * >(argp1);
22353 {
22354 PyThreadState* __tstate = wxPyBeginAllowThreads();
22355 delete arg1;
22356
22357 wxPyEndAllowThreads(__tstate);
22358 if (PyErr_Occurred()) SWIG_fail;
22359 }
22360 resultobj = SWIG_Py_Void();
22361 return resultobj;
22362 fail:
22363 return NULL;
22364 }
22365
22366
22367 SWIGINTERN PyObject *_wrap_ImageList_Add(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22368 PyObject *resultobj = 0;
22369 wxImageList *arg1 = (wxImageList *) 0 ;
22370 wxBitmap *arg2 = 0 ;
22371 wxBitmap const &arg3_defvalue = wxNullBitmap ;
22372 wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ;
22373 int result;
22374 void *argp1 = 0 ;
22375 int res1 = 0 ;
22376 void *argp2 = 0 ;
22377 int res2 = 0 ;
22378 void *argp3 = 0 ;
22379 int res3 = 0 ;
22380 PyObject * obj0 = 0 ;
22381 PyObject * obj1 = 0 ;
22382 PyObject * obj2 = 0 ;
22383 char * kwnames[] = {
22384 (char *) "self",(char *) "bitmap",(char *) "mask", NULL
22385 };
22386
22387 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ImageList_Add",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22388 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22389 if (!SWIG_IsOK(res1)) {
22390 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Add" "', expected argument " "1"" of type '" "wxImageList *""'");
22391 }
22392 arg1 = reinterpret_cast< wxImageList * >(argp1);
22393 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22394 if (!SWIG_IsOK(res2)) {
22395 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22396 }
22397 if (!argp2) {
22398 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22399 }
22400 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22401 if (obj2) {
22402 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22403 if (!SWIG_IsOK(res3)) {
22404 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22405 }
22406 if (!argp3) {
22407 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Add" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22408 }
22409 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22410 }
22411 {
22412 PyThreadState* __tstate = wxPyBeginAllowThreads();
22413 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxBitmap const &)*arg3);
22414 wxPyEndAllowThreads(__tstate);
22415 if (PyErr_Occurred()) SWIG_fail;
22416 }
22417 resultobj = SWIG_From_int(static_cast< int >(result));
22418 return resultobj;
22419 fail:
22420 return NULL;
22421 }
22422
22423
22424 SWIGINTERN PyObject *_wrap_ImageList_AddWithColourMask(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22425 PyObject *resultobj = 0;
22426 wxImageList *arg1 = (wxImageList *) 0 ;
22427 wxBitmap *arg2 = 0 ;
22428 wxColour *arg3 = 0 ;
22429 int result;
22430 void *argp1 = 0 ;
22431 int res1 = 0 ;
22432 void *argp2 = 0 ;
22433 int res2 = 0 ;
22434 wxColour temp3 ;
22435 PyObject * obj0 = 0 ;
22436 PyObject * obj1 = 0 ;
22437 PyObject * obj2 = 0 ;
22438 char * kwnames[] = {
22439 (char *) "self",(char *) "bitmap",(char *) "maskColour", NULL
22440 };
22441
22442 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ImageList_AddWithColourMask",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
22443 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22444 if (!SWIG_IsOK(res1)) {
22445 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddWithColourMask" "', expected argument " "1"" of type '" "wxImageList *""'");
22446 }
22447 arg1 = reinterpret_cast< wxImageList * >(argp1);
22448 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxBitmap, 0 | 0);
22449 if (!SWIG_IsOK(res2)) {
22450 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22451 }
22452 if (!argp2) {
22453 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddWithColourMask" "', expected argument " "2"" of type '" "wxBitmap const &""'");
22454 }
22455 arg2 = reinterpret_cast< wxBitmap * >(argp2);
22456 {
22457 arg3 = &temp3;
22458 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
22459 }
22460 {
22461 PyThreadState* __tstate = wxPyBeginAllowThreads();
22462 result = (int)(arg1)->Add((wxBitmap const &)*arg2,(wxColour const &)*arg3);
22463 wxPyEndAllowThreads(__tstate);
22464 if (PyErr_Occurred()) SWIG_fail;
22465 }
22466 resultobj = SWIG_From_int(static_cast< int >(result));
22467 return resultobj;
22468 fail:
22469 return NULL;
22470 }
22471
22472
22473 SWIGINTERN PyObject *_wrap_ImageList_AddIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22474 PyObject *resultobj = 0;
22475 wxImageList *arg1 = (wxImageList *) 0 ;
22476 wxIcon *arg2 = 0 ;
22477 int result;
22478 void *argp1 = 0 ;
22479 int res1 = 0 ;
22480 void *argp2 = 0 ;
22481 int res2 = 0 ;
22482 PyObject * obj0 = 0 ;
22483 PyObject * obj1 = 0 ;
22484 char * kwnames[] = {
22485 (char *) "self",(char *) "icon", NULL
22486 };
22487
22488 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_AddIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22489 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22490 if (!SWIG_IsOK(res1)) {
22491 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_AddIcon" "', expected argument " "1"" of type '" "wxImageList *""'");
22492 }
22493 arg1 = reinterpret_cast< wxImageList * >(argp1);
22494 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxIcon, 0 | 0);
22495 if (!SWIG_IsOK(res2)) {
22496 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22497 }
22498 if (!argp2) {
22499 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_AddIcon" "', expected argument " "2"" of type '" "wxIcon const &""'");
22500 }
22501 arg2 = reinterpret_cast< wxIcon * >(argp2);
22502 {
22503 PyThreadState* __tstate = wxPyBeginAllowThreads();
22504 result = (int)(arg1)->Add((wxIcon const &)*arg2);
22505 wxPyEndAllowThreads(__tstate);
22506 if (PyErr_Occurred()) SWIG_fail;
22507 }
22508 resultobj = SWIG_From_int(static_cast< int >(result));
22509 return resultobj;
22510 fail:
22511 return NULL;
22512 }
22513
22514
22515 SWIGINTERN PyObject *_wrap_ImageList_GetBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22516 PyObject *resultobj = 0;
22517 wxImageList *arg1 = (wxImageList *) 0 ;
22518 int arg2 ;
22519 SwigValueWrapper<wxBitmap > result;
22520 void *argp1 = 0 ;
22521 int res1 = 0 ;
22522 int val2 ;
22523 int ecode2 = 0 ;
22524 PyObject * obj0 = 0 ;
22525 PyObject * obj1 = 0 ;
22526 char * kwnames[] = {
22527 (char *) "self",(char *) "index", NULL
22528 };
22529
22530 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetBitmap",kwnames,&obj0,&obj1)) SWIG_fail;
22531 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22532 if (!SWIG_IsOK(res1)) {
22533 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetBitmap" "', expected argument " "1"" of type '" "wxImageList const *""'");
22534 }
22535 arg1 = reinterpret_cast< wxImageList * >(argp1);
22536 ecode2 = SWIG_AsVal_int(obj1, &val2);
22537 if (!SWIG_IsOK(ecode2)) {
22538 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetBitmap" "', expected argument " "2"" of type '" "int""'");
22539 }
22540 arg2 = static_cast< int >(val2);
22541 {
22542 PyThreadState* __tstate = wxPyBeginAllowThreads();
22543 result = ((wxImageList const *)arg1)->GetBitmap(arg2);
22544 wxPyEndAllowThreads(__tstate);
22545 if (PyErr_Occurred()) SWIG_fail;
22546 }
22547 resultobj = SWIG_NewPointerObj((new wxBitmap(static_cast< const wxBitmap& >(result))), SWIGTYPE_p_wxBitmap, SWIG_POINTER_OWN | 0 );
22548 return resultobj;
22549 fail:
22550 return NULL;
22551 }
22552
22553
22554 SWIGINTERN PyObject *_wrap_ImageList_GetIcon(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22555 PyObject *resultobj = 0;
22556 wxImageList *arg1 = (wxImageList *) 0 ;
22557 int arg2 ;
22558 wxIcon result;
22559 void *argp1 = 0 ;
22560 int res1 = 0 ;
22561 int val2 ;
22562 int ecode2 = 0 ;
22563 PyObject * obj0 = 0 ;
22564 PyObject * obj1 = 0 ;
22565 char * kwnames[] = {
22566 (char *) "self",(char *) "index", NULL
22567 };
22568
22569 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetIcon",kwnames,&obj0,&obj1)) SWIG_fail;
22570 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22571 if (!SWIG_IsOK(res1)) {
22572 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetIcon" "', expected argument " "1"" of type '" "wxImageList const *""'");
22573 }
22574 arg1 = reinterpret_cast< wxImageList * >(argp1);
22575 ecode2 = SWIG_AsVal_int(obj1, &val2);
22576 if (!SWIG_IsOK(ecode2)) {
22577 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetIcon" "', expected argument " "2"" of type '" "int""'");
22578 }
22579 arg2 = static_cast< int >(val2);
22580 {
22581 PyThreadState* __tstate = wxPyBeginAllowThreads();
22582 result = ((wxImageList const *)arg1)->GetIcon(arg2);
22583 wxPyEndAllowThreads(__tstate);
22584 if (PyErr_Occurred()) SWIG_fail;
22585 }
22586 resultobj = SWIG_NewPointerObj((new wxIcon(static_cast< const wxIcon& >(result))), SWIGTYPE_p_wxIcon, SWIG_POINTER_OWN | 0 );
22587 return resultobj;
22588 fail:
22589 return NULL;
22590 }
22591
22592
22593 SWIGINTERN PyObject *_wrap_ImageList_Replace(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22594 PyObject *resultobj = 0;
22595 wxImageList *arg1 = (wxImageList *) 0 ;
22596 int arg2 ;
22597 wxBitmap *arg3 = 0 ;
22598 wxBitmap const &arg4_defvalue = wxNullBitmap ;
22599 wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ;
22600 bool result;
22601 void *argp1 = 0 ;
22602 int res1 = 0 ;
22603 int val2 ;
22604 int ecode2 = 0 ;
22605 void *argp3 = 0 ;
22606 int res3 = 0 ;
22607 void *argp4 = 0 ;
22608 int res4 = 0 ;
22609 PyObject * obj0 = 0 ;
22610 PyObject * obj1 = 0 ;
22611 PyObject * obj2 = 0 ;
22612 PyObject * obj3 = 0 ;
22613 char * kwnames[] = {
22614 (char *) "self",(char *) "index",(char *) "bitmap",(char *) "mask", NULL
22615 };
22616
22617 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ImageList_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
22618 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22619 if (!SWIG_IsOK(res1)) {
22620 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Replace" "', expected argument " "1"" of type '" "wxImageList *""'");
22621 }
22622 arg1 = reinterpret_cast< wxImageList * >(argp1);
22623 ecode2 = SWIG_AsVal_int(obj1, &val2);
22624 if (!SWIG_IsOK(ecode2)) {
22625 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Replace" "', expected argument " "2"" of type '" "int""'");
22626 }
22627 arg2 = static_cast< int >(val2);
22628 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxBitmap, 0 | 0);
22629 if (!SWIG_IsOK(res3)) {
22630 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22631 }
22632 if (!argp3) {
22633 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "3"" of type '" "wxBitmap const &""'");
22634 }
22635 arg3 = reinterpret_cast< wxBitmap * >(argp3);
22636 if (obj3) {
22637 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 | 0);
22638 if (!SWIG_IsOK(res4)) {
22639 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22640 }
22641 if (!argp4) {
22642 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Replace" "', expected argument " "4"" of type '" "wxBitmap const &""'");
22643 }
22644 arg4 = reinterpret_cast< wxBitmap * >(argp4);
22645 }
22646 {
22647 PyThreadState* __tstate = wxPyBeginAllowThreads();
22648 result = (bool)(arg1)->Replace(arg2,(wxBitmap const &)*arg3,(wxBitmap const &)*arg4);
22649 wxPyEndAllowThreads(__tstate);
22650 if (PyErr_Occurred()) SWIG_fail;
22651 }
22652 {
22653 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22654 }
22655 return resultobj;
22656 fail:
22657 return NULL;
22658 }
22659
22660
22661 SWIGINTERN PyObject *_wrap_ImageList_Draw(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22662 PyObject *resultobj = 0;
22663 wxImageList *arg1 = (wxImageList *) 0 ;
22664 int arg2 ;
22665 wxDC *arg3 = 0 ;
22666 int arg4 ;
22667 int arg5 ;
22668 int arg6 = (int) wxIMAGELIST_DRAW_NORMAL ;
22669 bool arg7 = (bool) (bool)false ;
22670 bool result;
22671 void *argp1 = 0 ;
22672 int res1 = 0 ;
22673 int val2 ;
22674 int ecode2 = 0 ;
22675 void *argp3 = 0 ;
22676 int res3 = 0 ;
22677 int val4 ;
22678 int ecode4 = 0 ;
22679 int val5 ;
22680 int ecode5 = 0 ;
22681 int val6 ;
22682 int ecode6 = 0 ;
22683 bool val7 ;
22684 int ecode7 = 0 ;
22685 PyObject * obj0 = 0 ;
22686 PyObject * obj1 = 0 ;
22687 PyObject * obj2 = 0 ;
22688 PyObject * obj3 = 0 ;
22689 PyObject * obj4 = 0 ;
22690 PyObject * obj5 = 0 ;
22691 PyObject * obj6 = 0 ;
22692 char * kwnames[] = {
22693 (char *) "self",(char *) "index",(char *) "dc",(char *) "x",(char *) "x",(char *) "flags",(char *) "solidBackground", NULL
22694 };
22695
22696 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OO:ImageList_Draw",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
22697 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22698 if (!SWIG_IsOK(res1)) {
22699 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Draw" "', expected argument " "1"" of type '" "wxImageList *""'");
22700 }
22701 arg1 = reinterpret_cast< wxImageList * >(argp1);
22702 ecode2 = SWIG_AsVal_int(obj1, &val2);
22703 if (!SWIG_IsOK(ecode2)) {
22704 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Draw" "', expected argument " "2"" of type '" "int""'");
22705 }
22706 arg2 = static_cast< int >(val2);
22707 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
22708 if (!SWIG_IsOK(res3)) {
22709 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22710 }
22711 if (!argp3) {
22712 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImageList_Draw" "', expected argument " "3"" of type '" "wxDC &""'");
22713 }
22714 arg3 = reinterpret_cast< wxDC * >(argp3);
22715 ecode4 = SWIG_AsVal_int(obj3, &val4);
22716 if (!SWIG_IsOK(ecode4)) {
22717 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ImageList_Draw" "', expected argument " "4"" of type '" "int""'");
22718 }
22719 arg4 = static_cast< int >(val4);
22720 ecode5 = SWIG_AsVal_int(obj4, &val5);
22721 if (!SWIG_IsOK(ecode5)) {
22722 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ImageList_Draw" "', expected argument " "5"" of type '" "int""'");
22723 }
22724 arg5 = static_cast< int >(val5);
22725 if (obj5) {
22726 ecode6 = SWIG_AsVal_int(obj5, &val6);
22727 if (!SWIG_IsOK(ecode6)) {
22728 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "ImageList_Draw" "', expected argument " "6"" of type '" "int""'");
22729 }
22730 arg6 = static_cast< int >(val6);
22731 }
22732 if (obj6) {
22733 ecode7 = SWIG_AsVal_bool(obj6, &val7);
22734 if (!SWIG_IsOK(ecode7)) {
22735 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "ImageList_Draw" "', expected argument " "7"" of type '" "bool""'");
22736 }
22737 arg7 = static_cast< bool >(val7);
22738 }
22739 {
22740 PyThreadState* __tstate = wxPyBeginAllowThreads();
22741 result = (bool)(arg1)->Draw(arg2,*arg3,arg4,arg5,arg6,arg7);
22742 wxPyEndAllowThreads(__tstate);
22743 if (PyErr_Occurred()) SWIG_fail;
22744 }
22745 {
22746 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22747 }
22748 return resultobj;
22749 fail:
22750 return NULL;
22751 }
22752
22753
22754 SWIGINTERN PyObject *_wrap_ImageList_GetImageCount(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22755 PyObject *resultobj = 0;
22756 wxImageList *arg1 = (wxImageList *) 0 ;
22757 int result;
22758 void *argp1 = 0 ;
22759 int res1 = 0 ;
22760 PyObject *swig_obj[1] ;
22761
22762 if (!args) SWIG_fail;
22763 swig_obj[0] = args;
22764 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22765 if (!SWIG_IsOK(res1)) {
22766 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetImageCount" "', expected argument " "1"" of type '" "wxImageList *""'");
22767 }
22768 arg1 = reinterpret_cast< wxImageList * >(argp1);
22769 {
22770 PyThreadState* __tstate = wxPyBeginAllowThreads();
22771 result = (int)(arg1)->GetImageCount();
22772 wxPyEndAllowThreads(__tstate);
22773 if (PyErr_Occurred()) SWIG_fail;
22774 }
22775 resultobj = SWIG_From_int(static_cast< int >(result));
22776 return resultobj;
22777 fail:
22778 return NULL;
22779 }
22780
22781
22782 SWIGINTERN PyObject *_wrap_ImageList_Remove(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22783 PyObject *resultobj = 0;
22784 wxImageList *arg1 = (wxImageList *) 0 ;
22785 int arg2 ;
22786 bool result;
22787 void *argp1 = 0 ;
22788 int res1 = 0 ;
22789 int val2 ;
22790 int ecode2 = 0 ;
22791 PyObject * obj0 = 0 ;
22792 PyObject * obj1 = 0 ;
22793 char * kwnames[] = {
22794 (char *) "self",(char *) "index", NULL
22795 };
22796
22797 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_Remove",kwnames,&obj0,&obj1)) SWIG_fail;
22798 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22799 if (!SWIG_IsOK(res1)) {
22800 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_Remove" "', expected argument " "1"" of type '" "wxImageList *""'");
22801 }
22802 arg1 = reinterpret_cast< wxImageList * >(argp1);
22803 ecode2 = SWIG_AsVal_int(obj1, &val2);
22804 if (!SWIG_IsOK(ecode2)) {
22805 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_Remove" "', expected argument " "2"" of type '" "int""'");
22806 }
22807 arg2 = static_cast< int >(val2);
22808 {
22809 PyThreadState* __tstate = wxPyBeginAllowThreads();
22810 result = (bool)(arg1)->Remove(arg2);
22811 wxPyEndAllowThreads(__tstate);
22812 if (PyErr_Occurred()) SWIG_fail;
22813 }
22814 {
22815 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22816 }
22817 return resultobj;
22818 fail:
22819 return NULL;
22820 }
22821
22822
22823 SWIGINTERN PyObject *_wrap_ImageList_RemoveAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22824 PyObject *resultobj = 0;
22825 wxImageList *arg1 = (wxImageList *) 0 ;
22826 bool result;
22827 void *argp1 = 0 ;
22828 int res1 = 0 ;
22829 PyObject *swig_obj[1] ;
22830
22831 if (!args) SWIG_fail;
22832 swig_obj[0] = args;
22833 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22834 if (!SWIG_IsOK(res1)) {
22835 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_RemoveAll" "', expected argument " "1"" of type '" "wxImageList *""'");
22836 }
22837 arg1 = reinterpret_cast< wxImageList * >(argp1);
22838 {
22839 PyThreadState* __tstate = wxPyBeginAllowThreads();
22840 result = (bool)(arg1)->RemoveAll();
22841 wxPyEndAllowThreads(__tstate);
22842 if (PyErr_Occurred()) SWIG_fail;
22843 }
22844 {
22845 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
22846 }
22847 return resultobj;
22848 fail:
22849 return NULL;
22850 }
22851
22852
22853 SWIGINTERN PyObject *_wrap_ImageList_GetSize(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
22854 PyObject *resultobj = 0;
22855 wxImageList *arg1 = (wxImageList *) 0 ;
22856 int arg2 ;
22857 int *arg3 = 0 ;
22858 int *arg4 = 0 ;
22859 void *argp1 = 0 ;
22860 int res1 = 0 ;
22861 int val2 ;
22862 int ecode2 = 0 ;
22863 int temp3 ;
22864 int res3 = SWIG_TMPOBJ ;
22865 int temp4 ;
22866 int res4 = SWIG_TMPOBJ ;
22867 PyObject * obj0 = 0 ;
22868 PyObject * obj1 = 0 ;
22869 char * kwnames[] = {
22870 (char *) "self",(char *) "index", NULL
22871 };
22872
22873 arg3 = &temp3;
22874 arg4 = &temp4;
22875 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ImageList_GetSize",kwnames,&obj0,&obj1)) SWIG_fail;
22876 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxImageList, 0 | 0 );
22877 if (!SWIG_IsOK(res1)) {
22878 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImageList_GetSize" "', expected argument " "1"" of type '" "wxImageList *""'");
22879 }
22880 arg1 = reinterpret_cast< wxImageList * >(argp1);
22881 ecode2 = SWIG_AsVal_int(obj1, &val2);
22882 if (!SWIG_IsOK(ecode2)) {
22883 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImageList_GetSize" "', expected argument " "2"" of type '" "int""'");
22884 }
22885 arg2 = static_cast< int >(val2);
22886 {
22887 PyThreadState* __tstate = wxPyBeginAllowThreads();
22888 (arg1)->GetSize(arg2,*arg3,*arg4);
22889 wxPyEndAllowThreads(__tstate);
22890 if (PyErr_Occurred()) SWIG_fail;
22891 }
22892 resultobj = SWIG_Py_Void();
22893 if (SWIG_IsTmpObj(res3)) {
22894 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg3)));
22895 } else {
22896 int new_flags = SWIG_IsNewObj(res3) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22897 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg3), SWIGTYPE_p_int, new_flags));
22898 }
22899 if (SWIG_IsTmpObj(res4)) {
22900 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_From_int((*arg4)));
22901 } else {
22902 int new_flags = SWIG_IsNewObj(res4) ? (SWIG_POINTER_OWN | 0 ) : 0 ;
22903 resultobj = SWIG_Python_AppendOutput(resultobj, SWIG_NewPointerObj((void*)(arg4), SWIGTYPE_p_int, new_flags));
22904 }
22905 return resultobj;
22906 fail:
22907 return NULL;
22908 }
22909
22910
22911 SWIGINTERN PyObject *ImageList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22912 PyObject *obj;
22913 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
22914 SWIG_TypeNewClientData(SWIGTYPE_p_wxImageList, SWIG_NewClientData(obj));
22915 return SWIG_Py_Void();
22916 }
22917
22918 SWIGINTERN PyObject *ImageList_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22919 return SWIG_Python_InitShadowInstance(args);
22920 }
22921
22922 SWIGINTERN PyObject *_wrap_new_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22923 PyObject *resultobj = 0;
22924 wxStockGDI *result = 0 ;
22925
22926 if (!SWIG_Python_UnpackTuple(args,"new_StockGDI",0,0,0)) SWIG_fail;
22927 {
22928 PyThreadState* __tstate = wxPyBeginAllowThreads();
22929 result = (wxStockGDI *)new wxStockGDI();
22930 wxPyEndAllowThreads(__tstate);
22931 if (PyErr_Occurred()) SWIG_fail;
22932 }
22933 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, SWIG_POINTER_NEW | 0 );
22934 return resultobj;
22935 fail:
22936 return NULL;
22937 }
22938
22939
22940 SWIGINTERN PyObject *_wrap_delete_StockGDI(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22941 PyObject *resultobj = 0;
22942 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
22943 void *argp1 = 0 ;
22944 int res1 = 0 ;
22945 PyObject *swig_obj[1] ;
22946
22947 if (!args) SWIG_fail;
22948 swig_obj[0] = args;
22949 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxStockGDI, SWIG_POINTER_DISOWN | 0 );
22950 if (!SWIG_IsOK(res1)) {
22951 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StockGDI" "', expected argument " "1"" of type '" "wxStockGDI *""'");
22952 }
22953 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
22954 {
22955 PyThreadState* __tstate = wxPyBeginAllowThreads();
22956 delete arg1;
22957
22958 wxPyEndAllowThreads(__tstate);
22959 if (PyErr_Occurred()) SWIG_fail;
22960 }
22961 resultobj = SWIG_Py_Void();
22962 return resultobj;
22963 fail:
22964 return NULL;
22965 }
22966
22967
22968 SWIGINTERN PyObject *_wrap_StockGDI_DeleteAll(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22969 PyObject *resultobj = 0;
22970
22971 if (!SWIG_Python_UnpackTuple(args,"StockGDI_DeleteAll",0,0,0)) SWIG_fail;
22972 {
22973 PyThreadState* __tstate = wxPyBeginAllowThreads();
22974 wxStockGDI::DeleteAll();
22975 wxPyEndAllowThreads(__tstate);
22976 if (PyErr_Occurred()) SWIG_fail;
22977 }
22978 resultobj = SWIG_Py_Void();
22979 return resultobj;
22980 fail:
22981 return NULL;
22982 }
22983
22984
22985 SWIGINTERN PyObject *_wrap_StockGDI_instance(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
22986 PyObject *resultobj = 0;
22987 wxStockGDI *result = 0 ;
22988
22989 if (!SWIG_Python_UnpackTuple(args,"StockGDI_instance",0,0,0)) SWIG_fail;
22990 {
22991 PyThreadState* __tstate = wxPyBeginAllowThreads();
22992 {
22993 wxStockGDI &_result_ref = wxStockGDI::instance();
22994 result = (wxStockGDI *) &_result_ref;
22995 }
22996 wxPyEndAllowThreads(__tstate);
22997 if (PyErr_Occurred()) SWIG_fail;
22998 }
22999 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxStockGDI, 0 | 0 );
23000 return resultobj;
23001 fail:
23002 return NULL;
23003 }
23004
23005
23006 SWIGINTERN PyObject *_wrap_StockGDI_GetBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23007 PyObject *resultobj = 0;
23008 wxStockGDI::Item arg1 ;
23009 wxBrush *result = 0 ;
23010 int val1 ;
23011 int ecode1 = 0 ;
23012 PyObject * obj0 = 0 ;
23013 char * kwnames[] = {
23014 (char *) "item", NULL
23015 };
23016
23017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetBrush",kwnames,&obj0)) SWIG_fail;
23018 ecode1 = SWIG_AsVal_int(obj0, &val1);
23019 if (!SWIG_IsOK(ecode1)) {
23020 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetBrush" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23021 }
23022 arg1 = static_cast< wxStockGDI::Item >(val1);
23023 {
23024 PyThreadState* __tstate = wxPyBeginAllowThreads();
23025 result = (wxBrush *)wxStockGDI::GetBrush(arg1);
23026 wxPyEndAllowThreads(__tstate);
23027 if (PyErr_Occurred()) SWIG_fail;
23028 }
23029 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23030 return resultobj;
23031 fail:
23032 return NULL;
23033 }
23034
23035
23036 SWIGINTERN PyObject *_wrap_StockGDI_GetColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23037 PyObject *resultobj = 0;
23038 wxStockGDI::Item arg1 ;
23039 wxColour *result = 0 ;
23040 int val1 ;
23041 int ecode1 = 0 ;
23042 PyObject * obj0 = 0 ;
23043 char * kwnames[] = {
23044 (char *) "item", NULL
23045 };
23046
23047 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetColour",kwnames,&obj0)) SWIG_fail;
23048 ecode1 = SWIG_AsVal_int(obj0, &val1);
23049 if (!SWIG_IsOK(ecode1)) {
23050 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetColour" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23051 }
23052 arg1 = static_cast< wxStockGDI::Item >(val1);
23053 {
23054 PyThreadState* __tstate = wxPyBeginAllowThreads();
23055 result = (wxColour *)wxStockGDI::GetColour(arg1);
23056 wxPyEndAllowThreads(__tstate);
23057 if (PyErr_Occurred()) SWIG_fail;
23058 }
23059 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColour, 0 | 0 );
23060 return resultobj;
23061 fail:
23062 return NULL;
23063 }
23064
23065
23066 SWIGINTERN PyObject *_wrap_StockGDI_GetCursor(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23067 PyObject *resultobj = 0;
23068 wxStockGDI::Item arg1 ;
23069 wxCursor *result = 0 ;
23070 int val1 ;
23071 int ecode1 = 0 ;
23072 PyObject * obj0 = 0 ;
23073 char * kwnames[] = {
23074 (char *) "item", NULL
23075 };
23076
23077 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetCursor",kwnames,&obj0)) SWIG_fail;
23078 ecode1 = SWIG_AsVal_int(obj0, &val1);
23079 if (!SWIG_IsOK(ecode1)) {
23080 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetCursor" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23081 }
23082 arg1 = static_cast< wxStockGDI::Item >(val1);
23083 {
23084 PyThreadState* __tstate = wxPyBeginAllowThreads();
23085 result = (wxCursor *)wxStockGDI::GetCursor(arg1);
23086 wxPyEndAllowThreads(__tstate);
23087 if (PyErr_Occurred()) SWIG_fail;
23088 }
23089 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxCursor, 0 | 0 );
23090 return resultobj;
23091 fail:
23092 return NULL;
23093 }
23094
23095
23096 SWIGINTERN PyObject *_wrap_StockGDI_GetPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23097 PyObject *resultobj = 0;
23098 wxStockGDI::Item arg1 ;
23099 wxPen *result = 0 ;
23100 int val1 ;
23101 int ecode1 = 0 ;
23102 PyObject * obj0 = 0 ;
23103 char * kwnames[] = {
23104 (char *) "item", NULL
23105 };
23106
23107 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StockGDI_GetPen",kwnames,&obj0)) SWIG_fail;
23108 ecode1 = SWIG_AsVal_int(obj0, &val1);
23109 if (!SWIG_IsOK(ecode1)) {
23110 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "StockGDI_GetPen" "', expected argument " "1"" of type '" "wxStockGDI::Item""'");
23111 }
23112 arg1 = static_cast< wxStockGDI::Item >(val1);
23113 {
23114 PyThreadState* __tstate = wxPyBeginAllowThreads();
23115 result = (wxPen *)wxStockGDI::GetPen(arg1);
23116 wxPyEndAllowThreads(__tstate);
23117 if (PyErr_Occurred()) SWIG_fail;
23118 }
23119 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23120 return resultobj;
23121 fail:
23122 return NULL;
23123 }
23124
23125
23126 SWIGINTERN PyObject *_wrap_StockGDI_GetFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23127 PyObject *resultobj = 0;
23128 wxStockGDI *arg1 = (wxStockGDI *) 0 ;
23129 wxStockGDI::Item arg2 ;
23130 wxFont *result = 0 ;
23131 void *argp1 = 0 ;
23132 int res1 = 0 ;
23133 int val2 ;
23134 int ecode2 = 0 ;
23135 PyObject * obj0 = 0 ;
23136 PyObject * obj1 = 0 ;
23137 char * kwnames[] = {
23138 (char *) "self",(char *) "item", NULL
23139 };
23140
23141 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StockGDI_GetFont",kwnames,&obj0,&obj1)) SWIG_fail;
23142 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxStockGDI, 0 | 0 );
23143 if (!SWIG_IsOK(res1)) {
23144 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StockGDI_GetFont" "', expected argument " "1"" of type '" "wxStockGDI *""'");
23145 }
23146 arg1 = reinterpret_cast< wxStockGDI * >(argp1);
23147 ecode2 = SWIG_AsVal_int(obj1, &val2);
23148 if (!SWIG_IsOK(ecode2)) {
23149 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "StockGDI_GetFont" "', expected argument " "2"" of type '" "wxStockGDI::Item""'");
23150 }
23151 arg2 = static_cast< wxStockGDI::Item >(val2);
23152 {
23153 PyThreadState* __tstate = wxPyBeginAllowThreads();
23154 result = (wxFont *)(arg1)->GetFont(arg2);
23155 wxPyEndAllowThreads(__tstate);
23156 if (PyErr_Occurred()) SWIG_fail;
23157 }
23158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23159 return resultobj;
23160 fail:
23161 return NULL;
23162 }
23163
23164
23165 SWIGINTERN PyObject *StockGDI_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23166 PyObject *obj;
23167 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23168 SWIG_TypeNewClientData(SWIGTYPE_p_wxStockGDI, SWIG_NewClientData(obj));
23169 return SWIG_Py_Void();
23170 }
23171
23172 SWIGINTERN PyObject *StockGDI_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23173 return SWIG_Python_InitShadowInstance(args);
23174 }
23175
23176 SWIGINTERN int NullBitmap_set(PyObject *) {
23177 SWIG_Error(SWIG_AttributeError,"Variable NullBitmap is read-only.");
23178 return 1;
23179 }
23180
23181
23182 SWIGINTERN PyObject *NullBitmap_get(void) {
23183 PyObject *pyobj = 0;
23184
23185 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBitmap), SWIGTYPE_p_wxBitmap, 0 );
23186 return pyobj;
23187 }
23188
23189
23190 SWIGINTERN int NullIcon_set(PyObject *) {
23191 SWIG_Error(SWIG_AttributeError,"Variable NullIcon is read-only.");
23192 return 1;
23193 }
23194
23195
23196 SWIGINTERN PyObject *NullIcon_get(void) {
23197 PyObject *pyobj = 0;
23198
23199 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullIcon), SWIGTYPE_p_wxIcon, 0 );
23200 return pyobj;
23201 }
23202
23203
23204 SWIGINTERN int NullCursor_set(PyObject *) {
23205 SWIG_Error(SWIG_AttributeError,"Variable NullCursor is read-only.");
23206 return 1;
23207 }
23208
23209
23210 SWIGINTERN PyObject *NullCursor_get(void) {
23211 PyObject *pyobj = 0;
23212
23213 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullCursor), SWIGTYPE_p_wxCursor, 0 );
23214 return pyobj;
23215 }
23216
23217
23218 SWIGINTERN int NullPen_set(PyObject *) {
23219 SWIG_Error(SWIG_AttributeError,"Variable NullPen is read-only.");
23220 return 1;
23221 }
23222
23223
23224 SWIGINTERN PyObject *NullPen_get(void) {
23225 PyObject *pyobj = 0;
23226
23227 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPen), SWIGTYPE_p_wxPen, 0 );
23228 return pyobj;
23229 }
23230
23231
23232 SWIGINTERN int NullBrush_set(PyObject *) {
23233 SWIG_Error(SWIG_AttributeError,"Variable NullBrush is read-only.");
23234 return 1;
23235 }
23236
23237
23238 SWIGINTERN PyObject *NullBrush_get(void) {
23239 PyObject *pyobj = 0;
23240
23241 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullBrush), SWIGTYPE_p_wxBrush, 0 );
23242 return pyobj;
23243 }
23244
23245
23246 SWIGINTERN int NullPalette_set(PyObject *) {
23247 SWIG_Error(SWIG_AttributeError,"Variable NullPalette is read-only.");
23248 return 1;
23249 }
23250
23251
23252 SWIGINTERN PyObject *NullPalette_get(void) {
23253 PyObject *pyobj = 0;
23254
23255 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullPalette), SWIGTYPE_p_wxPalette, 0 );
23256 return pyobj;
23257 }
23258
23259
23260 SWIGINTERN int NullFont_set(PyObject *) {
23261 SWIG_Error(SWIG_AttributeError,"Variable NullFont is read-only.");
23262 return 1;
23263 }
23264
23265
23266 SWIGINTERN PyObject *NullFont_get(void) {
23267 PyObject *pyobj = 0;
23268
23269 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullFont), SWIGTYPE_p_wxFont, 0 );
23270 return pyobj;
23271 }
23272
23273
23274 SWIGINTERN int NullColour_set(PyObject *) {
23275 SWIG_Error(SWIG_AttributeError,"Variable NullColour is read-only.");
23276 return 1;
23277 }
23278
23279
23280 SWIGINTERN PyObject *NullColour_get(void) {
23281 PyObject *pyobj = 0;
23282
23283 pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(&wxNullColour), SWIGTYPE_p_wxColour, 0 );
23284 return pyobj;
23285 }
23286
23287
23288 SWIGINTERN PyObject *_wrap_new_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23289 PyObject *resultobj = 0;
23290 wxGDIObjListBase *result = 0 ;
23291
23292 if (!SWIG_Python_UnpackTuple(args,"new_GDIObjListBase",0,0,0)) SWIG_fail;
23293 {
23294 PyThreadState* __tstate = wxPyBeginAllowThreads();
23295 result = (wxGDIObjListBase *)new wxGDIObjListBase();
23296 wxPyEndAllowThreads(__tstate);
23297 if (PyErr_Occurred()) SWIG_fail;
23298 }
23299 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_NEW | 0 );
23300 return resultobj;
23301 fail:
23302 return NULL;
23303 }
23304
23305
23306 SWIGINTERN PyObject *_wrap_delete_GDIObjListBase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23307 PyObject *resultobj = 0;
23308 wxGDIObjListBase *arg1 = (wxGDIObjListBase *) 0 ;
23309 void *argp1 = 0 ;
23310 int res1 = 0 ;
23311 PyObject *swig_obj[1] ;
23312
23313 if (!args) SWIG_fail;
23314 swig_obj[0] = args;
23315 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxGDIObjListBase, SWIG_POINTER_DISOWN | 0 );
23316 if (!SWIG_IsOK(res1)) {
23317 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_GDIObjListBase" "', expected argument " "1"" of type '" "wxGDIObjListBase *""'");
23318 }
23319 arg1 = reinterpret_cast< wxGDIObjListBase * >(argp1);
23320 {
23321 PyThreadState* __tstate = wxPyBeginAllowThreads();
23322 delete arg1;
23323
23324 wxPyEndAllowThreads(__tstate);
23325 if (PyErr_Occurred()) SWIG_fail;
23326 }
23327 resultobj = SWIG_Py_Void();
23328 return resultobj;
23329 fail:
23330 return NULL;
23331 }
23332
23333
23334 SWIGINTERN PyObject *GDIObjListBase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23335 PyObject *obj;
23336 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23337 SWIG_TypeNewClientData(SWIGTYPE_p_wxGDIObjListBase, SWIG_NewClientData(obj));
23338 return SWIG_Py_Void();
23339 }
23340
23341 SWIGINTERN PyObject *GDIObjListBase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23342 return SWIG_Python_InitShadowInstance(args);
23343 }
23344
23345 SWIGINTERN PyObject *_wrap_PenList_FindOrCreatePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23346 PyObject *resultobj = 0;
23347 wxPenList *arg1 = (wxPenList *) 0 ;
23348 wxColour *arg2 = 0 ;
23349 int arg3 ;
23350 int arg4 ;
23351 wxPen *result = 0 ;
23352 void *argp1 = 0 ;
23353 int res1 = 0 ;
23354 wxColour temp2 ;
23355 int val3 ;
23356 int ecode3 = 0 ;
23357 int val4 ;
23358 int ecode4 = 0 ;
23359 PyObject * obj0 = 0 ;
23360 PyObject * obj1 = 0 ;
23361 PyObject * obj2 = 0 ;
23362 PyObject * obj3 = 0 ;
23363 char * kwnames[] = {
23364 (char *) "self",(char *) "colour",(char *) "width",(char *) "style", NULL
23365 };
23366
23367 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:PenList_FindOrCreatePen",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
23368 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23369 if (!SWIG_IsOK(res1)) {
23370 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_FindOrCreatePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23371 }
23372 arg1 = reinterpret_cast< wxPenList * >(argp1);
23373 {
23374 arg2 = &temp2;
23375 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23376 }
23377 ecode3 = SWIG_AsVal_int(obj2, &val3);
23378 if (!SWIG_IsOK(ecode3)) {
23379 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "PenList_FindOrCreatePen" "', expected argument " "3"" of type '" "int""'");
23380 }
23381 arg3 = static_cast< int >(val3);
23382 ecode4 = SWIG_AsVal_int(obj3, &val4);
23383 if (!SWIG_IsOK(ecode4)) {
23384 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "PenList_FindOrCreatePen" "', expected argument " "4"" of type '" "int""'");
23385 }
23386 arg4 = static_cast< int >(val4);
23387 {
23388 PyThreadState* __tstate = wxPyBeginAllowThreads();
23389 result = (wxPen *)(arg1)->FindOrCreatePen((wxColour const &)*arg2,arg3,arg4);
23390 wxPyEndAllowThreads(__tstate);
23391 if (PyErr_Occurred()) SWIG_fail;
23392 }
23393 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPen, 0 | 0 );
23394 return resultobj;
23395 fail:
23396 return NULL;
23397 }
23398
23399
23400 SWIGINTERN PyObject *_wrap_PenList_AddPen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23401 PyObject *resultobj = 0;
23402 wxPenList *arg1 = (wxPenList *) 0 ;
23403 wxPen *arg2 = (wxPen *) 0 ;
23404 void *argp1 = 0 ;
23405 int res1 = 0 ;
23406 void *argp2 = 0 ;
23407 int res2 = 0 ;
23408 PyObject * obj0 = 0 ;
23409 PyObject * obj1 = 0 ;
23410 char * kwnames[] = {
23411 (char *) "self",(char *) "pen", NULL
23412 };
23413
23414 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_AddPen",kwnames,&obj0,&obj1)) SWIG_fail;
23415 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23416 if (!SWIG_IsOK(res1)) {
23417 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_AddPen" "', expected argument " "1"" of type '" "wxPenList *""'");
23418 }
23419 arg1 = reinterpret_cast< wxPenList * >(argp1);
23420 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23421 if (!SWIG_IsOK(res2)) {
23422 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_AddPen" "', expected argument " "2"" of type '" "wxPen *""'");
23423 }
23424 arg2 = reinterpret_cast< wxPen * >(argp2);
23425 {
23426 PyThreadState* __tstate = wxPyBeginAllowThreads();
23427 (arg1)->AddPen(arg2);
23428 wxPyEndAllowThreads(__tstate);
23429 if (PyErr_Occurred()) SWIG_fail;
23430 }
23431 resultobj = SWIG_Py_Void();
23432 return resultobj;
23433 fail:
23434 return NULL;
23435 }
23436
23437
23438 SWIGINTERN PyObject *_wrap_PenList_RemovePen(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23439 PyObject *resultobj = 0;
23440 wxPenList *arg1 = (wxPenList *) 0 ;
23441 wxPen *arg2 = (wxPen *) 0 ;
23442 void *argp1 = 0 ;
23443 int res1 = 0 ;
23444 void *argp2 = 0 ;
23445 int res2 = 0 ;
23446 PyObject * obj0 = 0 ;
23447 PyObject * obj1 = 0 ;
23448 char * kwnames[] = {
23449 (char *) "self",(char *) "pen", NULL
23450 };
23451
23452 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PenList_RemovePen",kwnames,&obj0,&obj1)) SWIG_fail;
23453 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxPenList, 0 | 0 );
23454 if (!SWIG_IsOK(res1)) {
23455 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "PenList_RemovePen" "', expected argument " "1"" of type '" "wxPenList *""'");
23456 }
23457 arg1 = reinterpret_cast< wxPenList * >(argp1);
23458 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxPen, 0 | 0 );
23459 if (!SWIG_IsOK(res2)) {
23460 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "PenList_RemovePen" "', expected argument " "2"" of type '" "wxPen *""'");
23461 }
23462 arg2 = reinterpret_cast< wxPen * >(argp2);
23463 {
23464 PyThreadState* __tstate = wxPyBeginAllowThreads();
23465 (arg1)->RemovePen(arg2);
23466 wxPyEndAllowThreads(__tstate);
23467 if (PyErr_Occurred()) SWIG_fail;
23468 }
23469 resultobj = SWIG_Py_Void();
23470 return resultobj;
23471 fail:
23472 return NULL;
23473 }
23474
23475
23476 SWIGINTERN PyObject *PenList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23477 PyObject *obj;
23478 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23479 SWIG_TypeNewClientData(SWIGTYPE_p_wxPenList, SWIG_NewClientData(obj));
23480 return SWIG_Py_Void();
23481 }
23482
23483 SWIGINTERN PyObject *_wrap_BrushList_FindOrCreateBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23484 PyObject *resultobj = 0;
23485 wxBrushList *arg1 = (wxBrushList *) 0 ;
23486 wxColour *arg2 = 0 ;
23487 int arg3 = (int) wxSOLID ;
23488 wxBrush *result = 0 ;
23489 void *argp1 = 0 ;
23490 int res1 = 0 ;
23491 wxColour temp2 ;
23492 int val3 ;
23493 int ecode3 = 0 ;
23494 PyObject * obj0 = 0 ;
23495 PyObject * obj1 = 0 ;
23496 PyObject * obj2 = 0 ;
23497 char * kwnames[] = {
23498 (char *) "self",(char *) "colour",(char *) "style", NULL
23499 };
23500
23501 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:BrushList_FindOrCreateBrush",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23502 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23503 if (!SWIG_IsOK(res1)) {
23504 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23505 }
23506 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23507 {
23508 arg2 = &temp2;
23509 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23510 }
23511 if (obj2) {
23512 ecode3 = SWIG_AsVal_int(obj2, &val3);
23513 if (!SWIG_IsOK(ecode3)) {
23514 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "BrushList_FindOrCreateBrush" "', expected argument " "3"" of type '" "int""'");
23515 }
23516 arg3 = static_cast< int >(val3);
23517 }
23518 {
23519 PyThreadState* __tstate = wxPyBeginAllowThreads();
23520 result = (wxBrush *)(arg1)->FindOrCreateBrush((wxColour const &)*arg2,arg3);
23521 wxPyEndAllowThreads(__tstate);
23522 if (PyErr_Occurred()) SWIG_fail;
23523 }
23524 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrush, 0 | 0 );
23525 return resultobj;
23526 fail:
23527 return NULL;
23528 }
23529
23530
23531 SWIGINTERN PyObject *_wrap_BrushList_AddBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23532 PyObject *resultobj = 0;
23533 wxBrushList *arg1 = (wxBrushList *) 0 ;
23534 wxBrush *arg2 = (wxBrush *) 0 ;
23535 void *argp1 = 0 ;
23536 int res1 = 0 ;
23537 void *argp2 = 0 ;
23538 int res2 = 0 ;
23539 PyObject * obj0 = 0 ;
23540 PyObject * obj1 = 0 ;
23541 char * kwnames[] = {
23542 (char *) "self",(char *) "brush", NULL
23543 };
23544
23545 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_AddBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23546 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23547 if (!SWIG_IsOK(res1)) {
23548 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_AddBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23549 }
23550 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23551 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23552 if (!SWIG_IsOK(res2)) {
23553 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_AddBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23554 }
23555 arg2 = reinterpret_cast< wxBrush * >(argp2);
23556 {
23557 PyThreadState* __tstate = wxPyBeginAllowThreads();
23558 (arg1)->AddBrush(arg2);
23559 wxPyEndAllowThreads(__tstate);
23560 if (PyErr_Occurred()) SWIG_fail;
23561 }
23562 resultobj = SWIG_Py_Void();
23563 return resultobj;
23564 fail:
23565 return NULL;
23566 }
23567
23568
23569 SWIGINTERN PyObject *_wrap_BrushList_RemoveBrush(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23570 PyObject *resultobj = 0;
23571 wxBrushList *arg1 = (wxBrushList *) 0 ;
23572 wxBrush *arg2 = (wxBrush *) 0 ;
23573 void *argp1 = 0 ;
23574 int res1 = 0 ;
23575 void *argp2 = 0 ;
23576 int res2 = 0 ;
23577 PyObject * obj0 = 0 ;
23578 PyObject * obj1 = 0 ;
23579 char * kwnames[] = {
23580 (char *) "self",(char *) "brush", NULL
23581 };
23582
23583 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BrushList_RemoveBrush",kwnames,&obj0,&obj1)) SWIG_fail;
23584 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxBrushList, 0 | 0 );
23585 if (!SWIG_IsOK(res1)) {
23586 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "BrushList_RemoveBrush" "', expected argument " "1"" of type '" "wxBrushList *""'");
23587 }
23588 arg1 = reinterpret_cast< wxBrushList * >(argp1);
23589 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxBrush, 0 | 0 );
23590 if (!SWIG_IsOK(res2)) {
23591 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "BrushList_RemoveBrush" "', expected argument " "2"" of type '" "wxBrush *""'");
23592 }
23593 arg2 = reinterpret_cast< wxBrush * >(argp2);
23594 {
23595 PyThreadState* __tstate = wxPyBeginAllowThreads();
23596 (arg1)->RemoveBrush(arg2);
23597 wxPyEndAllowThreads(__tstate);
23598 if (PyErr_Occurred()) SWIG_fail;
23599 }
23600 resultobj = SWIG_Py_Void();
23601 return resultobj;
23602 fail:
23603 return NULL;
23604 }
23605
23606
23607 SWIGINTERN PyObject *BrushList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23608 PyObject *obj;
23609 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23610 SWIG_TypeNewClientData(SWIGTYPE_p_wxBrushList, SWIG_NewClientData(obj));
23611 return SWIG_Py_Void();
23612 }
23613
23614 SWIGINTERN PyObject *_wrap_FontList_FindOrCreateFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23615 PyObject *resultobj = 0;
23616 wxFontList *arg1 = (wxFontList *) 0 ;
23617 int arg2 ;
23618 int arg3 ;
23619 int arg4 ;
23620 int arg5 ;
23621 bool arg6 = (bool) false ;
23622 wxString const &arg7_defvalue = wxPyEmptyString ;
23623 wxString *arg7 = (wxString *) &arg7_defvalue ;
23624 wxFontEncoding arg8 = (wxFontEncoding) wxFONTENCODING_DEFAULT ;
23625 wxFont *result = 0 ;
23626 void *argp1 = 0 ;
23627 int res1 = 0 ;
23628 int val2 ;
23629 int ecode2 = 0 ;
23630 int val3 ;
23631 int ecode3 = 0 ;
23632 int val4 ;
23633 int ecode4 = 0 ;
23634 int val5 ;
23635 int ecode5 = 0 ;
23636 bool val6 ;
23637 int ecode6 = 0 ;
23638 bool temp7 = false ;
23639 int val8 ;
23640 int ecode8 = 0 ;
23641 PyObject * obj0 = 0 ;
23642 PyObject * obj1 = 0 ;
23643 PyObject * obj2 = 0 ;
23644 PyObject * obj3 = 0 ;
23645 PyObject * obj4 = 0 ;
23646 PyObject * obj5 = 0 ;
23647 PyObject * obj6 = 0 ;
23648 PyObject * obj7 = 0 ;
23649 char * kwnames[] = {
23650 (char *) "self",(char *) "point_size",(char *) "family",(char *) "style",(char *) "weight",(char *) "underline",(char *) "facename",(char *) "encoding", NULL
23651 };
23652
23653 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOO:FontList_FindOrCreateFont",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) SWIG_fail;
23654 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23655 if (!SWIG_IsOK(res1)) {
23656 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_FindOrCreateFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23657 }
23658 arg1 = reinterpret_cast< wxFontList * >(argp1);
23659 ecode2 = SWIG_AsVal_int(obj1, &val2);
23660 if (!SWIG_IsOK(ecode2)) {
23661 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "FontList_FindOrCreateFont" "', expected argument " "2"" of type '" "int""'");
23662 }
23663 arg2 = static_cast< int >(val2);
23664 ecode3 = SWIG_AsVal_int(obj2, &val3);
23665 if (!SWIG_IsOK(ecode3)) {
23666 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "FontList_FindOrCreateFont" "', expected argument " "3"" of type '" "int""'");
23667 }
23668 arg3 = static_cast< int >(val3);
23669 ecode4 = SWIG_AsVal_int(obj3, &val4);
23670 if (!SWIG_IsOK(ecode4)) {
23671 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "FontList_FindOrCreateFont" "', expected argument " "4"" of type '" "int""'");
23672 }
23673 arg4 = static_cast< int >(val4);
23674 ecode5 = SWIG_AsVal_int(obj4, &val5);
23675 if (!SWIG_IsOK(ecode5)) {
23676 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "FontList_FindOrCreateFont" "', expected argument " "5"" of type '" "int""'");
23677 }
23678 arg5 = static_cast< int >(val5);
23679 if (obj5) {
23680 ecode6 = SWIG_AsVal_bool(obj5, &val6);
23681 if (!SWIG_IsOK(ecode6)) {
23682 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "FontList_FindOrCreateFont" "', expected argument " "6"" of type '" "bool""'");
23683 }
23684 arg6 = static_cast< bool >(val6);
23685 }
23686 if (obj6) {
23687 {
23688 arg7 = wxString_in_helper(obj6);
23689 if (arg7 == NULL) SWIG_fail;
23690 temp7 = true;
23691 }
23692 }
23693 if (obj7) {
23694 ecode8 = SWIG_AsVal_int(obj7, &val8);
23695 if (!SWIG_IsOK(ecode8)) {
23696 SWIG_exception_fail(SWIG_ArgError(ecode8), "in method '" "FontList_FindOrCreateFont" "', expected argument " "8"" of type '" "wxFontEncoding""'");
23697 }
23698 arg8 = static_cast< wxFontEncoding >(val8);
23699 }
23700 {
23701 PyThreadState* __tstate = wxPyBeginAllowThreads();
23702 result = (wxFont *)(arg1)->FindOrCreateFont(arg2,arg3,arg4,arg5,arg6,(wxString const &)*arg7,arg8);
23703 wxPyEndAllowThreads(__tstate);
23704 if (PyErr_Occurred()) SWIG_fail;
23705 }
23706 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFont, 0 | 0 );
23707 {
23708 if (temp7)
23709 delete arg7;
23710 }
23711 return resultobj;
23712 fail:
23713 {
23714 if (temp7)
23715 delete arg7;
23716 }
23717 return NULL;
23718 }
23719
23720
23721 SWIGINTERN PyObject *_wrap_FontList_AddFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23722 PyObject *resultobj = 0;
23723 wxFontList *arg1 = (wxFontList *) 0 ;
23724 wxFont *arg2 = (wxFont *) 0 ;
23725 void *argp1 = 0 ;
23726 int res1 = 0 ;
23727 void *argp2 = 0 ;
23728 int res2 = 0 ;
23729 PyObject * obj0 = 0 ;
23730 PyObject * obj1 = 0 ;
23731 char * kwnames[] = {
23732 (char *) "self",(char *) "font", NULL
23733 };
23734
23735 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_AddFont",kwnames,&obj0,&obj1)) SWIG_fail;
23736 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23737 if (!SWIG_IsOK(res1)) {
23738 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_AddFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23739 }
23740 arg1 = reinterpret_cast< wxFontList * >(argp1);
23741 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23742 if (!SWIG_IsOK(res2)) {
23743 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_AddFont" "', expected argument " "2"" of type '" "wxFont *""'");
23744 }
23745 arg2 = reinterpret_cast< wxFont * >(argp2);
23746 {
23747 PyThreadState* __tstate = wxPyBeginAllowThreads();
23748 (arg1)->AddFont(arg2);
23749 wxPyEndAllowThreads(__tstate);
23750 if (PyErr_Occurred()) SWIG_fail;
23751 }
23752 resultobj = SWIG_Py_Void();
23753 return resultobj;
23754 fail:
23755 return NULL;
23756 }
23757
23758
23759 SWIGINTERN PyObject *_wrap_FontList_RemoveFont(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23760 PyObject *resultobj = 0;
23761 wxFontList *arg1 = (wxFontList *) 0 ;
23762 wxFont *arg2 = (wxFont *) 0 ;
23763 void *argp1 = 0 ;
23764 int res1 = 0 ;
23765 void *argp2 = 0 ;
23766 int res2 = 0 ;
23767 PyObject * obj0 = 0 ;
23768 PyObject * obj1 = 0 ;
23769 char * kwnames[] = {
23770 (char *) "self",(char *) "font", NULL
23771 };
23772
23773 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:FontList_RemoveFont",kwnames,&obj0,&obj1)) SWIG_fail;
23774 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxFontList, 0 | 0 );
23775 if (!SWIG_IsOK(res1)) {
23776 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "FontList_RemoveFont" "', expected argument " "1"" of type '" "wxFontList *""'");
23777 }
23778 arg1 = reinterpret_cast< wxFontList * >(argp1);
23779 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxFont, 0 | 0 );
23780 if (!SWIG_IsOK(res2)) {
23781 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "FontList_RemoveFont" "', expected argument " "2"" of type '" "wxFont *""'");
23782 }
23783 arg2 = reinterpret_cast< wxFont * >(argp2);
23784 {
23785 PyThreadState* __tstate = wxPyBeginAllowThreads();
23786 (arg1)->RemoveFont(arg2);
23787 wxPyEndAllowThreads(__tstate);
23788 if (PyErr_Occurred()) SWIG_fail;
23789 }
23790 resultobj = SWIG_Py_Void();
23791 return resultobj;
23792 fail:
23793 return NULL;
23794 }
23795
23796
23797 SWIGINTERN PyObject *FontList_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23798 PyObject *obj;
23799 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
23800 SWIG_TypeNewClientData(SWIGTYPE_p_wxFontList, SWIG_NewClientData(obj));
23801 return SWIG_Py_Void();
23802 }
23803
23804 SWIGINTERN PyObject *_wrap_new_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23805 PyObject *resultobj = 0;
23806 wxColourDatabase *result = 0 ;
23807
23808 if (!SWIG_Python_UnpackTuple(args,"new_ColourDatabase",0,0,0)) SWIG_fail;
23809 {
23810 if (!wxPyCheckForApp()) SWIG_fail;
23811 PyThreadState* __tstate = wxPyBeginAllowThreads();
23812 result = (wxColourDatabase *)new wxColourDatabase();
23813 wxPyEndAllowThreads(__tstate);
23814 if (PyErr_Occurred()) SWIG_fail;
23815 }
23816 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_NEW | 0 );
23817 return resultobj;
23818 fail:
23819 return NULL;
23820 }
23821
23822
23823 SWIGINTERN PyObject *_wrap_delete_ColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
23824 PyObject *resultobj = 0;
23825 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23826 void *argp1 = 0 ;
23827 int res1 = 0 ;
23828 PyObject *swig_obj[1] ;
23829
23830 if (!args) SWIG_fail;
23831 swig_obj[0] = args;
23832 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxColourDatabase, SWIG_POINTER_DISOWN | 0 );
23833 if (!SWIG_IsOK(res1)) {
23834 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ColourDatabase" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23835 }
23836 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23837 {
23838 PyThreadState* __tstate = wxPyBeginAllowThreads();
23839 delete arg1;
23840
23841 wxPyEndAllowThreads(__tstate);
23842 if (PyErr_Occurred()) SWIG_fail;
23843 }
23844 resultobj = SWIG_Py_Void();
23845 return resultobj;
23846 fail:
23847 return NULL;
23848 }
23849
23850
23851 SWIGINTERN PyObject *_wrap_ColourDatabase_Find(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23852 PyObject *resultobj = 0;
23853 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23854 wxString *arg2 = 0 ;
23855 wxColour result;
23856 void *argp1 = 0 ;
23857 int res1 = 0 ;
23858 bool temp2 = false ;
23859 PyObject * obj0 = 0 ;
23860 PyObject * obj1 = 0 ;
23861 char * kwnames[] = {
23862 (char *) "self",(char *) "name", NULL
23863 };
23864
23865 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_Find",kwnames,&obj0,&obj1)) SWIG_fail;
23866 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23867 if (!SWIG_IsOK(res1)) {
23868 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Find" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23869 }
23870 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23871 {
23872 arg2 = wxString_in_helper(obj1);
23873 if (arg2 == NULL) SWIG_fail;
23874 temp2 = true;
23875 }
23876 {
23877 PyThreadState* __tstate = wxPyBeginAllowThreads();
23878 result = ((wxColourDatabase const *)arg1)->Find((wxString const &)*arg2);
23879 wxPyEndAllowThreads(__tstate);
23880 if (PyErr_Occurred()) SWIG_fail;
23881 }
23882 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
23883 {
23884 if (temp2)
23885 delete arg2;
23886 }
23887 return resultobj;
23888 fail:
23889 {
23890 if (temp2)
23891 delete arg2;
23892 }
23893 return NULL;
23894 }
23895
23896
23897 SWIGINTERN PyObject *_wrap_ColourDatabase_FindName(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23898 PyObject *resultobj = 0;
23899 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23900 wxColour *arg2 = 0 ;
23901 wxString result;
23902 void *argp1 = 0 ;
23903 int res1 = 0 ;
23904 wxColour temp2 ;
23905 PyObject * obj0 = 0 ;
23906 PyObject * obj1 = 0 ;
23907 char * kwnames[] = {
23908 (char *) "self",(char *) "colour", NULL
23909 };
23910
23911 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ColourDatabase_FindName",kwnames,&obj0,&obj1)) SWIG_fail;
23912 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23913 if (!SWIG_IsOK(res1)) {
23914 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_FindName" "', expected argument " "1"" of type '" "wxColourDatabase const *""'");
23915 }
23916 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23917 {
23918 arg2 = &temp2;
23919 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
23920 }
23921 {
23922 PyThreadState* __tstate = wxPyBeginAllowThreads();
23923 result = ((wxColourDatabase const *)arg1)->FindName((wxColour const &)*arg2);
23924 wxPyEndAllowThreads(__tstate);
23925 if (PyErr_Occurred()) SWIG_fail;
23926 }
23927 {
23928 #if wxUSE_UNICODE
23929 resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len());
23930 #else
23931 resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len());
23932 #endif
23933 }
23934 return resultobj;
23935 fail:
23936 return NULL;
23937 }
23938
23939
23940 SWIGINTERN PyObject *_wrap_ColourDatabase_AddColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23941 PyObject *resultobj = 0;
23942 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23943 wxString *arg2 = 0 ;
23944 wxColour *arg3 = 0 ;
23945 void *argp1 = 0 ;
23946 int res1 = 0 ;
23947 bool temp2 = false ;
23948 wxColour temp3 ;
23949 PyObject * obj0 = 0 ;
23950 PyObject * obj1 = 0 ;
23951 PyObject * obj2 = 0 ;
23952 char * kwnames[] = {
23953 (char *) "self",(char *) "name",(char *) "colour", NULL
23954 };
23955
23956 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ColourDatabase_AddColour",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
23957 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
23958 if (!SWIG_IsOK(res1)) {
23959 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_AddColour" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
23960 }
23961 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
23962 {
23963 arg2 = wxString_in_helper(obj1);
23964 if (arg2 == NULL) SWIG_fail;
23965 temp2 = true;
23966 }
23967 {
23968 arg3 = &temp3;
23969 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
23970 }
23971 {
23972 PyThreadState* __tstate = wxPyBeginAllowThreads();
23973 (arg1)->AddColour((wxString const &)*arg2,(wxColour const &)*arg3);
23974 wxPyEndAllowThreads(__tstate);
23975 if (PyErr_Occurred()) SWIG_fail;
23976 }
23977 resultobj = SWIG_Py_Void();
23978 {
23979 if (temp2)
23980 delete arg2;
23981 }
23982 return resultobj;
23983 fail:
23984 {
23985 if (temp2)
23986 delete arg2;
23987 }
23988 return NULL;
23989 }
23990
23991
23992 SWIGINTERN PyObject *_wrap_ColourDatabase_Append(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
23993 PyObject *resultobj = 0;
23994 wxColourDatabase *arg1 = (wxColourDatabase *) 0 ;
23995 wxString *arg2 = 0 ;
23996 int arg3 ;
23997 int arg4 ;
23998 int arg5 ;
23999 void *argp1 = 0 ;
24000 int res1 = 0 ;
24001 bool temp2 = false ;
24002 int val3 ;
24003 int ecode3 = 0 ;
24004 int val4 ;
24005 int ecode4 = 0 ;
24006 int val5 ;
24007 int ecode5 = 0 ;
24008 PyObject * obj0 = 0 ;
24009 PyObject * obj1 = 0 ;
24010 PyObject * obj2 = 0 ;
24011 PyObject * obj3 = 0 ;
24012 PyObject * obj4 = 0 ;
24013 char * kwnames[] = {
24014 (char *) "self",(char *) "name",(char *) "red",(char *) "green",(char *) "blue", NULL
24015 };
24016
24017 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:ColourDatabase_Append",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
24018 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24019 if (!SWIG_IsOK(res1)) {
24020 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ColourDatabase_Append" "', expected argument " "1"" of type '" "wxColourDatabase *""'");
24021 }
24022 arg1 = reinterpret_cast< wxColourDatabase * >(argp1);
24023 {
24024 arg2 = wxString_in_helper(obj1);
24025 if (arg2 == NULL) SWIG_fail;
24026 temp2 = true;
24027 }
24028 ecode3 = SWIG_AsVal_int(obj2, &val3);
24029 if (!SWIG_IsOK(ecode3)) {
24030 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ColourDatabase_Append" "', expected argument " "3"" of type '" "int""'");
24031 }
24032 arg3 = static_cast< int >(val3);
24033 ecode4 = SWIG_AsVal_int(obj3, &val4);
24034 if (!SWIG_IsOK(ecode4)) {
24035 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "ColourDatabase_Append" "', expected argument " "4"" of type '" "int""'");
24036 }
24037 arg4 = static_cast< int >(val4);
24038 ecode5 = SWIG_AsVal_int(obj4, &val5);
24039 if (!SWIG_IsOK(ecode5)) {
24040 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "ColourDatabase_Append" "', expected argument " "5"" of type '" "int""'");
24041 }
24042 arg5 = static_cast< int >(val5);
24043 {
24044 PyThreadState* __tstate = wxPyBeginAllowThreads();
24045 wxColourDatabase_Append(arg1,(wxString const &)*arg2,arg3,arg4,arg5);
24046 wxPyEndAllowThreads(__tstate);
24047 if (PyErr_Occurred()) SWIG_fail;
24048 }
24049 resultobj = SWIG_Py_Void();
24050 {
24051 if (temp2)
24052 delete arg2;
24053 }
24054 return resultobj;
24055 fail:
24056 {
24057 if (temp2)
24058 delete arg2;
24059 }
24060 return NULL;
24061 }
24062
24063
24064 SWIGINTERN PyObject *ColourDatabase_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24065 PyObject *obj;
24066 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24067 SWIG_TypeNewClientData(SWIGTYPE_p_wxColourDatabase, SWIG_NewClientData(obj));
24068 return SWIG_Py_Void();
24069 }
24070
24071 SWIGINTERN PyObject *ColourDatabase_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24072 return SWIG_Python_InitShadowInstance(args);
24073 }
24074
24075 SWIGINTERN PyObject *_wrap__wxPyInitTheFontList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24076 PyObject *resultobj = 0;
24077 wxFontList *result = 0 ;
24078
24079 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheFontList",0,0,0)) SWIG_fail;
24080 {
24081 PyThreadState* __tstate = wxPyBeginAllowThreads();
24082 result = (wxFontList *)_wxPyInitTheFontList();
24083 wxPyEndAllowThreads(__tstate);
24084 if (PyErr_Occurred()) SWIG_fail;
24085 }
24086 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxFontList, 0 | 0 );
24087 return resultobj;
24088 fail:
24089 return NULL;
24090 }
24091
24092
24093 SWIGINTERN PyObject *_wrap__wxPyInitThePenList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24094 PyObject *resultobj = 0;
24095 wxPenList *result = 0 ;
24096
24097 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitThePenList",0,0,0)) SWIG_fail;
24098 {
24099 PyThreadState* __tstate = wxPyBeginAllowThreads();
24100 result = (wxPenList *)_wxPyInitThePenList();
24101 wxPyEndAllowThreads(__tstate);
24102 if (PyErr_Occurred()) SWIG_fail;
24103 }
24104 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxPenList, 0 | 0 );
24105 return resultobj;
24106 fail:
24107 return NULL;
24108 }
24109
24110
24111 SWIGINTERN PyObject *_wrap__wxPyInitTheBrushList(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24112 PyObject *resultobj = 0;
24113 wxBrushList *result = 0 ;
24114
24115 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheBrushList",0,0,0)) SWIG_fail;
24116 {
24117 PyThreadState* __tstate = wxPyBeginAllowThreads();
24118 result = (wxBrushList *)_wxPyInitTheBrushList();
24119 wxPyEndAllowThreads(__tstate);
24120 if (PyErr_Occurred()) SWIG_fail;
24121 }
24122 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxBrushList, 0 | 0 );
24123 return resultobj;
24124 fail:
24125 return NULL;
24126 }
24127
24128
24129 SWIGINTERN PyObject *_wrap__wxPyInitTheColourDatabase(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24130 PyObject *resultobj = 0;
24131 wxColourDatabase *result = 0 ;
24132
24133 if (!SWIG_Python_UnpackTuple(args,"_wxPyInitTheColourDatabase",0,0,0)) SWIG_fail;
24134 {
24135 PyThreadState* __tstate = wxPyBeginAllowThreads();
24136 result = (wxColourDatabase *)_wxPyInitTheColourDatabase();
24137 wxPyEndAllowThreads(__tstate);
24138 if (PyErr_Occurred()) SWIG_fail;
24139 }
24140 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxColourDatabase, 0 | 0 );
24141 return resultobj;
24142 fail:
24143 return NULL;
24144 }
24145
24146
24147 SWIGINTERN PyObject *_wrap_new_Effects(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24148 PyObject *resultobj = 0;
24149 wxEffects *result = 0 ;
24150
24151 if (!SWIG_Python_UnpackTuple(args,"new_Effects",0,0,0)) SWIG_fail;
24152 {
24153 PyThreadState* __tstate = wxPyBeginAllowThreads();
24154 result = (wxEffects *)new wxEffects();
24155 wxPyEndAllowThreads(__tstate);
24156 if (PyErr_Occurred()) SWIG_fail;
24157 }
24158 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxEffects, SWIG_POINTER_NEW | 0 );
24159 return resultobj;
24160 fail:
24161 return NULL;
24162 }
24163
24164
24165 SWIGINTERN PyObject *_wrap_Effects_GetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24166 PyObject *resultobj = 0;
24167 wxEffects *arg1 = (wxEffects *) 0 ;
24168 wxColour result;
24169 void *argp1 = 0 ;
24170 int res1 = 0 ;
24171 PyObject *swig_obj[1] ;
24172
24173 if (!args) SWIG_fail;
24174 swig_obj[0] = args;
24175 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24176 if (!SWIG_IsOK(res1)) {
24177 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetHighlightColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24178 }
24179 arg1 = reinterpret_cast< wxEffects * >(argp1);
24180 {
24181 PyThreadState* __tstate = wxPyBeginAllowThreads();
24182 result = ((wxEffects const *)arg1)->GetHighlightColour();
24183 wxPyEndAllowThreads(__tstate);
24184 if (PyErr_Occurred()) SWIG_fail;
24185 }
24186 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24187 return resultobj;
24188 fail:
24189 return NULL;
24190 }
24191
24192
24193 SWIGINTERN PyObject *_wrap_Effects_GetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24194 PyObject *resultobj = 0;
24195 wxEffects *arg1 = (wxEffects *) 0 ;
24196 wxColour result;
24197 void *argp1 = 0 ;
24198 int res1 = 0 ;
24199 PyObject *swig_obj[1] ;
24200
24201 if (!args) SWIG_fail;
24202 swig_obj[0] = args;
24203 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24204 if (!SWIG_IsOK(res1)) {
24205 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetLightShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24206 }
24207 arg1 = reinterpret_cast< wxEffects * >(argp1);
24208 {
24209 PyThreadState* __tstate = wxPyBeginAllowThreads();
24210 result = ((wxEffects const *)arg1)->GetLightShadow();
24211 wxPyEndAllowThreads(__tstate);
24212 if (PyErr_Occurred()) SWIG_fail;
24213 }
24214 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24215 return resultobj;
24216 fail:
24217 return NULL;
24218 }
24219
24220
24221 SWIGINTERN PyObject *_wrap_Effects_GetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24222 PyObject *resultobj = 0;
24223 wxEffects *arg1 = (wxEffects *) 0 ;
24224 wxColour result;
24225 void *argp1 = 0 ;
24226 int res1 = 0 ;
24227 PyObject *swig_obj[1] ;
24228
24229 if (!args) SWIG_fail;
24230 swig_obj[0] = args;
24231 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24232 if (!SWIG_IsOK(res1)) {
24233 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetFaceColour" "', expected argument " "1"" of type '" "wxEffects const *""'");
24234 }
24235 arg1 = reinterpret_cast< wxEffects * >(argp1);
24236 {
24237 PyThreadState* __tstate = wxPyBeginAllowThreads();
24238 result = ((wxEffects const *)arg1)->GetFaceColour();
24239 wxPyEndAllowThreads(__tstate);
24240 if (PyErr_Occurred()) SWIG_fail;
24241 }
24242 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24243 return resultobj;
24244 fail:
24245 return NULL;
24246 }
24247
24248
24249 SWIGINTERN PyObject *_wrap_Effects_GetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24250 PyObject *resultobj = 0;
24251 wxEffects *arg1 = (wxEffects *) 0 ;
24252 wxColour result;
24253 void *argp1 = 0 ;
24254 int res1 = 0 ;
24255 PyObject *swig_obj[1] ;
24256
24257 if (!args) SWIG_fail;
24258 swig_obj[0] = args;
24259 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24260 if (!SWIG_IsOK(res1)) {
24261 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetMediumShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24262 }
24263 arg1 = reinterpret_cast< wxEffects * >(argp1);
24264 {
24265 PyThreadState* __tstate = wxPyBeginAllowThreads();
24266 result = ((wxEffects const *)arg1)->GetMediumShadow();
24267 wxPyEndAllowThreads(__tstate);
24268 if (PyErr_Occurred()) SWIG_fail;
24269 }
24270 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24271 return resultobj;
24272 fail:
24273 return NULL;
24274 }
24275
24276
24277 SWIGINTERN PyObject *_wrap_Effects_GetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24278 PyObject *resultobj = 0;
24279 wxEffects *arg1 = (wxEffects *) 0 ;
24280 wxColour result;
24281 void *argp1 = 0 ;
24282 int res1 = 0 ;
24283 PyObject *swig_obj[1] ;
24284
24285 if (!args) SWIG_fail;
24286 swig_obj[0] = args;
24287 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24288 if (!SWIG_IsOK(res1)) {
24289 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_GetDarkShadow" "', expected argument " "1"" of type '" "wxEffects const *""'");
24290 }
24291 arg1 = reinterpret_cast< wxEffects * >(argp1);
24292 {
24293 PyThreadState* __tstate = wxPyBeginAllowThreads();
24294 result = ((wxEffects const *)arg1)->GetDarkShadow();
24295 wxPyEndAllowThreads(__tstate);
24296 if (PyErr_Occurred()) SWIG_fail;
24297 }
24298 resultobj = SWIG_NewPointerObj((new wxColour(static_cast< const wxColour& >(result))), SWIGTYPE_p_wxColour, SWIG_POINTER_OWN | 0 );
24299 return resultobj;
24300 fail:
24301 return NULL;
24302 }
24303
24304
24305 SWIGINTERN PyObject *_wrap_Effects_SetHighlightColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24306 PyObject *resultobj = 0;
24307 wxEffects *arg1 = (wxEffects *) 0 ;
24308 wxColour *arg2 = 0 ;
24309 void *argp1 = 0 ;
24310 int res1 = 0 ;
24311 wxColour temp2 ;
24312 PyObject * obj0 = 0 ;
24313 PyObject * obj1 = 0 ;
24314 char * kwnames[] = {
24315 (char *) "self",(char *) "c", NULL
24316 };
24317
24318 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetHighlightColour",kwnames,&obj0,&obj1)) SWIG_fail;
24319 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24320 if (!SWIG_IsOK(res1)) {
24321 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetHighlightColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24322 }
24323 arg1 = reinterpret_cast< wxEffects * >(argp1);
24324 {
24325 arg2 = &temp2;
24326 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24327 }
24328 {
24329 PyThreadState* __tstate = wxPyBeginAllowThreads();
24330 (arg1)->SetHighlightColour((wxColour const &)*arg2);
24331 wxPyEndAllowThreads(__tstate);
24332 if (PyErr_Occurred()) SWIG_fail;
24333 }
24334 resultobj = SWIG_Py_Void();
24335 return resultobj;
24336 fail:
24337 return NULL;
24338 }
24339
24340
24341 SWIGINTERN PyObject *_wrap_Effects_SetLightShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24342 PyObject *resultobj = 0;
24343 wxEffects *arg1 = (wxEffects *) 0 ;
24344 wxColour *arg2 = 0 ;
24345 void *argp1 = 0 ;
24346 int res1 = 0 ;
24347 wxColour temp2 ;
24348 PyObject * obj0 = 0 ;
24349 PyObject * obj1 = 0 ;
24350 char * kwnames[] = {
24351 (char *) "self",(char *) "c", NULL
24352 };
24353
24354 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetLightShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24355 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24356 if (!SWIG_IsOK(res1)) {
24357 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetLightShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24358 }
24359 arg1 = reinterpret_cast< wxEffects * >(argp1);
24360 {
24361 arg2 = &temp2;
24362 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24363 }
24364 {
24365 PyThreadState* __tstate = wxPyBeginAllowThreads();
24366 (arg1)->SetLightShadow((wxColour const &)*arg2);
24367 wxPyEndAllowThreads(__tstate);
24368 if (PyErr_Occurred()) SWIG_fail;
24369 }
24370 resultobj = SWIG_Py_Void();
24371 return resultobj;
24372 fail:
24373 return NULL;
24374 }
24375
24376
24377 SWIGINTERN PyObject *_wrap_Effects_SetFaceColour(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24378 PyObject *resultobj = 0;
24379 wxEffects *arg1 = (wxEffects *) 0 ;
24380 wxColour *arg2 = 0 ;
24381 void *argp1 = 0 ;
24382 int res1 = 0 ;
24383 wxColour temp2 ;
24384 PyObject * obj0 = 0 ;
24385 PyObject * obj1 = 0 ;
24386 char * kwnames[] = {
24387 (char *) "self",(char *) "c", NULL
24388 };
24389
24390 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetFaceColour",kwnames,&obj0,&obj1)) SWIG_fail;
24391 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24392 if (!SWIG_IsOK(res1)) {
24393 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetFaceColour" "', expected argument " "1"" of type '" "wxEffects *""'");
24394 }
24395 arg1 = reinterpret_cast< wxEffects * >(argp1);
24396 {
24397 arg2 = &temp2;
24398 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24399 }
24400 {
24401 PyThreadState* __tstate = wxPyBeginAllowThreads();
24402 (arg1)->SetFaceColour((wxColour const &)*arg2);
24403 wxPyEndAllowThreads(__tstate);
24404 if (PyErr_Occurred()) SWIG_fail;
24405 }
24406 resultobj = SWIG_Py_Void();
24407 return resultobj;
24408 fail:
24409 return NULL;
24410 }
24411
24412
24413 SWIGINTERN PyObject *_wrap_Effects_SetMediumShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24414 PyObject *resultobj = 0;
24415 wxEffects *arg1 = (wxEffects *) 0 ;
24416 wxColour *arg2 = 0 ;
24417 void *argp1 = 0 ;
24418 int res1 = 0 ;
24419 wxColour temp2 ;
24420 PyObject * obj0 = 0 ;
24421 PyObject * obj1 = 0 ;
24422 char * kwnames[] = {
24423 (char *) "self",(char *) "c", NULL
24424 };
24425
24426 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetMediumShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24427 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24428 if (!SWIG_IsOK(res1)) {
24429 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetMediumShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24430 }
24431 arg1 = reinterpret_cast< wxEffects * >(argp1);
24432 {
24433 arg2 = &temp2;
24434 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24435 }
24436 {
24437 PyThreadState* __tstate = wxPyBeginAllowThreads();
24438 (arg1)->SetMediumShadow((wxColour const &)*arg2);
24439 wxPyEndAllowThreads(__tstate);
24440 if (PyErr_Occurred()) SWIG_fail;
24441 }
24442 resultobj = SWIG_Py_Void();
24443 return resultobj;
24444 fail:
24445 return NULL;
24446 }
24447
24448
24449 SWIGINTERN PyObject *_wrap_Effects_SetDarkShadow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24450 PyObject *resultobj = 0;
24451 wxEffects *arg1 = (wxEffects *) 0 ;
24452 wxColour *arg2 = 0 ;
24453 void *argp1 = 0 ;
24454 int res1 = 0 ;
24455 wxColour temp2 ;
24456 PyObject * obj0 = 0 ;
24457 PyObject * obj1 = 0 ;
24458 char * kwnames[] = {
24459 (char *) "self",(char *) "c", NULL
24460 };
24461
24462 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Effects_SetDarkShadow",kwnames,&obj0,&obj1)) SWIG_fail;
24463 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24464 if (!SWIG_IsOK(res1)) {
24465 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_SetDarkShadow" "', expected argument " "1"" of type '" "wxEffects *""'");
24466 }
24467 arg1 = reinterpret_cast< wxEffects * >(argp1);
24468 {
24469 arg2 = &temp2;
24470 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24471 }
24472 {
24473 PyThreadState* __tstate = wxPyBeginAllowThreads();
24474 (arg1)->SetDarkShadow((wxColour const &)*arg2);
24475 wxPyEndAllowThreads(__tstate);
24476 if (PyErr_Occurred()) SWIG_fail;
24477 }
24478 resultobj = SWIG_Py_Void();
24479 return resultobj;
24480 fail:
24481 return NULL;
24482 }
24483
24484
24485 SWIGINTERN PyObject *_wrap_Effects_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24486 PyObject *resultobj = 0;
24487 wxEffects *arg1 = (wxEffects *) 0 ;
24488 wxColour *arg2 = 0 ;
24489 wxColour *arg3 = 0 ;
24490 wxColour *arg4 = 0 ;
24491 wxColour *arg5 = 0 ;
24492 wxColour *arg6 = 0 ;
24493 void *argp1 = 0 ;
24494 int res1 = 0 ;
24495 wxColour temp2 ;
24496 wxColour temp3 ;
24497 wxColour temp4 ;
24498 wxColour temp5 ;
24499 wxColour temp6 ;
24500 PyObject * obj0 = 0 ;
24501 PyObject * obj1 = 0 ;
24502 PyObject * obj2 = 0 ;
24503 PyObject * obj3 = 0 ;
24504 PyObject * obj4 = 0 ;
24505 PyObject * obj5 = 0 ;
24506 char * kwnames[] = {
24507 (char *) "self",(char *) "highlightColour",(char *) "lightShadow",(char *) "faceColour",(char *) "mediumShadow",(char *) "darkShadow", NULL
24508 };
24509
24510 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO:Effects_Set",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) SWIG_fail;
24511 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24512 if (!SWIG_IsOK(res1)) {
24513 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_Set" "', expected argument " "1"" of type '" "wxEffects *""'");
24514 }
24515 arg1 = reinterpret_cast< wxEffects * >(argp1);
24516 {
24517 arg2 = &temp2;
24518 if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail;
24519 }
24520 {
24521 arg3 = &temp3;
24522 if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail;
24523 }
24524 {
24525 arg4 = &temp4;
24526 if ( ! wxColour_helper(obj3, &arg4)) SWIG_fail;
24527 }
24528 {
24529 arg5 = &temp5;
24530 if ( ! wxColour_helper(obj4, &arg5)) SWIG_fail;
24531 }
24532 {
24533 arg6 = &temp6;
24534 if ( ! wxColour_helper(obj5, &arg6)) SWIG_fail;
24535 }
24536 {
24537 PyThreadState* __tstate = wxPyBeginAllowThreads();
24538 (arg1)->Set((wxColour const &)*arg2,(wxColour const &)*arg3,(wxColour const &)*arg4,(wxColour const &)*arg5,(wxColour const &)*arg6);
24539 wxPyEndAllowThreads(__tstate);
24540 if (PyErr_Occurred()) SWIG_fail;
24541 }
24542 resultobj = SWIG_Py_Void();
24543 return resultobj;
24544 fail:
24545 return NULL;
24546 }
24547
24548
24549 SWIGINTERN PyObject *_wrap_Effects_DrawSunkenEdge(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24550 PyObject *resultobj = 0;
24551 wxEffects *arg1 = (wxEffects *) 0 ;
24552 wxDC *arg2 = 0 ;
24553 wxRect *arg3 = 0 ;
24554 int arg4 = (int) 1 ;
24555 void *argp1 = 0 ;
24556 int res1 = 0 ;
24557 void *argp2 = 0 ;
24558 int res2 = 0 ;
24559 wxRect temp3 ;
24560 int val4 ;
24561 int ecode4 = 0 ;
24562 PyObject * obj0 = 0 ;
24563 PyObject * obj1 = 0 ;
24564 PyObject * obj2 = 0 ;
24565 PyObject * obj3 = 0 ;
24566 char * kwnames[] = {
24567 (char *) "self",(char *) "dc",(char *) "rect",(char *) "borderSize", NULL
24568 };
24569
24570 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:Effects_DrawSunkenEdge",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24571 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24572 if (!SWIG_IsOK(res1)) {
24573 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "1"" of type '" "wxEffects *""'");
24574 }
24575 arg1 = reinterpret_cast< wxEffects * >(argp1);
24576 res2 = SWIG_ConvertPtr(obj1, &argp2, SWIGTYPE_p_wxDC, 0 );
24577 if (!SWIG_IsOK(res2)) {
24578 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24579 }
24580 if (!argp2) {
24581 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_DrawSunkenEdge" "', expected argument " "2"" of type '" "wxDC &""'");
24582 }
24583 arg2 = reinterpret_cast< wxDC * >(argp2);
24584 {
24585 arg3 = &temp3;
24586 if ( ! wxRect_helper(obj2, &arg3)) SWIG_fail;
24587 }
24588 if (obj3) {
24589 ecode4 = SWIG_AsVal_int(obj3, &val4);
24590 if (!SWIG_IsOK(ecode4)) {
24591 SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Effects_DrawSunkenEdge" "', expected argument " "4"" of type '" "int""'");
24592 }
24593 arg4 = static_cast< int >(val4);
24594 }
24595 {
24596 PyThreadState* __tstate = wxPyBeginAllowThreads();
24597 (arg1)->DrawSunkenEdge(*arg2,(wxRect const &)*arg3,arg4);
24598 wxPyEndAllowThreads(__tstate);
24599 if (PyErr_Occurred()) SWIG_fail;
24600 }
24601 resultobj = SWIG_Py_Void();
24602 return resultobj;
24603 fail:
24604 return NULL;
24605 }
24606
24607
24608 SWIGINTERN PyObject *_wrap_Effects_TileBitmap(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24609 PyObject *resultobj = 0;
24610 wxEffects *arg1 = (wxEffects *) 0 ;
24611 wxRect *arg2 = 0 ;
24612 wxDC *arg3 = 0 ;
24613 wxBitmap *arg4 = 0 ;
24614 bool result;
24615 void *argp1 = 0 ;
24616 int res1 = 0 ;
24617 wxRect temp2 ;
24618 void *argp3 = 0 ;
24619 int res3 = 0 ;
24620 void *argp4 = 0 ;
24621 int res4 = 0 ;
24622 PyObject * obj0 = 0 ;
24623 PyObject * obj1 = 0 ;
24624 PyObject * obj2 = 0 ;
24625 PyObject * obj3 = 0 ;
24626 char * kwnames[] = {
24627 (char *) "self",(char *) "rect",(char *) "dc",(char *) "bitmap", NULL
24628 };
24629
24630 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:Effects_TileBitmap",kwnames,&obj0,&obj1,&obj2,&obj3)) SWIG_fail;
24631 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxEffects, 0 | 0 );
24632 if (!SWIG_IsOK(res1)) {
24633 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Effects_TileBitmap" "', expected argument " "1"" of type '" "wxEffects *""'");
24634 }
24635 arg1 = reinterpret_cast< wxEffects * >(argp1);
24636 {
24637 arg2 = &temp2;
24638 if ( ! wxRect_helper(obj1, &arg2)) SWIG_fail;
24639 }
24640 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
24641 if (!SWIG_IsOK(res3)) {
24642 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24643 }
24644 if (!argp3) {
24645 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "3"" of type '" "wxDC &""'");
24646 }
24647 arg3 = reinterpret_cast< wxDC * >(argp3);
24648 res4 = SWIG_ConvertPtr(obj3, &argp4, SWIGTYPE_p_wxBitmap, 0 );
24649 if (!SWIG_IsOK(res4)) {
24650 SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24651 }
24652 if (!argp4) {
24653 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "Effects_TileBitmap" "', expected argument " "4"" of type '" "wxBitmap &""'");
24654 }
24655 arg4 = reinterpret_cast< wxBitmap * >(argp4);
24656 {
24657 PyThreadState* __tstate = wxPyBeginAllowThreads();
24658 result = (bool)(arg1)->TileBitmap((wxRect const &)*arg2,*arg3,*arg4);
24659 wxPyEndAllowThreads(__tstate);
24660 if (PyErr_Occurred()) SWIG_fail;
24661 }
24662 {
24663 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24664 }
24665 return resultobj;
24666 fail:
24667 return NULL;
24668 }
24669
24670
24671 SWIGINTERN PyObject *Effects_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24672 PyObject *obj;
24673 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24674 SWIG_TypeNewClientData(SWIGTYPE_p_wxEffects, SWIG_NewClientData(obj));
24675 return SWIG_Py_Void();
24676 }
24677
24678 SWIGINTERN PyObject *Effects_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24679 return SWIG_Python_InitShadowInstance(args);
24680 }
24681
24682 SWIGINTERN PyObject *_wrap_new_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24683 PyObject *resultobj = 0;
24684 int arg1 ;
24685 int arg2 ;
24686 bool arg3 ;
24687 wxSplitterRenderParams *result = 0 ;
24688 int val1 ;
24689 int ecode1 = 0 ;
24690 int val2 ;
24691 int ecode2 = 0 ;
24692 bool val3 ;
24693 int ecode3 = 0 ;
24694 PyObject * obj0 = 0 ;
24695 PyObject * obj1 = 0 ;
24696 PyObject * obj2 = 0 ;
24697 char * kwnames[] = {
24698 (char *) "widthSash_",(char *) "border_",(char *) "isSens_", NULL
24699 };
24700
24701 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:new_SplitterRenderParams",kwnames,&obj0,&obj1,&obj2)) SWIG_fail;
24702 ecode1 = SWIG_AsVal_int(obj0, &val1);
24703 if (!SWIG_IsOK(ecode1)) {
24704 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_SplitterRenderParams" "', expected argument " "1"" of type '" "int""'");
24705 }
24706 arg1 = static_cast< int >(val1);
24707 ecode2 = SWIG_AsVal_int(obj1, &val2);
24708 if (!SWIG_IsOK(ecode2)) {
24709 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_SplitterRenderParams" "', expected argument " "2"" of type '" "int""'");
24710 }
24711 arg2 = static_cast< int >(val2);
24712 ecode3 = SWIG_AsVal_bool(obj2, &val3);
24713 if (!SWIG_IsOK(ecode3)) {
24714 SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "new_SplitterRenderParams" "', expected argument " "3"" of type '" "bool""'");
24715 }
24716 arg3 = static_cast< bool >(val3);
24717 {
24718 PyThreadState* __tstate = wxPyBeginAllowThreads();
24719 result = (wxSplitterRenderParams *)new wxSplitterRenderParams(arg1,arg2,arg3);
24720 wxPyEndAllowThreads(__tstate);
24721 if (PyErr_Occurred()) SWIG_fail;
24722 }
24723 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_NEW | 0 );
24724 return resultobj;
24725 fail:
24726 return NULL;
24727 }
24728
24729
24730 SWIGINTERN PyObject *_wrap_delete_SplitterRenderParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24731 PyObject *resultobj = 0;
24732 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24733 void *argp1 = 0 ;
24734 int res1 = 0 ;
24735 PyObject *swig_obj[1] ;
24736
24737 if (!args) SWIG_fail;
24738 swig_obj[0] = args;
24739 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_DISOWN | 0 );
24740 if (!SWIG_IsOK(res1)) {
24741 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SplitterRenderParams" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24742 }
24743 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24744 {
24745 PyThreadState* __tstate = wxPyBeginAllowThreads();
24746 delete arg1;
24747
24748 wxPyEndAllowThreads(__tstate);
24749 if (PyErr_Occurred()) SWIG_fail;
24750 }
24751 resultobj = SWIG_Py_Void();
24752 return resultobj;
24753 fail:
24754 return NULL;
24755 }
24756
24757
24758 SWIGINTERN PyObject *_wrap_SplitterRenderParams_widthSash_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24759 PyObject *resultobj = 0;
24760 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24761 int result;
24762 void *argp1 = 0 ;
24763 int res1 = 0 ;
24764 PyObject *swig_obj[1] ;
24765
24766 if (!args) SWIG_fail;
24767 swig_obj[0] = args;
24768 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24769 if (!SWIG_IsOK(res1)) {
24770 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_widthSash_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24771 }
24772 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24773 result = (int)(int) ((arg1)->widthSash);
24774 resultobj = SWIG_From_int(static_cast< int >(result));
24775 return resultobj;
24776 fail:
24777 return NULL;
24778 }
24779
24780
24781 SWIGINTERN PyObject *_wrap_SplitterRenderParams_border_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24782 PyObject *resultobj = 0;
24783 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24784 int result;
24785 void *argp1 = 0 ;
24786 int res1 = 0 ;
24787 PyObject *swig_obj[1] ;
24788
24789 if (!args) SWIG_fail;
24790 swig_obj[0] = args;
24791 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24792 if (!SWIG_IsOK(res1)) {
24793 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_border_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24794 }
24795 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24796 result = (int)(int) ((arg1)->border);
24797 resultobj = SWIG_From_int(static_cast< int >(result));
24798 return resultobj;
24799 fail:
24800 return NULL;
24801 }
24802
24803
24804 SWIGINTERN PyObject *_wrap_SplitterRenderParams_isHotSensitive_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24805 PyObject *resultobj = 0;
24806 wxSplitterRenderParams *arg1 = (wxSplitterRenderParams *) 0 ;
24807 bool result;
24808 void *argp1 = 0 ;
24809 int res1 = 0 ;
24810 PyObject *swig_obj[1] ;
24811
24812 if (!args) SWIG_fail;
24813 swig_obj[0] = args;
24814 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxSplitterRenderParams, 0 | 0 );
24815 if (!SWIG_IsOK(res1)) {
24816 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SplitterRenderParams_isHotSensitive_get" "', expected argument " "1"" of type '" "wxSplitterRenderParams *""'");
24817 }
24818 arg1 = reinterpret_cast< wxSplitterRenderParams * >(argp1);
24819 result = (bool)(bool) ((arg1)->isHotSensitive);
24820 resultobj = SWIG_From_bool(static_cast< bool >(result));
24821 return resultobj;
24822 fail:
24823 return NULL;
24824 }
24825
24826
24827 SWIGINTERN PyObject *SplitterRenderParams_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24828 PyObject *obj;
24829 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24830 SWIG_TypeNewClientData(SWIGTYPE_p_wxSplitterRenderParams, SWIG_NewClientData(obj));
24831 return SWIG_Py_Void();
24832 }
24833
24834 SWIGINTERN PyObject *SplitterRenderParams_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24835 return SWIG_Python_InitShadowInstance(args);
24836 }
24837
24838 SWIGINTERN PyObject *_wrap_new_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24839 PyObject *resultobj = 0;
24840 int arg1 ;
24841 int arg2 ;
24842 wxRendererVersion *result = 0 ;
24843 int val1 ;
24844 int ecode1 = 0 ;
24845 int val2 ;
24846 int ecode2 = 0 ;
24847 PyObject * obj0 = 0 ;
24848 PyObject * obj1 = 0 ;
24849 char * kwnames[] = {
24850 (char *) "version_",(char *) "age_", NULL
24851 };
24852
24853 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_RendererVersion",kwnames,&obj0,&obj1)) SWIG_fail;
24854 ecode1 = SWIG_AsVal_int(obj0, &val1);
24855 if (!SWIG_IsOK(ecode1)) {
24856 SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_RendererVersion" "', expected argument " "1"" of type '" "int""'");
24857 }
24858 arg1 = static_cast< int >(val1);
24859 ecode2 = SWIG_AsVal_int(obj1, &val2);
24860 if (!SWIG_IsOK(ecode2)) {
24861 SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "new_RendererVersion" "', expected argument " "2"" of type '" "int""'");
24862 }
24863 arg2 = static_cast< int >(val2);
24864 {
24865 PyThreadState* __tstate = wxPyBeginAllowThreads();
24866 result = (wxRendererVersion *)new wxRendererVersion(arg1,arg2);
24867 wxPyEndAllowThreads(__tstate);
24868 if (PyErr_Occurred()) SWIG_fail;
24869 }
24870 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_NEW | 0 );
24871 return resultobj;
24872 fail:
24873 return NULL;
24874 }
24875
24876
24877 SWIGINTERN PyObject *_wrap_delete_RendererVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24878 PyObject *resultobj = 0;
24879 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24880 void *argp1 = 0 ;
24881 int res1 = 0 ;
24882 PyObject *swig_obj[1] ;
24883
24884 if (!args) SWIG_fail;
24885 swig_obj[0] = args;
24886 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_DISOWN | 0 );
24887 if (!SWIG_IsOK(res1)) {
24888 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_RendererVersion" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24889 }
24890 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24891 {
24892 PyThreadState* __tstate = wxPyBeginAllowThreads();
24893 delete arg1;
24894
24895 wxPyEndAllowThreads(__tstate);
24896 if (PyErr_Occurred()) SWIG_fail;
24897 }
24898 resultobj = SWIG_Py_Void();
24899 return resultobj;
24900 fail:
24901 return NULL;
24902 }
24903
24904
24905 SWIGINTERN PyObject *_wrap_RendererVersion_IsCompatible(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24906 PyObject *resultobj = 0;
24907 wxRendererVersion *arg1 = 0 ;
24908 bool result;
24909 void *argp1 = 0 ;
24910 int res1 = 0 ;
24911 PyObject * obj0 = 0 ;
24912 char * kwnames[] = {
24913 (char *) "ver", NULL
24914 };
24915
24916 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererVersion_IsCompatible",kwnames,&obj0)) SWIG_fail;
24917 res1 = SWIG_ConvertPtr(obj0, &argp1, SWIGTYPE_p_wxRendererVersion, 0 | 0);
24918 if (!SWIG_IsOK(res1)) {
24919 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24920 }
24921 if (!argp1) {
24922 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererVersion_IsCompatible" "', expected argument " "1"" of type '" "wxRendererVersion const &""'");
24923 }
24924 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24925 {
24926 PyThreadState* __tstate = wxPyBeginAllowThreads();
24927 result = (bool)wxRendererVersion::IsCompatible((wxRendererVersion const &)*arg1);
24928 wxPyEndAllowThreads(__tstate);
24929 if (PyErr_Occurred()) SWIG_fail;
24930 }
24931 {
24932 resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj);
24933 }
24934 return resultobj;
24935 fail:
24936 return NULL;
24937 }
24938
24939
24940 SWIGINTERN PyObject *_wrap_RendererVersion_version_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24941 PyObject *resultobj = 0;
24942 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24943 int result;
24944 void *argp1 = 0 ;
24945 int res1 = 0 ;
24946 PyObject *swig_obj[1] ;
24947
24948 if (!args) SWIG_fail;
24949 swig_obj[0] = args;
24950 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24951 if (!SWIG_IsOK(res1)) {
24952 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_version_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24953 }
24954 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24955 result = (int)(int) ((arg1)->version);
24956 resultobj = SWIG_From_int(static_cast< int >(result));
24957 return resultobj;
24958 fail:
24959 return NULL;
24960 }
24961
24962
24963 SWIGINTERN PyObject *_wrap_RendererVersion_age_get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24964 PyObject *resultobj = 0;
24965 wxRendererVersion *arg1 = (wxRendererVersion *) 0 ;
24966 int result;
24967 void *argp1 = 0 ;
24968 int res1 = 0 ;
24969 PyObject *swig_obj[1] ;
24970
24971 if (!args) SWIG_fail;
24972 swig_obj[0] = args;
24973 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererVersion, 0 | 0 );
24974 if (!SWIG_IsOK(res1)) {
24975 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererVersion_age_get" "', expected argument " "1"" of type '" "wxRendererVersion *""'");
24976 }
24977 arg1 = reinterpret_cast< wxRendererVersion * >(argp1);
24978 result = (int)(int) ((arg1)->age);
24979 resultobj = SWIG_From_int(static_cast< int >(result));
24980 return resultobj;
24981 fail:
24982 return NULL;
24983 }
24984
24985
24986 SWIGINTERN PyObject *RendererVersion_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24987 PyObject *obj;
24988 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
24989 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererVersion, SWIG_NewClientData(obj));
24990 return SWIG_Py_Void();
24991 }
24992
24993 SWIGINTERN PyObject *RendererVersion_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
24994 return SWIG_Python_InitShadowInstance(args);
24995 }
24996
24997 SWIGINTERN PyObject *_wrap_RendererNative_DrawHeaderButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
24998 PyObject *resultobj = 0;
24999 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25000 wxWindow *arg2 = (wxWindow *) 0 ;
25001 wxDC *arg3 = 0 ;
25002 wxRect *arg4 = 0 ;
25003 int arg5 = (int) 0 ;
25004 void *argp1 = 0 ;
25005 int res1 = 0 ;
25006 void *argp2 = 0 ;
25007 int res2 = 0 ;
25008 void *argp3 = 0 ;
25009 int res3 = 0 ;
25010 wxRect temp4 ;
25011 int val5 ;
25012 int ecode5 = 0 ;
25013 PyObject * obj0 = 0 ;
25014 PyObject * obj1 = 0 ;
25015 PyObject * obj2 = 0 ;
25016 PyObject * obj3 = 0 ;
25017 PyObject * obj4 = 0 ;
25018 char * kwnames[] = {
25019 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25020 };
25021
25022 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawHeaderButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25023 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25024 if (!SWIG_IsOK(res1)) {
25025 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25026 }
25027 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25028 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25029 if (!SWIG_IsOK(res2)) {
25030 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25031 }
25032 arg2 = reinterpret_cast< wxWindow * >(argp2);
25033 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25034 if (!SWIG_IsOK(res3)) {
25035 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25036 }
25037 if (!argp3) {
25038 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "3"" of type '" "wxDC &""'");
25039 }
25040 arg3 = reinterpret_cast< wxDC * >(argp3);
25041 {
25042 arg4 = &temp4;
25043 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25044 }
25045 if (obj4) {
25046 ecode5 = SWIG_AsVal_int(obj4, &val5);
25047 if (!SWIG_IsOK(ecode5)) {
25048 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawHeaderButton" "', expected argument " "5"" of type '" "int""'");
25049 }
25050 arg5 = static_cast< int >(val5);
25051 }
25052 {
25053 PyThreadState* __tstate = wxPyBeginAllowThreads();
25054 (arg1)->DrawHeaderButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25055 wxPyEndAllowThreads(__tstate);
25056 if (PyErr_Occurred()) SWIG_fail;
25057 }
25058 resultobj = SWIG_Py_Void();
25059 return resultobj;
25060 fail:
25061 return NULL;
25062 }
25063
25064
25065 SWIGINTERN PyObject *_wrap_RendererNative_DrawTreeItemButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25066 PyObject *resultobj = 0;
25067 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25068 wxWindow *arg2 = (wxWindow *) 0 ;
25069 wxDC *arg3 = 0 ;
25070 wxRect *arg4 = 0 ;
25071 int arg5 = (int) 0 ;
25072 void *argp1 = 0 ;
25073 int res1 = 0 ;
25074 void *argp2 = 0 ;
25075 int res2 = 0 ;
25076 void *argp3 = 0 ;
25077 int res3 = 0 ;
25078 wxRect temp4 ;
25079 int val5 ;
25080 int ecode5 = 0 ;
25081 PyObject * obj0 = 0 ;
25082 PyObject * obj1 = 0 ;
25083 PyObject * obj2 = 0 ;
25084 PyObject * obj3 = 0 ;
25085 PyObject * obj4 = 0 ;
25086 char * kwnames[] = {
25087 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25088 };
25089
25090 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawTreeItemButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25091 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25092 if (!SWIG_IsOK(res1)) {
25093 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25094 }
25095 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25096 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25097 if (!SWIG_IsOK(res2)) {
25098 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25099 }
25100 arg2 = reinterpret_cast< wxWindow * >(argp2);
25101 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25102 if (!SWIG_IsOK(res3)) {
25103 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25104 }
25105 if (!argp3) {
25106 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "3"" of type '" "wxDC &""'");
25107 }
25108 arg3 = reinterpret_cast< wxDC * >(argp3);
25109 {
25110 arg4 = &temp4;
25111 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25112 }
25113 if (obj4) {
25114 ecode5 = SWIG_AsVal_int(obj4, &val5);
25115 if (!SWIG_IsOK(ecode5)) {
25116 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawTreeItemButton" "', expected argument " "5"" of type '" "int""'");
25117 }
25118 arg5 = static_cast< int >(val5);
25119 }
25120 {
25121 PyThreadState* __tstate = wxPyBeginAllowThreads();
25122 (arg1)->DrawTreeItemButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25123 wxPyEndAllowThreads(__tstate);
25124 if (PyErr_Occurred()) SWIG_fail;
25125 }
25126 resultobj = SWIG_Py_Void();
25127 return resultobj;
25128 fail:
25129 return NULL;
25130 }
25131
25132
25133 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterBorder(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25134 PyObject *resultobj = 0;
25135 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25136 wxWindow *arg2 = (wxWindow *) 0 ;
25137 wxDC *arg3 = 0 ;
25138 wxRect *arg4 = 0 ;
25139 int arg5 = (int) 0 ;
25140 void *argp1 = 0 ;
25141 int res1 = 0 ;
25142 void *argp2 = 0 ;
25143 int res2 = 0 ;
25144 void *argp3 = 0 ;
25145 int res3 = 0 ;
25146 wxRect temp4 ;
25147 int val5 ;
25148 int ecode5 = 0 ;
25149 PyObject * obj0 = 0 ;
25150 PyObject * obj1 = 0 ;
25151 PyObject * obj2 = 0 ;
25152 PyObject * obj3 = 0 ;
25153 PyObject * obj4 = 0 ;
25154 char * kwnames[] = {
25155 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25156 };
25157
25158 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawSplitterBorder",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25159 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25160 if (!SWIG_IsOK(res1)) {
25161 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25162 }
25163 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25164 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25165 if (!SWIG_IsOK(res2)) {
25166 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "2"" of type '" "wxWindow *""'");
25167 }
25168 arg2 = reinterpret_cast< wxWindow * >(argp2);
25169 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25170 if (!SWIG_IsOK(res3)) {
25171 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25172 }
25173 if (!argp3) {
25174 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "3"" of type '" "wxDC &""'");
25175 }
25176 arg3 = reinterpret_cast< wxDC * >(argp3);
25177 {
25178 arg4 = &temp4;
25179 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25180 }
25181 if (obj4) {
25182 ecode5 = SWIG_AsVal_int(obj4, &val5);
25183 if (!SWIG_IsOK(ecode5)) {
25184 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterBorder" "', expected argument " "5"" of type '" "int""'");
25185 }
25186 arg5 = static_cast< int >(val5);
25187 }
25188 {
25189 PyThreadState* __tstate = wxPyBeginAllowThreads();
25190 (arg1)->DrawSplitterBorder(arg2,*arg3,(wxRect const &)*arg4,arg5);
25191 wxPyEndAllowThreads(__tstate);
25192 if (PyErr_Occurred()) SWIG_fail;
25193 }
25194 resultobj = SWIG_Py_Void();
25195 return resultobj;
25196 fail:
25197 return NULL;
25198 }
25199
25200
25201 SWIGINTERN PyObject *_wrap_RendererNative_DrawSplitterSash(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25202 PyObject *resultobj = 0;
25203 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25204 wxWindow *arg2 = (wxWindow *) 0 ;
25205 wxDC *arg3 = 0 ;
25206 wxSize *arg4 = 0 ;
25207 int arg5 ;
25208 wxOrientation arg6 ;
25209 int arg7 = (int) 0 ;
25210 void *argp1 = 0 ;
25211 int res1 = 0 ;
25212 void *argp2 = 0 ;
25213 int res2 = 0 ;
25214 void *argp3 = 0 ;
25215 int res3 = 0 ;
25216 wxSize temp4 ;
25217 int val5 ;
25218 int ecode5 = 0 ;
25219 int val6 ;
25220 int ecode6 = 0 ;
25221 int val7 ;
25222 int ecode7 = 0 ;
25223 PyObject * obj0 = 0 ;
25224 PyObject * obj1 = 0 ;
25225 PyObject * obj2 = 0 ;
25226 PyObject * obj3 = 0 ;
25227 PyObject * obj4 = 0 ;
25228 PyObject * obj5 = 0 ;
25229 PyObject * obj6 = 0 ;
25230 char * kwnames[] = {
25231 (char *) "self",(char *) "win",(char *) "dc",(char *) "size",(char *) "position",(char *) "orient",(char *) "flags", NULL
25232 };
25233
25234 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|O:RendererNative_DrawSplitterSash",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) SWIG_fail;
25235 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25236 if (!SWIG_IsOK(res1)) {
25237 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25238 }
25239 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25240 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25241 if (!SWIG_IsOK(res2)) {
25242 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "2"" of type '" "wxWindow *""'");
25243 }
25244 arg2 = reinterpret_cast< wxWindow * >(argp2);
25245 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25246 if (!SWIG_IsOK(res3)) {
25247 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25248 }
25249 if (!argp3) {
25250 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "3"" of type '" "wxDC &""'");
25251 }
25252 arg3 = reinterpret_cast< wxDC * >(argp3);
25253 {
25254 arg4 = &temp4;
25255 if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail;
25256 }
25257 ecode5 = SWIG_AsVal_int(obj4, &val5);
25258 if (!SWIG_IsOK(ecode5)) {
25259 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "5"" of type '" "int""'");
25260 }
25261 arg5 = static_cast< int >(val5);
25262 ecode6 = SWIG_AsVal_int(obj5, &val6);
25263 if (!SWIG_IsOK(ecode6)) {
25264 SWIG_exception_fail(SWIG_ArgError(ecode6), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "6"" of type '" "wxOrientation""'");
25265 }
25266 arg6 = static_cast< wxOrientation >(val6);
25267 if (obj6) {
25268 ecode7 = SWIG_AsVal_int(obj6, &val7);
25269 if (!SWIG_IsOK(ecode7)) {
25270 SWIG_exception_fail(SWIG_ArgError(ecode7), "in method '" "RendererNative_DrawSplitterSash" "', expected argument " "7"" of type '" "int""'");
25271 }
25272 arg7 = static_cast< int >(val7);
25273 }
25274 {
25275 PyThreadState* __tstate = wxPyBeginAllowThreads();
25276 (arg1)->DrawSplitterSash(arg2,*arg3,(wxSize const &)*arg4,arg5,arg6,arg7);
25277 wxPyEndAllowThreads(__tstate);
25278 if (PyErr_Occurred()) SWIG_fail;
25279 }
25280 resultobj = SWIG_Py_Void();
25281 return resultobj;
25282 fail:
25283 return NULL;
25284 }
25285
25286
25287 SWIGINTERN PyObject *_wrap_RendererNative_DrawComboBoxDropButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25288 PyObject *resultobj = 0;
25289 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25290 wxWindow *arg2 = (wxWindow *) 0 ;
25291 wxDC *arg3 = 0 ;
25292 wxRect *arg4 = 0 ;
25293 int arg5 = (int) 0 ;
25294 void *argp1 = 0 ;
25295 int res1 = 0 ;
25296 void *argp2 = 0 ;
25297 int res2 = 0 ;
25298 void *argp3 = 0 ;
25299 int res3 = 0 ;
25300 wxRect temp4 ;
25301 int val5 ;
25302 int ecode5 = 0 ;
25303 PyObject * obj0 = 0 ;
25304 PyObject * obj1 = 0 ;
25305 PyObject * obj2 = 0 ;
25306 PyObject * obj3 = 0 ;
25307 PyObject * obj4 = 0 ;
25308 char * kwnames[] = {
25309 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25310 };
25311
25312 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawComboBoxDropButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25313 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25314 if (!SWIG_IsOK(res1)) {
25315 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25316 }
25317 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25318 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25319 if (!SWIG_IsOK(res2)) {
25320 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25321 }
25322 arg2 = reinterpret_cast< wxWindow * >(argp2);
25323 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25324 if (!SWIG_IsOK(res3)) {
25325 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25326 }
25327 if (!argp3) {
25328 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "3"" of type '" "wxDC &""'");
25329 }
25330 arg3 = reinterpret_cast< wxDC * >(argp3);
25331 {
25332 arg4 = &temp4;
25333 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25334 }
25335 if (obj4) {
25336 ecode5 = SWIG_AsVal_int(obj4, &val5);
25337 if (!SWIG_IsOK(ecode5)) {
25338 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawComboBoxDropButton" "', expected argument " "5"" of type '" "int""'");
25339 }
25340 arg5 = static_cast< int >(val5);
25341 }
25342 {
25343 PyThreadState* __tstate = wxPyBeginAllowThreads();
25344 (arg1)->DrawComboBoxDropButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25345 wxPyEndAllowThreads(__tstate);
25346 if (PyErr_Occurred()) SWIG_fail;
25347 }
25348 resultobj = SWIG_Py_Void();
25349 return resultobj;
25350 fail:
25351 return NULL;
25352 }
25353
25354
25355 SWIGINTERN PyObject *_wrap_RendererNative_DrawDropArrow(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25356 PyObject *resultobj = 0;
25357 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25358 wxWindow *arg2 = (wxWindow *) 0 ;
25359 wxDC *arg3 = 0 ;
25360 wxRect *arg4 = 0 ;
25361 int arg5 = (int) 0 ;
25362 void *argp1 = 0 ;
25363 int res1 = 0 ;
25364 void *argp2 = 0 ;
25365 int res2 = 0 ;
25366 void *argp3 = 0 ;
25367 int res3 = 0 ;
25368 wxRect temp4 ;
25369 int val5 ;
25370 int ecode5 = 0 ;
25371 PyObject * obj0 = 0 ;
25372 PyObject * obj1 = 0 ;
25373 PyObject * obj2 = 0 ;
25374 PyObject * obj3 = 0 ;
25375 PyObject * obj4 = 0 ;
25376 char * kwnames[] = {
25377 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25378 };
25379
25380 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawDropArrow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25381 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25382 if (!SWIG_IsOK(res1)) {
25383 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25384 }
25385 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25386 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25387 if (!SWIG_IsOK(res2)) {
25388 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "2"" of type '" "wxWindow *""'");
25389 }
25390 arg2 = reinterpret_cast< wxWindow * >(argp2);
25391 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25392 if (!SWIG_IsOK(res3)) {
25393 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25394 }
25395 if (!argp3) {
25396 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawDropArrow" "', expected argument " "3"" of type '" "wxDC &""'");
25397 }
25398 arg3 = reinterpret_cast< wxDC * >(argp3);
25399 {
25400 arg4 = &temp4;
25401 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25402 }
25403 if (obj4) {
25404 ecode5 = SWIG_AsVal_int(obj4, &val5);
25405 if (!SWIG_IsOK(ecode5)) {
25406 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawDropArrow" "', expected argument " "5"" of type '" "int""'");
25407 }
25408 arg5 = static_cast< int >(val5);
25409 }
25410 {
25411 PyThreadState* __tstate = wxPyBeginAllowThreads();
25412 (arg1)->DrawDropArrow(arg2,*arg3,(wxRect const &)*arg4,arg5);
25413 wxPyEndAllowThreads(__tstate);
25414 if (PyErr_Occurred()) SWIG_fail;
25415 }
25416 resultobj = SWIG_Py_Void();
25417 return resultobj;
25418 fail:
25419 return NULL;
25420 }
25421
25422
25423 SWIGINTERN PyObject *_wrap_RendererNative_DrawCheckBox(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25424 PyObject *resultobj = 0;
25425 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25426 wxWindow *arg2 = (wxWindow *) 0 ;
25427 wxDC *arg3 = 0 ;
25428 wxRect *arg4 = 0 ;
25429 int arg5 = (int) 0 ;
25430 void *argp1 = 0 ;
25431 int res1 = 0 ;
25432 void *argp2 = 0 ;
25433 int res2 = 0 ;
25434 void *argp3 = 0 ;
25435 int res3 = 0 ;
25436 wxRect temp4 ;
25437 int val5 ;
25438 int ecode5 = 0 ;
25439 PyObject * obj0 = 0 ;
25440 PyObject * obj1 = 0 ;
25441 PyObject * obj2 = 0 ;
25442 PyObject * obj3 = 0 ;
25443 PyObject * obj4 = 0 ;
25444 char * kwnames[] = {
25445 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25446 };
25447
25448 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawCheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25449 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25450 if (!SWIG_IsOK(res1)) {
25451 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25452 }
25453 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25454 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25455 if (!SWIG_IsOK(res2)) {
25456 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "2"" of type '" "wxWindow *""'");
25457 }
25458 arg2 = reinterpret_cast< wxWindow * >(argp2);
25459 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25460 if (!SWIG_IsOK(res3)) {
25461 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25462 }
25463 if (!argp3) {
25464 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawCheckBox" "', expected argument " "3"" of type '" "wxDC &""'");
25465 }
25466 arg3 = reinterpret_cast< wxDC * >(argp3);
25467 {
25468 arg4 = &temp4;
25469 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25470 }
25471 if (obj4) {
25472 ecode5 = SWIG_AsVal_int(obj4, &val5);
25473 if (!SWIG_IsOK(ecode5)) {
25474 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawCheckBox" "', expected argument " "5"" of type '" "int""'");
25475 }
25476 arg5 = static_cast< int >(val5);
25477 }
25478 {
25479 PyThreadState* __tstate = wxPyBeginAllowThreads();
25480 (arg1)->DrawCheckBox(arg2,*arg3,(wxRect const &)*arg4,arg5);
25481 wxPyEndAllowThreads(__tstate);
25482 if (PyErr_Occurred()) SWIG_fail;
25483 }
25484 resultobj = SWIG_Py_Void();
25485 return resultobj;
25486 fail:
25487 return NULL;
25488 }
25489
25490
25491 SWIGINTERN PyObject *_wrap_RendererNative_DrawPushButton(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25492 PyObject *resultobj = 0;
25493 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25494 wxWindow *arg2 = (wxWindow *) 0 ;
25495 wxDC *arg3 = 0 ;
25496 wxRect *arg4 = 0 ;
25497 int arg5 = (int) 0 ;
25498 void *argp1 = 0 ;
25499 int res1 = 0 ;
25500 void *argp2 = 0 ;
25501 int res2 = 0 ;
25502 void *argp3 = 0 ;
25503 int res3 = 0 ;
25504 wxRect temp4 ;
25505 int val5 ;
25506 int ecode5 = 0 ;
25507 PyObject * obj0 = 0 ;
25508 PyObject * obj1 = 0 ;
25509 PyObject * obj2 = 0 ;
25510 PyObject * obj3 = 0 ;
25511 PyObject * obj4 = 0 ;
25512 char * kwnames[] = {
25513 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25514 };
25515
25516 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawPushButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25517 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25518 if (!SWIG_IsOK(res1)) {
25519 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawPushButton" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25520 }
25521 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25522 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25523 if (!SWIG_IsOK(res2)) {
25524 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawPushButton" "', expected argument " "2"" of type '" "wxWindow *""'");
25525 }
25526 arg2 = reinterpret_cast< wxWindow * >(argp2);
25527 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25528 if (!SWIG_IsOK(res3)) {
25529 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25530 }
25531 if (!argp3) {
25532 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawPushButton" "', expected argument " "3"" of type '" "wxDC &""'");
25533 }
25534 arg3 = reinterpret_cast< wxDC * >(argp3);
25535 {
25536 arg4 = &temp4;
25537 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25538 }
25539 if (obj4) {
25540 ecode5 = SWIG_AsVal_int(obj4, &val5);
25541 if (!SWIG_IsOK(ecode5)) {
25542 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawPushButton" "', expected argument " "5"" of type '" "int""'");
25543 }
25544 arg5 = static_cast< int >(val5);
25545 }
25546 {
25547 PyThreadState* __tstate = wxPyBeginAllowThreads();
25548 (arg1)->DrawPushButton(arg2,*arg3,(wxRect const &)*arg4,arg5);
25549 wxPyEndAllowThreads(__tstate);
25550 if (PyErr_Occurred()) SWIG_fail;
25551 }
25552 resultobj = SWIG_Py_Void();
25553 return resultobj;
25554 fail:
25555 return NULL;
25556 }
25557
25558
25559 SWIGINTERN PyObject *_wrap_RendererNative_DrawItemSelectionRect(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25560 PyObject *resultobj = 0;
25561 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25562 wxWindow *arg2 = (wxWindow *) 0 ;
25563 wxDC *arg3 = 0 ;
25564 wxRect *arg4 = 0 ;
25565 int arg5 = (int) 0 ;
25566 void *argp1 = 0 ;
25567 int res1 = 0 ;
25568 void *argp2 = 0 ;
25569 int res2 = 0 ;
25570 void *argp3 = 0 ;
25571 int res3 = 0 ;
25572 wxRect temp4 ;
25573 int val5 ;
25574 int ecode5 = 0 ;
25575 PyObject * obj0 = 0 ;
25576 PyObject * obj1 = 0 ;
25577 PyObject * obj2 = 0 ;
25578 PyObject * obj3 = 0 ;
25579 PyObject * obj4 = 0 ;
25580 char * kwnames[] = {
25581 (char *) "self",(char *) "win",(char *) "dc",(char *) "rect",(char *) "flags", NULL
25582 };
25583
25584 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:RendererNative_DrawItemSelectionRect",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) SWIG_fail;
25585 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25586 if (!SWIG_IsOK(res1)) {
25587 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25588 }
25589 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25590 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25591 if (!SWIG_IsOK(res2)) {
25592 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "2"" of type '" "wxWindow *""'");
25593 }
25594 arg2 = reinterpret_cast< wxWindow * >(argp2);
25595 res3 = SWIG_ConvertPtr(obj2, &argp3, SWIGTYPE_p_wxDC, 0 );
25596 if (!SWIG_IsOK(res3)) {
25597 SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25598 }
25599 if (!argp3) {
25600 SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "3"" of type '" "wxDC &""'");
25601 }
25602 arg3 = reinterpret_cast< wxDC * >(argp3);
25603 {
25604 arg4 = &temp4;
25605 if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail;
25606 }
25607 if (obj4) {
25608 ecode5 = SWIG_AsVal_int(obj4, &val5);
25609 if (!SWIG_IsOK(ecode5)) {
25610 SWIG_exception_fail(SWIG_ArgError(ecode5), "in method '" "RendererNative_DrawItemSelectionRect" "', expected argument " "5"" of type '" "int""'");
25611 }
25612 arg5 = static_cast< int >(val5);
25613 }
25614 {
25615 PyThreadState* __tstate = wxPyBeginAllowThreads();
25616 (arg1)->DrawItemSelectionRect(arg2,*arg3,(wxRect const &)*arg4,arg5);
25617 wxPyEndAllowThreads(__tstate);
25618 if (PyErr_Occurred()) SWIG_fail;
25619 }
25620 resultobj = SWIG_Py_Void();
25621 return resultobj;
25622 fail:
25623 return NULL;
25624 }
25625
25626
25627 SWIGINTERN PyObject *_wrap_RendererNative_GetSplitterParams(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25628 PyObject *resultobj = 0;
25629 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25630 wxWindow *arg2 = (wxWindow *) 0 ;
25631 SwigValueWrapper<wxSplitterRenderParams > result;
25632 void *argp1 = 0 ;
25633 int res1 = 0 ;
25634 void *argp2 = 0 ;
25635 int res2 = 0 ;
25636 PyObject * obj0 = 0 ;
25637 PyObject * obj1 = 0 ;
25638 char * kwnames[] = {
25639 (char *) "self",(char *) "win", NULL
25640 };
25641
25642 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RendererNative_GetSplitterParams",kwnames,&obj0,&obj1)) SWIG_fail;
25643 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25644 if (!SWIG_IsOK(res1)) {
25645 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25646 }
25647 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25648 res2 = SWIG_ConvertPtr(obj1, &argp2,SWIGTYPE_p_wxWindow, 0 | 0 );
25649 if (!SWIG_IsOK(res2)) {
25650 SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "RendererNative_GetSplitterParams" "', expected argument " "2"" of type '" "wxWindow const *""'");
25651 }
25652 arg2 = reinterpret_cast< wxWindow * >(argp2);
25653 {
25654 PyThreadState* __tstate = wxPyBeginAllowThreads();
25655 result = (arg1)->GetSplitterParams((wxWindow const *)arg2);
25656 wxPyEndAllowThreads(__tstate);
25657 if (PyErr_Occurred()) SWIG_fail;
25658 }
25659 resultobj = SWIG_NewPointerObj((new wxSplitterRenderParams(static_cast< const wxSplitterRenderParams& >(result))), SWIGTYPE_p_wxSplitterRenderParams, SWIG_POINTER_OWN | 0 );
25660 return resultobj;
25661 fail:
25662 return NULL;
25663 }
25664
25665
25666 SWIGINTERN PyObject *_wrap_RendererNative_Get(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25667 PyObject *resultobj = 0;
25668 wxRendererNative *result = 0 ;
25669
25670 if (!SWIG_Python_UnpackTuple(args,"RendererNative_Get",0,0,0)) SWIG_fail;
25671 {
25672 PyThreadState* __tstate = wxPyBeginAllowThreads();
25673 {
25674 wxRendererNative &_result_ref = wxRendererNative::Get();
25675 result = (wxRendererNative *) &_result_ref;
25676 }
25677 wxPyEndAllowThreads(__tstate);
25678 if (PyErr_Occurred()) SWIG_fail;
25679 }
25680 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25681 return resultobj;
25682 fail:
25683 return NULL;
25684 }
25685
25686
25687 SWIGINTERN PyObject *_wrap_RendererNative_GetGeneric(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25688 PyObject *resultobj = 0;
25689 wxRendererNative *result = 0 ;
25690
25691 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetGeneric",0,0,0)) SWIG_fail;
25692 {
25693 PyThreadState* __tstate = wxPyBeginAllowThreads();
25694 {
25695 wxRendererNative &_result_ref = wxRendererNative::GetGeneric();
25696 result = (wxRendererNative *) &_result_ref;
25697 }
25698 wxPyEndAllowThreads(__tstate);
25699 if (PyErr_Occurred()) SWIG_fail;
25700 }
25701 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25702 return resultobj;
25703 fail:
25704 return NULL;
25705 }
25706
25707
25708 SWIGINTERN PyObject *_wrap_RendererNative_GetDefault(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25709 PyObject *resultobj = 0;
25710 wxRendererNative *result = 0 ;
25711
25712 if (!SWIG_Python_UnpackTuple(args,"RendererNative_GetDefault",0,0,0)) SWIG_fail;
25713 {
25714 PyThreadState* __tstate = wxPyBeginAllowThreads();
25715 {
25716 wxRendererNative &_result_ref = wxRendererNative::GetDefault();
25717 result = (wxRendererNative *) &_result_ref;
25718 }
25719 wxPyEndAllowThreads(__tstate);
25720 if (PyErr_Occurred()) SWIG_fail;
25721 }
25722 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25723 return resultobj;
25724 fail:
25725 return NULL;
25726 }
25727
25728
25729 SWIGINTERN PyObject *_wrap_RendererNative_Set(PyObject *SWIGUNUSEDPARM(self), PyObject *args, PyObject *kwargs) {
25730 PyObject *resultobj = 0;
25731 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25732 wxRendererNative *result = 0 ;
25733 void *argp1 = 0 ;
25734 int res1 = 0 ;
25735 PyObject * obj0 = 0 ;
25736 char * kwnames[] = {
25737 (char *) "renderer", NULL
25738 };
25739
25740 if (!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RendererNative_Set",kwnames,&obj0)) SWIG_fail;
25741 res1 = SWIG_ConvertPtr(obj0, &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25742 if (!SWIG_IsOK(res1)) {
25743 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_Set" "', expected argument " "1"" of type '" "wxRendererNative *""'");
25744 }
25745 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25746 {
25747 PyThreadState* __tstate = wxPyBeginAllowThreads();
25748 result = (wxRendererNative *)wxRendererNative::Set(arg1);
25749 wxPyEndAllowThreads(__tstate);
25750 if (PyErr_Occurred()) SWIG_fail;
25751 }
25752 resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_wxRendererNative, 0 | 0 );
25753 return resultobj;
25754 fail:
25755 return NULL;
25756 }
25757
25758
25759 SWIGINTERN PyObject *_wrap_RendererNative_GetVersion(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25760 PyObject *resultobj = 0;
25761 wxRendererNative *arg1 = (wxRendererNative *) 0 ;
25762 SwigValueWrapper<wxRendererVersion > result;
25763 void *argp1 = 0 ;
25764 int res1 = 0 ;
25765 PyObject *swig_obj[1] ;
25766
25767 if (!args) SWIG_fail;
25768 swig_obj[0] = args;
25769 res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_wxRendererNative, 0 | 0 );
25770 if (!SWIG_IsOK(res1)) {
25771 SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "RendererNative_GetVersion" "', expected argument " "1"" of type '" "wxRendererNative const *""'");
25772 }
25773 arg1 = reinterpret_cast< wxRendererNative * >(argp1);
25774 {
25775 PyThreadState* __tstate = wxPyBeginAllowThreads();
25776 result = ((wxRendererNative const *)arg1)->GetVersion();
25777 wxPyEndAllowThreads(__tstate);
25778 if (PyErr_Occurred()) SWIG_fail;
25779 }
25780 resultobj = SWIG_NewPointerObj((new wxRendererVersion(static_cast< const wxRendererVersion& >(result))), SWIGTYPE_p_wxRendererVersion, SWIG_POINTER_OWN | 0 );
25781 return resultobj;
25782 fail:
25783 return NULL;
25784 }
25785
25786
25787 SWIGINTERN PyObject *RendererNative_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
25788 PyObject *obj;
25789 if (!SWIG_Python_UnpackTuple(args,(char*)"swigregister", 1, 1,&obj)) return NULL;
25790 SWIG_TypeNewClientData(SWIGTYPE_p_wxRendererNative, SWIG_NewClientData(obj));
25791 return SWIG_Py_Void();
25792 }
25793
25794 static PyMethodDef SwigMethods[] = {
25795 { (char *)"new_GDIObject", (PyCFunction)_wrap_new_GDIObject, METH_NOARGS, NULL},
25796 { (char *)"delete_GDIObject", (PyCFunction)_wrap_delete_GDIObject, METH_O, NULL},
25797 { (char *)"GDIObject_IsNull", (PyCFunction)_wrap_GDIObject_IsNull, METH_O, NULL},
25798 { (char *)"GDIObject_swigregister", GDIObject_swigregister, METH_VARARGS, NULL},
25799 { (char *)"GDIObject_swiginit", GDIObject_swiginit, METH_VARARGS, NULL},
25800 { (char *)"new_Colour", (PyCFunction) _wrap_new_Colour, METH_VARARGS | METH_KEYWORDS, NULL},
25801 { (char *)"new_NamedColour", (PyCFunction) _wrap_new_NamedColour, METH_VARARGS | METH_KEYWORDS, NULL},
25802 { (char *)"new_ColourRGB", (PyCFunction) _wrap_new_ColourRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25803 { (char *)"delete_Colour", (PyCFunction)_wrap_delete_Colour, METH_O, NULL},
25804 { (char *)"Colour_Red", (PyCFunction)_wrap_Colour_Red, METH_O, NULL},
25805 { (char *)"Colour_Green", (PyCFunction)_wrap_Colour_Green, METH_O, NULL},
25806 { (char *)"Colour_Blue", (PyCFunction)_wrap_Colour_Blue, METH_O, NULL},
25807 { (char *)"Colour_Ok", (PyCFunction)_wrap_Colour_Ok, METH_O, NULL},
25808 { (char *)"Colour_Set", (PyCFunction) _wrap_Colour_Set, METH_VARARGS | METH_KEYWORDS, NULL},
25809 { (char *)"Colour_SetRGB", (PyCFunction) _wrap_Colour_SetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25810 { (char *)"Colour_SetFromName", (PyCFunction) _wrap_Colour_SetFromName, METH_VARARGS | METH_KEYWORDS, NULL},
25811 { (char *)"Colour_GetAsString", (PyCFunction) _wrap_Colour_GetAsString, METH_VARARGS | METH_KEYWORDS, NULL},
25812 { (char *)"Colour_GetPixel", (PyCFunction)_wrap_Colour_GetPixel, METH_O, NULL},
25813 { (char *)"Colour___eq__", (PyCFunction) _wrap_Colour___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25814 { (char *)"Colour___ne__", (PyCFunction) _wrap_Colour___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25815 { (char *)"Colour_Get", (PyCFunction)_wrap_Colour_Get, METH_O, NULL},
25816 { (char *)"Colour_GetRGB", (PyCFunction)_wrap_Colour_GetRGB, METH_O, NULL},
25817 { (char *)"Colour_swigregister", Colour_swigregister, METH_VARARGS, NULL},
25818 { (char *)"Colour_swiginit", Colour_swiginit, METH_VARARGS, NULL},
25819 { (char *)"new_Palette", (PyCFunction) _wrap_new_Palette, METH_VARARGS | METH_KEYWORDS, NULL},
25820 { (char *)"delete_Palette", (PyCFunction)_wrap_delete_Palette, METH_O, NULL},
25821 { (char *)"Palette_GetPixel", (PyCFunction) _wrap_Palette_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
25822 { (char *)"Palette_GetRGB", (PyCFunction) _wrap_Palette_GetRGB, METH_VARARGS | METH_KEYWORDS, NULL},
25823 { (char *)"Palette_GetColoursCount", (PyCFunction)_wrap_Palette_GetColoursCount, METH_O, NULL},
25824 { (char *)"Palette_Ok", (PyCFunction)_wrap_Palette_Ok, METH_O, NULL},
25825 { (char *)"Palette_swigregister", Palette_swigregister, METH_VARARGS, NULL},
25826 { (char *)"Palette_swiginit", Palette_swiginit, METH_VARARGS, NULL},
25827 { (char *)"new_Pen", (PyCFunction) _wrap_new_Pen, METH_VARARGS | METH_KEYWORDS, NULL},
25828 { (char *)"delete_Pen", (PyCFunction)_wrap_delete_Pen, METH_O, NULL},
25829 { (char *)"Pen_GetCap", (PyCFunction)_wrap_Pen_GetCap, METH_O, NULL},
25830 { (char *)"Pen_GetColour", (PyCFunction)_wrap_Pen_GetColour, METH_O, NULL},
25831 { (char *)"Pen_GetJoin", (PyCFunction)_wrap_Pen_GetJoin, METH_O, NULL},
25832 { (char *)"Pen_GetStyle", (PyCFunction)_wrap_Pen_GetStyle, METH_O, NULL},
25833 { (char *)"Pen_GetWidth", (PyCFunction)_wrap_Pen_GetWidth, METH_O, NULL},
25834 { (char *)"Pen_Ok", (PyCFunction)_wrap_Pen_Ok, METH_O, NULL},
25835 { (char *)"Pen_SetCap", (PyCFunction) _wrap_Pen_SetCap, METH_VARARGS | METH_KEYWORDS, NULL},
25836 { (char *)"Pen_SetColour", (PyCFunction) _wrap_Pen_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25837 { (char *)"Pen_SetJoin", (PyCFunction) _wrap_Pen_SetJoin, METH_VARARGS | METH_KEYWORDS, NULL},
25838 { (char *)"Pen_SetStyle", (PyCFunction) _wrap_Pen_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25839 { (char *)"Pen_SetWidth", (PyCFunction) _wrap_Pen_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25840 { (char *)"Pen_SetDashes", (PyCFunction) _wrap_Pen_SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25841 { (char *)"Pen_GetDashes", (PyCFunction)_wrap_Pen_GetDashes, METH_O, NULL},
25842 { (char *)"Pen__SetDashes", (PyCFunction) _wrap_Pen__SetDashes, METH_VARARGS | METH_KEYWORDS, NULL},
25843 { (char *)"Pen_GetDashCount", (PyCFunction)_wrap_Pen_GetDashCount, METH_O, NULL},
25844 { (char *)"Pen_GetStipple", (PyCFunction)_wrap_Pen_GetStipple, METH_O, NULL},
25845 { (char *)"Pen_SetStipple", (PyCFunction) _wrap_Pen_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25846 { (char *)"Pen___eq__", (PyCFunction) _wrap_Pen___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25847 { (char *)"Pen___ne__", (PyCFunction) _wrap_Pen___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25848 { (char *)"Pen_swigregister", Pen_swigregister, METH_VARARGS, NULL},
25849 { (char *)"Pen_swiginit", Pen_swiginit, METH_VARARGS, NULL},
25850 { (char *)"new_Brush", (PyCFunction) _wrap_new_Brush, METH_VARARGS | METH_KEYWORDS, NULL},
25851 { (char *)"new_BrushFromBitmap", (PyCFunction) _wrap_new_BrushFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25852 { (char *)"delete_Brush", (PyCFunction)_wrap_delete_Brush, METH_O, NULL},
25853 { (char *)"Brush_SetColour", (PyCFunction) _wrap_Brush_SetColour, METH_VARARGS | METH_KEYWORDS, NULL},
25854 { (char *)"Brush_SetStyle", (PyCFunction) _wrap_Brush_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
25855 { (char *)"Brush_SetStipple", (PyCFunction) _wrap_Brush_SetStipple, METH_VARARGS | METH_KEYWORDS, NULL},
25856 { (char *)"Brush_GetColour", (PyCFunction)_wrap_Brush_GetColour, METH_O, NULL},
25857 { (char *)"Brush_GetStyle", (PyCFunction)_wrap_Brush_GetStyle, METH_O, NULL},
25858 { (char *)"Brush_GetStipple", (PyCFunction)_wrap_Brush_GetStipple, METH_O, NULL},
25859 { (char *)"Brush_IsHatch", (PyCFunction)_wrap_Brush_IsHatch, METH_O, NULL},
25860 { (char *)"Brush_Ok", (PyCFunction)_wrap_Brush_Ok, METH_O, NULL},
25861 { (char *)"Brush_swigregister", Brush_swigregister, METH_VARARGS, NULL},
25862 { (char *)"Brush_swiginit", Brush_swiginit, METH_VARARGS, NULL},
25863 { (char *)"new_Bitmap", (PyCFunction) _wrap_new_Bitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25864 { (char *)"delete_Bitmap", (PyCFunction)_wrap_delete_Bitmap, METH_O, NULL},
25865 { (char *)"new_EmptyBitmap", (PyCFunction) _wrap_new_EmptyBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25866 { (char *)"new_BitmapFromIcon", (PyCFunction) _wrap_new_BitmapFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25867 { (char *)"new_BitmapFromImage", (PyCFunction) _wrap_new_BitmapFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25868 { (char *)"new_BitmapFromXPMData", (PyCFunction) _wrap_new_BitmapFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25869 { (char *)"new_BitmapFromBits", (PyCFunction) _wrap_new_BitmapFromBits, METH_VARARGS | METH_KEYWORDS, NULL},
25870 { (char *)"Bitmap_GetHandle", (PyCFunction)_wrap_Bitmap_GetHandle, METH_O, NULL},
25871 { (char *)"Bitmap_SetHandle", (PyCFunction) _wrap_Bitmap_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25872 { (char *)"Bitmap_Ok", (PyCFunction)_wrap_Bitmap_Ok, METH_O, NULL},
25873 { (char *)"Bitmap_GetWidth", (PyCFunction)_wrap_Bitmap_GetWidth, METH_O, NULL},
25874 { (char *)"Bitmap_GetHeight", (PyCFunction)_wrap_Bitmap_GetHeight, METH_O, NULL},
25875 { (char *)"Bitmap_GetDepth", (PyCFunction)_wrap_Bitmap_GetDepth, METH_O, NULL},
25876 { (char *)"Bitmap_GetSize", (PyCFunction)_wrap_Bitmap_GetSize, METH_O, NULL},
25877 { (char *)"Bitmap_ConvertToImage", (PyCFunction)_wrap_Bitmap_ConvertToImage, METH_O, NULL},
25878 { (char *)"Bitmap_GetMask", (PyCFunction)_wrap_Bitmap_GetMask, METH_O, NULL},
25879 { (char *)"Bitmap_SetMask", (PyCFunction) _wrap_Bitmap_SetMask, METH_VARARGS | METH_KEYWORDS, NULL},
25880 { (char *)"Bitmap_SetMaskColour", (PyCFunction) _wrap_Bitmap_SetMaskColour, METH_VARARGS | METH_KEYWORDS, NULL},
25881 { (char *)"Bitmap_GetSubBitmap", (PyCFunction) _wrap_Bitmap_GetSubBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25882 { (char *)"Bitmap_SaveFile", (PyCFunction) _wrap_Bitmap_SaveFile, METH_VARARGS | METH_KEYWORDS, NULL},
25883 { (char *)"Bitmap_LoadFile", (PyCFunction) _wrap_Bitmap_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25884 { (char *)"Bitmap_GetPalette", (PyCFunction)_wrap_Bitmap_GetPalette, METH_O, NULL},
25885 { (char *)"Bitmap_SetPalette", (PyCFunction) _wrap_Bitmap_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
25886 { (char *)"Bitmap_CopyFromIcon", (PyCFunction) _wrap_Bitmap_CopyFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25887 { (char *)"Bitmap_SetHeight", (PyCFunction) _wrap_Bitmap_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25888 { (char *)"Bitmap_SetWidth", (PyCFunction) _wrap_Bitmap_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25889 { (char *)"Bitmap_SetDepth", (PyCFunction) _wrap_Bitmap_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25890 { (char *)"Bitmap_SetSize", (PyCFunction) _wrap_Bitmap_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25891 { (char *)"Bitmap_CopyFromCursor", (PyCFunction) _wrap_Bitmap_CopyFromCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25892 { (char *)"Bitmap___eq__", (PyCFunction) _wrap_Bitmap___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
25893 { (char *)"Bitmap___ne__", (PyCFunction) _wrap_Bitmap___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
25894 { (char *)"Bitmap_swigregister", Bitmap_swigregister, METH_VARARGS, NULL},
25895 { (char *)"Bitmap_swiginit", Bitmap_swiginit, METH_VARARGS, NULL},
25896 { (char *)"new_Mask", (PyCFunction) _wrap_new_Mask, METH_VARARGS | METH_KEYWORDS, NULL},
25897 { (char *)"delete_Mask", (PyCFunction)_wrap_delete_Mask, METH_O, NULL},
25898 { (char *)"Mask_swigregister", Mask_swigregister, METH_VARARGS, NULL},
25899 { (char *)"Mask_swiginit", Mask_swiginit, METH_VARARGS, NULL},
25900 { (char *)"new_Icon", (PyCFunction) _wrap_new_Icon, METH_VARARGS | METH_KEYWORDS, NULL},
25901 { (char *)"delete_Icon", (PyCFunction)_wrap_delete_Icon, METH_O, NULL},
25902 { (char *)"new_EmptyIcon", (PyCFunction)_wrap_new_EmptyIcon, METH_NOARGS, NULL},
25903 { (char *)"new_IconFromLocation", (PyCFunction) _wrap_new_IconFromLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25904 { (char *)"new_IconFromBitmap", (PyCFunction) _wrap_new_IconFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25905 { (char *)"new_IconFromXPMData", (PyCFunction) _wrap_new_IconFromXPMData, METH_VARARGS | METH_KEYWORDS, NULL},
25906 { (char *)"Icon_LoadFile", (PyCFunction) _wrap_Icon_LoadFile, METH_VARARGS | METH_KEYWORDS, NULL},
25907 { (char *)"Icon_GetHandle", (PyCFunction)_wrap_Icon_GetHandle, METH_O, NULL},
25908 { (char *)"Icon_SetHandle", (PyCFunction) _wrap_Icon_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25909 { (char *)"Icon_Ok", (PyCFunction)_wrap_Icon_Ok, METH_O, NULL},
25910 { (char *)"Icon_GetWidth", (PyCFunction)_wrap_Icon_GetWidth, METH_O, NULL},
25911 { (char *)"Icon_GetHeight", (PyCFunction)_wrap_Icon_GetHeight, METH_O, NULL},
25912 { (char *)"Icon_GetDepth", (PyCFunction)_wrap_Icon_GetDepth, METH_O, NULL},
25913 { (char *)"Icon_SetWidth", (PyCFunction) _wrap_Icon_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25914 { (char *)"Icon_SetHeight", (PyCFunction) _wrap_Icon_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25915 { (char *)"Icon_SetDepth", (PyCFunction) _wrap_Icon_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25916 { (char *)"Icon_SetSize", (PyCFunction) _wrap_Icon_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25917 { (char *)"Icon_CopyFromBitmap", (PyCFunction) _wrap_Icon_CopyFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25918 { (char *)"Icon_swigregister", Icon_swigregister, METH_VARARGS, NULL},
25919 { (char *)"Icon_swiginit", Icon_swiginit, METH_VARARGS, NULL},
25920 { (char *)"new_IconLocation", (PyCFunction) _wrap_new_IconLocation, METH_VARARGS | METH_KEYWORDS, NULL},
25921 { (char *)"delete_IconLocation", (PyCFunction)_wrap_delete_IconLocation, METH_O, NULL},
25922 { (char *)"IconLocation_IsOk", (PyCFunction)_wrap_IconLocation_IsOk, METH_O, NULL},
25923 { (char *)"IconLocation_SetFileName", (PyCFunction) _wrap_IconLocation_SetFileName, METH_VARARGS | METH_KEYWORDS, NULL},
25924 { (char *)"IconLocation_GetFileName", (PyCFunction)_wrap_IconLocation_GetFileName, METH_O, NULL},
25925 { (char *)"IconLocation_SetIndex", (PyCFunction) _wrap_IconLocation_SetIndex, METH_VARARGS | METH_KEYWORDS, NULL},
25926 { (char *)"IconLocation_GetIndex", (PyCFunction)_wrap_IconLocation_GetIndex, METH_O, NULL},
25927 { (char *)"IconLocation_swigregister", IconLocation_swigregister, METH_VARARGS, NULL},
25928 { (char *)"IconLocation_swiginit", IconLocation_swiginit, METH_VARARGS, NULL},
25929 { (char *)"new_IconBundle", (PyCFunction)_wrap_new_IconBundle, METH_NOARGS, NULL},
25930 { (char *)"new_IconBundleFromFile", (PyCFunction) _wrap_new_IconBundleFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25931 { (char *)"new_IconBundleFromIcon", (PyCFunction) _wrap_new_IconBundleFromIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25932 { (char *)"delete_IconBundle", (PyCFunction)_wrap_delete_IconBundle, METH_O, NULL},
25933 { (char *)"IconBundle_AddIcon", (PyCFunction) _wrap_IconBundle_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25934 { (char *)"IconBundle_AddIconFromFile", (PyCFunction) _wrap_IconBundle_AddIconFromFile, METH_VARARGS | METH_KEYWORDS, NULL},
25935 { (char *)"IconBundle_GetIcon", (PyCFunction) _wrap_IconBundle_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
25936 { (char *)"IconBundle_swigregister", IconBundle_swigregister, METH_VARARGS, NULL},
25937 { (char *)"IconBundle_swiginit", IconBundle_swiginit, METH_VARARGS, NULL},
25938 { (char *)"new_Cursor", (PyCFunction) _wrap_new_Cursor, METH_VARARGS | METH_KEYWORDS, NULL},
25939 { (char *)"delete_Cursor", (PyCFunction)_wrap_delete_Cursor, METH_O, NULL},
25940 { (char *)"new_StockCursor", (PyCFunction) _wrap_new_StockCursor, METH_VARARGS | METH_KEYWORDS, NULL},
25941 { (char *)"new_CursorFromImage", (PyCFunction) _wrap_new_CursorFromImage, METH_VARARGS | METH_KEYWORDS, NULL},
25942 { (char *)"Cursor_GetHandle", (PyCFunction)_wrap_Cursor_GetHandle, METH_O, NULL},
25943 { (char *)"Cursor_SetHandle", (PyCFunction) _wrap_Cursor_SetHandle, METH_VARARGS | METH_KEYWORDS, NULL},
25944 { (char *)"Cursor_Ok", (PyCFunction)_wrap_Cursor_Ok, METH_O, NULL},
25945 { (char *)"Cursor_GetWidth", (PyCFunction)_wrap_Cursor_GetWidth, METH_O, NULL},
25946 { (char *)"Cursor_GetHeight", (PyCFunction)_wrap_Cursor_GetHeight, METH_O, NULL},
25947 { (char *)"Cursor_GetDepth", (PyCFunction)_wrap_Cursor_GetDepth, METH_O, NULL},
25948 { (char *)"Cursor_SetWidth", (PyCFunction) _wrap_Cursor_SetWidth, METH_VARARGS | METH_KEYWORDS, NULL},
25949 { (char *)"Cursor_SetHeight", (PyCFunction) _wrap_Cursor_SetHeight, METH_VARARGS | METH_KEYWORDS, NULL},
25950 { (char *)"Cursor_SetDepth", (PyCFunction) _wrap_Cursor_SetDepth, METH_VARARGS | METH_KEYWORDS, NULL},
25951 { (char *)"Cursor_SetSize", (PyCFunction) _wrap_Cursor_SetSize, METH_VARARGS | METH_KEYWORDS, NULL},
25952 { (char *)"Cursor_swigregister", Cursor_swigregister, METH_VARARGS, NULL},
25953 { (char *)"Cursor_swiginit", Cursor_swiginit, METH_VARARGS, NULL},
25954 { (char *)"new_Region", (PyCFunction) _wrap_new_Region, METH_VARARGS | METH_KEYWORDS, NULL},
25955 { (char *)"new_RegionFromBitmap", (PyCFunction) _wrap_new_RegionFromBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25956 { (char *)"new_RegionFromBitmapColour", (PyCFunction) _wrap_new_RegionFromBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25957 { (char *)"new_RegionFromPoints", (PyCFunction) _wrap_new_RegionFromPoints, METH_VARARGS | METH_KEYWORDS, NULL},
25958 { (char *)"delete_Region", (PyCFunction)_wrap_delete_Region, METH_O, NULL},
25959 { (char *)"Region_Clear", (PyCFunction)_wrap_Region_Clear, METH_O, NULL},
25960 { (char *)"Region_Offset", (PyCFunction) _wrap_Region_Offset, METH_VARARGS | METH_KEYWORDS, NULL},
25961 { (char *)"Region_Contains", (PyCFunction) _wrap_Region_Contains, METH_VARARGS | METH_KEYWORDS, NULL},
25962 { (char *)"Region_ContainsPoint", (PyCFunction) _wrap_Region_ContainsPoint, METH_VARARGS | METH_KEYWORDS, NULL},
25963 { (char *)"Region_ContainsRect", (PyCFunction) _wrap_Region_ContainsRect, METH_VARARGS | METH_KEYWORDS, NULL},
25964 { (char *)"Region_ContainsRectDim", (PyCFunction) _wrap_Region_ContainsRectDim, METH_VARARGS | METH_KEYWORDS, NULL},
25965 { (char *)"Region_GetBox", (PyCFunction)_wrap_Region_GetBox, METH_O, NULL},
25966 { (char *)"Region_Intersect", (PyCFunction) _wrap_Region_Intersect, METH_VARARGS | METH_KEYWORDS, NULL},
25967 { (char *)"Region_IntersectRect", (PyCFunction) _wrap_Region_IntersectRect, METH_VARARGS | METH_KEYWORDS, NULL},
25968 { (char *)"Region_IntersectRegion", (PyCFunction) _wrap_Region_IntersectRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25969 { (char *)"Region_IsEmpty", (PyCFunction)_wrap_Region_IsEmpty, METH_O, NULL},
25970 { (char *)"Region_Union", (PyCFunction) _wrap_Region_Union, METH_VARARGS | METH_KEYWORDS, NULL},
25971 { (char *)"Region_UnionRect", (PyCFunction) _wrap_Region_UnionRect, METH_VARARGS | METH_KEYWORDS, NULL},
25972 { (char *)"Region_UnionRegion", (PyCFunction) _wrap_Region_UnionRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25973 { (char *)"Region_Subtract", (PyCFunction) _wrap_Region_Subtract, METH_VARARGS | METH_KEYWORDS, NULL},
25974 { (char *)"Region_SubtractRect", (PyCFunction) _wrap_Region_SubtractRect, METH_VARARGS | METH_KEYWORDS, NULL},
25975 { (char *)"Region_SubtractRegion", (PyCFunction) _wrap_Region_SubtractRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25976 { (char *)"Region_Xor", (PyCFunction) _wrap_Region_Xor, METH_VARARGS | METH_KEYWORDS, NULL},
25977 { (char *)"Region_XorRect", (PyCFunction) _wrap_Region_XorRect, METH_VARARGS | METH_KEYWORDS, NULL},
25978 { (char *)"Region_XorRegion", (PyCFunction) _wrap_Region_XorRegion, METH_VARARGS | METH_KEYWORDS, NULL},
25979 { (char *)"Region_ConvertToBitmap", (PyCFunction)_wrap_Region_ConvertToBitmap, METH_O, NULL},
25980 { (char *)"Region_UnionBitmap", (PyCFunction) _wrap_Region_UnionBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
25981 { (char *)"Region_UnionBitmapColour", (PyCFunction) _wrap_Region_UnionBitmapColour, METH_VARARGS | METH_KEYWORDS, NULL},
25982 { (char *)"Region_swigregister", Region_swigregister, METH_VARARGS, NULL},
25983 { (char *)"Region_swiginit", Region_swiginit, METH_VARARGS, NULL},
25984 { (char *)"new_RegionIterator", (PyCFunction) _wrap_new_RegionIterator, METH_VARARGS | METH_KEYWORDS, NULL},
25985 { (char *)"delete_RegionIterator", (PyCFunction)_wrap_delete_RegionIterator, METH_O, NULL},
25986 { (char *)"RegionIterator_GetX", (PyCFunction)_wrap_RegionIterator_GetX, METH_O, NULL},
25987 { (char *)"RegionIterator_GetY", (PyCFunction)_wrap_RegionIterator_GetY, METH_O, NULL},
25988 { (char *)"RegionIterator_GetW", (PyCFunction)_wrap_RegionIterator_GetW, METH_O, NULL},
25989 { (char *)"RegionIterator_GetWidth", (PyCFunction)_wrap_RegionIterator_GetWidth, METH_O, NULL},
25990 { (char *)"RegionIterator_GetH", (PyCFunction)_wrap_RegionIterator_GetH, METH_O, NULL},
25991 { (char *)"RegionIterator_GetHeight", (PyCFunction)_wrap_RegionIterator_GetHeight, METH_O, NULL},
25992 { (char *)"RegionIterator_GetRect", (PyCFunction)_wrap_RegionIterator_GetRect, METH_O, NULL},
25993 { (char *)"RegionIterator_HaveRects", (PyCFunction)_wrap_RegionIterator_HaveRects, METH_O, NULL},
25994 { (char *)"RegionIterator_Reset", (PyCFunction)_wrap_RegionIterator_Reset, METH_O, NULL},
25995 { (char *)"RegionIterator_Next", (PyCFunction)_wrap_RegionIterator_Next, METH_O, NULL},
25996 { (char *)"RegionIterator___nonzero__", (PyCFunction)_wrap_RegionIterator___nonzero__, METH_O, NULL},
25997 { (char *)"RegionIterator_swigregister", RegionIterator_swigregister, METH_VARARGS, NULL},
25998 { (char *)"RegionIterator_swiginit", RegionIterator_swiginit, METH_VARARGS, NULL},
25999 { (char *)"new_NativeFontInfo", (PyCFunction)_wrap_new_NativeFontInfo, METH_NOARGS, NULL},
26000 { (char *)"delete_NativeFontInfo", (PyCFunction)_wrap_delete_NativeFontInfo, METH_O, NULL},
26001 { (char *)"NativeFontInfo_Init", (PyCFunction)_wrap_NativeFontInfo_Init, METH_O, NULL},
26002 { (char *)"NativeFontInfo_InitFromFont", (PyCFunction) _wrap_NativeFontInfo_InitFromFont, METH_VARARGS | METH_KEYWORDS, NULL},
26003 { (char *)"NativeFontInfo_GetPointSize", (PyCFunction)_wrap_NativeFontInfo_GetPointSize, METH_O, NULL},
26004 { (char *)"NativeFontInfo_GetPixelSize", (PyCFunction)_wrap_NativeFontInfo_GetPixelSize, METH_O, NULL},
26005 { (char *)"NativeFontInfo_GetStyle", (PyCFunction)_wrap_NativeFontInfo_GetStyle, METH_O, NULL},
26006 { (char *)"NativeFontInfo_GetWeight", (PyCFunction)_wrap_NativeFontInfo_GetWeight, METH_O, NULL},
26007 { (char *)"NativeFontInfo_GetUnderlined", (PyCFunction)_wrap_NativeFontInfo_GetUnderlined, METH_O, NULL},
26008 { (char *)"NativeFontInfo_GetFaceName", (PyCFunction)_wrap_NativeFontInfo_GetFaceName, METH_O, NULL},
26009 { (char *)"NativeFontInfo_GetFamily", (PyCFunction)_wrap_NativeFontInfo_GetFamily, METH_O, NULL},
26010 { (char *)"NativeFontInfo_GetEncoding", (PyCFunction)_wrap_NativeFontInfo_GetEncoding, METH_O, NULL},
26011 { (char *)"NativeFontInfo_SetPointSize", (PyCFunction) _wrap_NativeFontInfo_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26012 { (char *)"NativeFontInfo_SetPixelSize", (PyCFunction) _wrap_NativeFontInfo_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26013 { (char *)"NativeFontInfo_SetStyle", (PyCFunction) _wrap_NativeFontInfo_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26014 { (char *)"NativeFontInfo_SetWeight", (PyCFunction) _wrap_NativeFontInfo_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26015 { (char *)"NativeFontInfo_SetUnderlined", (PyCFunction) _wrap_NativeFontInfo_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26016 { (char *)"NativeFontInfo_SetFaceName", (PyCFunction) _wrap_NativeFontInfo_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26017 { (char *)"NativeFontInfo_SetFamily", (PyCFunction) _wrap_NativeFontInfo_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26018 { (char *)"NativeFontInfo_SetEncoding", (PyCFunction) _wrap_NativeFontInfo_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26019 { (char *)"NativeFontInfo_FromString", (PyCFunction) _wrap_NativeFontInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26020 { (char *)"NativeFontInfo_ToString", (PyCFunction)_wrap_NativeFontInfo_ToString, METH_O, NULL},
26021 { (char *)"NativeFontInfo___str__", (PyCFunction)_wrap_NativeFontInfo___str__, METH_O, NULL},
26022 { (char *)"NativeFontInfo_FromUserString", (PyCFunction) _wrap_NativeFontInfo_FromUserString, METH_VARARGS | METH_KEYWORDS, NULL},
26023 { (char *)"NativeFontInfo_ToUserString", (PyCFunction)_wrap_NativeFontInfo_ToUserString, METH_O, NULL},
26024 { (char *)"NativeFontInfo_swigregister", NativeFontInfo_swigregister, METH_VARARGS, NULL},
26025 { (char *)"NativeFontInfo_swiginit", NativeFontInfo_swiginit, METH_VARARGS, NULL},
26026 { (char *)"NativeEncodingInfo_facename_set", _wrap_NativeEncodingInfo_facename_set, METH_VARARGS, NULL},
26027 { (char *)"NativeEncodingInfo_facename_get", (PyCFunction)_wrap_NativeEncodingInfo_facename_get, METH_O, NULL},
26028 { (char *)"NativeEncodingInfo_encoding_set", _wrap_NativeEncodingInfo_encoding_set, METH_VARARGS, NULL},
26029 { (char *)"NativeEncodingInfo_encoding_get", (PyCFunction)_wrap_NativeEncodingInfo_encoding_get, METH_O, NULL},
26030 { (char *)"new_NativeEncodingInfo", (PyCFunction)_wrap_new_NativeEncodingInfo, METH_NOARGS, NULL},
26031 { (char *)"delete_NativeEncodingInfo", (PyCFunction)_wrap_delete_NativeEncodingInfo, METH_O, NULL},
26032 { (char *)"NativeEncodingInfo_FromString", (PyCFunction) _wrap_NativeEncodingInfo_FromString, METH_VARARGS | METH_KEYWORDS, NULL},
26033 { (char *)"NativeEncodingInfo_ToString", (PyCFunction)_wrap_NativeEncodingInfo_ToString, METH_O, NULL},
26034 { (char *)"NativeEncodingInfo_swigregister", NativeEncodingInfo_swigregister, METH_VARARGS, NULL},
26035 { (char *)"NativeEncodingInfo_swiginit", NativeEncodingInfo_swiginit, METH_VARARGS, NULL},
26036 { (char *)"GetNativeFontEncoding", (PyCFunction) _wrap_GetNativeFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26037 { (char *)"TestFontEncoding", (PyCFunction) _wrap_TestFontEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26038 { (char *)"new_FontMapper", (PyCFunction)_wrap_new_FontMapper, METH_NOARGS, NULL},
26039 { (char *)"delete_FontMapper", (PyCFunction)_wrap_delete_FontMapper, METH_O, NULL},
26040 { (char *)"FontMapper_Get", (PyCFunction)_wrap_FontMapper_Get, METH_NOARGS, NULL},
26041 { (char *)"FontMapper_Set", (PyCFunction) _wrap_FontMapper_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26042 { (char *)"FontMapper_CharsetToEncoding", (PyCFunction) _wrap_FontMapper_CharsetToEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26043 { (char *)"FontMapper_GetSupportedEncodingsCount", (PyCFunction)_wrap_FontMapper_GetSupportedEncodingsCount, METH_NOARGS, NULL},
26044 { (char *)"FontMapper_GetEncoding", (PyCFunction) _wrap_FontMapper_GetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26045 { (char *)"FontMapper_GetEncodingName", (PyCFunction) _wrap_FontMapper_GetEncodingName, METH_VARARGS | METH_KEYWORDS, NULL},
26046 { (char *)"FontMapper_GetEncodingDescription", (PyCFunction) _wrap_FontMapper_GetEncodingDescription, METH_VARARGS | METH_KEYWORDS, NULL},
26047 { (char *)"FontMapper_GetEncodingFromName", (PyCFunction) _wrap_FontMapper_GetEncodingFromName, METH_VARARGS | METH_KEYWORDS, NULL},
26048 { (char *)"FontMapper_SetConfigPath", (PyCFunction) _wrap_FontMapper_SetConfigPath, METH_VARARGS | METH_KEYWORDS, NULL},
26049 { (char *)"FontMapper_GetDefaultConfigPath", (PyCFunction)_wrap_FontMapper_GetDefaultConfigPath, METH_NOARGS, NULL},
26050 { (char *)"FontMapper_GetAltForEncoding", (PyCFunction) _wrap_FontMapper_GetAltForEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26051 { (char *)"FontMapper_IsEncodingAvailable", (PyCFunction) _wrap_FontMapper_IsEncodingAvailable, METH_VARARGS | METH_KEYWORDS, NULL},
26052 { (char *)"FontMapper_SetDialogParent", (PyCFunction) _wrap_FontMapper_SetDialogParent, METH_VARARGS | METH_KEYWORDS, NULL},
26053 { (char *)"FontMapper_SetDialogTitle", (PyCFunction) _wrap_FontMapper_SetDialogTitle, METH_VARARGS | METH_KEYWORDS, NULL},
26054 { (char *)"FontMapper_swigregister", FontMapper_swigregister, METH_VARARGS, NULL},
26055 { (char *)"FontMapper_swiginit", FontMapper_swiginit, METH_VARARGS, NULL},
26056 { (char *)"new_Font", (PyCFunction) _wrap_new_Font, METH_VARARGS | METH_KEYWORDS, NULL},
26057 { (char *)"delete_Font", (PyCFunction)_wrap_delete_Font, METH_O, NULL},
26058 { (char *)"new_FontFromNativeInfo", (PyCFunction) _wrap_new_FontFromNativeInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26059 { (char *)"new_FontFromNativeInfoString", (PyCFunction) _wrap_new_FontFromNativeInfoString, METH_VARARGS | METH_KEYWORDS, NULL},
26060 { (char *)"new_FFont", (PyCFunction) _wrap_new_FFont, METH_VARARGS | METH_KEYWORDS, NULL},
26061 { (char *)"new_FontFromPixelSize", (PyCFunction) _wrap_new_FontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26062 { (char *)"new_FFontFromPixelSize", (PyCFunction) _wrap_new_FFontFromPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26063 { (char *)"Font_Ok", (PyCFunction)_wrap_Font_Ok, METH_O, NULL},
26064 { (char *)"Font___eq__", (PyCFunction) _wrap_Font___eq__, METH_VARARGS | METH_KEYWORDS, NULL},
26065 { (char *)"Font___ne__", (PyCFunction) _wrap_Font___ne__, METH_VARARGS | METH_KEYWORDS, NULL},
26066 { (char *)"Font_GetPointSize", (PyCFunction)_wrap_Font_GetPointSize, METH_O, NULL},
26067 { (char *)"Font_GetPixelSize", (PyCFunction)_wrap_Font_GetPixelSize, METH_O, NULL},
26068 { (char *)"Font_IsUsingSizeInPixels", (PyCFunction)_wrap_Font_IsUsingSizeInPixels, METH_O, NULL},
26069 { (char *)"Font_GetFamily", (PyCFunction)_wrap_Font_GetFamily, METH_O, NULL},
26070 { (char *)"Font_GetStyle", (PyCFunction)_wrap_Font_GetStyle, METH_O, NULL},
26071 { (char *)"Font_GetWeight", (PyCFunction)_wrap_Font_GetWeight, METH_O, NULL},
26072 { (char *)"Font_GetUnderlined", (PyCFunction)_wrap_Font_GetUnderlined, METH_O, NULL},
26073 { (char *)"Font_GetFaceName", (PyCFunction)_wrap_Font_GetFaceName, METH_O, NULL},
26074 { (char *)"Font_GetEncoding", (PyCFunction)_wrap_Font_GetEncoding, METH_O, NULL},
26075 { (char *)"Font_GetNativeFontInfo", (PyCFunction)_wrap_Font_GetNativeFontInfo, METH_O, NULL},
26076 { (char *)"Font_IsFixedWidth", (PyCFunction)_wrap_Font_IsFixedWidth, METH_O, NULL},
26077 { (char *)"Font_GetNativeFontInfoDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoDesc, METH_O, NULL},
26078 { (char *)"Font_GetNativeFontInfoUserDesc", (PyCFunction)_wrap_Font_GetNativeFontInfoUserDesc, METH_O, NULL},
26079 { (char *)"Font_SetPointSize", (PyCFunction) _wrap_Font_SetPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26080 { (char *)"Font_SetPixelSize", (PyCFunction) _wrap_Font_SetPixelSize, METH_VARARGS | METH_KEYWORDS, NULL},
26081 { (char *)"Font_SetFamily", (PyCFunction) _wrap_Font_SetFamily, METH_VARARGS | METH_KEYWORDS, NULL},
26082 { (char *)"Font_SetStyle", (PyCFunction) _wrap_Font_SetStyle, METH_VARARGS | METH_KEYWORDS, NULL},
26083 { (char *)"Font_SetWeight", (PyCFunction) _wrap_Font_SetWeight, METH_VARARGS | METH_KEYWORDS, NULL},
26084 { (char *)"Font_SetFaceName", (PyCFunction) _wrap_Font_SetFaceName, METH_VARARGS | METH_KEYWORDS, NULL},
26085 { (char *)"Font_SetUnderlined", (PyCFunction) _wrap_Font_SetUnderlined, METH_VARARGS | METH_KEYWORDS, NULL},
26086 { (char *)"Font_SetEncoding", (PyCFunction) _wrap_Font_SetEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26087 { (char *)"Font_SetNativeFontInfo", (PyCFunction) _wrap_Font_SetNativeFontInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26088 { (char *)"Font_SetNativeFontInfoFromString", (PyCFunction) _wrap_Font_SetNativeFontInfoFromString, METH_VARARGS | METH_KEYWORDS, NULL},
26089 { (char *)"Font_SetNativeFontInfoUserDesc", (PyCFunction) _wrap_Font_SetNativeFontInfoUserDesc, METH_VARARGS | METH_KEYWORDS, NULL},
26090 { (char *)"Font_GetFamilyString", (PyCFunction)_wrap_Font_GetFamilyString, METH_O, NULL},
26091 { (char *)"Font_GetStyleString", (PyCFunction)_wrap_Font_GetStyleString, METH_O, NULL},
26092 { (char *)"Font_GetWeightString", (PyCFunction)_wrap_Font_GetWeightString, METH_O, NULL},
26093 { (char *)"Font_SetNoAntiAliasing", (PyCFunction) _wrap_Font_SetNoAntiAliasing, METH_VARARGS | METH_KEYWORDS, NULL},
26094 { (char *)"Font_GetNoAntiAliasing", (PyCFunction)_wrap_Font_GetNoAntiAliasing, METH_O, NULL},
26095 { (char *)"Font_GetDefaultEncoding", (PyCFunction)_wrap_Font_GetDefaultEncoding, METH_NOARGS, NULL},
26096 { (char *)"Font_SetDefaultEncoding", (PyCFunction) _wrap_Font_SetDefaultEncoding, METH_VARARGS | METH_KEYWORDS, NULL},
26097 { (char *)"Font_swigregister", Font_swigregister, METH_VARARGS, NULL},
26098 { (char *)"Font_swiginit", Font_swiginit, METH_VARARGS, NULL},
26099 { (char *)"new_FontEnumerator", (PyCFunction)_wrap_new_FontEnumerator, METH_NOARGS, NULL},
26100 { (char *)"delete_FontEnumerator", (PyCFunction)_wrap_delete_FontEnumerator, METH_O, NULL},
26101 { (char *)"FontEnumerator__setCallbackInfo", (PyCFunction) _wrap_FontEnumerator__setCallbackInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26102 { (char *)"FontEnumerator_EnumerateFacenames", (PyCFunction) _wrap_FontEnumerator_EnumerateFacenames, METH_VARARGS | METH_KEYWORDS, NULL},
26103 { (char *)"FontEnumerator_EnumerateEncodings", (PyCFunction) _wrap_FontEnumerator_EnumerateEncodings, METH_VARARGS | METH_KEYWORDS, NULL},
26104 { (char *)"FontEnumerator_GetEncodings", (PyCFunction)_wrap_FontEnumerator_GetEncodings, METH_O, NULL},
26105 { (char *)"FontEnumerator_GetFacenames", (PyCFunction)_wrap_FontEnumerator_GetFacenames, METH_O, NULL},
26106 { (char *)"FontEnumerator_swigregister", FontEnumerator_swigregister, METH_VARARGS, NULL},
26107 { (char *)"FontEnumerator_swiginit", FontEnumerator_swiginit, METH_VARARGS, NULL},
26108 { (char *)"LanguageInfo_Language_set", _wrap_LanguageInfo_Language_set, METH_VARARGS, NULL},
26109 { (char *)"LanguageInfo_Language_get", (PyCFunction)_wrap_LanguageInfo_Language_get, METH_O, NULL},
26110 { (char *)"LanguageInfo_CanonicalName_set", _wrap_LanguageInfo_CanonicalName_set, METH_VARARGS, NULL},
26111 { (char *)"LanguageInfo_CanonicalName_get", (PyCFunction)_wrap_LanguageInfo_CanonicalName_get, METH_O, NULL},
26112 { (char *)"LanguageInfo_Description_set", _wrap_LanguageInfo_Description_set, METH_VARARGS, NULL},
26113 { (char *)"LanguageInfo_Description_get", (PyCFunction)_wrap_LanguageInfo_Description_get, METH_O, NULL},
26114 { (char *)"LanguageInfo_swigregister", LanguageInfo_swigregister, METH_VARARGS, NULL},
26115 { (char *)"new_Locale", (PyCFunction) _wrap_new_Locale, METH_VARARGS | METH_KEYWORDS, NULL},
26116 { (char *)"delete_Locale", (PyCFunction)_wrap_delete_Locale, METH_O, NULL},
26117 { (char *)"Locale_Init1", (PyCFunction) _wrap_Locale_Init1, METH_VARARGS | METH_KEYWORDS, NULL},
26118 { (char *)"Locale_Init2", (PyCFunction) _wrap_Locale_Init2, METH_VARARGS | METH_KEYWORDS, NULL},
26119 { (char *)"Locale_GetSystemLanguage", (PyCFunction)_wrap_Locale_GetSystemLanguage, METH_NOARGS, NULL},
26120 { (char *)"Locale_GetSystemEncoding", (PyCFunction)_wrap_Locale_GetSystemEncoding, METH_NOARGS, NULL},
26121 { (char *)"Locale_GetSystemEncodingName", (PyCFunction)_wrap_Locale_GetSystemEncodingName, METH_NOARGS, NULL},
26122 { (char *)"Locale_IsOk", (PyCFunction)_wrap_Locale_IsOk, METH_O, NULL},
26123 { (char *)"Locale_GetLocale", (PyCFunction)_wrap_Locale_GetLocale, METH_O, NULL},
26124 { (char *)"Locale_GetLanguage", (PyCFunction)_wrap_Locale_GetLanguage, METH_O, NULL},
26125 { (char *)"Locale_GetSysName", (PyCFunction)_wrap_Locale_GetSysName, METH_O, NULL},
26126 { (char *)"Locale_GetCanonicalName", (PyCFunction)_wrap_Locale_GetCanonicalName, METH_O, NULL},
26127 { (char *)"Locale_AddCatalogLookupPathPrefix", (PyCFunction) _wrap_Locale_AddCatalogLookupPathPrefix, METH_VARARGS | METH_KEYWORDS, NULL},
26128 { (char *)"Locale_AddCatalog", (PyCFunction) _wrap_Locale_AddCatalog, METH_VARARGS | METH_KEYWORDS, NULL},
26129 { (char *)"Locale_IsLoaded", (PyCFunction) _wrap_Locale_IsLoaded, METH_VARARGS | METH_KEYWORDS, NULL},
26130 { (char *)"Locale_GetLanguageInfo", (PyCFunction) _wrap_Locale_GetLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26131 { (char *)"Locale_GetLanguageName", (PyCFunction) _wrap_Locale_GetLanguageName, METH_VARARGS | METH_KEYWORDS, NULL},
26132 { (char *)"Locale_FindLanguageInfo", (PyCFunction) _wrap_Locale_FindLanguageInfo, METH_VARARGS | METH_KEYWORDS, NULL},
26133 { (char *)"Locale_AddLanguage", (PyCFunction) _wrap_Locale_AddLanguage, METH_VARARGS | METH_KEYWORDS, NULL},
26134 { (char *)"Locale_GetString", (PyCFunction) _wrap_Locale_GetString, METH_VARARGS | METH_KEYWORDS, NULL},
26135 { (char *)"Locale_GetName", (PyCFunction)_wrap_Locale_GetName, METH_O, NULL},
26136 { (char *)"Locale_swigregister", Locale_swigregister, METH_VARARGS, NULL},
26137 { (char *)"Locale_swiginit", Locale_swiginit, METH_VARARGS, NULL},
26138 { (char *)"GetLocale", (PyCFunction)_wrap_GetLocale, METH_NOARGS, NULL},
26139 { (char *)"GetTranslation", _wrap_GetTranslation, METH_VARARGS, NULL},
26140 { (char *)"new_EncodingConverter", (PyCFunction)_wrap_new_EncodingConverter, METH_NOARGS, NULL},
26141 { (char *)"delete_EncodingConverter", (PyCFunction)_wrap_delete_EncodingConverter, METH_O, NULL},
26142 { (char *)"EncodingConverter_Init", (PyCFunction) _wrap_EncodingConverter_Init, METH_VARARGS | METH_KEYWORDS, NULL},
26143 { (char *)"EncodingConverter_Convert", (PyCFunction) _wrap_EncodingConverter_Convert, METH_VARARGS | METH_KEYWORDS, NULL},
26144 { (char *)"EncodingConverter_GetPlatformEquivalents", (PyCFunction) _wrap_EncodingConverter_GetPlatformEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26145 { (char *)"EncodingConverter_GetAllEquivalents", (PyCFunction) _wrap_EncodingConverter_GetAllEquivalents, METH_VARARGS | METH_KEYWORDS, NULL},
26146 { (char *)"EncodingConverter_CanConvert", (PyCFunction) _wrap_EncodingConverter_CanConvert, METH_VARARGS | METH_KEYWORDS, NULL},
26147 { (char *)"EncodingConverter_swigregister", EncodingConverter_swigregister, METH_VARARGS, NULL},
26148 { (char *)"EncodingConverter_swiginit", EncodingConverter_swiginit, METH_VARARGS, NULL},
26149 { (char *)"delete_DC", (PyCFunction)_wrap_delete_DC, METH_O, NULL},
26150 { (char *)"DC_FloodFill", (PyCFunction) _wrap_DC_FloodFill, METH_VARARGS | METH_KEYWORDS, NULL},
26151 { (char *)"DC_FloodFillPoint", (PyCFunction) _wrap_DC_FloodFillPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26152 { (char *)"DC_GradientFillConcentric", (PyCFunction) _wrap_DC_GradientFillConcentric, METH_VARARGS | METH_KEYWORDS, NULL},
26153 { (char *)"DC_GradientFillLinear", (PyCFunction) _wrap_DC_GradientFillLinear, METH_VARARGS | METH_KEYWORDS, NULL},
26154 { (char *)"DC_GetPixel", (PyCFunction) _wrap_DC_GetPixel, METH_VARARGS | METH_KEYWORDS, NULL},
26155 { (char *)"DC_GetPixelPoint", (PyCFunction) _wrap_DC_GetPixelPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26156 { (char *)"DC_DrawLine", (PyCFunction) _wrap_DC_DrawLine, METH_VARARGS | METH_KEYWORDS, NULL},
26157 { (char *)"DC_DrawLinePoint", (PyCFunction) _wrap_DC_DrawLinePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26158 { (char *)"DC_CrossHair", (PyCFunction) _wrap_DC_CrossHair, METH_VARARGS | METH_KEYWORDS, NULL},
26159 { (char *)"DC_CrossHairPoint", (PyCFunction) _wrap_DC_CrossHairPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26160 { (char *)"DC_DrawArc", (PyCFunction) _wrap_DC_DrawArc, METH_VARARGS | METH_KEYWORDS, NULL},
26161 { (char *)"DC_DrawArcPoint", (PyCFunction) _wrap_DC_DrawArcPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26162 { (char *)"DC_DrawCheckMark", (PyCFunction) _wrap_DC_DrawCheckMark, METH_VARARGS | METH_KEYWORDS, NULL},
26163 { (char *)"DC_DrawCheckMarkRect", (PyCFunction) _wrap_DC_DrawCheckMarkRect, METH_VARARGS | METH_KEYWORDS, NULL},
26164 { (char *)"DC_DrawEllipticArc", (PyCFunction) _wrap_DC_DrawEllipticArc, METH_VARARGS | METH_KEYWORDS, NULL},
26165 { (char *)"DC_DrawEllipticArcPointSize", (PyCFunction) _wrap_DC_DrawEllipticArcPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26166 { (char *)"DC_DrawPoint", (PyCFunction) _wrap_DC_DrawPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26167 { (char *)"DC_DrawPointPoint", (PyCFunction) _wrap_DC_DrawPointPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26168 { (char *)"DC_DrawRectangle", (PyCFunction) _wrap_DC_DrawRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26169 { (char *)"DC_DrawRectangleRect", (PyCFunction) _wrap_DC_DrawRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26170 { (char *)"DC_DrawRectanglePointSize", (PyCFunction) _wrap_DC_DrawRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26171 { (char *)"DC_DrawRoundedRectangle", (PyCFunction) _wrap_DC_DrawRoundedRectangle, METH_VARARGS | METH_KEYWORDS, NULL},
26172 { (char *)"DC_DrawRoundedRectangleRect", (PyCFunction) _wrap_DC_DrawRoundedRectangleRect, METH_VARARGS | METH_KEYWORDS, NULL},
26173 { (char *)"DC_DrawRoundedRectanglePointSize", (PyCFunction) _wrap_DC_DrawRoundedRectanglePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26174 { (char *)"DC_DrawCircle", (PyCFunction) _wrap_DC_DrawCircle, METH_VARARGS | METH_KEYWORDS, NULL},
26175 { (char *)"DC_DrawCirclePoint", (PyCFunction) _wrap_DC_DrawCirclePoint, METH_VARARGS | METH_KEYWORDS, NULL},
26176 { (char *)"DC_DrawEllipse", (PyCFunction) _wrap_DC_DrawEllipse, METH_VARARGS | METH_KEYWORDS, NULL},
26177 { (char *)"DC_DrawEllipseRect", (PyCFunction) _wrap_DC_DrawEllipseRect, METH_VARARGS | METH_KEYWORDS, NULL},
26178 { (char *)"DC_DrawEllipsePointSize", (PyCFunction) _wrap_DC_DrawEllipsePointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26179 { (char *)"DC_DrawIcon", (PyCFunction) _wrap_DC_DrawIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26180 { (char *)"DC_DrawIconPoint", (PyCFunction) _wrap_DC_DrawIconPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26181 { (char *)"DC_DrawBitmap", (PyCFunction) _wrap_DC_DrawBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26182 { (char *)"DC_DrawBitmapPoint", (PyCFunction) _wrap_DC_DrawBitmapPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26183 { (char *)"DC_DrawText", (PyCFunction) _wrap_DC_DrawText, METH_VARARGS | METH_KEYWORDS, NULL},
26184 { (char *)"DC_DrawTextPoint", (PyCFunction) _wrap_DC_DrawTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26185 { (char *)"DC_DrawRotatedText", (PyCFunction) _wrap_DC_DrawRotatedText, METH_VARARGS | METH_KEYWORDS, NULL},
26186 { (char *)"DC_DrawRotatedTextPoint", (PyCFunction) _wrap_DC_DrawRotatedTextPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26187 { (char *)"DC_Blit", (PyCFunction) _wrap_DC_Blit, METH_VARARGS | METH_KEYWORDS, NULL},
26188 { (char *)"DC_BlitPointSize", (PyCFunction) _wrap_DC_BlitPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26189 { (char *)"DC_SetClippingRegion", (PyCFunction) _wrap_DC_SetClippingRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26190 { (char *)"DC_SetClippingRegionPointSize", (PyCFunction) _wrap_DC_SetClippingRegionPointSize, METH_VARARGS | METH_KEYWORDS, NULL},
26191 { (char *)"DC_SetClippingRegionAsRegion", (PyCFunction) _wrap_DC_SetClippingRegionAsRegion, METH_VARARGS | METH_KEYWORDS, NULL},
26192 { (char *)"DC_SetClippingRect", (PyCFunction) _wrap_DC_SetClippingRect, METH_VARARGS | METH_KEYWORDS, NULL},
26193 { (char *)"DC_DrawLines", (PyCFunction) _wrap_DC_DrawLines, METH_VARARGS | METH_KEYWORDS, NULL},
26194 { (char *)"DC_DrawPolygon", (PyCFunction) _wrap_DC_DrawPolygon, METH_VARARGS | METH_KEYWORDS, NULL},
26195 { (char *)"DC_DrawLabel", (PyCFunction) _wrap_DC_DrawLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26196 { (char *)"DC_DrawImageLabel", (PyCFunction) _wrap_DC_DrawImageLabel, METH_VARARGS | METH_KEYWORDS, NULL},
26197 { (char *)"DC_DrawSpline", (PyCFunction) _wrap_DC_DrawSpline, METH_VARARGS | METH_KEYWORDS, NULL},
26198 { (char *)"DC_Clear", (PyCFunction)_wrap_DC_Clear, METH_O, NULL},
26199 { (char *)"DC_StartDoc", (PyCFunction) _wrap_DC_StartDoc, METH_VARARGS | METH_KEYWORDS, NULL},
26200 { (char *)"DC_EndDoc", (PyCFunction)_wrap_DC_EndDoc, METH_O, NULL},
26201 { (char *)"DC_StartPage", (PyCFunction)_wrap_DC_StartPage, METH_O, NULL},
26202 { (char *)"DC_EndPage", (PyCFunction)_wrap_DC_EndPage, METH_O, NULL},
26203 { (char *)"DC_SetFont", (PyCFunction) _wrap_DC_SetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26204 { (char *)"DC_SetPen", (PyCFunction) _wrap_DC_SetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26205 { (char *)"DC_SetBrush", (PyCFunction) _wrap_DC_SetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26206 { (char *)"DC_SetBackground", (PyCFunction) _wrap_DC_SetBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26207 { (char *)"DC_SetBackgroundMode", (PyCFunction) _wrap_DC_SetBackgroundMode, METH_VARARGS | METH_KEYWORDS, NULL},
26208 { (char *)"DC_SetPalette", (PyCFunction) _wrap_DC_SetPalette, METH_VARARGS | METH_KEYWORDS, NULL},
26209 { (char *)"DC_DestroyClippingRegion", (PyCFunction)_wrap_DC_DestroyClippingRegion, METH_O, NULL},
26210 { (char *)"DC_GetClippingBox", (PyCFunction)_wrap_DC_GetClippingBox, METH_O, NULL},
26211 { (char *)"DC_GetClippingRect", (PyCFunction)_wrap_DC_GetClippingRect, METH_O, NULL},
26212 { (char *)"DC_GetCharHeight", (PyCFunction)_wrap_DC_GetCharHeight, METH_O, NULL},
26213 { (char *)"DC_GetCharWidth", (PyCFunction)_wrap_DC_GetCharWidth, METH_O, NULL},
26214 { (char *)"DC_GetTextExtent", (PyCFunction) _wrap_DC_GetTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26215 { (char *)"DC_GetFullTextExtent", (PyCFunction) _wrap_DC_GetFullTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26216 { (char *)"DC_GetMultiLineTextExtent", (PyCFunction) _wrap_DC_GetMultiLineTextExtent, METH_VARARGS | METH_KEYWORDS, NULL},
26217 { (char *)"DC_GetPartialTextExtents", (PyCFunction) _wrap_DC_GetPartialTextExtents, METH_VARARGS | METH_KEYWORDS, NULL},
26218 { (char *)"DC_GetSize", (PyCFunction)_wrap_DC_GetSize, METH_O, NULL},
26219 { (char *)"DC_GetSizeTuple", (PyCFunction)_wrap_DC_GetSizeTuple, METH_O, NULL},
26220 { (char *)"DC_GetSizeMM", (PyCFunction)_wrap_DC_GetSizeMM, METH_O, NULL},
26221 { (char *)"DC_GetSizeMMTuple", (PyCFunction)_wrap_DC_GetSizeMMTuple, METH_O, NULL},
26222 { (char *)"DC_DeviceToLogicalX", (PyCFunction) _wrap_DC_DeviceToLogicalX, METH_VARARGS | METH_KEYWORDS, NULL},
26223 { (char *)"DC_DeviceToLogicalY", (PyCFunction) _wrap_DC_DeviceToLogicalY, METH_VARARGS | METH_KEYWORDS, NULL},
26224 { (char *)"DC_DeviceToLogicalXRel", (PyCFunction) _wrap_DC_DeviceToLogicalXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26225 { (char *)"DC_DeviceToLogicalYRel", (PyCFunction) _wrap_DC_DeviceToLogicalYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26226 { (char *)"DC_LogicalToDeviceX", (PyCFunction) _wrap_DC_LogicalToDeviceX, METH_VARARGS | METH_KEYWORDS, NULL},
26227 { (char *)"DC_LogicalToDeviceY", (PyCFunction) _wrap_DC_LogicalToDeviceY, METH_VARARGS | METH_KEYWORDS, NULL},
26228 { (char *)"DC_LogicalToDeviceXRel", (PyCFunction) _wrap_DC_LogicalToDeviceXRel, METH_VARARGS | METH_KEYWORDS, NULL},
26229 { (char *)"DC_LogicalToDeviceYRel", (PyCFunction) _wrap_DC_LogicalToDeviceYRel, METH_VARARGS | METH_KEYWORDS, NULL},
26230 { (char *)"DC_CanDrawBitmap", (PyCFunction)_wrap_DC_CanDrawBitmap, METH_O, NULL},
26231 { (char *)"DC_CanGetTextExtent", (PyCFunction)_wrap_DC_CanGetTextExtent, METH_O, NULL},
26232 { (char *)"DC_GetDepth", (PyCFunction)_wrap_DC_GetDepth, METH_O, NULL},
26233 { (char *)"DC_GetPPI", (PyCFunction)_wrap_DC_GetPPI, METH_O, NULL},
26234 { (char *)"DC_Ok", (PyCFunction)_wrap_DC_Ok, METH_O, NULL},
26235 { (char *)"DC_GetBackgroundMode", (PyCFunction)_wrap_DC_GetBackgroundMode, METH_O, NULL},
26236 { (char *)"DC_GetBackground", (PyCFunction)_wrap_DC_GetBackground, METH_O, NULL},
26237 { (char *)"DC_GetBrush", (PyCFunction)_wrap_DC_GetBrush, METH_O, NULL},
26238 { (char *)"DC_GetFont", (PyCFunction)_wrap_DC_GetFont, METH_O, NULL},
26239 { (char *)"DC_GetPen", (PyCFunction)_wrap_DC_GetPen, METH_O, NULL},
26240 { (char *)"DC_GetTextBackground", (PyCFunction)_wrap_DC_GetTextBackground, METH_O, NULL},
26241 { (char *)"DC_GetTextForeground", (PyCFunction)_wrap_DC_GetTextForeground, METH_O, NULL},
26242 { (char *)"DC_SetTextForeground", (PyCFunction) _wrap_DC_SetTextForeground, METH_VARARGS | METH_KEYWORDS, NULL},
26243 { (char *)"DC_SetTextBackground", (PyCFunction) _wrap_DC_SetTextBackground, METH_VARARGS | METH_KEYWORDS, NULL},
26244 { (char *)"DC_GetMapMode", (PyCFunction)_wrap_DC_GetMapMode, METH_O, NULL},
26245 { (char *)"DC_SetMapMode", (PyCFunction) _wrap_DC_SetMapMode, METH_VARARGS | METH_KEYWORDS, NULL},
26246 { (char *)"DC_GetUserScale", (PyCFunction)_wrap_DC_GetUserScale, METH_O, NULL},
26247 { (char *)"DC_SetUserScale", (PyCFunction) _wrap_DC_SetUserScale, METH_VARARGS | METH_KEYWORDS, NULL},
26248 { (char *)"DC_GetLogicalScale", (PyCFunction)_wrap_DC_GetLogicalScale, METH_O, NULL},
26249 { (char *)"DC_SetLogicalScale", (PyCFunction) _wrap_DC_SetLogicalScale, METH_VARARGS | METH_KEYWORDS, NULL},
26250 { (char *)"DC_GetLogicalOrigin", (PyCFunction)_wrap_DC_GetLogicalOrigin, METH_O, NULL},
26251 { (char *)"DC_GetLogicalOriginTuple", (PyCFunction)_wrap_DC_GetLogicalOriginTuple, METH_O, NULL},
26252 { (char *)"DC_SetLogicalOrigin", (PyCFunction) _wrap_DC_SetLogicalOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26253 { (char *)"DC_SetLogicalOriginPoint", (PyCFunction) _wrap_DC_SetLogicalOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26254 { (char *)"DC_GetDeviceOrigin", (PyCFunction)_wrap_DC_GetDeviceOrigin, METH_O, NULL},
26255 { (char *)"DC_GetDeviceOriginTuple", (PyCFunction)_wrap_DC_GetDeviceOriginTuple, METH_O, NULL},
26256 { (char *)"DC_SetDeviceOrigin", (PyCFunction) _wrap_DC_SetDeviceOrigin, METH_VARARGS | METH_KEYWORDS, NULL},
26257 { (char *)"DC_SetDeviceOriginPoint", (PyCFunction) _wrap_DC_SetDeviceOriginPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26258 { (char *)"DC_SetAxisOrientation", (PyCFunction) _wrap_DC_SetAxisOrientation, METH_VARARGS | METH_KEYWORDS, NULL},
26259 { (char *)"DC_GetLogicalFunction", (PyCFunction)_wrap_DC_GetLogicalFunction, METH_O, NULL},
26260 { (char *)"DC_SetLogicalFunction", (PyCFunction) _wrap_DC_SetLogicalFunction, METH_VARARGS | METH_KEYWORDS, NULL},
26261 { (char *)"DC_ComputeScaleAndOrigin", (PyCFunction)_wrap_DC_ComputeScaleAndOrigin, METH_O, NULL},
26262 { (char *)"DC_CalcBoundingBox", (PyCFunction) _wrap_DC_CalcBoundingBox, METH_VARARGS | METH_KEYWORDS, NULL},
26263 { (char *)"DC_CalcBoundingBoxPoint", (PyCFunction) _wrap_DC_CalcBoundingBoxPoint, METH_VARARGS | METH_KEYWORDS, NULL},
26264 { (char *)"DC_ResetBoundingBox", (PyCFunction)_wrap_DC_ResetBoundingBox, METH_O, NULL},
26265 { (char *)"DC_MinX", (PyCFunction)_wrap_DC_MinX, METH_O, NULL},
26266 { (char *)"DC_MaxX", (PyCFunction)_wrap_DC_MaxX, METH_O, NULL},
26267 { (char *)"DC_MinY", (PyCFunction)_wrap_DC_MinY, METH_O, NULL},
26268 { (char *)"DC_MaxY", (PyCFunction)_wrap_DC_MaxY, METH_O, NULL},
26269 { (char *)"DC_GetBoundingBox", (PyCFunction)_wrap_DC_GetBoundingBox, METH_O, NULL},
26270 { (char *)"DC_GetHDC", (PyCFunction)_wrap_DC_GetHDC, METH_O, NULL},
26271 { (char *)"DC__DrawPointList", (PyCFunction) _wrap_DC__DrawPointList, METH_VARARGS | METH_KEYWORDS, NULL},
26272 { (char *)"DC__DrawLineList", (PyCFunction) _wrap_DC__DrawLineList, METH_VARARGS | METH_KEYWORDS, NULL},
26273 { (char *)"DC__DrawRectangleList", (PyCFunction) _wrap_DC__DrawRectangleList, METH_VARARGS | METH_KEYWORDS, NULL},
26274 { (char *)"DC__DrawEllipseList", (PyCFunction) _wrap_DC__DrawEllipseList, METH_VARARGS | METH_KEYWORDS, NULL},
26275 { (char *)"DC__DrawPolygonList", (PyCFunction) _wrap_DC__DrawPolygonList, METH_VARARGS | METH_KEYWORDS, NULL},
26276 { (char *)"DC__DrawTextList", (PyCFunction) _wrap_DC__DrawTextList, METH_VARARGS | METH_KEYWORDS, NULL},
26277 { (char *)"DC_swigregister", DC_swigregister, METH_VARARGS, NULL},
26278 { (char *)"new_MemoryDC", (PyCFunction)_wrap_new_MemoryDC, METH_NOARGS, NULL},
26279 { (char *)"new_MemoryDCFromDC", (PyCFunction) _wrap_new_MemoryDCFromDC, METH_VARARGS | METH_KEYWORDS, NULL},
26280 { (char *)"MemoryDC_SelectObject", (PyCFunction) _wrap_MemoryDC_SelectObject, METH_VARARGS | METH_KEYWORDS, NULL},
26281 { (char *)"MemoryDC_swigregister", MemoryDC_swigregister, METH_VARARGS, NULL},
26282 { (char *)"MemoryDC_swiginit", MemoryDC_swiginit, METH_VARARGS, NULL},
26283 { (char *)"new_BufferedDC", _wrap_new_BufferedDC, METH_VARARGS, NULL},
26284 { (char *)"delete_BufferedDC", (PyCFunction)_wrap_delete_BufferedDC, METH_O, NULL},
26285 { (char *)"BufferedDC_UnMask", (PyCFunction)_wrap_BufferedDC_UnMask, METH_O, NULL},
26286 { (char *)"BufferedDC_swigregister", BufferedDC_swigregister, METH_VARARGS, NULL},
26287 { (char *)"BufferedDC_swiginit", BufferedDC_swiginit, METH_VARARGS, NULL},
26288 { (char *)"new_BufferedPaintDC", (PyCFunction) _wrap_new_BufferedPaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26289 { (char *)"BufferedPaintDC_swigregister", BufferedPaintDC_swigregister, METH_VARARGS, NULL},
26290 { (char *)"BufferedPaintDC_swiginit", BufferedPaintDC_swiginit, METH_VARARGS, NULL},
26291 { (char *)"new_ScreenDC", (PyCFunction)_wrap_new_ScreenDC, METH_NOARGS, NULL},
26292 { (char *)"ScreenDC_StartDrawingOnTopWin", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTopWin, METH_VARARGS | METH_KEYWORDS, NULL},
26293 { (char *)"ScreenDC_StartDrawingOnTop", (PyCFunction) _wrap_ScreenDC_StartDrawingOnTop, METH_VARARGS | METH_KEYWORDS, NULL},
26294 { (char *)"ScreenDC_EndDrawingOnTop", (PyCFunction)_wrap_ScreenDC_EndDrawingOnTop, METH_O, NULL},
26295 { (char *)"ScreenDC_swigregister", ScreenDC_swigregister, METH_VARARGS, NULL},
26296 { (char *)"ScreenDC_swiginit", ScreenDC_swiginit, METH_VARARGS, NULL},
26297 { (char *)"new_ClientDC", (PyCFunction) _wrap_new_ClientDC, METH_VARARGS | METH_KEYWORDS, NULL},
26298 { (char *)"ClientDC_swigregister", ClientDC_swigregister, METH_VARARGS, NULL},
26299 { (char *)"ClientDC_swiginit", ClientDC_swiginit, METH_VARARGS, NULL},
26300 { (char *)"new_PaintDC", (PyCFunction) _wrap_new_PaintDC, METH_VARARGS | METH_KEYWORDS, NULL},
26301 { (char *)"PaintDC_swigregister", PaintDC_swigregister, METH_VARARGS, NULL},
26302 { (char *)"PaintDC_swiginit", PaintDC_swiginit, METH_VARARGS, NULL},
26303 { (char *)"new_WindowDC", (PyCFunction) _wrap_new_WindowDC, METH_VARARGS | METH_KEYWORDS, NULL},
26304 { (char *)"WindowDC_swigregister", WindowDC_swigregister, METH_VARARGS, NULL},
26305 { (char *)"WindowDC_swiginit", WindowDC_swiginit, METH_VARARGS, NULL},
26306 { (char *)"new_MirrorDC", (PyCFunction) _wrap_new_MirrorDC, METH_VARARGS | METH_KEYWORDS, NULL},
26307 { (char *)"MirrorDC_swigregister", MirrorDC_swigregister, METH_VARARGS, NULL},
26308 { (char *)"MirrorDC_swiginit", MirrorDC_swiginit, METH_VARARGS, NULL},
26309 { (char *)"new_PostScriptDC", (PyCFunction) _wrap_new_PostScriptDC, METH_VARARGS | METH_KEYWORDS, NULL},
26310 { (char *)"PostScriptDC_GetPrintData", (PyCFunction)_wrap_PostScriptDC_GetPrintData, METH_O, NULL},
26311 { (char *)"PostScriptDC_SetPrintData", (PyCFunction) _wrap_PostScriptDC_SetPrintData, METH_VARARGS | METH_KEYWORDS, NULL},
26312 { (char *)"PostScriptDC_SetResolution", (PyCFunction) _wrap_PostScriptDC_SetResolution, METH_VARARGS | METH_KEYWORDS, NULL},
26313 { (char *)"PostScriptDC_GetResolution", (PyCFunction)_wrap_PostScriptDC_GetResolution, METH_NOARGS, NULL},
26314 { (char *)"PostScriptDC_swigregister", PostScriptDC_swigregister, METH_VARARGS, NULL},
26315 { (char *)"PostScriptDC_swiginit", PostScriptDC_swiginit, METH_VARARGS, NULL},
26316 { (char *)"new_MetaFile", (PyCFunction) _wrap_new_MetaFile, METH_VARARGS | METH_KEYWORDS, NULL},
26317 { (char *)"delete_MetaFile", (PyCFunction)_wrap_delete_MetaFile, METH_O, NULL},
26318 { (char *)"MetaFile_Ok", (PyCFunction)_wrap_MetaFile_Ok, METH_O, NULL},
26319 { (char *)"MetaFile_SetClipboard", (PyCFunction) _wrap_MetaFile_SetClipboard, METH_VARARGS | METH_KEYWORDS, NULL},
26320 { (char *)"MetaFile_GetSize", (PyCFunction)_wrap_MetaFile_GetSize, METH_O, NULL},
26321 { (char *)"MetaFile_GetWidth", (PyCFunction)_wrap_MetaFile_GetWidth, METH_O, NULL},
26322 { (char *)"MetaFile_GetHeight", (PyCFunction)_wrap_MetaFile_GetHeight, METH_O, NULL},
26323 { (char *)"MetaFile_GetFileName", (PyCFunction)_wrap_MetaFile_GetFileName, METH_O, NULL},
26324 { (char *)"MetaFile_swigregister", MetaFile_swigregister, METH_VARARGS, NULL},
26325 { (char *)"MetaFile_swiginit", MetaFile_swiginit, METH_VARARGS, NULL},
26326 { (char *)"new_MetaFileDC", (PyCFunction) _wrap_new_MetaFileDC, METH_VARARGS | METH_KEYWORDS, NULL},
26327 { (char *)"MetaFileDC_Close", (PyCFunction)_wrap_MetaFileDC_Close, METH_O, NULL},
26328 { (char *)"MetaFileDC_swigregister", MetaFileDC_swigregister, METH_VARARGS, NULL},
26329 { (char *)"MetaFileDC_swiginit", MetaFileDC_swiginit, METH_VARARGS, NULL},
26330 { (char *)"new_PrinterDC", (PyCFunction) _wrap_new_PrinterDC, METH_VARARGS | METH_KEYWORDS, NULL},
26331 { (char *)"PrinterDC_swigregister", PrinterDC_swigregister, METH_VARARGS, NULL},
26332 { (char *)"PrinterDC_swiginit", PrinterDC_swiginit, METH_VARARGS, NULL},
26333 { (char *)"new_ImageList", (PyCFunction) _wrap_new_ImageList, METH_VARARGS | METH_KEYWORDS, NULL},
26334 { (char *)"delete_ImageList", (PyCFunction)_wrap_delete_ImageList, METH_O, NULL},
26335 { (char *)"ImageList_Add", (PyCFunction) _wrap_ImageList_Add, METH_VARARGS | METH_KEYWORDS, NULL},
26336 { (char *)"ImageList_AddWithColourMask", (PyCFunction) _wrap_ImageList_AddWithColourMask, METH_VARARGS | METH_KEYWORDS, NULL},
26337 { (char *)"ImageList_AddIcon", (PyCFunction) _wrap_ImageList_AddIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26338 { (char *)"ImageList_GetBitmap", (PyCFunction) _wrap_ImageList_GetBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26339 { (char *)"ImageList_GetIcon", (PyCFunction) _wrap_ImageList_GetIcon, METH_VARARGS | METH_KEYWORDS, NULL},
26340 { (char *)"ImageList_Replace", (PyCFunction) _wrap_ImageList_Replace, METH_VARARGS | METH_KEYWORDS, NULL},
26341 { (char *)"ImageList_Draw", (PyCFunction) _wrap_ImageList_Draw, METH_VARARGS | METH_KEYWORDS, NULL},
26342 { (char *)"ImageList_GetImageCount", (PyCFunction)_wrap_ImageList_GetImageCount, METH_O, NULL},
26343 { (char *)"ImageList_Remove", (PyCFunction) _wrap_ImageList_Remove, METH_VARARGS | METH_KEYWORDS, NULL},
26344 { (char *)"ImageList_RemoveAll", (PyCFunction)_wrap_ImageList_RemoveAll, METH_O, NULL},
26345 { (char *)"ImageList_GetSize", (PyCFunction) _wrap_ImageList_GetSize, METH_VARARGS | METH_KEYWORDS, NULL},
26346 { (char *)"ImageList_swigregister", ImageList_swigregister, METH_VARARGS, NULL},
26347 { (char *)"ImageList_swiginit", ImageList_swiginit, METH_VARARGS, NULL},
26348 { (char *)"new_StockGDI", (PyCFunction)_wrap_new_StockGDI, METH_NOARGS, NULL},
26349 { (char *)"delete_StockGDI", (PyCFunction)_wrap_delete_StockGDI, METH_O, NULL},
26350 { (char *)"StockGDI_DeleteAll", (PyCFunction)_wrap_StockGDI_DeleteAll, METH_NOARGS, NULL},
26351 { (char *)"StockGDI_instance", (PyCFunction)_wrap_StockGDI_instance, METH_NOARGS, NULL},
26352 { (char *)"StockGDI_GetBrush", (PyCFunction) _wrap_StockGDI_GetBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26353 { (char *)"StockGDI_GetColour", (PyCFunction) _wrap_StockGDI_GetColour, METH_VARARGS | METH_KEYWORDS, NULL},
26354 { (char *)"StockGDI_GetCursor", (PyCFunction) _wrap_StockGDI_GetCursor, METH_VARARGS | METH_KEYWORDS, NULL},
26355 { (char *)"StockGDI_GetPen", (PyCFunction) _wrap_StockGDI_GetPen, METH_VARARGS | METH_KEYWORDS, NULL},
26356 { (char *)"StockGDI_GetFont", (PyCFunction) _wrap_StockGDI_GetFont, METH_VARARGS | METH_KEYWORDS, NULL},
26357 { (char *)"StockGDI_swigregister", StockGDI_swigregister, METH_VARARGS, NULL},
26358 { (char *)"StockGDI_swiginit", StockGDI_swiginit, METH_VARARGS, NULL},
26359 { (char *)"new_GDIObjListBase", (PyCFunction)_wrap_new_GDIObjListBase, METH_NOARGS, NULL},
26360 { (char *)"delete_GDIObjListBase", (PyCFunction)_wrap_delete_GDIObjListBase, METH_O, NULL},
26361 { (char *)"GDIObjListBase_swigregister", GDIObjListBase_swigregister, METH_VARARGS, NULL},
26362 { (char *)"GDIObjListBase_swiginit", GDIObjListBase_swiginit, METH_VARARGS, NULL},
26363 { (char *)"PenList_FindOrCreatePen", (PyCFunction) _wrap_PenList_FindOrCreatePen, METH_VARARGS | METH_KEYWORDS, NULL},
26364 { (char *)"PenList_AddPen", (PyCFunction) _wrap_PenList_AddPen, METH_VARARGS | METH_KEYWORDS, NULL},
26365 { (char *)"PenList_RemovePen", (PyCFunction) _wrap_PenList_RemovePen, METH_VARARGS | METH_KEYWORDS, NULL},
26366 { (char *)"PenList_swigregister", PenList_swigregister, METH_VARARGS, NULL},
26367 { (char *)"BrushList_FindOrCreateBrush", (PyCFunction) _wrap_BrushList_FindOrCreateBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26368 { (char *)"BrushList_AddBrush", (PyCFunction) _wrap_BrushList_AddBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26369 { (char *)"BrushList_RemoveBrush", (PyCFunction) _wrap_BrushList_RemoveBrush, METH_VARARGS | METH_KEYWORDS, NULL},
26370 { (char *)"BrushList_swigregister", BrushList_swigregister, METH_VARARGS, NULL},
26371 { (char *)"FontList_FindOrCreateFont", (PyCFunction) _wrap_FontList_FindOrCreateFont, METH_VARARGS | METH_KEYWORDS, NULL},
26372 { (char *)"FontList_AddFont", (PyCFunction) _wrap_FontList_AddFont, METH_VARARGS | METH_KEYWORDS, NULL},
26373 { (char *)"FontList_RemoveFont", (PyCFunction) _wrap_FontList_RemoveFont, METH_VARARGS | METH_KEYWORDS, NULL},
26374 { (char *)"FontList_swigregister", FontList_swigregister, METH_VARARGS, NULL},
26375 { (char *)"new_ColourDatabase", (PyCFunction)_wrap_new_ColourDatabase, METH_NOARGS, NULL},
26376 { (char *)"delete_ColourDatabase", (PyCFunction)_wrap_delete_ColourDatabase, METH_O, NULL},
26377 { (char *)"ColourDatabase_Find", (PyCFunction) _wrap_ColourDatabase_Find, METH_VARARGS | METH_KEYWORDS, NULL},
26378 { (char *)"ColourDatabase_FindName", (PyCFunction) _wrap_ColourDatabase_FindName, METH_VARARGS | METH_KEYWORDS, NULL},
26379 { (char *)"ColourDatabase_AddColour", (PyCFunction) _wrap_ColourDatabase_AddColour, METH_VARARGS | METH_KEYWORDS, NULL},
26380 { (char *)"ColourDatabase_Append", (PyCFunction) _wrap_ColourDatabase_Append, METH_VARARGS | METH_KEYWORDS, NULL},
26381 { (char *)"ColourDatabase_swigregister", ColourDatabase_swigregister, METH_VARARGS, NULL},
26382 { (char *)"ColourDatabase_swiginit", ColourDatabase_swiginit, METH_VARARGS, NULL},
26383 { (char *)"_wxPyInitTheFontList", (PyCFunction)_wrap__wxPyInitTheFontList, METH_NOARGS, NULL},
26384 { (char *)"_wxPyInitThePenList", (PyCFunction)_wrap__wxPyInitThePenList, METH_NOARGS, NULL},
26385 { (char *)"_wxPyInitTheBrushList", (PyCFunction)_wrap__wxPyInitTheBrushList, METH_NOARGS, NULL},
26386 { (char *)"_wxPyInitTheColourDatabase", (PyCFunction)_wrap__wxPyInitTheColourDatabase, METH_NOARGS, NULL},
26387 { (char *)"new_Effects", (PyCFunction)_wrap_new_Effects, METH_NOARGS, NULL},
26388 { (char *)"Effects_GetHighlightColour", (PyCFunction)_wrap_Effects_GetHighlightColour, METH_O, NULL},
26389 { (char *)"Effects_GetLightShadow", (PyCFunction)_wrap_Effects_GetLightShadow, METH_O, NULL},
26390 { (char *)"Effects_GetFaceColour", (PyCFunction)_wrap_Effects_GetFaceColour, METH_O, NULL},
26391 { (char *)"Effects_GetMediumShadow", (PyCFunction)_wrap_Effects_GetMediumShadow, METH_O, NULL},
26392 { (char *)"Effects_GetDarkShadow", (PyCFunction)_wrap_Effects_GetDarkShadow, METH_O, NULL},
26393 { (char *)"Effects_SetHighlightColour", (PyCFunction) _wrap_Effects_SetHighlightColour, METH_VARARGS | METH_KEYWORDS, NULL},
26394 { (char *)"Effects_SetLightShadow", (PyCFunction) _wrap_Effects_SetLightShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26395 { (char *)"Effects_SetFaceColour", (PyCFunction) _wrap_Effects_SetFaceColour, METH_VARARGS | METH_KEYWORDS, NULL},
26396 { (char *)"Effects_SetMediumShadow", (PyCFunction) _wrap_Effects_SetMediumShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26397 { (char *)"Effects_SetDarkShadow", (PyCFunction) _wrap_Effects_SetDarkShadow, METH_VARARGS | METH_KEYWORDS, NULL},
26398 { (char *)"Effects_Set", (PyCFunction) _wrap_Effects_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26399 { (char *)"Effects_DrawSunkenEdge", (PyCFunction) _wrap_Effects_DrawSunkenEdge, METH_VARARGS | METH_KEYWORDS, NULL},
26400 { (char *)"Effects_TileBitmap", (PyCFunction) _wrap_Effects_TileBitmap, METH_VARARGS | METH_KEYWORDS, NULL},
26401 { (char *)"Effects_swigregister", Effects_swigregister, METH_VARARGS, NULL},
26402 { (char *)"Effects_swiginit", Effects_swiginit, METH_VARARGS, NULL},
26403 { (char *)"new_SplitterRenderParams", (PyCFunction) _wrap_new_SplitterRenderParams, METH_VARARGS | METH_KEYWORDS, NULL},
26404 { (char *)"delete_SplitterRenderParams", (PyCFunction)_wrap_delete_SplitterRenderParams, METH_O, NULL},
26405 { (char *)"SplitterRenderParams_widthSash_get", (PyCFunction)_wrap_SplitterRenderParams_widthSash_get, METH_O, NULL},
26406 { (char *)"SplitterRenderParams_border_get", (PyCFunction)_wrap_SplitterRenderParams_border_get, METH_O, NULL},
26407 { (char *)"SplitterRenderParams_isHotSensitive_get", (PyCFunction)_wrap_SplitterRenderParams_isHotSensitive_get, METH_O, NULL},
26408 { (char *)"SplitterRenderParams_swigregister", SplitterRenderParams_swigregister, METH_VARARGS, NULL},
26409 { (char *)"SplitterRenderParams_swiginit", SplitterRenderParams_swiginit, METH_VARARGS, NULL},
26410 { (char *)"new_RendererVersion", (PyCFunction) _wrap_new_RendererVersion, METH_VARARGS | METH_KEYWORDS, NULL},
26411 { (char *)"delete_RendererVersion", (PyCFunction)_wrap_delete_RendererVersion, METH_O, NULL},
26412 { (char *)"RendererVersion_IsCompatible", (PyCFunction) _wrap_RendererVersion_IsCompatible, METH_VARARGS | METH_KEYWORDS, NULL},
26413 { (char *)"RendererVersion_version_get", (PyCFunction)_wrap_RendererVersion_version_get, METH_O, NULL},
26414 { (char *)"RendererVersion_age_get", (PyCFunction)_wrap_RendererVersion_age_get, METH_O, NULL},
26415 { (char *)"RendererVersion_swigregister", RendererVersion_swigregister, METH_VARARGS, NULL},
26416 { (char *)"RendererVersion_swiginit", RendererVersion_swiginit, METH_VARARGS, NULL},
26417 { (char *)"RendererNative_DrawHeaderButton", (PyCFunction) _wrap_RendererNative_DrawHeaderButton, METH_VARARGS | METH_KEYWORDS, NULL},
26418 { (char *)"RendererNative_DrawTreeItemButton", (PyCFunction) _wrap_RendererNative_DrawTreeItemButton, METH_VARARGS | METH_KEYWORDS, NULL},
26419 { (char *)"RendererNative_DrawSplitterBorder", (PyCFunction) _wrap_RendererNative_DrawSplitterBorder, METH_VARARGS | METH_KEYWORDS, NULL},
26420 { (char *)"RendererNative_DrawSplitterSash", (PyCFunction) _wrap_RendererNative_DrawSplitterSash, METH_VARARGS | METH_KEYWORDS, NULL},
26421 { (char *)"RendererNative_DrawComboBoxDropButton", (PyCFunction) _wrap_RendererNative_DrawComboBoxDropButton, METH_VARARGS | METH_KEYWORDS, NULL},
26422 { (char *)"RendererNative_DrawDropArrow", (PyCFunction) _wrap_RendererNative_DrawDropArrow, METH_VARARGS | METH_KEYWORDS, NULL},
26423 { (char *)"RendererNative_DrawCheckBox", (PyCFunction) _wrap_RendererNative_DrawCheckBox, METH_VARARGS | METH_KEYWORDS, NULL},
26424 { (char *)"RendererNative_DrawPushButton", (PyCFunction) _wrap_RendererNative_DrawPushButton, METH_VARARGS | METH_KEYWORDS, NULL},
26425 { (char *)"RendererNative_DrawItemSelectionRect", (PyCFunction) _wrap_RendererNative_DrawItemSelectionRect, METH_VARARGS | METH_KEYWORDS, NULL},
26426 { (char *)"RendererNative_GetSplitterParams", (PyCFunction) _wrap_RendererNative_GetSplitterParams, METH_VARARGS | METH_KEYWORDS, NULL},
26427 { (char *)"RendererNative_Get", (PyCFunction)_wrap_RendererNative_Get, METH_NOARGS, NULL},
26428 { (char *)"RendererNative_GetGeneric", (PyCFunction)_wrap_RendererNative_GetGeneric, METH_NOARGS, NULL},
26429 { (char *)"RendererNative_GetDefault", (PyCFunction)_wrap_RendererNative_GetDefault, METH_NOARGS, NULL},
26430 { (char *)"RendererNative_Set", (PyCFunction) _wrap_RendererNative_Set, METH_VARARGS | METH_KEYWORDS, NULL},
26431 { (char *)"RendererNative_GetVersion", (PyCFunction)_wrap_RendererNative_GetVersion, METH_O, NULL},
26432 { (char *)"RendererNative_swigregister", RendererNative_swigregister, METH_VARARGS, NULL},
26433 { NULL, NULL, 0, NULL }
26434 };
26435
26436
26437 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */
26438
26439 static void *_p_wxBufferedDCTo_p_wxMemoryDC(void *x) {
26440 return (void *)((wxMemoryDC *) ((wxBufferedDC *) x));
26441 }
26442 static void *_p_wxBufferedPaintDCTo_p_wxMemoryDC(void *x) {
26443 return (void *)((wxMemoryDC *) (wxBufferedDC *) ((wxBufferedPaintDC *) x));
26444 }
26445 static void *_p_wxIconTo_p_wxGDIObject(void *x) {
26446 return (void *)((wxGDIObject *) ((wxIcon *) x));
26447 }
26448 static void *_p_wxPaletteTo_p_wxGDIObject(void *x) {
26449 return (void *)((wxGDIObject *) ((wxPalette *) x));
26450 }
26451 static void *_p_wxPenTo_p_wxGDIObject(void *x) {
26452 return (void *)((wxGDIObject *) ((wxPen *) x));
26453 }
26454 static void *_p_wxFontTo_p_wxGDIObject(void *x) {
26455 return (void *)((wxGDIObject *) ((wxFont *) x));
26456 }
26457 static void *_p_wxCursorTo_p_wxGDIObject(void *x) {
26458 return (void *)((wxGDIObject *) ((wxCursor *) x));
26459 }
26460 static void *_p_wxBitmapTo_p_wxGDIObject(void *x) {
26461 return (void *)((wxGDIObject *) ((wxBitmap *) x));
26462 }
26463 static void *_p_wxRegionTo_p_wxGDIObject(void *x) {
26464 return (void *)((wxGDIObject *) ((wxRegion *) x));
26465 }
26466 static void *_p_wxBrushTo_p_wxGDIObject(void *x) {
26467 return (void *)((wxGDIObject *) ((wxBrush *) x));
26468 }
26469 static void *_p_wxBufferedDCTo_p_wxDC(void *x) {
26470 return (void *)((wxDC *) (wxMemoryDC *) ((wxBufferedDC *) x));
26471 }
26472 static void *_p_wxScreenDCTo_p_wxDC(void *x) {
26473 return (void *)((wxDC *) ((wxScreenDC *) x));
26474 }
26475 static void *_p_wxMirrorDCTo_p_wxDC(void *x) {
26476 return (void *)((wxDC *) ((wxMirrorDC *) x));
26477 }
26478 static void *_p_wxMemoryDCTo_p_wxDC(void *x) {
26479 return (void *)((wxDC *) ((wxMemoryDC *) x));
26480 }
26481 static void *_p_wxWindowDCTo_p_wxDC(void *x) {
26482 return (void *)((wxDC *) ((wxWindowDC *) x));
26483 }
26484 static void *_p_wxMetaFileDCTo_p_wxDC(void *x) {
26485 return (void *)((wxDC *) ((wxMetaFileDC *) x));
26486 }
26487 static void *_p_wxBufferedPaintDCTo_p_wxDC(void *x) {
26488 return (void *)((wxDC *) (wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26489 }
26490 static void *_p_wxClientDCTo_p_wxDC(void *x) {
26491 return (void *)((wxDC *) ((wxClientDC *) x));
26492 }
26493 static void *_p_wxPaintDCTo_p_wxDC(void *x) {
26494 return (void *)((wxDC *) ((wxPaintDC *) x));
26495 }
26496 static void *_p_wxPostScriptDCTo_p_wxDC(void *x) {
26497 return (void *)((wxDC *) ((wxPostScriptDC *) x));
26498 }
26499 static void *_p_wxPrinterDCTo_p_wxDC(void *x) {
26500 return (void *)((wxDC *) ((wxPrinterDC *) x));
26501 }
26502 static void *_p_wxBrushListTo_p_wxGDIObjListBase(void *x) {
26503 return (void *)((wxGDIObjListBase *) ((wxBrushList *) x));
26504 }
26505 static void *_p_wxFontListTo_p_wxGDIObjListBase(void *x) {
26506 return (void *)((wxGDIObjListBase *) ((wxFontList *) x));
26507 }
26508 static void *_p_wxPenListTo_p_wxGDIObjListBase(void *x) {
26509 return (void *)((wxGDIObjListBase *) ((wxPenList *) x));
26510 }
26511 static void *_p_wxBufferedPaintDCTo_p_wxBufferedDC(void *x) {
26512 return (void *)((wxBufferedDC *) ((wxBufferedPaintDC *) x));
26513 }
26514 static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) {
26515 return (void *)((wxObject *) ((wxLayoutConstraints *) x));
26516 }
26517 static void *_p_wxPenTo_p_wxObject(void *x) {
26518 return (void *)((wxObject *) (wxGDIObject *) ((wxPen *) x));
26519 }
26520 static void *_p_wxRegionIteratorTo_p_wxObject(void *x) {
26521 return (void *)((wxObject *) ((wxRegionIterator *) x));
26522 }
26523 static void *_p_wxGBSizerItemTo_p_wxObject(void *x) {
26524 return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x));
26525 }
26526 static void *_p_wxSizerItemTo_p_wxObject(void *x) {
26527 return (void *)((wxObject *) ((wxSizerItem *) x));
26528 }
26529 static void *_p_wxScrollEventTo_p_wxObject(void *x) {
26530 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x));
26531 }
26532 static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) {
26533 return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x));
26534 }
26535 static void *_p_wxIconTo_p_wxObject(void *x) {
26536 return (void *)((wxObject *) (wxGDIObject *) ((wxIcon *) x));
26537 }
26538 static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) {
26539 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x));
26540 }
26541 static void *_p_wxBoxSizerTo_p_wxObject(void *x) {
26542 return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x));
26543 }
26544 static void *_p_wxSizerTo_p_wxObject(void *x) {
26545 return (void *)((wxObject *) ((wxSizer *) x));
26546 }
26547 static void *_p_wxGridBagSizerTo_p_wxObject(void *x) {
26548 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x));
26549 }
26550 static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) {
26551 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x));
26552 }
26553 static void *_p_wxEventTo_p_wxObject(void *x) {
26554 return (void *)((wxObject *) ((wxEvent *) x));
26555 }
26556 static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) {
26557 return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x));
26558 }
26559 static void *_p_wxGridSizerTo_p_wxObject(void *x) {
26560 return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x));
26561 }
26562 static void *_p_wxInitDialogEventTo_p_wxObject(void *x) {
26563 return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x));
26564 }
26565 static void *_p_wxPaintEventTo_p_wxObject(void *x) {
26566 return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x));
26567 }
26568 static void *_p_wxNcPaintEventTo_p_wxObject(void *x) {
26569 return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x));
26570 }
26571 static void *_p_wxDCTo_p_wxObject(void *x) {
26572 return (void *)((wxObject *) ((wxDC *) x));
26573 }
26574 static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) {
26575 return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x));
26576 }
26577 static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) {
26578 return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x));
26579 }
26580 static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) {
26581 return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x));
26582 }
26583 static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) {
26584 return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x));
26585 }
26586 static void *_p_wxControlTo_p_wxObject(void *x) {
26587 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x));
26588 }
26589 static void *_p_wxSetCursorEventTo_p_wxObject(void *x) {
26590 return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x));
26591 }
26592 static void *_p_wxClientDCTo_p_wxObject(void *x) {
26593 return (void *)((wxObject *) (wxDC *) ((wxClientDC *) x));
26594 }
26595 static void *_p_wxFSFileTo_p_wxObject(void *x) {
26596 return (void *)((wxObject *) ((wxFSFile *) x));
26597 }
26598 static void *_p_wxMemoryDCTo_p_wxObject(void *x) {
26599 return (void *)((wxObject *) (wxDC *) ((wxMemoryDC *) x));
26600 }
26601 static void *_p_wxRegionTo_p_wxObject(void *x) {
26602 return (void *)((wxObject *) (wxGDIObject *) ((wxRegion *) x));
26603 }
26604 static void *_p_wxPySizerTo_p_wxObject(void *x) {
26605 return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x));
26606 }
26607 static void *_p_wxWindowDCTo_p_wxObject(void *x) {
26608 return (void *)((wxObject *) (wxDC *) ((wxWindowDC *) x));
26609 }
26610 static void *_p_wxGDIObjectTo_p_wxObject(void *x) {
26611 return (void *)((wxObject *) ((wxGDIObject *) x));
26612 }
26613 static void *_p_wxEffectsTo_p_wxObject(void *x) {
26614 return (void *)((wxObject *) ((wxEffects *) x));
26615 }
26616 static void *_p_wxPyEventTo_p_wxObject(void *x) {
26617 return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x));
26618 }
26619 static void *_p_wxNotifyEventTo_p_wxObject(void *x) {
26620 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x));
26621 }
26622 static void *_p_wxPostScriptDCTo_p_wxObject(void *x) {
26623 return (void *)((wxObject *) (wxDC *) ((wxPostScriptDC *) x));
26624 }
26625 static void *_p_wxShowEventTo_p_wxObject(void *x) {
26626 return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x));
26627 }
26628 static void *_p_wxMenuItemTo_p_wxObject(void *x) {
26629 return (void *)((wxObject *) ((wxMenuItem *) x));
26630 }
26631 static void *_p_wxDateEventTo_p_wxObject(void *x) {
26632 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxDateEvent *) x));
26633 }
26634 static void *_p_wxIdleEventTo_p_wxObject(void *x) {
26635 return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x));
26636 }
26637 static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) {
26638 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x));
26639 }
26640 static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) {
26641 return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x));
26642 }
26643 static void *_p_wxMaximizeEventTo_p_wxObject(void *x) {
26644 return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x));
26645 }
26646 static void *_p_wxIconizeEventTo_p_wxObject(void *x) {
26647 return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x));
26648 }
26649 static void *_p_wxSizeEventTo_p_wxObject(void *x) {
26650 return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x));
26651 }
26652 static void *_p_wxMoveEventTo_p_wxObject(void *x) {
26653 return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x));
26654 }
26655 static void *_p_wxActivateEventTo_p_wxObject(void *x) {
26656 return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x));
26657 }
26658 static void *_p_wxPNMHandlerTo_p_wxObject(void *x) {
26659 return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x));
26660 }
26661 static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) {
26662 return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x));
26663 }
26664 static void *_p_wxPCXHandlerTo_p_wxObject(void *x) {
26665 return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x));
26666 }
26667 static void *_p_wxGIFHandlerTo_p_wxObject(void *x) {
26668 return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x));
26669 }
26670 static void *_p_wxPNGHandlerTo_p_wxObject(void *x) {
26671 return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x));
26672 }
26673 static void *_p_wxANIHandlerTo_p_wxObject(void *x) {
26674 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x));
26675 }
26676 static void *_p_wxCURHandlerTo_p_wxObject(void *x) {
26677 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x));
26678 }
26679 static void *_p_wxICOHandlerTo_p_wxObject(void *x) {
26680 return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x));
26681 }
26682 static void *_p_wxBMPHandlerTo_p_wxObject(void *x) {
26683 return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x));
26684 }
26685 static void *_p_wxPyImageHandlerTo_p_wxObject(void *x) {
26686 return (void *)((wxObject *) (wxImageHandler *) ((wxPyImageHandler *) x));
26687 }
26688 static void *_p_wxImageHandlerTo_p_wxObject(void *x) {
26689 return (void *)((wxObject *) ((wxImageHandler *) x));
26690 }
26691 static void *_p_wxXPMHandlerTo_p_wxObject(void *x) {
26692 return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x));
26693 }
26694 static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) {
26695 return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x));
26696 }
26697 static void *_p_wxEvtHandlerTo_p_wxObject(void *x) {
26698 return (void *)((wxObject *) ((wxEvtHandler *) x));
26699 }
26700 static void *_p_wxBufferedPaintDCTo_p_wxObject(void *x) {
26701 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *)(wxBufferedDC *) ((wxBufferedPaintDC *) x));
26702 }
26703 static void *_p_wxPaintDCTo_p_wxObject(void *x) {
26704 return (void *)((wxObject *) (wxDC *) ((wxPaintDC *) x));
26705 }
26706 static void *_p_wxPrinterDCTo_p_wxObject(void *x) {
26707 return (void *)((wxObject *) (wxDC *) ((wxPrinterDC *) x));
26708 }
26709 static void *_p_wxScreenDCTo_p_wxObject(void *x) {
26710 return (void *)((wxObject *) (wxDC *) ((wxScreenDC *) x));
26711 }
26712 static void *_p_wxStdDialogButtonSizerTo_p_wxObject(void *x) {
26713 return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStdDialogButtonSizer *) x));
26714 }
26715 static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) {
26716 return (void *)((wxObject *) ((wxAcceleratorTable *) x));
26717 }
26718 static void *_p_wxImageTo_p_wxObject(void *x) {
26719 return (void *)((wxObject *) ((wxImage *) x));
26720 }
26721 static void *_p_wxScrollWinEventTo_p_wxObject(void *x) {
26722 return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x));
26723 }
26724 static void *_p_wxPaletteTo_p_wxObject(void *x) {
26725 return (void *)((wxObject *) (wxGDIObject *) ((wxPalette *) x));
26726 }
26727 static void *_p_wxBufferedDCTo_p_wxObject(void *x) {
26728 return (void *)((wxObject *) (wxDC *)(wxMemoryDC *) ((wxBufferedDC *) x));
26729 }
26730 static void *_p_wxImageListTo_p_wxObject(void *x) {
26731 return (void *)((wxObject *) ((wxImageList *) x));
26732 }
26733 static void *_p_wxCursorTo_p_wxObject(void *x) {
26734 return (void *)((wxObject *) (wxGDIObject *) ((wxCursor *) x));
26735 }
26736 static void *_p_wxEncodingConverterTo_p_wxObject(void *x) {
26737 return (void *)((wxObject *) ((wxEncodingConverter *) x));
26738 }
26739 static void *_p_wxMirrorDCTo_p_wxObject(void *x) {
26740 return (void *)((wxObject *) (wxDC *) ((wxMirrorDC *) x));
26741 }
26742 static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) {
26743 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x));
26744 }
26745 static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) {
26746 return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x));
26747 }
26748 static void *_p_wxKeyEventTo_p_wxObject(void *x) {
26749 return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x));
26750 }
26751 static void *_p_wxWindowTo_p_wxObject(void *x) {
26752 return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x));
26753 }
26754 static void *_p_wxMenuTo_p_wxObject(void *x) {
26755 return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x));
26756 }
26757 static void *_p_wxMenuBarTo_p_wxObject(void *x) {
26758 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x));
26759 }
26760 static void *_p_wxMetaFileDCTo_p_wxObject(void *x) {
26761 return (void *)((wxObject *) (wxDC *) ((wxMetaFileDC *) x));
26762 }
26763 static void *_p_wxFileSystemTo_p_wxObject(void *x) {
26764 return (void *)((wxObject *) ((wxFileSystem *) x));
26765 }
26766 static void *_p_wxBitmapTo_p_wxObject(void *x) {
26767 return (void *)((wxObject *) (wxGDIObject *) ((wxBitmap *) x));
26768 }
26769 static void *_p_wxMaskTo_p_wxObject(void *x) {
26770 return (void *)((wxObject *) ((wxMask *) x));
26771 }
26772 static void *_p_wxContextMenuEventTo_p_wxObject(void *x) {
26773 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x));
26774 }
26775 static void *_p_wxMenuEventTo_p_wxObject(void *x) {
26776 return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x));
26777 }
26778 static void *_p_wxPyAppTo_p_wxObject(void *x) {
26779 return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x));
26780 }
26781 static void *_p_wxCloseEventTo_p_wxObject(void *x) {
26782 return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x));
26783 }
26784 static void *_p_wxMouseEventTo_p_wxObject(void *x) {
26785 return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x));
26786 }
26787 static void *_p_wxEraseEventTo_p_wxObject(void *x) {
26788 return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x));
26789 }
26790 static void *_p_wxPyCommandEventTo_p_wxObject(void *x) {
26791 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x));
26792 }
26793 static void *_p_wxCommandEventTo_p_wxObject(void *x) {
26794 return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x));
26795 }
26796 static void *_p_wxDropFilesEventTo_p_wxObject(void *x) {
26797 return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x));
26798 }
26799 static void *_p_wxFocusEventTo_p_wxObject(void *x) {
26800 return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x));
26801 }
26802 static void *_p_wxChildFocusEventTo_p_wxObject(void *x) {
26803 return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x));
26804 }
26805 static void *_p_wxFontTo_p_wxObject(void *x) {
26806 return (void *)((wxObject *) (wxGDIObject *) ((wxFont *) x));
26807 }
26808 static void *_p_wxBrushTo_p_wxObject(void *x) {
26809 return (void *)((wxObject *) (wxGDIObject *) ((wxBrush *) x));
26810 }
26811 static void *_p_wxMetaFileTo_p_wxObject(void *x) {
26812 return (void *)((wxObject *) ((wxMetaFile *) x));
26813 }
26814 static void *_p_wxControlWithItemsTo_p_wxObject(void *x) {
26815 return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x));
26816 }
26817 static void *_p_wxColourTo_p_wxObject(void *x) {
26818 return (void *)((wxObject *) ((wxColour *) x));
26819 }
26820 static void *_p_wxPyValidatorTo_p_wxObject(void *x) {
26821 return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x));
26822 }
26823 static void *_p_wxValidatorTo_p_wxObject(void *x) {
26824 return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x));
26825 }
26826 static void *_p_wxControlTo_p_wxWindow(void *x) {
26827 return (void *)((wxWindow *) ((wxControl *) x));
26828 }
26829 static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) {
26830 return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x));
26831 }
26832 static void *_p_wxMenuBarTo_p_wxWindow(void *x) {
26833 return (void *)((wxWindow *) ((wxMenuBar *) x));
26834 }
26835 static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
26836 static swig_type_info _swigt__p_double = {"_p_double", "double *", 0, 0, (void*)0, 0};
26837 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};
26838 static swig_type_info _swigt__p_int = {"_p_int", "int *", 0, 0, (void*)0, 0};
26839 static swig_type_info _swigt__p_unsigned_char = {"_p_unsigned_char", "unsigned char *|byte *", 0, 0, (void*)0, 0};
26840 static swig_type_info _swigt__p_unsigned_int = {"_p_unsigned_int", "unsigned int *|time_t *", 0, 0, (void*)0, 0};
26841 static swig_type_info _swigt__p_unsigned_long = {"_p_unsigned_long", "unsigned long *|wxUIntPtr *", 0, 0, (void*)0, 0};
26842 static swig_type_info _swigt__p_wxBitmap = {"_p_wxBitmap", "wxBitmap *", 0, 0, (void*)0, 0};
26843 static swig_type_info _swigt__p_wxBrush = {"_p_wxBrush", "wxBrush *", 0, 0, (void*)0, 0};
26844 static swig_type_info _swigt__p_wxBrushList = {"_p_wxBrushList", "wxBrushList *", 0, 0, (void*)0, 0};
26845 static swig_type_info _swigt__p_wxBufferedDC = {"_p_wxBufferedDC", "wxBufferedDC *", 0, 0, (void*)0, 0};
26846 static swig_type_info _swigt__p_wxBufferedPaintDC = {"_p_wxBufferedPaintDC", "wxBufferedPaintDC *", 0, 0, (void*)0, 0};
26847 static swig_type_info _swigt__p_wxClientDC = {"_p_wxClientDC", "wxClientDC *", 0, 0, (void*)0, 0};
26848 static swig_type_info _swigt__p_wxColour = {"_p_wxColour", "wxColour *", 0, 0, (void*)0, 0};
26849 static swig_type_info _swigt__p_wxColourDatabase = {"_p_wxColourDatabase", "wxColourDatabase *", 0, 0, (void*)0, 0};
26850 static swig_type_info _swigt__p_wxCursor = {"_p_wxCursor", "wxCursor *", 0, 0, (void*)0, 0};
26851 static swig_type_info _swigt__p_wxDC = {"_p_wxDC", "wxDC *", 0, 0, (void*)0, 0};
26852 static swig_type_info _swigt__p_wxDash = {"_p_wxDash", "wxDash *", 0, 0, (void*)0, 0};
26853 static swig_type_info _swigt__p_wxDuplexMode = {"_p_wxDuplexMode", "enum wxDuplexMode *|wxDuplexMode *", 0, 0, (void*)0, 0};
26854 static swig_type_info _swigt__p_wxEffects = {"_p_wxEffects", "wxEffects *", 0, 0, (void*)0, 0};
26855 static swig_type_info _swigt__p_wxEncodingConverter = {"_p_wxEncodingConverter", "wxEncodingConverter *", 0, 0, (void*)0, 0};
26856 static swig_type_info _swigt__p_wxFont = {"_p_wxFont", "wxFont *", 0, 0, (void*)0, 0};
26857 static swig_type_info _swigt__p_wxFontList = {"_p_wxFontList", "wxFontList *", 0, 0, (void*)0, 0};
26858 static swig_type_info _swigt__p_wxFontMapper = {"_p_wxFontMapper", "wxFontMapper *", 0, 0, (void*)0, 0};
26859 static swig_type_info _swigt__p_wxGDIObjListBase = {"_p_wxGDIObjListBase", "wxGDIObjListBase *", 0, 0, (void*)0, 0};
26860 static swig_type_info _swigt__p_wxGDIObject = {"_p_wxGDIObject", "wxGDIObject *", 0, 0, (void*)0, 0};
26861 static swig_type_info _swigt__p_wxIcon = {"_p_wxIcon", "wxIcon *", 0, 0, (void*)0, 0};
26862 static swig_type_info _swigt__p_wxIconBundle = {"_p_wxIconBundle", "wxIconBundle *", 0, 0, (void*)0, 0};
26863 static swig_type_info _swigt__p_wxIconLocation = {"_p_wxIconLocation", "wxIconLocation *", 0, 0, (void*)0, 0};
26864 static swig_type_info _swigt__p_wxImage = {"_p_wxImage", "wxImage *", 0, 0, (void*)0, 0};
26865 static swig_type_info _swigt__p_wxImageList = {"_p_wxImageList", "wxImageList *", 0, 0, (void*)0, 0};
26866 static swig_type_info _swigt__p_wxLanguageInfo = {"_p_wxLanguageInfo", "wxLanguageInfo *", 0, 0, (void*)0, 0};
26867 static swig_type_info _swigt__p_wxLocale = {"_p_wxLocale", "wxLocale *", 0, 0, (void*)0, 0};
26868 static swig_type_info _swigt__p_wxMask = {"_p_wxMask", "wxMask *", 0, 0, (void*)0, 0};
26869 static swig_type_info _swigt__p_wxMemoryDC = {"_p_wxMemoryDC", "wxMemoryDC *", 0, 0, (void*)0, 0};
26870 static swig_type_info _swigt__p_wxMetaFile = {"_p_wxMetaFile", "wxMetaFile *", 0, 0, (void*)0, 0};
26871 static swig_type_info _swigt__p_wxMetaFileDC = {"_p_wxMetaFileDC", "wxMetaFileDC *", 0, 0, (void*)0, 0};
26872 static swig_type_info _swigt__p_wxMirrorDC = {"_p_wxMirrorDC", "wxMirrorDC *", 0, 0, (void*)0, 0};
26873 static swig_type_info _swigt__p_wxNativeEncodingInfo = {"_p_wxNativeEncodingInfo", "wxNativeEncodingInfo *", 0, 0, (void*)0, 0};
26874 static swig_type_info _swigt__p_wxNativeFontInfo = {"_p_wxNativeFontInfo", "wxNativeFontInfo *", 0, 0, (void*)0, 0};
26875 static swig_type_info _swigt__p_wxObject = {"_p_wxObject", "wxObject *", 0, 0, (void*)0, 0};
26876 static swig_type_info _swigt__p_wxLayoutConstraints = {"_p_wxLayoutConstraints", 0, 0, 0, 0, 0};
26877 static swig_type_info _swigt__p_wxGBSizerItem = {"_p_wxGBSizerItem", 0, 0, 0, 0, 0};
26878 static swig_type_info _swigt__p_wxSizerItem = {"_p_wxSizerItem", 0, 0, 0, 0, 0};
26879 static swig_type_info _swigt__p_wxScrollEvent = {"_p_wxScrollEvent", 0, 0, 0, 0, 0};
26880 static swig_type_info _swigt__p_wxIndividualLayoutConstraint = {"_p_wxIndividualLayoutConstraint", 0, 0, 0, 0, 0};
26881 static swig_type_info _swigt__p_wxStaticBoxSizer = {"_p_wxStaticBoxSizer", 0, 0, 0, 0, 0};
26882 static swig_type_info _swigt__p_wxBoxSizer = {"_p_wxBoxSizer", 0, 0, 0, 0, 0};
26883 static swig_type_info _swigt__p_wxSizer = {"_p_wxSizer", 0, 0, 0, 0, 0};
26884 static swig_type_info _swigt__p_wxGridBagSizer = {"_p_wxGridBagSizer", 0, 0, 0, 0, 0};
26885 static swig_type_info _swigt__p_wxUpdateUIEvent = {"_p_wxUpdateUIEvent", 0, 0, 0, 0, 0};
26886 static swig_type_info _swigt__p_wxMenu = {"_p_wxMenu", 0, 0, 0, 0, 0};
26887 static swig_type_info _swigt__p_wxEvent = {"_p_wxEvent", 0, 0, 0, 0, 0};
26888 static swig_type_info _swigt__p_wxFlexGridSizer = {"_p_wxFlexGridSizer", 0, 0, 0, 0, 0};
26889 static swig_type_info _swigt__p_wxGridSizer = {"_p_wxGridSizer", 0, 0, 0, 0, 0};
26890 static swig_type_info _swigt__p_wxInitDialogEvent = {"_p_wxInitDialogEvent", 0, 0, 0, 0, 0};
26891 static swig_type_info _swigt__p_wxPaintEvent = {"_p_wxPaintEvent", 0, 0, 0, 0, 0};
26892 static swig_type_info _swigt__p_wxNcPaintEvent = {"_p_wxNcPaintEvent", 0, 0, 0, 0, 0};
26893 static swig_type_info _swigt__p_wxPaletteChangedEvent = {"_p_wxPaletteChangedEvent", 0, 0, 0, 0, 0};
26894 static swig_type_info _swigt__p_wxDisplayChangedEvent = {"_p_wxDisplayChangedEvent", 0, 0, 0, 0, 0};
26895 static swig_type_info _swigt__p_wxMouseCaptureChangedEvent = {"_p_wxMouseCaptureChangedEvent", 0, 0, 0, 0, 0};
26896 static swig_type_info _swigt__p_wxSysColourChangedEvent = {"_p_wxSysColourChangedEvent", 0, 0, 0, 0, 0};
26897 static swig_type_info _swigt__p_wxControl = {"_p_wxControl", 0, 0, 0, 0, 0};
26898 static swig_type_info _swigt__p_wxSetCursorEvent = {"_p_wxSetCursorEvent", 0, 0, 0, 0, 0};
26899 static swig_type_info _swigt__p_wxFSFile = {"_p_wxFSFile", 0, 0, 0, 0, 0};
26900 static swig_type_info _swigt__p_wxPySizer = {"_p_wxPySizer", 0, 0, 0, 0, 0};
26901 static swig_type_info _swigt__p_wxPyEvent = {"_p_wxPyEvent", 0, 0, 0, 0, 0};
26902 static swig_type_info _swigt__p_wxNotifyEvent = {"_p_wxNotifyEvent", 0, 0, 0, 0, 0};
26903 static swig_type_info _swigt__p_wxShowEvent = {"_p_wxShowEvent", 0, 0, 0, 0, 0};
26904 static swig_type_info _swigt__p_wxMenuItem = {"_p_wxMenuItem", 0, 0, 0, 0, 0};
26905 static swig_type_info _swigt__p_wxDateEvent = {"_p_wxDateEvent", 0, 0, 0, 0, 0};
26906 static swig_type_info _swigt__p_wxIdleEvent = {"_p_wxIdleEvent", 0, 0, 0, 0, 0};
26907 static swig_type_info _swigt__p_wxWindowCreateEvent = {"_p_wxWindowCreateEvent", 0, 0, 0, 0, 0};
26908 static swig_type_info _swigt__p_wxQueryNewPaletteEvent = {"_p_wxQueryNewPaletteEvent", 0, 0, 0, 0, 0};
26909 static swig_type_info _swigt__p_wxMaximizeEvent = {"_p_wxMaximizeEvent", 0, 0, 0, 0, 0};
26910 static swig_type_info _swigt__p_wxIconizeEvent = {"_p_wxIconizeEvent", 0, 0, 0, 0, 0};
26911 static swig_type_info _swigt__p_wxSizeEvent = {"_p_wxSizeEvent", 0, 0, 0, 0, 0};
26912 static swig_type_info _swigt__p_wxMoveEvent = {"_p_wxMoveEvent", 0, 0, 0, 0, 0};
26913 static swig_type_info _swigt__p_wxActivateEvent = {"_p_wxActivateEvent", 0, 0, 0, 0, 0};
26914 static swig_type_info _swigt__p_wxGIFHandler = {"_p_wxGIFHandler", 0, 0, 0, 0, 0};
26915 static swig_type_info _swigt__p_wxPNGHandler = {"_p_wxPNGHandler", 0, 0, 0, 0, 0};
26916 static swig_type_info _swigt__p_wxANIHandler = {"_p_wxANIHandler", 0, 0, 0, 0, 0};
26917 static swig_type_info _swigt__p_wxCURHandler = {"_p_wxCURHandler", 0, 0, 0, 0, 0};
26918 static swig_type_info _swigt__p_wxICOHandler = {"_p_wxICOHandler", 0, 0, 0, 0, 0};
26919 static swig_type_info _swigt__p_wxBMPHandler = {"_p_wxBMPHandler", 0, 0, 0, 0, 0};
26920 static swig_type_info _swigt__p_wxPyImageHandler = {"_p_wxPyImageHandler", 0, 0, 0, 0, 0};
26921 static swig_type_info _swigt__p_wxImageHandler = {"_p_wxImageHandler", 0, 0, 0, 0, 0};
26922 static swig_type_info _swigt__p_wxXPMHandler = {"_p_wxXPMHandler", 0, 0, 0, 0, 0};
26923 static swig_type_info _swigt__p_wxTIFFHandler = {"_p_wxTIFFHandler", 0, 0, 0, 0, 0};
26924 static swig_type_info _swigt__p_wxEvtHandler = {"_p_wxEvtHandler", 0, 0, 0, 0, 0};
26925 static swig_type_info _swigt__p_wxPCXHandler = {"_p_wxPCXHandler", 0, 0, 0, 0, 0};
26926 static swig_type_info _swigt__p_wxJPEGHandler = {"_p_wxJPEGHandler", 0, 0, 0, 0, 0};
26927 static swig_type_info _swigt__p_wxPNMHandler = {"_p_wxPNMHandler", 0, 0, 0, 0, 0};
26928 static swig_type_info _swigt__p_wxStdDialogButtonSizer = {"_p_wxStdDialogButtonSizer", 0, 0, 0, 0, 0};
26929 static swig_type_info _swigt__p_wxAcceleratorTable = {"_p_wxAcceleratorTable", 0, 0, 0, 0, 0};
26930 static swig_type_info _swigt__p_wxScrollWinEvent = {"_p_wxScrollWinEvent", 0, 0, 0, 0, 0};
26931 static swig_type_info _swigt__p_wxWindowDestroyEvent = {"_p_wxWindowDestroyEvent", 0, 0, 0, 0, 0};
26932 static swig_type_info _swigt__p_wxNavigationKeyEvent = {"_p_wxNavigationKeyEvent", 0, 0, 0, 0, 0};
26933 static swig_type_info _swigt__p_wxKeyEvent = {"_p_wxKeyEvent", 0, 0, 0, 0, 0};
26934 static swig_type_info _swigt__p_wxMenuBar = {"_p_wxMenuBar", 0, 0, 0, 0, 0};
26935 static swig_type_info _swigt__p_wxFileSystem = {"_p_wxFileSystem", 0, 0, 0, 0, 0};
26936 static swig_type_info _swigt__p_wxContextMenuEvent = {"_p_wxContextMenuEvent", 0, 0, 0, 0, 0};
26937 static swig_type_info _swigt__p_wxMenuEvent = {"_p_wxMenuEvent", 0, 0, 0, 0, 0};
26938 static swig_type_info _swigt__p_wxPyApp = {"_p_wxPyApp", 0, 0, 0, 0, 0};
26939 static swig_type_info _swigt__p_wxCloseEvent = {"_p_wxCloseEvent", 0, 0, 0, 0, 0};
26940 static swig_type_info _swigt__p_wxMouseEvent = {"_p_wxMouseEvent", 0, 0, 0, 0, 0};
26941 static swig_type_info _swigt__p_wxEraseEvent = {"_p_wxEraseEvent", 0, 0, 0, 0, 0};
26942 static swig_type_info _swigt__p_wxPyCommandEvent = {"_p_wxPyCommandEvent", 0, 0, 0, 0, 0};
26943 static swig_type_info _swigt__p_wxCommandEvent = {"_p_wxCommandEvent", 0, 0, 0, 0, 0};
26944 static swig_type_info _swigt__p_wxDropFilesEvent = {"_p_wxDropFilesEvent", 0, 0, 0, 0, 0};
26945 static swig_type_info _swigt__p_wxFocusEvent = {"_p_wxFocusEvent", 0, 0, 0, 0, 0};
26946 static swig_type_info _swigt__p_wxChildFocusEvent = {"_p_wxChildFocusEvent", 0, 0, 0, 0, 0};
26947 static swig_type_info _swigt__p_wxControlWithItems = {"_p_wxControlWithItems", 0, 0, 0, 0, 0};
26948 static swig_type_info _swigt__p_wxPyValidator = {"_p_wxPyValidator", 0, 0, 0, 0, 0};
26949 static swig_type_info _swigt__p_wxValidator = {"_p_wxValidator", 0, 0, 0, 0, 0};
26950 static swig_type_info _swigt__p_wxPaintDC = {"_p_wxPaintDC", "wxPaintDC *", 0, 0, (void*)0, 0};
26951 static swig_type_info _swigt__p_wxPalette = {"_p_wxPalette", "wxPalette *", 0, 0, (void*)0, 0};
26952 static swig_type_info _swigt__p_wxPaperSize = {"_p_wxPaperSize", "enum wxPaperSize *|wxPaperSize *", 0, 0, (void*)0, 0};
26953 static swig_type_info _swigt__p_wxPen = {"_p_wxPen", "wxPen *", 0, 0, (void*)0, 0};
26954 static swig_type_info _swigt__p_wxPenList = {"_p_wxPenList", "wxPenList *", 0, 0, (void*)0, 0};
26955 static swig_type_info _swigt__p_wxPoint = {"_p_wxPoint", "wxPoint *", 0, 0, (void*)0, 0};
26956 static swig_type_info _swigt__p_wxPostScriptDC = {"_p_wxPostScriptDC", "wxPostScriptDC *", 0, 0, (void*)0, 0};
26957 static swig_type_info _swigt__p_wxPrintData = {"_p_wxPrintData", "wxPrintData *", 0, 0, (void*)0, 0};
26958 static swig_type_info _swigt__p_wxPrinterDC = {"_p_wxPrinterDC", "wxPrinterDC *", 0, 0, (void*)0, 0};
26959 static swig_type_info _swigt__p_wxPyFontEnumerator = {"_p_wxPyFontEnumerator", "wxPyFontEnumerator *", 0, 0, (void*)0, 0};
26960 static swig_type_info _swigt__p_wxRect = {"_p_wxRect", "wxRect *", 0, 0, (void*)0, 0};
26961 static swig_type_info _swigt__p_wxRegion = {"_p_wxRegion", "wxRegion *", 0, 0, (void*)0, 0};
26962 static swig_type_info _swigt__p_wxRegionIterator = {"_p_wxRegionIterator", "wxRegionIterator *", 0, 0, (void*)0, 0};
26963 static swig_type_info _swigt__p_wxRendererNative = {"_p_wxRendererNative", "wxRendererNative *", 0, 0, (void*)0, 0};
26964 static swig_type_info _swigt__p_wxRendererVersion = {"_p_wxRendererVersion", "wxRendererVersion *", 0, 0, (void*)0, 0};
26965 static swig_type_info _swigt__p_wxScreenDC = {"_p_wxScreenDC", "wxScreenDC *", 0, 0, (void*)0, 0};
26966 static swig_type_info _swigt__p_wxSize = {"_p_wxSize", "wxSize *", 0, 0, (void*)0, 0};
26967 static swig_type_info _swigt__p_wxSplitterRenderParams = {"_p_wxSplitterRenderParams", "wxSplitterRenderParams *", 0, 0, (void*)0, 0};
26968 static swig_type_info _swigt__p_wxStockGDI = {"_p_wxStockGDI", "wxStockGDI *", 0, 0, (void*)0, 0};
26969 static swig_type_info _swigt__p_wxString = {"_p_wxString", "wxString *", 0, 0, (void*)0, 0};
26970 static swig_type_info _swigt__p_wxWindow = {"_p_wxWindow", "wxWindow *", 0, 0, (void*)0, 0};
26971 static swig_type_info _swigt__p_wxWindowDC = {"_p_wxWindowDC", "wxWindowDC *", 0, 0, (void*)0, 0};
26972
26973 static swig_type_info *swig_type_initial[] = {
26974 &_swigt__p_char,
26975 &_swigt__p_double,
26976 &_swigt__p_form_ops_t,
26977 &_swigt__p_int,
26978 &_swigt__p_unsigned_char,
26979 &_swigt__p_unsigned_int,
26980 &_swigt__p_unsigned_long,
26981 &_swigt__p_wxANIHandler,
26982 &_swigt__p_wxAcceleratorTable,
26983 &_swigt__p_wxActivateEvent,
26984 &_swigt__p_wxBMPHandler,
26985 &_swigt__p_wxBitmap,
26986 &_swigt__p_wxBoxSizer,
26987 &_swigt__p_wxBrush,
26988 &_swigt__p_wxBrushList,
26989 &_swigt__p_wxBufferedDC,
26990 &_swigt__p_wxBufferedPaintDC,
26991 &_swigt__p_wxCURHandler,
26992 &_swigt__p_wxChildFocusEvent,
26993 &_swigt__p_wxClientDC,
26994 &_swigt__p_wxCloseEvent,
26995 &_swigt__p_wxColour,
26996 &_swigt__p_wxColourDatabase,
26997 &_swigt__p_wxCommandEvent,
26998 &_swigt__p_wxContextMenuEvent,
26999 &_swigt__p_wxControl,
27000 &_swigt__p_wxControlWithItems,
27001 &_swigt__p_wxCursor,
27002 &_swigt__p_wxDC,
27003 &_swigt__p_wxDash,
27004 &_swigt__p_wxDateEvent,
27005 &_swigt__p_wxDisplayChangedEvent,
27006 &_swigt__p_wxDropFilesEvent,
27007 &_swigt__p_wxDuplexMode,
27008 &_swigt__p_wxEffects,
27009 &_swigt__p_wxEncodingConverter,
27010 &_swigt__p_wxEraseEvent,
27011 &_swigt__p_wxEvent,
27012 &_swigt__p_wxEvtHandler,
27013 &_swigt__p_wxFSFile,
27014 &_swigt__p_wxFileSystem,
27015 &_swigt__p_wxFlexGridSizer,
27016 &_swigt__p_wxFocusEvent,
27017 &_swigt__p_wxFont,
27018 &_swigt__p_wxFontList,
27019 &_swigt__p_wxFontMapper,
27020 &_swigt__p_wxGBSizerItem,
27021 &_swigt__p_wxGDIObjListBase,
27022 &_swigt__p_wxGDIObject,
27023 &_swigt__p_wxGIFHandler,
27024 &_swigt__p_wxGridBagSizer,
27025 &_swigt__p_wxGridSizer,
27026 &_swigt__p_wxICOHandler,
27027 &_swigt__p_wxIcon,
27028 &_swigt__p_wxIconBundle,
27029 &_swigt__p_wxIconLocation,
27030 &_swigt__p_wxIconizeEvent,
27031 &_swigt__p_wxIdleEvent,
27032 &_swigt__p_wxImage,
27033 &_swigt__p_wxImageHandler,
27034 &_swigt__p_wxImageList,
27035 &_swigt__p_wxIndividualLayoutConstraint,
27036 &_swigt__p_wxInitDialogEvent,
27037 &_swigt__p_wxJPEGHandler,
27038 &_swigt__p_wxKeyEvent,
27039 &_swigt__p_wxLanguageInfo,
27040 &_swigt__p_wxLayoutConstraints,
27041 &_swigt__p_wxLocale,
27042 &_swigt__p_wxMask,
27043 &_swigt__p_wxMaximizeEvent,
27044 &_swigt__p_wxMemoryDC,
27045 &_swigt__p_wxMenu,
27046 &_swigt__p_wxMenuBar,
27047 &_swigt__p_wxMenuEvent,
27048 &_swigt__p_wxMenuItem,
27049 &_swigt__p_wxMetaFile,
27050 &_swigt__p_wxMetaFileDC,
27051 &_swigt__p_wxMirrorDC,
27052 &_swigt__p_wxMouseCaptureChangedEvent,
27053 &_swigt__p_wxMouseEvent,
27054 &_swigt__p_wxMoveEvent,
27055 &_swigt__p_wxNativeEncodingInfo,
27056 &_swigt__p_wxNativeFontInfo,
27057 &_swigt__p_wxNavigationKeyEvent,
27058 &_swigt__p_wxNcPaintEvent,
27059 &_swigt__p_wxNotifyEvent,
27060 &_swigt__p_wxObject,
27061 &_swigt__p_wxPCXHandler,
27062 &_swigt__p_wxPNGHandler,
27063 &_swigt__p_wxPNMHandler,
27064 &_swigt__p_wxPaintDC,
27065 &_swigt__p_wxPaintEvent,
27066 &_swigt__p_wxPalette,
27067 &_swigt__p_wxPaletteChangedEvent,
27068 &_swigt__p_wxPaperSize,
27069 &_swigt__p_wxPen,
27070 &_swigt__p_wxPenList,
27071 &_swigt__p_wxPoint,
27072 &_swigt__p_wxPostScriptDC,
27073 &_swigt__p_wxPrintData,
27074 &_swigt__p_wxPrinterDC,
27075 &_swigt__p_wxPyApp,
27076 &_swigt__p_wxPyCommandEvent,
27077 &_swigt__p_wxPyEvent,
27078 &_swigt__p_wxPyFontEnumerator,
27079 &_swigt__p_wxPyImageHandler,
27080 &_swigt__p_wxPySizer,
27081 &_swigt__p_wxPyValidator,
27082 &_swigt__p_wxQueryNewPaletteEvent,
27083 &_swigt__p_wxRect,
27084 &_swigt__p_wxRegion,
27085 &_swigt__p_wxRegionIterator,
27086 &_swigt__p_wxRendererNative,
27087 &_swigt__p_wxRendererVersion,
27088 &_swigt__p_wxScreenDC,
27089 &_swigt__p_wxScrollEvent,
27090 &_swigt__p_wxScrollWinEvent,
27091 &_swigt__p_wxSetCursorEvent,
27092 &_swigt__p_wxShowEvent,
27093 &_swigt__p_wxSize,
27094 &_swigt__p_wxSizeEvent,
27095 &_swigt__p_wxSizer,
27096 &_swigt__p_wxSizerItem,
27097 &_swigt__p_wxSplitterRenderParams,
27098 &_swigt__p_wxStaticBoxSizer,
27099 &_swigt__p_wxStdDialogButtonSizer,
27100 &_swigt__p_wxStockGDI,
27101 &_swigt__p_wxString,
27102 &_swigt__p_wxSysColourChangedEvent,
27103 &_swigt__p_wxTIFFHandler,
27104 &_swigt__p_wxUpdateUIEvent,
27105 &_swigt__p_wxValidator,
27106 &_swigt__p_wxWindow,
27107 &_swigt__p_wxWindowCreateEvent,
27108 &_swigt__p_wxWindowDC,
27109 &_swigt__p_wxWindowDestroyEvent,
27110 &_swigt__p_wxXPMHandler,
27111 };
27112
27113 static swig_cast_info _swigc__p_char[] = { {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
27114 static swig_cast_info _swigc__p_double[] = { {&_swigt__p_double, 0, 0, 0},{0, 0, 0, 0}};
27115 static swig_cast_info _swigc__p_form_ops_t[] = { {&_swigt__p_form_ops_t, 0, 0, 0},{0, 0, 0, 0}};
27116 static swig_cast_info _swigc__p_int[] = { {&_swigt__p_int, 0, 0, 0},{0, 0, 0, 0}};
27117 static swig_cast_info _swigc__p_unsigned_char[] = { {&_swigt__p_unsigned_char, 0, 0, 0},{0, 0, 0, 0}};
27118 static swig_cast_info _swigc__p_unsigned_int[] = { {&_swigt__p_unsigned_int, 0, 0, 0},{0, 0, 0, 0}};
27119 static swig_cast_info _swigc__p_unsigned_long[] = { {&_swigt__p_unsigned_long, 0, 0, 0},{0, 0, 0, 0}};
27120 static swig_cast_info _swigc__p_wxBitmap[] = { {&_swigt__p_wxBitmap, 0, 0, 0},{0, 0, 0, 0}};
27121 static swig_cast_info _swigc__p_wxBrush[] = { {&_swigt__p_wxBrush, 0, 0, 0},{0, 0, 0, 0}};
27122 static swig_cast_info _swigc__p_wxBrushList[] = { {&_swigt__p_wxBrushList, 0, 0, 0},{0, 0, 0, 0}};
27123 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}};
27124 static swig_cast_info _swigc__p_wxBufferedPaintDC[] = { {&_swigt__p_wxBufferedPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27125 static swig_cast_info _swigc__p_wxClientDC[] = { {&_swigt__p_wxClientDC, 0, 0, 0},{0, 0, 0, 0}};
27126 static swig_cast_info _swigc__p_wxColour[] = { {&_swigt__p_wxColour, 0, 0, 0},{0, 0, 0, 0}};
27127 static swig_cast_info _swigc__p_wxColourDatabase[] = { {&_swigt__p_wxColourDatabase, 0, 0, 0},{0, 0, 0, 0}};
27128 static swig_cast_info _swigc__p_wxCursor[] = { {&_swigt__p_wxCursor, 0, 0, 0},{0, 0, 0, 0}};
27129 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}};
27130 static swig_cast_info _swigc__p_wxDash[] = { {&_swigt__p_wxDash, 0, 0, 0},{0, 0, 0, 0}};
27131 static swig_cast_info _swigc__p_wxDuplexMode[] = { {&_swigt__p_wxDuplexMode, 0, 0, 0},{0, 0, 0, 0}};
27132 static swig_cast_info _swigc__p_wxEffects[] = { {&_swigt__p_wxEffects, 0, 0, 0},{0, 0, 0, 0}};
27133 static swig_cast_info _swigc__p_wxEncodingConverter[] = { {&_swigt__p_wxEncodingConverter, 0, 0, 0},{0, 0, 0, 0}};
27134 static swig_cast_info _swigc__p_wxFont[] = { {&_swigt__p_wxFont, 0, 0, 0},{0, 0, 0, 0}};
27135 static swig_cast_info _swigc__p_wxFontList[] = { {&_swigt__p_wxFontList, 0, 0, 0},{0, 0, 0, 0}};
27136 static swig_cast_info _swigc__p_wxFontMapper[] = { {&_swigt__p_wxFontMapper, 0, 0, 0},{0, 0, 0, 0}};
27137 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}};
27138 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}};
27139 static swig_cast_info _swigc__p_wxIcon[] = { {&_swigt__p_wxIcon, 0, 0, 0},{0, 0, 0, 0}};
27140 static swig_cast_info _swigc__p_wxIconBundle[] = { {&_swigt__p_wxIconBundle, 0, 0, 0},{0, 0, 0, 0}};
27141 static swig_cast_info _swigc__p_wxIconLocation[] = { {&_swigt__p_wxIconLocation, 0, 0, 0},{0, 0, 0, 0}};
27142 static swig_cast_info _swigc__p_wxImage[] = { {&_swigt__p_wxImage, 0, 0, 0},{0, 0, 0, 0}};
27143 static swig_cast_info _swigc__p_wxImageList[] = { {&_swigt__p_wxImageList, 0, 0, 0},{0, 0, 0, 0}};
27144 static swig_cast_info _swigc__p_wxLanguageInfo[] = { {&_swigt__p_wxLanguageInfo, 0, 0, 0},{0, 0, 0, 0}};
27145 static swig_cast_info _swigc__p_wxLocale[] = { {&_swigt__p_wxLocale, 0, 0, 0},{0, 0, 0, 0}};
27146 static swig_cast_info _swigc__p_wxMask[] = { {&_swigt__p_wxMask, 0, 0, 0},{0, 0, 0, 0}};
27147 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}};
27148 static swig_cast_info _swigc__p_wxMetaFile[] = { {&_swigt__p_wxMetaFile, 0, 0, 0},{0, 0, 0, 0}};
27149 static swig_cast_info _swigc__p_wxMetaFileDC[] = { {&_swigt__p_wxMetaFileDC, 0, 0, 0},{0, 0, 0, 0}};
27150 static swig_cast_info _swigc__p_wxMirrorDC[] = { {&_swigt__p_wxMirrorDC, 0, 0, 0},{0, 0, 0, 0}};
27151 static swig_cast_info _swigc__p_wxNativeEncodingInfo[] = { {&_swigt__p_wxNativeEncodingInfo, 0, 0, 0},{0, 0, 0, 0}};
27152 static swig_cast_info _swigc__p_wxNativeFontInfo[] = { {&_swigt__p_wxNativeFontInfo, 0, 0, 0},{0, 0, 0, 0}};
27153 static swig_cast_info _swigc__p_wxLayoutConstraints[] = {{&_swigt__p_wxLayoutConstraints, 0, 0, 0},{0, 0, 0, 0}};
27154 static swig_cast_info _swigc__p_wxGBSizerItem[] = {{&_swigt__p_wxGBSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27155 static swig_cast_info _swigc__p_wxSizerItem[] = {{&_swigt__p_wxSizerItem, 0, 0, 0},{0, 0, 0, 0}};
27156 static swig_cast_info _swigc__p_wxScrollEvent[] = {{&_swigt__p_wxScrollEvent, 0, 0, 0},{0, 0, 0, 0}};
27157 static swig_cast_info _swigc__p_wxIndividualLayoutConstraint[] = {{&_swigt__p_wxIndividualLayoutConstraint, 0, 0, 0},{0, 0, 0, 0}};
27158 static swig_cast_info _swigc__p_wxStaticBoxSizer[] = {{&_swigt__p_wxStaticBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27159 static swig_cast_info _swigc__p_wxBoxSizer[] = {{&_swigt__p_wxBoxSizer, 0, 0, 0},{0, 0, 0, 0}};
27160 static swig_cast_info _swigc__p_wxSizer[] = {{&_swigt__p_wxSizer, 0, 0, 0},{0, 0, 0, 0}};
27161 static swig_cast_info _swigc__p_wxGridBagSizer[] = {{&_swigt__p_wxGridBagSizer, 0, 0, 0},{0, 0, 0, 0}};
27162 static swig_cast_info _swigc__p_wxUpdateUIEvent[] = {{&_swigt__p_wxUpdateUIEvent, 0, 0, 0},{0, 0, 0, 0}};
27163 static swig_cast_info _swigc__p_wxMenu[] = {{&_swigt__p_wxMenu, 0, 0, 0},{0, 0, 0, 0}};
27164 static swig_cast_info _swigc__p_wxEvent[] = {{&_swigt__p_wxEvent, 0, 0, 0},{0, 0, 0, 0}};
27165 static swig_cast_info _swigc__p_wxFlexGridSizer[] = {{&_swigt__p_wxFlexGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27166 static swig_cast_info _swigc__p_wxGridSizer[] = {{&_swigt__p_wxGridSizer, 0, 0, 0},{0, 0, 0, 0}};
27167 static swig_cast_info _swigc__p_wxInitDialogEvent[] = {{&_swigt__p_wxInitDialogEvent, 0, 0, 0},{0, 0, 0, 0}};
27168 static swig_cast_info _swigc__p_wxPaintEvent[] = {{&_swigt__p_wxPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27169 static swig_cast_info _swigc__p_wxNcPaintEvent[] = {{&_swigt__p_wxNcPaintEvent, 0, 0, 0},{0, 0, 0, 0}};
27170 static swig_cast_info _swigc__p_wxPaletteChangedEvent[] = {{&_swigt__p_wxPaletteChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27171 static swig_cast_info _swigc__p_wxDisplayChangedEvent[] = {{&_swigt__p_wxDisplayChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27172 static swig_cast_info _swigc__p_wxMouseCaptureChangedEvent[] = {{&_swigt__p_wxMouseCaptureChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27173 static swig_cast_info _swigc__p_wxSysColourChangedEvent[] = {{&_swigt__p_wxSysColourChangedEvent, 0, 0, 0},{0, 0, 0, 0}};
27174 static swig_cast_info _swigc__p_wxControl[] = {{&_swigt__p_wxControl, 0, 0, 0},{0, 0, 0, 0}};
27175 static swig_cast_info _swigc__p_wxSetCursorEvent[] = {{&_swigt__p_wxSetCursorEvent, 0, 0, 0},{0, 0, 0, 0}};
27176 static swig_cast_info _swigc__p_wxFSFile[] = {{&_swigt__p_wxFSFile, 0, 0, 0},{0, 0, 0, 0}};
27177 static swig_cast_info _swigc__p_wxPySizer[] = {{&_swigt__p_wxPySizer, 0, 0, 0},{0, 0, 0, 0}};
27178 static swig_cast_info _swigc__p_wxPyEvent[] = {{&_swigt__p_wxPyEvent, 0, 0, 0},{0, 0, 0, 0}};
27179 static swig_cast_info _swigc__p_wxNotifyEvent[] = {{&_swigt__p_wxNotifyEvent, 0, 0, 0},{0, 0, 0, 0}};
27180 static swig_cast_info _swigc__p_wxShowEvent[] = {{&_swigt__p_wxShowEvent, 0, 0, 0},{0, 0, 0, 0}};
27181 static swig_cast_info _swigc__p_wxMenuItem[] = {{&_swigt__p_wxMenuItem, 0, 0, 0},{0, 0, 0, 0}};
27182 static swig_cast_info _swigc__p_wxDateEvent[] = {{&_swigt__p_wxDateEvent, 0, 0, 0},{0, 0, 0, 0}};
27183 static swig_cast_info _swigc__p_wxIdleEvent[] = {{&_swigt__p_wxIdleEvent, 0, 0, 0},{0, 0, 0, 0}};
27184 static swig_cast_info _swigc__p_wxWindowCreateEvent[] = {{&_swigt__p_wxWindowCreateEvent, 0, 0, 0},{0, 0, 0, 0}};
27185 static swig_cast_info _swigc__p_wxQueryNewPaletteEvent[] = {{&_swigt__p_wxQueryNewPaletteEvent, 0, 0, 0},{0, 0, 0, 0}};
27186 static swig_cast_info _swigc__p_wxMaximizeEvent[] = {{&_swigt__p_wxMaximizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27187 static swig_cast_info _swigc__p_wxIconizeEvent[] = {{&_swigt__p_wxIconizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27188 static swig_cast_info _swigc__p_wxSizeEvent[] = {{&_swigt__p_wxSizeEvent, 0, 0, 0},{0, 0, 0, 0}};
27189 static swig_cast_info _swigc__p_wxMoveEvent[] = {{&_swigt__p_wxMoveEvent, 0, 0, 0},{0, 0, 0, 0}};
27190 static swig_cast_info _swigc__p_wxActivateEvent[] = {{&_swigt__p_wxActivateEvent, 0, 0, 0},{0, 0, 0, 0}};
27191 static swig_cast_info _swigc__p_wxGIFHandler[] = {{&_swigt__p_wxGIFHandler, 0, 0, 0},{0, 0, 0, 0}};
27192 static swig_cast_info _swigc__p_wxPNGHandler[] = {{&_swigt__p_wxPNGHandler, 0, 0, 0},{0, 0, 0, 0}};
27193 static swig_cast_info _swigc__p_wxANIHandler[] = {{&_swigt__p_wxANIHandler, 0, 0, 0},{0, 0, 0, 0}};
27194 static swig_cast_info _swigc__p_wxCURHandler[] = {{&_swigt__p_wxCURHandler, 0, 0, 0},{0, 0, 0, 0}};
27195 static swig_cast_info _swigc__p_wxICOHandler[] = {{&_swigt__p_wxICOHandler, 0, 0, 0},{0, 0, 0, 0}};
27196 static swig_cast_info _swigc__p_wxBMPHandler[] = {{&_swigt__p_wxBMPHandler, 0, 0, 0},{0, 0, 0, 0}};
27197 static swig_cast_info _swigc__p_wxPyImageHandler[] = {{&_swigt__p_wxPyImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27198 static swig_cast_info _swigc__p_wxImageHandler[] = {{&_swigt__p_wxImageHandler, 0, 0, 0},{0, 0, 0, 0}};
27199 static swig_cast_info _swigc__p_wxXPMHandler[] = {{&_swigt__p_wxXPMHandler, 0, 0, 0},{0, 0, 0, 0}};
27200 static swig_cast_info _swigc__p_wxTIFFHandler[] = {{&_swigt__p_wxTIFFHandler, 0, 0, 0},{0, 0, 0, 0}};
27201 static swig_cast_info _swigc__p_wxEvtHandler[] = {{&_swigt__p_wxEvtHandler, 0, 0, 0},{0, 0, 0, 0}};
27202 static swig_cast_info _swigc__p_wxPCXHandler[] = {{&_swigt__p_wxPCXHandler, 0, 0, 0},{0, 0, 0, 0}};
27203 static swig_cast_info _swigc__p_wxJPEGHandler[] = {{&_swigt__p_wxJPEGHandler, 0, 0, 0},{0, 0, 0, 0}};
27204 static swig_cast_info _swigc__p_wxPNMHandler[] = {{&_swigt__p_wxPNMHandler, 0, 0, 0},{0, 0, 0, 0}};
27205 static swig_cast_info _swigc__p_wxStdDialogButtonSizer[] = {{&_swigt__p_wxStdDialogButtonSizer, 0, 0, 0},{0, 0, 0, 0}};
27206 static swig_cast_info _swigc__p_wxAcceleratorTable[] = {{&_swigt__p_wxAcceleratorTable, 0, 0, 0},{0, 0, 0, 0}};
27207 static swig_cast_info _swigc__p_wxScrollWinEvent[] = {{&_swigt__p_wxScrollWinEvent, 0, 0, 0},{0, 0, 0, 0}};
27208 static swig_cast_info _swigc__p_wxWindowDestroyEvent[] = {{&_swigt__p_wxWindowDestroyEvent, 0, 0, 0},{0, 0, 0, 0}};
27209 static swig_cast_info _swigc__p_wxNavigationKeyEvent[] = {{&_swigt__p_wxNavigationKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27210 static swig_cast_info _swigc__p_wxKeyEvent[] = {{&_swigt__p_wxKeyEvent, 0, 0, 0},{0, 0, 0, 0}};
27211 static swig_cast_info _swigc__p_wxMenuBar[] = {{&_swigt__p_wxMenuBar, 0, 0, 0},{0, 0, 0, 0}};
27212 static swig_cast_info _swigc__p_wxFileSystem[] = {{&_swigt__p_wxFileSystem, 0, 0, 0},{0, 0, 0, 0}};
27213 static swig_cast_info _swigc__p_wxContextMenuEvent[] = {{&_swigt__p_wxContextMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27214 static swig_cast_info _swigc__p_wxMenuEvent[] = {{&_swigt__p_wxMenuEvent, 0, 0, 0},{0, 0, 0, 0}};
27215 static swig_cast_info _swigc__p_wxPyApp[] = {{&_swigt__p_wxPyApp, 0, 0, 0},{0, 0, 0, 0}};
27216 static swig_cast_info _swigc__p_wxCloseEvent[] = {{&_swigt__p_wxCloseEvent, 0, 0, 0},{0, 0, 0, 0}};
27217 static swig_cast_info _swigc__p_wxMouseEvent[] = {{&_swigt__p_wxMouseEvent, 0, 0, 0},{0, 0, 0, 0}};
27218 static swig_cast_info _swigc__p_wxEraseEvent[] = {{&_swigt__p_wxEraseEvent, 0, 0, 0},{0, 0, 0, 0}};
27219 static swig_cast_info _swigc__p_wxPyCommandEvent[] = {{&_swigt__p_wxPyCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27220 static swig_cast_info _swigc__p_wxCommandEvent[] = {{&_swigt__p_wxCommandEvent, 0, 0, 0},{0, 0, 0, 0}};
27221 static swig_cast_info _swigc__p_wxDropFilesEvent[] = {{&_swigt__p_wxDropFilesEvent, 0, 0, 0},{0, 0, 0, 0}};
27222 static swig_cast_info _swigc__p_wxFocusEvent[] = {{&_swigt__p_wxFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27223 static swig_cast_info _swigc__p_wxChildFocusEvent[] = {{&_swigt__p_wxChildFocusEvent, 0, 0, 0},{0, 0, 0, 0}};
27224 static swig_cast_info _swigc__p_wxControlWithItems[] = {{&_swigt__p_wxControlWithItems, 0, 0, 0},{0, 0, 0, 0}};
27225 static swig_cast_info _swigc__p_wxPyValidator[] = {{&_swigt__p_wxPyValidator, 0, 0, 0},{0, 0, 0, 0}};
27226 static swig_cast_info _swigc__p_wxValidator[] = {{&_swigt__p_wxValidator, 0, 0, 0},{0, 0, 0, 0}};
27227 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}};
27228 static swig_cast_info _swigc__p_wxPaintDC[] = { {&_swigt__p_wxPaintDC, 0, 0, 0},{0, 0, 0, 0}};
27229 static swig_cast_info _swigc__p_wxPalette[] = { {&_swigt__p_wxPalette, 0, 0, 0},{0, 0, 0, 0}};
27230 static swig_cast_info _swigc__p_wxPaperSize[] = { {&_swigt__p_wxPaperSize, 0, 0, 0},{0, 0, 0, 0}};
27231 static swig_cast_info _swigc__p_wxPen[] = { {&_swigt__p_wxPen, 0, 0, 0},{0, 0, 0, 0}};
27232 static swig_cast_info _swigc__p_wxPenList[] = { {&_swigt__p_wxPenList, 0, 0, 0},{0, 0, 0, 0}};
27233 static swig_cast_info _swigc__p_wxPoint[] = { {&_swigt__p_wxPoint, 0, 0, 0},{0, 0, 0, 0}};
27234 static swig_cast_info _swigc__p_wxPostScriptDC[] = { {&_swigt__p_wxPostScriptDC, 0, 0, 0},{0, 0, 0, 0}};
27235 static swig_cast_info _swigc__p_wxPrintData[] = { {&_swigt__p_wxPrintData, 0, 0, 0},{0, 0, 0, 0}};
27236 static swig_cast_info _swigc__p_wxPrinterDC[] = { {&_swigt__p_wxPrinterDC, 0, 0, 0},{0, 0, 0, 0}};
27237 static swig_cast_info _swigc__p_wxPyFontEnumerator[] = { {&_swigt__p_wxPyFontEnumerator, 0, 0, 0},{0, 0, 0, 0}};
27238 static swig_cast_info _swigc__p_wxRect[] = { {&_swigt__p_wxRect, 0, 0, 0},{0, 0, 0, 0}};
27239 static swig_cast_info _swigc__p_wxRegion[] = { {&_swigt__p_wxRegion, 0, 0, 0},{0, 0, 0, 0}};
27240 static swig_cast_info _swigc__p_wxRegionIterator[] = { {&_swigt__p_wxRegionIterator, 0, 0, 0},{0, 0, 0, 0}};
27241 static swig_cast_info _swigc__p_wxRendererNative[] = { {&_swigt__p_wxRendererNative, 0, 0, 0},{0, 0, 0, 0}};
27242 static swig_cast_info _swigc__p_wxRendererVersion[] = { {&_swigt__p_wxRendererVersion, 0, 0, 0},{0, 0, 0, 0}};
27243 static swig_cast_info _swigc__p_wxScreenDC[] = { {&_swigt__p_wxScreenDC, 0, 0, 0},{0, 0, 0, 0}};
27244 static swig_cast_info _swigc__p_wxSize[] = { {&_swigt__p_wxSize, 0, 0, 0},{0, 0, 0, 0}};
27245 static swig_cast_info _swigc__p_wxSplitterRenderParams[] = { {&_swigt__p_wxSplitterRenderParams, 0, 0, 0},{0, 0, 0, 0}};
27246 static swig_cast_info _swigc__p_wxStockGDI[] = { {&_swigt__p_wxStockGDI, 0, 0, 0},{0, 0, 0, 0}};
27247 static swig_cast_info _swigc__p_wxString[] = { {&_swigt__p_wxString, 0, 0, 0},{0, 0, 0, 0}};
27248 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}};
27249 static swig_cast_info _swigc__p_wxWindowDC[] = { {&_swigt__p_wxWindowDC, 0, 0, 0},{0, 0, 0, 0}};
27250
27251 static swig_cast_info *swig_cast_initial[] = {
27252 _swigc__p_char,
27253 _swigc__p_double,
27254 _swigc__p_form_ops_t,
27255 _swigc__p_int,
27256 _swigc__p_unsigned_char,
27257 _swigc__p_unsigned_int,
27258 _swigc__p_unsigned_long,
27259 _swigc__p_wxANIHandler,
27260 _swigc__p_wxAcceleratorTable,
27261 _swigc__p_wxActivateEvent,
27262 _swigc__p_wxBMPHandler,
27263 _swigc__p_wxBitmap,
27264 _swigc__p_wxBoxSizer,
27265 _swigc__p_wxBrush,
27266 _swigc__p_wxBrushList,
27267 _swigc__p_wxBufferedDC,
27268 _swigc__p_wxBufferedPaintDC,
27269 _swigc__p_wxCURHandler,
27270 _swigc__p_wxChildFocusEvent,
27271 _swigc__p_wxClientDC,
27272 _swigc__p_wxCloseEvent,
27273 _swigc__p_wxColour,
27274 _swigc__p_wxColourDatabase,
27275 _swigc__p_wxCommandEvent,
27276 _swigc__p_wxContextMenuEvent,
27277 _swigc__p_wxControl,
27278 _swigc__p_wxControlWithItems,
27279 _swigc__p_wxCursor,
27280 _swigc__p_wxDC,
27281 _swigc__p_wxDash,
27282 _swigc__p_wxDateEvent,
27283 _swigc__p_wxDisplayChangedEvent,
27284 _swigc__p_wxDropFilesEvent,
27285 _swigc__p_wxDuplexMode,
27286 _swigc__p_wxEffects,
27287 _swigc__p_wxEncodingConverter,
27288 _swigc__p_wxEraseEvent,
27289 _swigc__p_wxEvent,
27290 _swigc__p_wxEvtHandler,
27291 _swigc__p_wxFSFile,
27292 _swigc__p_wxFileSystem,
27293 _swigc__p_wxFlexGridSizer,
27294 _swigc__p_wxFocusEvent,
27295 _swigc__p_wxFont,
27296 _swigc__p_wxFontList,
27297 _swigc__p_wxFontMapper,
27298 _swigc__p_wxGBSizerItem,
27299 _swigc__p_wxGDIObjListBase,
27300 _swigc__p_wxGDIObject,
27301 _swigc__p_wxGIFHandler,
27302 _swigc__p_wxGridBagSizer,
27303 _swigc__p_wxGridSizer,
27304 _swigc__p_wxICOHandler,
27305 _swigc__p_wxIcon,
27306 _swigc__p_wxIconBundle,
27307 _swigc__p_wxIconLocation,
27308 _swigc__p_wxIconizeEvent,
27309 _swigc__p_wxIdleEvent,
27310 _swigc__p_wxImage,
27311 _swigc__p_wxImageHandler,
27312 _swigc__p_wxImageList,
27313 _swigc__p_wxIndividualLayoutConstraint,
27314 _swigc__p_wxInitDialogEvent,
27315 _swigc__p_wxJPEGHandler,
27316 _swigc__p_wxKeyEvent,
27317 _swigc__p_wxLanguageInfo,
27318 _swigc__p_wxLayoutConstraints,
27319 _swigc__p_wxLocale,
27320 _swigc__p_wxMask,
27321 _swigc__p_wxMaximizeEvent,
27322 _swigc__p_wxMemoryDC,
27323 _swigc__p_wxMenu,
27324 _swigc__p_wxMenuBar,
27325 _swigc__p_wxMenuEvent,
27326 _swigc__p_wxMenuItem,
27327 _swigc__p_wxMetaFile,
27328 _swigc__p_wxMetaFileDC,
27329 _swigc__p_wxMirrorDC,
27330 _swigc__p_wxMouseCaptureChangedEvent,
27331 _swigc__p_wxMouseEvent,
27332 _swigc__p_wxMoveEvent,
27333 _swigc__p_wxNativeEncodingInfo,
27334 _swigc__p_wxNativeFontInfo,
27335 _swigc__p_wxNavigationKeyEvent,
27336 _swigc__p_wxNcPaintEvent,
27337 _swigc__p_wxNotifyEvent,
27338 _swigc__p_wxObject,
27339 _swigc__p_wxPCXHandler,
27340 _swigc__p_wxPNGHandler,
27341 _swigc__p_wxPNMHandler,
27342 _swigc__p_wxPaintDC,
27343 _swigc__p_wxPaintEvent,
27344 _swigc__p_wxPalette,
27345 _swigc__p_wxPaletteChangedEvent,
27346 _swigc__p_wxPaperSize,
27347 _swigc__p_wxPen,
27348 _swigc__p_wxPenList,
27349 _swigc__p_wxPoint,
27350 _swigc__p_wxPostScriptDC,
27351 _swigc__p_wxPrintData,
27352 _swigc__p_wxPrinterDC,
27353 _swigc__p_wxPyApp,
27354 _swigc__p_wxPyCommandEvent,
27355 _swigc__p_wxPyEvent,
27356 _swigc__p_wxPyFontEnumerator,
27357 _swigc__p_wxPyImageHandler,
27358 _swigc__p_wxPySizer,
27359 _swigc__p_wxPyValidator,
27360 _swigc__p_wxQueryNewPaletteEvent,
27361 _swigc__p_wxRect,
27362 _swigc__p_wxRegion,
27363 _swigc__p_wxRegionIterator,
27364 _swigc__p_wxRendererNative,
27365 _swigc__p_wxRendererVersion,
27366 _swigc__p_wxScreenDC,
27367 _swigc__p_wxScrollEvent,
27368 _swigc__p_wxScrollWinEvent,
27369 _swigc__p_wxSetCursorEvent,
27370 _swigc__p_wxShowEvent,
27371 _swigc__p_wxSize,
27372 _swigc__p_wxSizeEvent,
27373 _swigc__p_wxSizer,
27374 _swigc__p_wxSizerItem,
27375 _swigc__p_wxSplitterRenderParams,
27376 _swigc__p_wxStaticBoxSizer,
27377 _swigc__p_wxStdDialogButtonSizer,
27378 _swigc__p_wxStockGDI,
27379 _swigc__p_wxString,
27380 _swigc__p_wxSysColourChangedEvent,
27381 _swigc__p_wxTIFFHandler,
27382 _swigc__p_wxUpdateUIEvent,
27383 _swigc__p_wxValidator,
27384 _swigc__p_wxWindow,
27385 _swigc__p_wxWindowCreateEvent,
27386 _swigc__p_wxWindowDC,
27387 _swigc__p_wxWindowDestroyEvent,
27388 _swigc__p_wxXPMHandler,
27389 };
27390
27391
27392 /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */
27393
27394 static swig_const_info swig_const_table[] = {
27395 {0, 0, 0, 0.0, 0, 0}};
27396
27397 #ifdef __cplusplus
27398 }
27399 #endif
27400 /* -----------------------------------------------------------------------------
27401 * Type initialization:
27402 * This problem is tough by the requirement that no dynamic
27403 * memory is used. Also, since swig_type_info structures store pointers to
27404 * swig_cast_info structures and swig_cast_info structures store pointers back
27405 * to swig_type_info structures, we need some lookup code at initialization.
27406 * The idea is that swig generates all the structures that are needed.
27407 * The runtime then collects these partially filled structures.
27408 * The SWIG_InitializeModule function takes these initial arrays out of
27409 * swig_module, and does all the lookup, filling in the swig_module.types
27410 * array with the correct data and linking the correct swig_cast_info
27411 * structures together.
27412 *
27413 * The generated swig_type_info structures are assigned staticly to an initial
27414 * array. We just loop though that array, and handle each type individually.
27415 * First we lookup if this type has been already loaded, and if so, use the
27416 * loaded structure instead of the generated one. Then we have to fill in the
27417 * cast linked list. The cast data is initially stored in something like a
27418 * two-dimensional array. Each row corresponds to a type (there are the same
27419 * number of rows as there are in the swig_type_initial array). Each entry in
27420 * a column is one of the swig_cast_info structures for that type.
27421 * The cast_initial array is actually an array of arrays, because each row has
27422 * a variable number of columns. So to actually build the cast linked list,
27423 * we find the array of casts associated with the type, and loop through it
27424 * adding the casts to the list. The one last trick we need to do is making
27425 * sure the type pointer in the swig_cast_info struct is correct.
27426 *
27427 * First off, we lookup the cast->type name to see if it is already loaded.
27428 * There are three cases to handle:
27429 * 1) If the cast->type has already been loaded AND the type we are adding
27430 * casting info to has not been loaded (it is in this module), THEN we
27431 * replace the cast->type pointer with the type pointer that has already
27432 * been loaded.
27433 * 2) If BOTH types (the one we are adding casting info to, and the
27434 * cast->type) are loaded, THEN the cast info has already been loaded by
27435 * the previous module so we just ignore it.
27436 * 3) Finally, if cast->type has not already been loaded, then we add that
27437 * swig_cast_info to the linked list (because the cast->type) pointer will
27438 * be correct.
27439 * ----------------------------------------------------------------------------- */
27440
27441 #ifdef __cplusplus
27442 extern "C" {
27443 #if 0
27444 } /* c-mode */
27445 #endif
27446 #endif
27447
27448 #if 0
27449 #define SWIGRUNTIME_DEBUG
27450 #endif
27451
27452 SWIGRUNTIME void
27453 SWIG_InitializeModule(void *clientdata) {
27454 size_t i;
27455 swig_module_info *module_head;
27456 static int init_run = 0;
27457
27458 clientdata = clientdata;
27459
27460 if (init_run) return;
27461 init_run = 1;
27462
27463 /* Initialize the swig_module */
27464 swig_module.type_initial = swig_type_initial;
27465 swig_module.cast_initial = swig_cast_initial;
27466
27467 /* Try and load any already created modules */
27468 module_head = SWIG_GetModule(clientdata);
27469 if (module_head) {
27470 swig_module.next = module_head->next;
27471 module_head->next = &swig_module;
27472 } else {
27473 /* This is the first module loaded */
27474 swig_module.next = &swig_module;
27475 SWIG_SetModule(clientdata, &swig_module);
27476 }
27477
27478 /* Now work on filling in swig_module.types */
27479 #ifdef SWIGRUNTIME_DEBUG
27480 printf("SWIG_InitializeModule: size %d\n", swig_module.size);
27481 #endif
27482 for (i = 0; i < swig_module.size; ++i) {
27483 swig_type_info *type = 0;
27484 swig_type_info *ret;
27485 swig_cast_info *cast;
27486
27487 #ifdef SWIGRUNTIME_DEBUG
27488 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27489 #endif
27490
27491 /* if there is another module already loaded */
27492 if (swig_module.next != &swig_module) {
27493 type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
27494 }
27495 if (type) {
27496 /* Overwrite clientdata field */
27497 #ifdef SWIGRUNTIME_DEBUG
27498 printf("SWIG_InitializeModule: found type %s\n", type->name);
27499 #endif
27500 if (swig_module.type_initial[i]->clientdata) {
27501 type->clientdata = swig_module.type_initial[i]->clientdata;
27502 #ifdef SWIGRUNTIME_DEBUG
27503 printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
27504 #endif
27505 }
27506 } else {
27507 type = swig_module.type_initial[i];
27508 }
27509
27510 /* Insert casting types */
27511 cast = swig_module.cast_initial[i];
27512 while (cast->type) {
27513 /* Don't need to add information already in the list */
27514 ret = 0;
27515 #ifdef SWIGRUNTIME_DEBUG
27516 printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
27517 #endif
27518 if (swig_module.next != &swig_module) {
27519 ret = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
27520 #ifdef SWIGRUNTIME_DEBUG
27521 if (ret) printf("SWIG_InitializeModule: found cast %s\n", ret->name);
27522 #endif
27523 }
27524 if (ret) {
27525 if (type == swig_module.type_initial[i]) {
27526 #ifdef SWIGRUNTIME_DEBUG
27527 printf("SWIG_InitializeModule: skip old type %s\n", ret->name);
27528 #endif
27529 cast->type = ret;
27530 ret = 0;
27531 } else {
27532 /* Check for casting already in the list */
27533 swig_cast_info *ocast = SWIG_TypeCheck(ret->name, type);
27534 #ifdef SWIGRUNTIME_DEBUG
27535 if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", ret->name);
27536 #endif
27537 if (!ocast) ret = 0;
27538 }
27539 }
27540
27541 if (!ret) {
27542 #ifdef SWIGRUNTIME_DEBUG
27543 printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
27544 #endif
27545 if (type->cast) {
27546 type->cast->prev = cast;
27547 cast->next = type->cast;
27548 }
27549 type->cast = cast;
27550 }
27551 cast++;
27552 }
27553 /* Set entry in modules->types array equal to the type */
27554 swig_module.types[i] = type;
27555 }
27556 swig_module.types[i] = 0;
27557
27558 #ifdef SWIGRUNTIME_DEBUG
27559 printf("**** SWIG_InitializeModule: Cast List ******\n");
27560 for (i = 0; i < swig_module.size; ++i) {
27561 int j = 0;
27562 swig_cast_info *cast = swig_module.cast_initial[i];
27563 printf("SWIG_InitializeModule: type %d %s\n", i, swig_module.type_initial[i]->name);
27564 while (cast->type) {
27565 printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
27566 cast++;
27567 ++j;
27568 }
27569 printf("---- Total casts: %d\n",j);
27570 }
27571 printf("**** SWIG_InitializeModule: Cast List ******\n");
27572 #endif
27573 }
27574
27575 /* This function will propagate the clientdata field of type to
27576 * any new swig_type_info structures that have been added into the list
27577 * of equivalent types. It is like calling
27578 * SWIG_TypeClientData(type, clientdata) a second time.
27579 */
27580 SWIGRUNTIME void
27581 SWIG_PropagateClientData(void) {
27582 size_t i;
27583 swig_cast_info *equiv;
27584 static int init_run = 0;
27585
27586 if (init_run) return;
27587 init_run = 1;
27588
27589 for (i = 0; i < swig_module.size; i++) {
27590 if (swig_module.types[i]->clientdata) {
27591 equiv = swig_module.types[i]->cast;
27592 while (equiv) {
27593 if (!equiv->converter) {
27594 if (equiv->type && !equiv->type->clientdata)
27595 SWIG_TypeClientData(equiv->type, swig_module.types[i]->clientdata);
27596 }
27597 equiv = equiv->next;
27598 }
27599 }
27600 }
27601 }
27602
27603 #ifdef __cplusplus
27604 #if 0
27605 {
27606 /* c-mode */
27607 #endif
27608 }
27609 #endif
27610
27611
27612
27613 #ifdef __cplusplus
27614 extern "C" {
27615 #endif
27616
27617 /* Python-specific SWIG API */
27618 #define SWIG_newvarlink() SWIG_Python_newvarlink()
27619 #define SWIG_addvarlink(p, name, get_attr, set_attr) SWIG_Python_addvarlink(p, name, get_attr, set_attr)
27620 #define SWIG_InstallConstants(d, constants) SWIG_Python_InstallConstants(d, constants)
27621
27622 /* -----------------------------------------------------------------------------
27623 * global variable support code.
27624 * ----------------------------------------------------------------------------- */
27625
27626 typedef struct swig_globalvar {
27627 char *name; /* Name of global variable */
27628 PyObject *(*get_attr)(void); /* Return the current value */
27629 int (*set_attr)(PyObject *); /* Set the value */
27630 struct swig_globalvar *next;
27631 } swig_globalvar;
27632
27633 typedef struct swig_varlinkobject {
27634 PyObject_HEAD
27635 swig_globalvar *vars;
27636 } swig_varlinkobject;
27637
27638 SWIGINTERN PyObject *
27639 swig_varlink_repr(swig_varlinkobject *SWIGUNUSEDPARM(v)) {
27640 return PyString_FromString("<Swig global variables>");
27641 }
27642
27643 SWIGINTERN PyObject *
27644 swig_varlink_str(swig_varlinkobject *v) {
27645 PyObject *str = PyString_FromString("(");
27646 swig_globalvar *var;
27647 for (var = v->vars; var; var=var->next) {
27648 PyString_ConcatAndDel(&str,PyString_FromString(var->name));
27649 if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
27650 }
27651 PyString_ConcatAndDel(&str,PyString_FromString(")"));
27652 return str;
27653 }
27654
27655 SWIGINTERN int
27656 swig_varlink_print(swig_varlinkobject *v, FILE *fp, int SWIGUNUSEDPARM(flags)) {
27657 PyObject *str = swig_varlink_str(v);
27658 fprintf(fp,"Swig global variables ");
27659 fprintf(fp,"%s\n", PyString_AsString(str));
27660 Py_DECREF(str);
27661 return 0;
27662 }
27663
27664 SWIGINTERN void
27665 swig_varlink_dealloc(swig_varlinkobject *v) {
27666 swig_globalvar *var = v->vars;
27667 while (var) {
27668 swig_globalvar *n = var->next;
27669 free(var->name);
27670 free(var);
27671 var = n;
27672 }
27673 }
27674
27675 SWIGINTERN PyObject *
27676 swig_varlink_getattr(swig_varlinkobject *v, char *n) {
27677 PyObject *res = NULL;
27678 swig_globalvar *var = v->vars;
27679 while (var) {
27680 if (strcmp(var->name,n) == 0) {
27681 res = (*var->get_attr)();
27682 break;
27683 }
27684 var = var->next;
27685 }
27686 if (res == NULL && !PyErr_Occurred()) {
27687 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27688 }
27689 return res;
27690 }
27691
27692 SWIGINTERN int
27693 swig_varlink_setattr(swig_varlinkobject *v, char *n, PyObject *p) {
27694 int res = 1;
27695 swig_globalvar *var = v->vars;
27696 while (var) {
27697 if (strcmp(var->name,n) == 0) {
27698 res = (*var->set_attr)(p);
27699 break;
27700 }
27701 var = var->next;
27702 }
27703 if (res == 1 && !PyErr_Occurred()) {
27704 PyErr_SetString(PyExc_NameError,"Unknown C global variable");
27705 }
27706 return res;
27707 }
27708
27709 SWIGINTERN PyTypeObject*
27710 swig_varlink_type(void) {
27711 static char varlink__doc__[] = "Swig var link object";
27712 static PyTypeObject varlink_type;
27713 static int type_init = 0;
27714 if (!type_init) {
27715 const PyTypeObject tmp
27716 = {
27717 PyObject_HEAD_INIT(NULL)
27718 0, /* Number of items in variable part (ob_size) */
27719 (char *)"swigvarlink", /* Type name (tp_name) */
27720 sizeof(swig_varlinkobject), /* Basic size (tp_basicsize) */
27721 0, /* Itemsize (tp_itemsize) */
27722 (destructor) swig_varlink_dealloc, /* Deallocator (tp_dealloc) */
27723 (printfunc) swig_varlink_print, /* Print (tp_print) */
27724 (getattrfunc) swig_varlink_getattr, /* get attr (tp_getattr) */
27725 (setattrfunc) swig_varlink_setattr, /* Set attr (tp_setattr) */
27726 0, /* tp_compare */
27727 (reprfunc) swig_varlink_repr, /* tp_repr */
27728 0, /* tp_as_number */
27729 0, /* tp_as_sequence */
27730 0, /* tp_as_mapping */
27731 0, /* tp_hash */
27732 0, /* tp_call */
27733 (reprfunc)swig_varlink_str, /* tp_str */
27734 0, /* tp_getattro */
27735 0, /* tp_setattro */
27736 0, /* tp_as_buffer */
27737 0, /* tp_flags */
27738 varlink__doc__, /* tp_doc */
27739 0, /* tp_traverse */
27740 0, /* tp_clear */
27741 0, /* tp_richcompare */
27742 0, /* tp_weaklistoffset */
27743 #if PY_VERSION_HEX >= 0x02020000
27744 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
27745 #endif
27746 #if PY_VERSION_HEX >= 0x02030000
27747 0, /* tp_del */
27748 #endif
27749 #ifdef COUNT_ALLOCS
27750 0,0,0,0 /* tp_alloc -> tp_next */
27751 #endif
27752 };
27753 varlink_type = tmp;
27754 varlink_type.ob_type = &PyType_Type;
27755 type_init = 1;
27756 }
27757 return &varlink_type;
27758 }
27759
27760 /* Create a variable linking object for use later */
27761 SWIGINTERN PyObject *
27762 SWIG_Python_newvarlink(void) {
27763 swig_varlinkobject *result = PyObject_NEW(swig_varlinkobject, swig_varlink_type());
27764 if (result) {
27765 result->vars = 0;
27766 }
27767 return ((PyObject*) result);
27768 }
27769
27770 SWIGINTERN void
27771 SWIG_Python_addvarlink(PyObject *p, char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
27772 swig_varlinkobject *v = (swig_varlinkobject *) p;
27773 swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
27774 if (gv) {
27775 size_t size = strlen(name)+1;
27776 gv->name = (char *)malloc(size);
27777 if (gv->name) {
27778 strncpy(gv->name,name,size);
27779 gv->get_attr = get_attr;
27780 gv->set_attr = set_attr;
27781 gv->next = v->vars;
27782 }
27783 }
27784 v->vars = gv;
27785 }
27786
27787 SWIGINTERN PyObject *
27788 SWIG_globals() {
27789 static PyObject *_SWIG_globals = 0;
27790 if (!_SWIG_globals) _SWIG_globals = SWIG_newvarlink();
27791 return _SWIG_globals;
27792 }
27793
27794 /* -----------------------------------------------------------------------------
27795 * constants/methods manipulation
27796 * ----------------------------------------------------------------------------- */
27797
27798 /* Install Constants */
27799 SWIGINTERN void
27800 SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
27801 PyObject *obj = 0;
27802 size_t i;
27803 for (i = 0; constants[i].type; ++i) {
27804 switch(constants[i].type) {
27805 case SWIG_PY_POINTER:
27806 obj = SWIG_NewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
27807 break;
27808 case SWIG_PY_BINARY:
27809 obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
27810 break;
27811 default:
27812 obj = 0;
27813 break;
27814 }
27815 if (obj) {
27816 PyDict_SetItemString(d, constants[i].name, obj);
27817 Py_DECREF(obj);
27818 }
27819 }
27820 }
27821
27822 /* -----------------------------------------------------------------------------*/
27823 /* Fix SwigMethods to carry the callback ptrs when needed */
27824 /* -----------------------------------------------------------------------------*/
27825
27826 SWIGINTERN void
27827 SWIG_Python_FixMethods(PyMethodDef *methods,
27828 swig_const_info *const_table,
27829 swig_type_info **types,
27830 swig_type_info **types_initial) {
27831 size_t i;
27832 for (i = 0; methods[i].ml_name; ++i) {
27833 char *c = methods[i].ml_doc;
27834 if (c && (c = strstr(c, "swig_ptr: "))) {
27835 int j;
27836 swig_const_info *ci = 0;
27837 char *name = c + 10;
27838 for (j = 0; const_table[j].type; ++j) {
27839 if (strncmp(const_table[j].name, name,
27840 strlen(const_table[j].name)) == 0) {
27841 ci = &(const_table[j]);
27842 break;
27843 }
27844 }
27845 if (ci) {
27846 size_t shift = (ci->ptype) - types;
27847 swig_type_info *ty = types_initial[shift];
27848 size_t ldoc = (c - methods[i].ml_doc);
27849 size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
27850 char *ndoc = (char*)malloc(ldoc + lptr + 10);
27851 if (ndoc) {
27852 char *buff = ndoc;
27853 void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
27854 if (ptr) {
27855 strncpy(buff, methods[i].ml_doc, ldoc);
27856 buff += ldoc;
27857 strncpy(buff, "swig_ptr: ", 10);
27858 buff += 10;
27859 SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
27860 methods[i].ml_doc = ndoc;
27861 }
27862 }
27863 }
27864 }
27865 }
27866 }
27867
27868 #ifdef __cplusplus
27869 }
27870 #endif
27871
27872 /* -----------------------------------------------------------------------------*
27873 * Partial Init method
27874 * -----------------------------------------------------------------------------*/
27875
27876 #ifdef __cplusplus
27877 extern "C"
27878 #endif
27879 SWIGEXPORT void SWIG_init(void) {
27880 PyObject *m, *d;
27881
27882 /* Fix SwigMethods to carry the callback ptrs when needed */
27883 SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
27884
27885 m = Py_InitModule((char *) SWIG_name, SwigMethods);
27886 d = PyModule_GetDict(m);
27887
27888 SWIG_InitializeModule(0);
27889 SWIG_InstallConstants(d,swig_const_table);
27890
27891
27892 SWIG_Python_SetConstant(d, "C2S_NAME",SWIG_From_int(static_cast< int >(wxC2S_NAME)));
27893 SWIG_Python_SetConstant(d, "C2S_CSS_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_CSS_SYNTAX)));
27894 SWIG_Python_SetConstant(d, "C2S_HTML_SYNTAX",SWIG_From_int(static_cast< int >(wxC2S_HTML_SYNTAX)));
27895 SWIG_Python_SetConstant(d, "OutRegion",SWIG_From_int(static_cast< int >(wxOutRegion)));
27896 SWIG_Python_SetConstant(d, "PartRegion",SWIG_From_int(static_cast< int >(wxPartRegion)));
27897 SWIG_Python_SetConstant(d, "InRegion",SWIG_From_int(static_cast< int >(wxInRegion)));
27898 SWIG_Python_SetConstant(d, "FONTFAMILY_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DEFAULT)));
27899 SWIG_Python_SetConstant(d, "FONTFAMILY_DECORATIVE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_DECORATIVE)));
27900 SWIG_Python_SetConstant(d, "FONTFAMILY_ROMAN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_ROMAN)));
27901 SWIG_Python_SetConstant(d, "FONTFAMILY_SCRIPT",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SCRIPT)));
27902 SWIG_Python_SetConstant(d, "FONTFAMILY_SWISS",SWIG_From_int(static_cast< int >(wxFONTFAMILY_SWISS)));
27903 SWIG_Python_SetConstant(d, "FONTFAMILY_MODERN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MODERN)));
27904 SWIG_Python_SetConstant(d, "FONTFAMILY_TELETYPE",SWIG_From_int(static_cast< int >(wxFONTFAMILY_TELETYPE)));
27905 SWIG_Python_SetConstant(d, "FONTFAMILY_MAX",SWIG_From_int(static_cast< int >(wxFONTFAMILY_MAX)));
27906 SWIG_Python_SetConstant(d, "FONTFAMILY_UNKNOWN",SWIG_From_int(static_cast< int >(wxFONTFAMILY_UNKNOWN)));
27907 SWIG_Python_SetConstant(d, "FONTSTYLE_NORMAL",SWIG_From_int(static_cast< int >(wxFONTSTYLE_NORMAL)));
27908 SWIG_Python_SetConstant(d, "FONTSTYLE_ITALIC",SWIG_From_int(static_cast< int >(wxFONTSTYLE_ITALIC)));
27909 SWIG_Python_SetConstant(d, "FONTSTYLE_SLANT",SWIG_From_int(static_cast< int >(wxFONTSTYLE_SLANT)));
27910 SWIG_Python_SetConstant(d, "FONTSTYLE_MAX",SWIG_From_int(static_cast< int >(wxFONTSTYLE_MAX)));
27911 SWIG_Python_SetConstant(d, "FONTWEIGHT_NORMAL",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_NORMAL)));
27912 SWIG_Python_SetConstant(d, "FONTWEIGHT_LIGHT",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_LIGHT)));
27913 SWIG_Python_SetConstant(d, "FONTWEIGHT_BOLD",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_BOLD)));
27914 SWIG_Python_SetConstant(d, "FONTWEIGHT_MAX",SWIG_From_int(static_cast< int >(wxFONTWEIGHT_MAX)));
27915 SWIG_Python_SetConstant(d, "FONTFLAG_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTFLAG_DEFAULT)));
27916 SWIG_Python_SetConstant(d, "FONTFLAG_ITALIC",SWIG_From_int(static_cast< int >(wxFONTFLAG_ITALIC)));
27917 SWIG_Python_SetConstant(d, "FONTFLAG_SLANT",SWIG_From_int(static_cast< int >(wxFONTFLAG_SLANT)));
27918 SWIG_Python_SetConstant(d, "FONTFLAG_LIGHT",SWIG_From_int(static_cast< int >(wxFONTFLAG_LIGHT)));
27919 SWIG_Python_SetConstant(d, "FONTFLAG_BOLD",SWIG_From_int(static_cast< int >(wxFONTFLAG_BOLD)));
27920 SWIG_Python_SetConstant(d, "FONTFLAG_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_ANTIALIASED)));
27921 SWIG_Python_SetConstant(d, "FONTFLAG_NOT_ANTIALIASED",SWIG_From_int(static_cast< int >(wxFONTFLAG_NOT_ANTIALIASED)));
27922 SWIG_Python_SetConstant(d, "FONTFLAG_UNDERLINED",SWIG_From_int(static_cast< int >(wxFONTFLAG_UNDERLINED)));
27923 SWIG_Python_SetConstant(d, "FONTFLAG_STRIKETHROUGH",SWIG_From_int(static_cast< int >(wxFONTFLAG_STRIKETHROUGH)));
27924 SWIG_Python_SetConstant(d, "FONTFLAG_MASK",SWIG_From_int(static_cast< int >(wxFONTFLAG_MASK)));
27925 SWIG_Python_SetConstant(d, "FONTENCODING_SYSTEM",SWIG_From_int(static_cast< int >(wxFONTENCODING_SYSTEM)));
27926 SWIG_Python_SetConstant(d, "FONTENCODING_DEFAULT",SWIG_From_int(static_cast< int >(wxFONTENCODING_DEFAULT)));
27927 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_1",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_1)));
27928 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_2",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_2)));
27929 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_3",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_3)));
27930 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_4",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_4)));
27931 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_5",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_5)));
27932 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_6",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_6)));
27933 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_7",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_7)));
27934 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_8",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_8)));
27935 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_9",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_9)));
27936 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_10",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_10)));
27937 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_11",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_11)));
27938 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_12",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_12)));
27939 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_13",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_13)));
27940 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_14",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_14)));
27941 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_15",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_15)));
27942 SWIG_Python_SetConstant(d, "FONTENCODING_ISO8859_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_ISO8859_MAX)));
27943 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8)));
27944 SWIG_Python_SetConstant(d, "FONTENCODING_KOI8_U",SWIG_From_int(static_cast< int >(wxFONTENCODING_KOI8_U)));
27945 SWIG_Python_SetConstant(d, "FONTENCODING_ALTERNATIVE",SWIG_From_int(static_cast< int >(wxFONTENCODING_ALTERNATIVE)));
27946 SWIG_Python_SetConstant(d, "FONTENCODING_BULGARIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_BULGARIAN)));
27947 SWIG_Python_SetConstant(d, "FONTENCODING_CP437",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP437)));
27948 SWIG_Python_SetConstant(d, "FONTENCODING_CP850",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP850)));
27949 SWIG_Python_SetConstant(d, "FONTENCODING_CP852",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP852)));
27950 SWIG_Python_SetConstant(d, "FONTENCODING_CP855",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP855)));
27951 SWIG_Python_SetConstant(d, "FONTENCODING_CP866",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP866)));
27952 SWIG_Python_SetConstant(d, "FONTENCODING_CP874",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP874)));
27953 SWIG_Python_SetConstant(d, "FONTENCODING_CP932",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP932)));
27954 SWIG_Python_SetConstant(d, "FONTENCODING_CP936",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP936)));
27955 SWIG_Python_SetConstant(d, "FONTENCODING_CP949",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP949)));
27956 SWIG_Python_SetConstant(d, "FONTENCODING_CP950",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP950)));
27957 SWIG_Python_SetConstant(d, "FONTENCODING_CP1250",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1250)));
27958 SWIG_Python_SetConstant(d, "FONTENCODING_CP1251",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1251)));
27959 SWIG_Python_SetConstant(d, "FONTENCODING_CP1252",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1252)));
27960 SWIG_Python_SetConstant(d, "FONTENCODING_CP1253",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1253)));
27961 SWIG_Python_SetConstant(d, "FONTENCODING_CP1254",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1254)));
27962 SWIG_Python_SetConstant(d, "FONTENCODING_CP1255",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1255)));
27963 SWIG_Python_SetConstant(d, "FONTENCODING_CP1256",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1256)));
27964 SWIG_Python_SetConstant(d, "FONTENCODING_CP1257",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP1257)));
27965 SWIG_Python_SetConstant(d, "FONTENCODING_CP12_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_CP12_MAX)));
27966 SWIG_Python_SetConstant(d, "FONTENCODING_UTF7",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF7)));
27967 SWIG_Python_SetConstant(d, "FONTENCODING_UTF8",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF8)));
27968 SWIG_Python_SetConstant(d, "FONTENCODING_EUC_JP",SWIG_From_int(static_cast< int >(wxFONTENCODING_EUC_JP)));
27969 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16BE)));
27970 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16LE)));
27971 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32BE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32BE)));
27972 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32LE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32LE)));
27973 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMAN)));
27974 SWIG_Python_SetConstant(d, "FONTENCODING_MACJAPANESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACJAPANESE)));
27975 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESETRAD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESETRAD)));
27976 SWIG_Python_SetConstant(d, "FONTENCODING_MACKOREAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKOREAN)));
27977 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABIC)));
27978 SWIG_Python_SetConstant(d, "FONTENCODING_MACHEBREW",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACHEBREW)));
27979 SWIG_Python_SetConstant(d, "FONTENCODING_MACGREEK",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGREEK)));
27980 SWIG_Python_SetConstant(d, "FONTENCODING_MACCYRILLIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCYRILLIC)));
27981 SWIG_Python_SetConstant(d, "FONTENCODING_MACDEVANAGARI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDEVANAGARI)));
27982 SWIG_Python_SetConstant(d, "FONTENCODING_MACGURMUKHI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGURMUKHI)));
27983 SWIG_Python_SetConstant(d, "FONTENCODING_MACGUJARATI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGUJARATI)));
27984 SWIG_Python_SetConstant(d, "FONTENCODING_MACORIYA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACORIYA)));
27985 SWIG_Python_SetConstant(d, "FONTENCODING_MACBENGALI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBENGALI)));
27986 SWIG_Python_SetConstant(d, "FONTENCODING_MACTAMIL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTAMIL)));
27987 SWIG_Python_SetConstant(d, "FONTENCODING_MACTELUGU",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTELUGU)));
27988 SWIG_Python_SetConstant(d, "FONTENCODING_MACKANNADA",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKANNADA)));
27989 SWIG_Python_SetConstant(d, "FONTENCODING_MACMALAJALAM",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMALAJALAM)));
27990 SWIG_Python_SetConstant(d, "FONTENCODING_MACSINHALESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSINHALESE)));
27991 SWIG_Python_SetConstant(d, "FONTENCODING_MACBURMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACBURMESE)));
27992 SWIG_Python_SetConstant(d, "FONTENCODING_MACKHMER",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKHMER)));
27993 SWIG_Python_SetConstant(d, "FONTENCODING_MACTHAI",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTHAI)));
27994 SWIG_Python_SetConstant(d, "FONTENCODING_MACLAOTIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACLAOTIAN)));
27995 SWIG_Python_SetConstant(d, "FONTENCODING_MACGEORGIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGEORGIAN)));
27996 SWIG_Python_SetConstant(d, "FONTENCODING_MACARMENIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARMENIAN)));
27997 SWIG_Python_SetConstant(d, "FONTENCODING_MACCHINESESIMP",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCHINESESIMP)));
27998 SWIG_Python_SetConstant(d, "FONTENCODING_MACTIBETAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTIBETAN)));
27999 SWIG_Python_SetConstant(d, "FONTENCODING_MACMONGOLIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMONGOLIAN)));
28000 SWIG_Python_SetConstant(d, "FONTENCODING_MACETHIOPIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACETHIOPIC)));
28001 SWIG_Python_SetConstant(d, "FONTENCODING_MACCENTRALEUR",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCENTRALEUR)));
28002 SWIG_Python_SetConstant(d, "FONTENCODING_MACVIATNAMESE",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACVIATNAMESE)));
28003 SWIG_Python_SetConstant(d, "FONTENCODING_MACARABICEXT",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACARABICEXT)));
28004 SWIG_Python_SetConstant(d, "FONTENCODING_MACSYMBOL",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACSYMBOL)));
28005 SWIG_Python_SetConstant(d, "FONTENCODING_MACDINGBATS",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACDINGBATS)));
28006 SWIG_Python_SetConstant(d, "FONTENCODING_MACTURKISH",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACTURKISH)));
28007 SWIG_Python_SetConstant(d, "FONTENCODING_MACCROATIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCROATIAN)));
28008 SWIG_Python_SetConstant(d, "FONTENCODING_MACICELANDIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACICELANDIC)));
28009 SWIG_Python_SetConstant(d, "FONTENCODING_MACROMANIAN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACROMANIAN)));
28010 SWIG_Python_SetConstant(d, "FONTENCODING_MACCELTIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACCELTIC)));
28011 SWIG_Python_SetConstant(d, "FONTENCODING_MACGAELIC",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACGAELIC)));
28012 SWIG_Python_SetConstant(d, "FONTENCODING_MACKEYBOARD",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACKEYBOARD)));
28013 SWIG_Python_SetConstant(d, "FONTENCODING_MACMIN",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMIN)));
28014 SWIG_Python_SetConstant(d, "FONTENCODING_MACMAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MACMAX)));
28015 SWIG_Python_SetConstant(d, "FONTENCODING_MAX",SWIG_From_int(static_cast< int >(wxFONTENCODING_MAX)));
28016 SWIG_Python_SetConstant(d, "FONTENCODING_UTF16",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF16)));
28017 SWIG_Python_SetConstant(d, "FONTENCODING_UTF32",SWIG_From_int(static_cast< int >(wxFONTENCODING_UTF32)));
28018 SWIG_Python_SetConstant(d, "FONTENCODING_UNICODE",SWIG_From_int(static_cast< int >(wxFONTENCODING_UNICODE)));
28019 SWIG_Python_SetConstant(d, "FONTENCODING_GB2312",SWIG_From_int(static_cast< int >(wxFONTENCODING_GB2312)));
28020 SWIG_Python_SetConstant(d, "FONTENCODING_BIG5",SWIG_From_int(static_cast< int >(wxFONTENCODING_BIG5)));
28021 SWIG_Python_SetConstant(d, "FONTENCODING_SHIFT_JIS",SWIG_From_int(static_cast< int >(wxFONTENCODING_SHIFT_JIS)));
28022
28023 wxPyPtrTypeMap_Add("wxFontEnumerator", "wxPyFontEnumerator");
28024
28025 SWIG_Python_SetConstant(d, "LANGUAGE_DEFAULT",SWIG_From_int(static_cast< int >(wxLANGUAGE_DEFAULT)));
28026 SWIG_Python_SetConstant(d, "LANGUAGE_UNKNOWN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UNKNOWN)));
28027 SWIG_Python_SetConstant(d, "LANGUAGE_ABKHAZIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ABKHAZIAN)));
28028 SWIG_Python_SetConstant(d, "LANGUAGE_AFAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFAR)));
28029 SWIG_Python_SetConstant(d, "LANGUAGE_AFRIKAANS",SWIG_From_int(static_cast< int >(wxLANGUAGE_AFRIKAANS)));
28030 SWIG_Python_SetConstant(d, "LANGUAGE_ALBANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ALBANIAN)));
28031 SWIG_Python_SetConstant(d, "LANGUAGE_AMHARIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AMHARIC)));
28032 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC)));
28033 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_ALGERIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_ALGERIA)));
28034 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_BAHRAIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_BAHRAIN)));
28035 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_EGYPT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_EGYPT)));
28036 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_IRAQ",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_IRAQ)));
28037 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_JORDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_JORDAN)));
28038 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_KUWAIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_KUWAIT)));
28039 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LEBANON",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LEBANON)));
28040 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_LIBYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_LIBYA)));
28041 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_MOROCCO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_MOROCCO)));
28042 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_OMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_OMAN)));
28043 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_QATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_QATAR)));
28044 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SAUDI_ARABIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SAUDI_ARABIA)));
28045 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SUDAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SUDAN)));
28046 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_SYRIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_SYRIA)));
28047 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_TUNISIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_TUNISIA)));
28048 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_UAE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_UAE)));
28049 SWIG_Python_SetConstant(d, "LANGUAGE_ARABIC_YEMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARABIC_YEMEN)));
28050 SWIG_Python_SetConstant(d, "LANGUAGE_ARMENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ARMENIAN)));
28051 SWIG_Python_SetConstant(d, "LANGUAGE_ASSAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ASSAMESE)));
28052 SWIG_Python_SetConstant(d, "LANGUAGE_AYMARA",SWIG_From_int(static_cast< int >(wxLANGUAGE_AYMARA)));
28053 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI)));
28054 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_CYRILLIC)));
28055 SWIG_Python_SetConstant(d, "LANGUAGE_AZERI_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_AZERI_LATIN)));
28056 SWIG_Python_SetConstant(d, "LANGUAGE_BASHKIR",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASHKIR)));
28057 SWIG_Python_SetConstant(d, "LANGUAGE_BASQUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BASQUE)));
28058 SWIG_Python_SetConstant(d, "LANGUAGE_BELARUSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BELARUSIAN)));
28059 SWIG_Python_SetConstant(d, "LANGUAGE_BENGALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BENGALI)));
28060 SWIG_Python_SetConstant(d, "LANGUAGE_BHUTANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BHUTANI)));
28061 SWIG_Python_SetConstant(d, "LANGUAGE_BIHARI",SWIG_From_int(static_cast< int >(wxLANGUAGE_BIHARI)));
28062 SWIG_Python_SetConstant(d, "LANGUAGE_BISLAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_BISLAMA)));
28063 SWIG_Python_SetConstant(d, "LANGUAGE_BRETON",SWIG_From_int(static_cast< int >(wxLANGUAGE_BRETON)));
28064 SWIG_Python_SetConstant(d, "LANGUAGE_BULGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_BULGARIAN)));
28065 SWIG_Python_SetConstant(d, "LANGUAGE_BURMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_BURMESE)));
28066 SWIG_Python_SetConstant(d, "LANGUAGE_CAMBODIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CAMBODIAN)));
28067 SWIG_Python_SetConstant(d, "LANGUAGE_CATALAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CATALAN)));
28068 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE)));
28069 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SIMPLIFIED",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SIMPLIFIED)));
28070 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TRADITIONAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TRADITIONAL)));
28071 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_HONGKONG",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_HONGKONG)));
28072 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_MACAU",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_MACAU)));
28073 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_SINGAPORE",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_SINGAPORE)));
28074 SWIG_Python_SetConstant(d, "LANGUAGE_CHINESE_TAIWAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CHINESE_TAIWAN)));
28075 SWIG_Python_SetConstant(d, "LANGUAGE_CORSICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CORSICAN)));
28076 SWIG_Python_SetConstant(d, "LANGUAGE_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_CROATIAN)));
28077 SWIG_Python_SetConstant(d, "LANGUAGE_CZECH",SWIG_From_int(static_cast< int >(wxLANGUAGE_CZECH)));
28078 SWIG_Python_SetConstant(d, "LANGUAGE_DANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DANISH)));
28079 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH)));
28080 SWIG_Python_SetConstant(d, "LANGUAGE_DUTCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_DUTCH_BELGIAN)));
28081 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH)));
28082 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_UK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_UK)));
28083 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_US)));
28084 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_AUSTRALIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_AUSTRALIA)));
28085 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BELIZE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BELIZE)));
28086 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_BOTSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_BOTSWANA)));
28087 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CANADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CANADA)));
28088 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_CARIBBEAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_CARIBBEAN)));
28089 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_DENMARK",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_DENMARK)));
28090 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_EIRE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_EIRE)));
28091 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_JAMAICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_JAMAICA)));
28092 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_NEW_ZEALAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_NEW_ZEALAND)));
28093 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_PHILIPPINES",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_PHILIPPINES)));
28094 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_SOUTH_AFRICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_SOUTH_AFRICA)));
28095 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_TRINIDAD",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_TRINIDAD)));
28096 SWIG_Python_SetConstant(d, "LANGUAGE_ENGLISH_ZIMBABWE",SWIG_From_int(static_cast< int >(wxLANGUAGE_ENGLISH_ZIMBABWE)));
28097 SWIG_Python_SetConstant(d, "LANGUAGE_ESPERANTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESPERANTO)));
28098 SWIG_Python_SetConstant(d, "LANGUAGE_ESTONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ESTONIAN)));
28099 SWIG_Python_SetConstant(d, "LANGUAGE_FAEROESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_FAEROESE)));
28100 SWIG_Python_SetConstant(d, "LANGUAGE_FARSI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FARSI)));
28101 SWIG_Python_SetConstant(d, "LANGUAGE_FIJI",SWIG_From_int(static_cast< int >(wxLANGUAGE_FIJI)));
28102 SWIG_Python_SetConstant(d, "LANGUAGE_FINNISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FINNISH)));
28103 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH)));
28104 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_BELGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_BELGIAN)));
28105 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_CANADIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_CANADIAN)));
28106 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_LUXEMBOURG)));
28107 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_MONACO",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_MONACO)));
28108 SWIG_Python_SetConstant(d, "LANGUAGE_FRENCH_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRENCH_SWISS)));
28109 SWIG_Python_SetConstant(d, "LANGUAGE_FRISIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_FRISIAN)));
28110 SWIG_Python_SetConstant(d, "LANGUAGE_GALICIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GALICIAN)));
28111 SWIG_Python_SetConstant(d, "LANGUAGE_GEORGIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GEORGIAN)));
28112 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN)));
28113 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_AUSTRIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_AUSTRIAN)));
28114 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_BELGIUM",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_BELGIUM)));
28115 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LIECHTENSTEIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LIECHTENSTEIN)));
28116 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_LUXEMBOURG",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_LUXEMBOURG)));
28117 SWIG_Python_SetConstant(d, "LANGUAGE_GERMAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_GERMAN_SWISS)));
28118 SWIG_Python_SetConstant(d, "LANGUAGE_GREEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREEK)));
28119 SWIG_Python_SetConstant(d, "LANGUAGE_GREENLANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_GREENLANDIC)));
28120 SWIG_Python_SetConstant(d, "LANGUAGE_GUARANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUARANI)));
28121 SWIG_Python_SetConstant(d, "LANGUAGE_GUJARATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_GUJARATI)));
28122 SWIG_Python_SetConstant(d, "LANGUAGE_HAUSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_HAUSA)));
28123 SWIG_Python_SetConstant(d, "LANGUAGE_HEBREW",SWIG_From_int(static_cast< int >(wxLANGUAGE_HEBREW)));
28124 SWIG_Python_SetConstant(d, "LANGUAGE_HINDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_HINDI)));
28125 SWIG_Python_SetConstant(d, "LANGUAGE_HUNGARIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_HUNGARIAN)));
28126 SWIG_Python_SetConstant(d, "LANGUAGE_ICELANDIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_ICELANDIC)));
28127 SWIG_Python_SetConstant(d, "LANGUAGE_INDONESIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_INDONESIAN)));
28128 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUA)));
28129 SWIG_Python_SetConstant(d, "LANGUAGE_INTERLINGUE",SWIG_From_int(static_cast< int >(wxLANGUAGE_INTERLINGUE)));
28130 SWIG_Python_SetConstant(d, "LANGUAGE_INUKTITUT",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUKTITUT)));
28131 SWIG_Python_SetConstant(d, "LANGUAGE_INUPIAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_INUPIAK)));
28132 SWIG_Python_SetConstant(d, "LANGUAGE_IRISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_IRISH)));
28133 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN)));
28134 SWIG_Python_SetConstant(d, "LANGUAGE_ITALIAN_SWISS",SWIG_From_int(static_cast< int >(wxLANGUAGE_ITALIAN_SWISS)));
28135 SWIG_Python_SetConstant(d, "LANGUAGE_JAPANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAPANESE)));
28136 SWIG_Python_SetConstant(d, "LANGUAGE_JAVANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_JAVANESE)));
28137 SWIG_Python_SetConstant(d, "LANGUAGE_KANNADA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KANNADA)));
28138 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI)));
28139 SWIG_Python_SetConstant(d, "LANGUAGE_KASHMIRI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KASHMIRI_INDIA)));
28140 SWIG_Python_SetConstant(d, "LANGUAGE_KAZAKH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KAZAKH)));
28141 SWIG_Python_SetConstant(d, "LANGUAGE_KERNEWEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_KERNEWEK)));
28142 SWIG_Python_SetConstant(d, "LANGUAGE_KINYARWANDA",SWIG_From_int(static_cast< int >(wxLANGUAGE_KINYARWANDA)));
28143 SWIG_Python_SetConstant(d, "LANGUAGE_KIRGHIZ",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRGHIZ)));
28144 SWIG_Python_SetConstant(d, "LANGUAGE_KIRUNDI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KIRUNDI)));
28145 SWIG_Python_SetConstant(d, "LANGUAGE_KONKANI",SWIG_From_int(static_cast< int >(wxLANGUAGE_KONKANI)));
28146 SWIG_Python_SetConstant(d, "LANGUAGE_KOREAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_KOREAN)));
28147 SWIG_Python_SetConstant(d, "LANGUAGE_KURDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_KURDISH)));
28148 SWIG_Python_SetConstant(d, "LANGUAGE_LAOTHIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LAOTHIAN)));
28149 SWIG_Python_SetConstant(d, "LANGUAGE_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATIN)));
28150 SWIG_Python_SetConstant(d, "LANGUAGE_LATVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LATVIAN)));
28151 SWIG_Python_SetConstant(d, "LANGUAGE_LINGALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_LINGALA)));
28152 SWIG_Python_SetConstant(d, "LANGUAGE_LITHUANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_LITHUANIAN)));
28153 SWIG_Python_SetConstant(d, "LANGUAGE_MACEDONIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MACEDONIAN)));
28154 SWIG_Python_SetConstant(d, "LANGUAGE_MALAGASY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAGASY)));
28155 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY)));
28156 SWIG_Python_SetConstant(d, "LANGUAGE_MALAYALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAYALAM)));
28157 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_BRUNEI_DARUSSALAM",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_BRUNEI_DARUSSALAM)));
28158 SWIG_Python_SetConstant(d, "LANGUAGE_MALAY_MALAYSIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALAY_MALAYSIA)));
28159 SWIG_Python_SetConstant(d, "LANGUAGE_MALTESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_MALTESE)));
28160 SWIG_Python_SetConstant(d, "LANGUAGE_MANIPURI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MANIPURI)));
28161 SWIG_Python_SetConstant(d, "LANGUAGE_MAORI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MAORI)));
28162 SWIG_Python_SetConstant(d, "LANGUAGE_MARATHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_MARATHI)));
28163 SWIG_Python_SetConstant(d, "LANGUAGE_MOLDAVIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MOLDAVIAN)));
28164 SWIG_Python_SetConstant(d, "LANGUAGE_MONGOLIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_MONGOLIAN)));
28165 SWIG_Python_SetConstant(d, "LANGUAGE_NAURU",SWIG_From_int(static_cast< int >(wxLANGUAGE_NAURU)));
28166 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI)));
28167 SWIG_Python_SetConstant(d, "LANGUAGE_NEPALI_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_NEPALI_INDIA)));
28168 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_BOKMAL",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_BOKMAL)));
28169 SWIG_Python_SetConstant(d, "LANGUAGE_NORWEGIAN_NYNORSK",SWIG_From_int(static_cast< int >(wxLANGUAGE_NORWEGIAN_NYNORSK)));
28170 SWIG_Python_SetConstant(d, "LANGUAGE_OCCITAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_OCCITAN)));
28171 SWIG_Python_SetConstant(d, "LANGUAGE_ORIYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_ORIYA)));
28172 SWIG_Python_SetConstant(d, "LANGUAGE_OROMO",SWIG_From_int(static_cast< int >(wxLANGUAGE_OROMO)));
28173 SWIG_Python_SetConstant(d, "LANGUAGE_PASHTO",SWIG_From_int(static_cast< int >(wxLANGUAGE_PASHTO)));
28174 SWIG_Python_SetConstant(d, "LANGUAGE_POLISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_POLISH)));
28175 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE)));
28176 SWIG_Python_SetConstant(d, "LANGUAGE_PORTUGUESE_BRAZILIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_PORTUGUESE_BRAZILIAN)));
28177 SWIG_Python_SetConstant(d, "LANGUAGE_PUNJABI",SWIG_From_int(static_cast< int >(wxLANGUAGE_PUNJABI)));
28178 SWIG_Python_SetConstant(d, "LANGUAGE_QUECHUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_QUECHUA)));
28179 SWIG_Python_SetConstant(d, "LANGUAGE_RHAETO_ROMANCE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RHAETO_ROMANCE)));
28180 SWIG_Python_SetConstant(d, "LANGUAGE_ROMANIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_ROMANIAN)));
28181 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN)));
28182 SWIG_Python_SetConstant(d, "LANGUAGE_RUSSIAN_UKRAINE",SWIG_From_int(static_cast< int >(wxLANGUAGE_RUSSIAN_UKRAINE)));
28183 SWIG_Python_SetConstant(d, "LANGUAGE_SAMOAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SAMOAN)));
28184 SWIG_Python_SetConstant(d, "LANGUAGE_SANGHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANGHO)));
28185 SWIG_Python_SetConstant(d, "LANGUAGE_SANSKRIT",SWIG_From_int(static_cast< int >(wxLANGUAGE_SANSKRIT)));
28186 SWIG_Python_SetConstant(d, "LANGUAGE_SCOTS_GAELIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SCOTS_GAELIC)));
28187 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN)));
28188 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_CYRILLIC)));
28189 SWIG_Python_SetConstant(d, "LANGUAGE_SERBIAN_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBIAN_LATIN)));
28190 SWIG_Python_SetConstant(d, "LANGUAGE_SERBO_CROATIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SERBO_CROATIAN)));
28191 SWIG_Python_SetConstant(d, "LANGUAGE_SESOTHO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SESOTHO)));
28192 SWIG_Python_SetConstant(d, "LANGUAGE_SETSWANA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SETSWANA)));
28193 SWIG_Python_SetConstant(d, "LANGUAGE_SHONA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SHONA)));
28194 SWIG_Python_SetConstant(d, "LANGUAGE_SINDHI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINDHI)));
28195 SWIG_Python_SetConstant(d, "LANGUAGE_SINHALESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SINHALESE)));
28196 SWIG_Python_SetConstant(d, "LANGUAGE_SISWATI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SISWATI)));
28197 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVAK",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVAK)));
28198 SWIG_Python_SetConstant(d, "LANGUAGE_SLOVENIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SLOVENIAN)));
28199 SWIG_Python_SetConstant(d, "LANGUAGE_SOMALI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SOMALI)));
28200 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH)));
28201 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ARGENTINA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ARGENTINA)));
28202 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_BOLIVIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_BOLIVIA)));
28203 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_CHILE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_CHILE)));
28204 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COLOMBIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COLOMBIA)));
28205 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_COSTA_RICA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_COSTA_RICA)));
28206 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_DOMINICAN_REPUBLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_DOMINICAN_REPUBLIC)));
28207 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_ECUADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_ECUADOR)));
28208 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_EL_SALVADOR",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_EL_SALVADOR)));
28209 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_GUATEMALA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_GUATEMALA)));
28210 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_HONDURAS",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_HONDURAS)));
28211 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MEXICAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MEXICAN)));
28212 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_MODERN",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_MODERN)));
28213 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_NICARAGUA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_NICARAGUA)));
28214 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PANAMA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PANAMA)));
28215 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PARAGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PARAGUAY)));
28216 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PERU",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PERU)));
28217 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_PUERTO_RICO",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_PUERTO_RICO)));
28218 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_URUGUAY",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_URUGUAY)));
28219 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_US",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_US)));
28220 SWIG_Python_SetConstant(d, "LANGUAGE_SPANISH_VENEZUELA",SWIG_From_int(static_cast< int >(wxLANGUAGE_SPANISH_VENEZUELA)));
28221 SWIG_Python_SetConstant(d, "LANGUAGE_SUNDANESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_SUNDANESE)));
28222 SWIG_Python_SetConstant(d, "LANGUAGE_SWAHILI",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWAHILI)));
28223 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH)));
28224 SWIG_Python_SetConstant(d, "LANGUAGE_SWEDISH_FINLAND",SWIG_From_int(static_cast< int >(wxLANGUAGE_SWEDISH_FINLAND)));
28225 SWIG_Python_SetConstant(d, "LANGUAGE_TAGALOG",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAGALOG)));
28226 SWIG_Python_SetConstant(d, "LANGUAGE_TAJIK",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAJIK)));
28227 SWIG_Python_SetConstant(d, "LANGUAGE_TAMIL",SWIG_From_int(static_cast< int >(wxLANGUAGE_TAMIL)));
28228 SWIG_Python_SetConstant(d, "LANGUAGE_TATAR",SWIG_From_int(static_cast< int >(wxLANGUAGE_TATAR)));
28229 SWIG_Python_SetConstant(d, "LANGUAGE_TELUGU",SWIG_From_int(static_cast< int >(wxLANGUAGE_TELUGU)));
28230 SWIG_Python_SetConstant(d, "LANGUAGE_THAI",SWIG_From_int(static_cast< int >(wxLANGUAGE_THAI)));
28231 SWIG_Python_SetConstant(d, "LANGUAGE_TIBETAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIBETAN)));
28232 SWIG_Python_SetConstant(d, "LANGUAGE_TIGRINYA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TIGRINYA)));
28233 SWIG_Python_SetConstant(d, "LANGUAGE_TONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TONGA)));
28234 SWIG_Python_SetConstant(d, "LANGUAGE_TSONGA",SWIG_From_int(static_cast< int >(wxLANGUAGE_TSONGA)));
28235 SWIG_Python_SetConstant(d, "LANGUAGE_TURKISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKISH)));
28236 SWIG_Python_SetConstant(d, "LANGUAGE_TURKMEN",SWIG_From_int(static_cast< int >(wxLANGUAGE_TURKMEN)));
28237 SWIG_Python_SetConstant(d, "LANGUAGE_TWI",SWIG_From_int(static_cast< int >(wxLANGUAGE_TWI)));
28238 SWIG_Python_SetConstant(d, "LANGUAGE_UIGHUR",SWIG_From_int(static_cast< int >(wxLANGUAGE_UIGHUR)));
28239 SWIG_Python_SetConstant(d, "LANGUAGE_UKRAINIAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UKRAINIAN)));
28240 SWIG_Python_SetConstant(d, "LANGUAGE_URDU",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU)));
28241 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_INDIA",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_INDIA)));
28242 SWIG_Python_SetConstant(d, "LANGUAGE_URDU_PAKISTAN",SWIG_From_int(static_cast< int >(wxLANGUAGE_URDU_PAKISTAN)));
28243 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK)));
28244 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_CYRILLIC",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_CYRILLIC)));
28245 SWIG_Python_SetConstant(d, "LANGUAGE_UZBEK_LATIN",SWIG_From_int(static_cast< int >(wxLANGUAGE_UZBEK_LATIN)));
28246 SWIG_Python_SetConstant(d, "LANGUAGE_VIETNAMESE",SWIG_From_int(static_cast< int >(wxLANGUAGE_VIETNAMESE)));
28247 SWIG_Python_SetConstant(d, "LANGUAGE_VOLAPUK",SWIG_From_int(static_cast< int >(wxLANGUAGE_VOLAPUK)));
28248 SWIG_Python_SetConstant(d, "LANGUAGE_WELSH",SWIG_From_int(static_cast< int >(wxLANGUAGE_WELSH)));
28249 SWIG_Python_SetConstant(d, "LANGUAGE_WOLOF",SWIG_From_int(static_cast< int >(wxLANGUAGE_WOLOF)));
28250 SWIG_Python_SetConstant(d, "LANGUAGE_XHOSA",SWIG_From_int(static_cast< int >(wxLANGUAGE_XHOSA)));
28251 SWIG_Python_SetConstant(d, "LANGUAGE_YIDDISH",SWIG_From_int(static_cast< int >(wxLANGUAGE_YIDDISH)));
28252 SWIG_Python_SetConstant(d, "LANGUAGE_YORUBA",SWIG_From_int(static_cast< int >(wxLANGUAGE_YORUBA)));
28253 SWIG_Python_SetConstant(d, "LANGUAGE_ZHUANG",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZHUANG)));
28254 SWIG_Python_SetConstant(d, "LANGUAGE_ZULU",SWIG_From_int(static_cast< int >(wxLANGUAGE_ZULU)));
28255 SWIG_Python_SetConstant(d, "LANGUAGE_USER_DEFINED",SWIG_From_int(static_cast< int >(wxLANGUAGE_USER_DEFINED)));
28256 SWIG_Python_SetConstant(d, "LOCALE_CAT_NUMBER",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_NUMBER)));
28257 SWIG_Python_SetConstant(d, "LOCALE_CAT_DATE",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_DATE)));
28258 SWIG_Python_SetConstant(d, "LOCALE_CAT_MONEY",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MONEY)));
28259 SWIG_Python_SetConstant(d, "LOCALE_CAT_MAX",SWIG_From_int(static_cast< int >(wxLOCALE_CAT_MAX)));
28260 SWIG_Python_SetConstant(d, "LOCALE_THOUSANDS_SEP",SWIG_From_int(static_cast< int >(wxLOCALE_THOUSANDS_SEP)));
28261 SWIG_Python_SetConstant(d, "LOCALE_DECIMAL_POINT",SWIG_From_int(static_cast< int >(wxLOCALE_DECIMAL_POINT)));
28262 SWIG_Python_SetConstant(d, "LOCALE_LOAD_DEFAULT",SWIG_From_int(static_cast< int >(wxLOCALE_LOAD_DEFAULT)));
28263 SWIG_Python_SetConstant(d, "LOCALE_CONV_ENCODING",SWIG_From_int(static_cast< int >(wxLOCALE_CONV_ENCODING)));
28264 SWIG_Python_SetConstant(d, "CONVERT_STRICT",SWIG_From_int(static_cast< int >(wxCONVERT_STRICT)));
28265 SWIG_Python_SetConstant(d, "CONVERT_SUBSTITUTE",SWIG_From_int(static_cast< int >(wxCONVERT_SUBSTITUTE)));
28266 SWIG_Python_SetConstant(d, "PLATFORM_CURRENT",SWIG_From_int(static_cast< int >(wxPLATFORM_CURRENT)));
28267 SWIG_Python_SetConstant(d, "PLATFORM_UNIX",SWIG_From_int(static_cast< int >(wxPLATFORM_UNIX)));
28268 SWIG_Python_SetConstant(d, "PLATFORM_WINDOWS",SWIG_From_int(static_cast< int >(wxPLATFORM_WINDOWS)));
28269 SWIG_Python_SetConstant(d, "PLATFORM_OS2",SWIG_From_int(static_cast< int >(wxPLATFORM_OS2)));
28270 SWIG_Python_SetConstant(d, "PLATFORM_MAC",SWIG_From_int(static_cast< int >(wxPLATFORM_MAC)));
28271 SWIG_Python_SetConstant(d, "BUFFER_VIRTUAL_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_VIRTUAL_AREA)));
28272 SWIG_Python_SetConstant(d, "BUFFER_CLIENT_AREA",SWIG_From_int(static_cast< int >(wxBUFFER_CLIENT_AREA)));
28273 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_NORMAL)));
28274 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_TRANSPARENT",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_TRANSPARENT)));
28275 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_SELECTED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_SELECTED)));
28276 SWIG_Python_SetConstant(d, "IMAGELIST_DRAW_FOCUSED",SWIG_From_int(static_cast< int >(wxIMAGELIST_DRAW_FOCUSED)));
28277 SWIG_Python_SetConstant(d, "IMAGE_LIST_NORMAL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_NORMAL)));
28278 SWIG_Python_SetConstant(d, "IMAGE_LIST_SMALL",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_SMALL)));
28279 SWIG_Python_SetConstant(d, "IMAGE_LIST_STATE",SWIG_From_int(static_cast< int >(wxIMAGE_LIST_STATE)));
28280 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLACK)));
28281 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_BLUE)));
28282 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_CYAN)));
28283 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREEN)));
28284 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_GREY)));
28285 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_LIGHTGREY)));
28286 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_MEDIUMGREY)));
28287 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_RED",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_RED)));
28288 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_TRANSPARENT)));
28289 SWIG_Python_SetConstant(d, "StockGDI_BRUSH_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::BRUSH_WHITE)));
28290 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLACK)));
28291 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_BLUE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_BLUE)));
28292 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_CYAN)));
28293 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_GREEN)));
28294 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_LIGHTGREY)));
28295 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_RED",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_RED)));
28296 SWIG_Python_SetConstant(d, "StockGDI_COLOUR_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::COLOUR_WHITE)));
28297 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_CROSS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_CROSS)));
28298 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_HOURGLASS",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_HOURGLASS)));
28299 SWIG_Python_SetConstant(d, "StockGDI_CURSOR_STANDARD",SWIG_From_int(static_cast< int >(wxStockGDI::CURSOR_STANDARD)));
28300 SWIG_Python_SetConstant(d, "StockGDI_FONT_ITALIC",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_ITALIC)));
28301 SWIG_Python_SetConstant(d, "StockGDI_FONT_NORMAL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_NORMAL)));
28302 SWIG_Python_SetConstant(d, "StockGDI_FONT_SMALL",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SMALL)));
28303 SWIG_Python_SetConstant(d, "StockGDI_FONT_SWISS",SWIG_From_int(static_cast< int >(wxStockGDI::FONT_SWISS)));
28304 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACK",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACK)));
28305 SWIG_Python_SetConstant(d, "StockGDI_PEN_BLACKDASHED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_BLACKDASHED)));
28306 SWIG_Python_SetConstant(d, "StockGDI_PEN_CYAN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_CYAN)));
28307 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREEN",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREEN)));
28308 SWIG_Python_SetConstant(d, "StockGDI_PEN_GREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_GREY)));
28309 SWIG_Python_SetConstant(d, "StockGDI_PEN_LIGHTGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_LIGHTGREY)));
28310 SWIG_Python_SetConstant(d, "StockGDI_PEN_MEDIUMGREY",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_MEDIUMGREY)));
28311 SWIG_Python_SetConstant(d, "StockGDI_PEN_RED",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_RED)));
28312 SWIG_Python_SetConstant(d, "StockGDI_PEN_TRANSPARENT",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_TRANSPARENT)));
28313 SWIG_Python_SetConstant(d, "StockGDI_PEN_WHITE",SWIG_From_int(static_cast< int >(wxStockGDI::PEN_WHITE)));
28314 SWIG_Python_SetConstant(d, "StockGDI_ITEMCOUNT",SWIG_From_int(static_cast< int >(wxStockGDI::ITEMCOUNT)));
28315 PyDict_SetItemString(d,(char*)"cvar", SWIG_globals());
28316 SWIG_addvarlink(SWIG_globals(),(char*)"NullBitmap",NullBitmap_get, NullBitmap_set);
28317 SWIG_addvarlink(SWIG_globals(),(char*)"NullIcon",NullIcon_get, NullIcon_set);
28318 SWIG_addvarlink(SWIG_globals(),(char*)"NullCursor",NullCursor_get, NullCursor_set);
28319 SWIG_addvarlink(SWIG_globals(),(char*)"NullPen",NullPen_get, NullPen_set);
28320 SWIG_addvarlink(SWIG_globals(),(char*)"NullBrush",NullBrush_get, NullBrush_set);
28321 SWIG_addvarlink(SWIG_globals(),(char*)"NullPalette",NullPalette_get, NullPalette_set);
28322 SWIG_addvarlink(SWIG_globals(),(char*)"NullFont",NullFont_get, NullFont_set);
28323 SWIG_addvarlink(SWIG_globals(),(char*)"NullColour",NullColour_get, NullColour_set);
28324 SWIG_Python_SetConstant(d, "CONTROL_DISABLED",SWIG_From_int(static_cast< int >(wxCONTROL_DISABLED)));
28325 SWIG_Python_SetConstant(d, "CONTROL_FOCUSED",SWIG_From_int(static_cast< int >(wxCONTROL_FOCUSED)));
28326 SWIG_Python_SetConstant(d, "CONTROL_PRESSED",SWIG_From_int(static_cast< int >(wxCONTROL_PRESSED)));
28327 SWIG_Python_SetConstant(d, "CONTROL_ISDEFAULT",SWIG_From_int(static_cast< int >(wxCONTROL_ISDEFAULT)));
28328 SWIG_Python_SetConstant(d, "CONTROL_ISSUBMENU",SWIG_From_int(static_cast< int >(wxCONTROL_ISSUBMENU)));
28329 SWIG_Python_SetConstant(d, "CONTROL_EXPANDED",SWIG_From_int(static_cast< int >(wxCONTROL_EXPANDED)));
28330 SWIG_Python_SetConstant(d, "CONTROL_CURRENT",SWIG_From_int(static_cast< int >(wxCONTROL_CURRENT)));
28331 SWIG_Python_SetConstant(d, "CONTROL_SELECTED",SWIG_From_int(static_cast< int >(wxCONTROL_SELECTED)));
28332 SWIG_Python_SetConstant(d, "CONTROL_CHECKED",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKED)));
28333 SWIG_Python_SetConstant(d, "CONTROL_CHECKABLE",SWIG_From_int(static_cast< int >(wxCONTROL_CHECKABLE)));
28334 SWIG_Python_SetConstant(d, "CONTROL_UNDETERMINED",SWIG_From_int(static_cast< int >(wxCONTROL_UNDETERMINED)));
28335 SWIG_Python_SetConstant(d, "CONTROL_FLAGS_MASK",SWIG_From_int(static_cast< int >(wxCONTROL_FLAGS_MASK)));
28336 SWIG_Python_SetConstant(d, "CONTROL_DIRTY",SWIG_From_int(static_cast< int >(wxCONTROL_DIRTY)));
28337 SWIG_Python_SetConstant(d, "RendererVersion_Current_Version",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Version)));
28338 SWIG_Python_SetConstant(d, "RendererVersion_Current_Age",SWIG_From_int(static_cast< int >(wxRendererVersion::Current_Age)));
28339
28340 // Work around a chicken/egg problem in drawlist.cpp
28341 wxPyDrawList_SetAPIPtr();
28342
28343 }
28344